joyce8/EMBER2024-capa huggingface dataset:
Function at 0x524130
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.HTDG1
lea edi, [esi - 0xa2000]
mov dword [edi + 0x112088], 0x10f081c2
push edi
or ebp, 0xffffffff
jmp 0x52415a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x524161
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x524150
mov eax, 1
add ebx, ebx
jne 0x524173
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x524184
jne 0x5241a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5241a3
dec eax
add ebx, ebx
jne 0x524190
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x524168
add ebx, ebx
jne 0x52419f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5241f5
xor ecx, ecx
sub eax, 3
jb 0x5241bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52422a
sar eax, 1
mov ebp, eax
jmp 0x5241c6
add ebx, ebx
jne 0x5241c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x524194
inc ecx
add ebx, ebx
jne 0x5241d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x524194
add ebx, ebx
jne 0x5241e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5241d6
jne 0x5241f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5241d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x524214
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x524206
jmp 0x524156
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x524214
add edi, ecx
jmp 0x524156
pop esi
mov edi, esi
mov ecx, 0x4f4e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x524232
cmp byte [edi], 0x1e
jne 0x524232
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x524237
lea edi, [esi + 0x11d000]
mov eax, dword [edi]
or eax, eax
je 0x5242af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x124b10]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x124c20]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x524264
mov ecx, edi
jns 0x524293
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x124c28]
or eax, eax
je 0x5242a9
mov dword [ebx], eax
add ebx, 4
jmp 0x524281
call dword [esi + 0x124c24]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5242e0
cmp al, 0xef
ja 0x5242d3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5242b5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5242c2
mov ebp, dword [esi + 0x124c2c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x267]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x524314
sub esp, 0xffffff80
jmp 0x4992f9
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1ce57d7b
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x431060
nop
nop
mov eax, section..reloc
nop
nop
cmp eax, 0
nop
je 0x4310d2
nop
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1dd40727
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x401bd7
pop dword [ebp - 0x30]
mov eax, 0x3c294f03
add eax, 0xc416ccd4
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x82b5a894
add dword [ebp - 0x40], 0xcb9c9cb7
mov dword [ebp - 0x3c], 0x110e82bd
sub dword [ebp - 0x3c], 0xdedb3678
mov dword [ebp - 0x38], 0xc947b4e7
sub dword [ebp - 0x38], 0x7cfb70b9
mov dword [ebp - 0x34], 0x43787230
add dword [ebp - 0x34], 0xbc878dd0
lea eax, [ebp - 0x40]
push eax
mov eax, 0x8a314ddc
add eax, 0x760f2284
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x7489047a
sub dword [ebp - 0x40], 0x169b24
mov dword [ebp - 0x3c], 0x22840a24
add dword [ebp - 0x3c], 0x1ee85751
mov dword [ebp - 0x38], 0x6851f6d2
add dword [ebp - 0x38], 0xfb1d759a
mov dword [ebp - 0x34], 0x9906aa5
sub dword [ebp - 0x34], 0x9906aa5
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x4cb4f830
sub eax, 0x4c748730
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3693b
push 0
call eax
mov ecx, 0x316913fa
sub ecx, 0x3168cbf8
mov ebx, eax
mov edx, 0xecd10fd9
sub edx, 0xec900fd9
add edx, dword [ebp - 0x30]
mov edi, 0xbf12e2d9
sub dword [ebp - 8], 0xc614431b
mov esi, dword [edx]
mov dword [ebp - 0x24], 0xa47d551b
add esi, edi
sub dword [ebp - 0x20], 0x4f110098
mov dword [ebx], esi
xor dword [ebp - 8], edx
add ebx, 0xab4bd240
add ebx, 0x54b42dc4
add edx, 4
loop 0x401cf3
add eax, 0x1cca328e
add eax, 0xe336e04d
mov ebx, eax
add eax, 5
mov ecx, 0x72ea34cd
add ecx, 0x8d55cb33
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x409888
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40995b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409974
push ebx
push 0x409980
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409908
mov al, 0x62
call fcn.00409460
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040985c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409911
call fcn.0040985c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409962
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409a14
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
jmp 0x409abd
cmp dword [esi + 0x10], 0x1000
jne 0x409aa9
test byte [esi + 0x15], 1
jne 0x409aa9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409a68
cmp eax, 2
je 0x409a68
cmp eax, 0x10
je 0x409a68
cmp eax, 0x20
jne 0x409a7d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409a7d
mov bl, 1
xor ebp, ebp
jmp 0x409a8e
mov eax, dword [esi]
add eax, ebp
call fcn.00409a0c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409a81
test bl, bl
je 0x409aa9
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409a40
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x404490
Capabilities:
Encode data using xor

Disassembly:
call 0x404367
mov ecx, 0x1dd
call 0x404490
rcr dword [esi + 0x30], 0x4c
push cs
pop es
xor byte [esi + ecx + 7], cl
loop 0x404493
mov eax, 0x50402c9
out dx, al
clc
div esi
cmc
retf 0x3d52
Function at 0x10000288
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
push esi
push edi
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0xc]
add edi, 0x14
mov esi, dword [edi]
jmp 0x100002b3
push dword [ebp + 8]
push dword [esi + 0x20]
call fcn.1000043e
pop ecx
pop ecx
test al, al
jne 0x100002bd
mov esi, dword [esi]
cmp esi, edi
jne 0x100002a0
xor eax, eax
pop edi
pop esi
pop ebp
ret
mov eax, dword [esi + 0x10]
jmp 0x100002b9

Function at 0x10000300
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x10000356
mov eax, dword [esi + 0x3c]
xor edi, edi
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov ecx, dword [eax + 0x24]
mov ebx, dword [eax + 0x1c]
add ecx, esi
mov dword [ebp - 8], ecx
add ebx, esi
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add ecx, esi
mov dword [ebp - 4], ecx
mov dword [ebp + 8], eax
test eax, eax
je 0x10000356
mov eax, dword [ecx + edi*4]
push dword [ebp + 0xc]
add eax, esi
push eax
call fcn.100003a1
pop ecx
pop ecx
test al, al
jne 0x1000035d
mov ecx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp + 8]
jb 0x10000339
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 8]
movzx eax, word [eax + edi*2]
mov eax, dword [ebx + eax*4]
add eax, esi
jmp 0x10000358

Function at 0x1000036b
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
add esi, dword [ebp + 0xc]
push edi
mov edi, 0x811c9dc5
jmp 0x10000395
cbw
movzx eax, ax
push eax
call fcn.1000048a
movzx eax, ax
xor eax, edi
imul edi, eax, 0x1000193
inc esi
pop ecx
mov al, byte [esi]
test al, al
jne 0x1000037d
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x10000405
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, 0x811c9dc5
jmp 0x1000042f
movzx eax, byte [ebx + esi*2]
push eax
call fcn.100003eb
movsx eax, al
xor eax, edi
imul edi, eax, 0x1000193
inc esi
pop ecx
xor eax, eax
cmp word [ebx + esi*2], ax
jne 0x10000418
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100004ad
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0xa62a3b3b
call fcn.10000288
push 0xa3e6f6c3
call fcn.10000288
push 0x3bbc54d9
push eax
call fcn.10000300
mov esi, eax
mov dword [ebp - 0x40], 0x8f408fd
mov eax, 0x8ba
mov dword [ebp - 0x3c], 0x9110916
mov word [ebp - 4], ax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x38], 0x9280923
mov dword [ebp - 0x34], 0x929091e
mov dword [ebp - 0x30], 0x92d0931
mov dword [ebp - 0x2c], 0x90d0916
mov dword [ebp - 0x28], 0x92d0933
mov dword [ebp - 0x24], 0x91f092e
mov dword [ebp - 0x20], 0x8ed0927
mov dword [ebp - 0x1c], 0x91608ec
mov dword [ebp - 0x18], 0x92d092f
mov dword [ebp - 0x14], 0x92c091f
mov dword [ebp - 0x10], 0x8ec08ed
mov dword [ebp - 0xc], 0x91e08e8
mov dword [ebp - 8], 0x9260926
call fcn.100002c2
push eax
call esi
push 0x3e
mov esi, eax
xor edi, edi
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.1000021c
push 0x28255f84
push esi
call fcn.10000300
add esp, 0x2c
push edi
push section..text
push 0x100001e4
push edi
call eax
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
mov eax, 1
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
xor ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
mov ecx, edi
jns 0x41989b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x403028
push 0x403024
push 0x403020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x403028]
push dword [0x403024]
push dword [0x403020]
mov dword [0x403014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x401000
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x118
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00416c10
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4010d9
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x4010a5
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40107e
cmp word [esp + 0x118], 4
jb 0x4010d9
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041482c
add esp, 0x120
ret
cmp eax, 2
jae 0x401088
cmp eax, 1
jne 0x4010d9
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041482c
add esp, 0x120
ret
cmp eax, 6
jne 0x4010d9
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4010cf
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041482c
add esp, 0x120
ret
cmp eax, 1
jne 0x4010d9
mov esi, 5
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0041482c
add esp, 0x120
ret
Function at 0x401c80
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00416c10
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x401d4f
mov eax, 0x42c864
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401cc5
sub eax, edx
sar eax, 1
je 0x401d4f
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42c864
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0041483b
push 0x42c880
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00414d8b
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x401d4f
push eax
push 1
push 0x200
push esi
call fcn.0041507e
mov eax, dword [esp + 0x14]
push eax
call fcn.00415112
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0041482c
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0041482c
add esp, 0x214
ret

Function at 0x401d70
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00416c10
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x401e75
mov eax, 0x42c7b0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401db5
sub eax, edx
sar eax, 1
je 0x401e75
cmp dword [0x433fbc], 3
jne 0x401dfc
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42c888
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0041483b
add esp, 0xc
jmp 0x401e0c
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42c7b0
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.0041483b
push 0x42c880
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00414d8b
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x401e75
push eax
push 1
push 0x200
push esi
call fcn.0041507e
mov edx, dword [esp + 0x14]
push edx
call fcn.00415112
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0041482c
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0041482c
add esp, 0x214
ret
Function at 0x401e90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00416c10
add esp, 0xc
cmp dword [0x433fbc], 3
jne 0x401ef0
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42c888
lea eax, [esp + 4]
push 0x104
push eax
call fcn.0041483b
add esp, 0xc
jmp 0x401eff
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [esp + 4]
push edx
push 0x42c88c
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.0041482c
add esp, 0x20c
ret

Function at 0x4020d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x254
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x250], eax
mov eax, dword [esp + 0x258]
push ebx
push esi
push edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x5a]
push edx
mov dword [esp + 0x1c], eax
mov word [esp + 0x5c], cx
call fcn.00416c10
add esp, 0xc
push 0x104
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx ecx, word [esp + 0x50]
sub ecx, 0x41
push ecx
lea ebx, [esp + 0x10]
call fcn.004023a0
xor eax, eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov word [esp + 0x2a], ax
mov eax, dword [esp + 0x10]
mov ecx, 9
mov esi, 0x42c8a0
lea edi, [esp + 0x2c]
xor edx, edx
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x4c], 0
mov word [esp + 0x14], dx
test eax, eax
jl 0x4021b9
push 0xa
push 0xa
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.00415e98
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push 0x14
push eax
call fcn.0041483b
add esp, 0x1c
push 0
push 0
push 3
push 0
push 3
push connect
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4021d3
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0041482c
add esp, 0x254
ret
mov edx, dword [esp + 0x10]
push edx
call fcn.00402000
mov ecx, dword [esp + 0x260]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041482c
add esp, 0x254
ret