joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a6894
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x507334]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4a68d5
cmp byte [ebp - 0x194], 2
jne 0x4a68cf
cmp byte [ebp - 0x193], 2
je 0x4a68d8
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048f726
leave
ret

Function at 0x4ae586
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4ae5b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x4ae6d6
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x4ae6f6
push dword [esi + 0xf4]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x4ae72f
cmp eax, 2
jg 0x4ae72f
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
add eax, 0x4dae80
push 2
push eax
call fcn.0048d09c
push dword [esi + 0xf0]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0048d09c
add esp, 0x20
xor eax, eax
ret

Function at 0x4ae8f5
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x12c]
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
and dword [edi], 0
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4ae967
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x4ae941
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x4ae966
push ebx
push esi
call fcn.004b7aa6
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.004ae861
mov eax, dword [esi]
mov dword [eax + 0x855c], ebx
add esp, 0x14
mov dword [edi], 0x37
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret
Function at 0x4af016
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x507334]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
mov esi, dword [ebp + 0x98]
cmp dword [esi + 0x198], 0
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], ebx
jne 0x4af133
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x9c]
mov edi, 0x80
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4af093
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004b7aa6
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004ae861
add esp, 0x18
jmp 0x4af13a
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x9c]
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4af0c6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004b7aa6
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x4af085
lea edi, [esi + 0xc8]
lea ebx, [esi + 0x9a]
lea esi, [ebp - 0x74]
call fcn.004aefdd
test eax, eax
jne 0x4af0fb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004b7aa6
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
jmp 0x4af086
mov eax, dword [ebp - 0x78]
lea edi, [eax + 0xfc]
lea ebx, [eax + 0xcc]
lea esi, [ebp + 0xc]
call fcn.004aefdd
test eax, eax
jne 0x4af130
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004b7aa6
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x4af0f6
mov esi, dword [ebp - 0x78]
push esi
call fcn.004aef8e
pop ecx
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f726
add ebp, 0x90
leave
ret

Function at 0x4af152
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x308]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x4af197
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004b7aa6
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004ae7ee
add esp, 0x14
jmp 0x4af1a4
push str.TCP_NODELAY_set_n
push esi
call fcn.004ae7ee
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x4af5fb
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x520]
cmp eax, 0xffffffff
push esi
je 0x4af64e
mov ecx, dword [ecx + 0x514]
mov ecx, dword [ecx]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
je 0x4af64e
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x4af628
mov dword [ecx], eax
cmp dword [eax + 0x144], 0
mov esi, dword [eax + 0x12c]
jne 0x4af64e
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4af64e
mov eax, esi
jmp 0x4af651
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x4b0723
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
and dword [eax], 0
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
mov dword [ebp - 8], eax
jne 0x4b0895
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
mov dword [ebp - 0xc], esi
je 0x4b087a
push ebx
push edi
jmp 0x4b076b
mov esi, dword [ebp - 0xc]
cmp dword [esi + 4], 2
jne 0x4b080e
cmp dword [esi + 0x18], 0
je 0x4b080e
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x4b080e
push 0x10
pop edi
cmp eax, edi
jb 0x4b080e
push 0x20
call dword [0x508608]
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
je 0x4b081e
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov ecx, dword [esi + 0xc]
push edi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x1c], eax
call dword [0x508608]
test eax, eax
pop ecx
mov dword [ebx + 0x18], eax
je 0x4b0827
mov esi, dword [esi + 0x18]
mov edi, eax
mov eax, dword [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4b07f5
push eax
call dword [0x508614]
test eax, eax
pop ecx
mov dword [ebx + 0x14], eax
je 0x4b0837
cmp dword [ebp - 4], 0
jne 0x4b07fe
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4b0808
mov dword [eax + 0x1c], ebx
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
mov dword [ebp - 0xc], esi
jne 0x4b0768
jmp 0x4b0850
mov dword [ebp - 8], 8
jmp 0x4b0850
push ebx
mov dword [ebp - 8], 8
call dword [0x50860c]
jmp 0x4b084f
push dword [ebx + 0x18]
mov dword [ebp - 8], 8
call dword [0x50860c]
push ebx
call dword [0x50860c]
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0x10], esi
pop edi
pop ebx
je 0x4b0862
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], esi
je 0x4b0875
push dword [ebp - 4]
call fcn.004b06e7
pop ecx
mov dword [ebp - 4], esi
jmp 0x4b0889
cmp dword [ebp - 4], esi
jne 0x4b0889
mov eax, 0x2af9
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x4b0be7
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x48
push 1
mov ebx, eax
mov edi, ecx
call dword [0x508618]
mov esi, eax
xor eax, eax
cmp esi, eax
pop ecx
pop ecx
mov dword [ebp - 4], 0xc
mov dword [edi + 0x3ac], esi
je 0x4b0c99
mov dword [edi + 0x3a4], eax
mov dword [edi + 0x3a8], eax
mov dword [edi + 0x3a0], eax
mov dword [edi + 0x39c], ebx
or dword [esi + 4], 0xffffffff
push ebx
push dword [ebp + 8]
mov dword [esi], eax
lea eax, [esi + 0x10]
call fcn.004b0aa3
test eax, eax
pop ecx
pop ecx
je 0x4b0c99
lea ebx, [edi + 0x398]
push dword [ebx]
call fcn.004a6f82
push dword [ebp + 8]
call dword [0x508614]
test eax, eax
pop ecx
pop ecx
mov dword [ebx], eax
je 0x4b0c99
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x4b0c99
lea eax, [esi + 0x10]
push eax
push 0x4b0b17
call fcn.004b82ce
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x4b0cb3
call fcn.00490e77
mov eax, dword [eax]
mov dword [ebp - 4], eax
add edi, 0x398
push edi
call fcn.004b0b95
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
jmp 0x4b0cb6
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b480d
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x31c
push ebx
mov ebx, dword [ebp + 0x78]
push esi
mov esi, dword [ebp + 0x74]
xor edx, edx
push edi
xor edi, edi
cmp esi, 0xffffffff
mov dword [ebp + 0x64], edx
mov dword [ebp + 0x68], edx
jne 0x4b4841
cmp ebx, esi
jne 0x4b4841
mov eax, dword [ebp + 0x7c]
call fcn.004b47ee
jmp 0x4b49de
cmp dword [ebp + 0x7c], edx
jle 0x4b4856
mov edi, dword [ebp + 0x7c]
call fcn.004b5dd3
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x64], eax
xor edx, edx
xor eax, eax
or ecx, 0xffffffff
inc eax
cmp esi, ecx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x1ac], edx
je 0x4b4886
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], eax
mov ecx, esi
cmp ebx, 0xffffffff
mov dword [ebp - 0x2b0], edx
je 0x4b48dd
mov dword [ebp - 0x2b0], eax
xor eax, eax
cmp dword [ebp - 0xa8], edx
mov dword [ebp - 0x2ac], ebx
jbe 0x4b48b9
cmp dword [ebp + eax*4 - 0xa4], ebx
je 0x4b48b9
inc eax
cmp eax, dword [ebp - 0xa8]
jb 0x4b48a7
cmp eax, dword [ebp - 0xa8]
jne 0x4b48d7
cmp dword [ebp - 0xa8], 0x40
jae 0x4b48d7
mov dword [ebp + eax*4 - 0xa4], ebx
inc dword [ebp - 0xa8]
cmp ebx, ecx
jbe 0x4b48dd
mov ecx, ebx
cmp dword [ebp + 0x7c], edx
jge 0x4b48e6
xor ebx, ebx
jmp 0x4b48e9
lea ebx, [ebp + 0x5c]
lea esi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x4b4908
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x60], edx
jmp 0x4b490d
jne 0x4b4910
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x5c], eax
push ebx
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x1ac]
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4b4969
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4b4943
cmp eax, 0x2714
jne 0x4b496d
cmp dword [ebp + 0x7c], 0
jle 0x4b48ec
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.004b5dd3
push edx
push eax
call fcn.004b5de9
mov edi, dword [ebp + 0x7c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x4b48ec
jmp 0x4b496d
test eax, eax
jge 0x4b4972
or eax, 0xffffffff
jmp 0x4b49de
jne 0x4b4978
xor eax, eax
jmp 0x4b49de
xor esi, esi
cmp dword [ebp + 0x74], 0xffffffff
je 0x4b49aa
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b4994
inc esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b49aa
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x4b49dc
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b49c6
or esi, 2
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b49dc
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x4b692b
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4b6938
jmp dword [eax*4 + 0x4b6993]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, byte [esp + 4]
ret

Function at 0x4b867e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
push ebx
xor ebx, ebx
cmp dword [eax + 4], 2
push edi
sete bl
test ebx, ebx
je 0x4b86a2
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x4b86d3
cmp dword [esi + 8], 0
jne 0x4b86c3
push 0x4de1d4
push dword [eax + 8]
call fcn.0048960a
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x4b86c3
or eax, 0xffffffff
jmp 0x4b86f9
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.00489eec
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4b86e1
cmp edi, dword [ebp + 0xc]
jbe 0x4b86f7
test ebx, ebx
jne 0x4b86f1
push dword [esi + 8]
call fcn.0048968f
and dword [esi + 8], ebx
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x4bbbc0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4bbbe3
xor eax, eax
jmp 0x4bbcae
push 1
mov edx, dword [ebp - 8]
push edx
call fcn.0048b2b2
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4bbc01
xor eax, eax
jmp 0x4bbcae
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4bbc2d
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00489bc2
add esp, 4
xor eax, eax
jmp 0x4bbcae
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x14]
push eax
push 0x4dea68
mov ecx, dword [ebp - 0x18]
push ecx
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4bbca0
cmp dword [ebp - 0x14], 0
je 0x4bbca0
push 0x10
call fcn.0043e7d0
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4bbc8c
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 2]
push eax
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.004bbb60
mov dword [ebp - 0x24], eax
jmp 0x4bbc93
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4bbcae
mov edx, dword [ebp - 0x18]
push edx
call fcn.00489bc2
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4bbcc0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x507334]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x25c]
mov dx, word [ecx + 4]
mov word [ebp + eax*2 - 0x18], dx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x25c]
mov ax, word [edx + 8]
mov word [ebp + ecx*2 - 0x18], ax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultLangID]
mov edx, dword [ebp - 4]
mov word [ebp + edx*2 - 0x18], ax
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x25c]
mov ax, word [edx + 8]
mov word [ebp + ecx*2 - 0x18], ax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x25c]
mov cx, word [eax + 4]
mov word [ebp + edx*2 - 0x18], cx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x18], 0x4e4
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultLangID]
mov edx, dword [ebp - 4]
mov word [ebp + edx*2 - 0x18], ax
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov word [ebp + ecx*2 - 0x18], 0x4e4
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 8
jae 0x4bbe50
mov eax, dword [ebp - 4]
mov cx, word [ebp + eax*2 - 0x18]
mov word [ebp - 0x2c], cx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov cx, word [ebp + eax*2 - 0x18]
mov word [ebp - 0x1c], cx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
push eax
movzx ecx, word [ebp - 0x1c]
push ecx
movzx edx, word [ebp - 0x2c]
push edx
push 0x4dec74
push 0x104
push 0x104
lea eax, [ebp - 0x238]
push eax
call fcn.0048def9
add esp, 0x1c
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x25c]
mov edx, dword [ecx]
push edx
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4bbe4b
cmp dword [ebp - 0x20], 0
je 0x4bbe4b
mov eax, dword [ebp - 0x20]
push eax
mov esi, dword [ebp + 0xc]
call fcn.0040b82e
mov al, 1
jmp 0x4bbe52
jmp 0x4bbda8
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0048f726
mov esp, ebp
pop ebp
ret 8
Function at 0x4bbf90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4f86d8
push 0x492d80
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, dword [0x507334]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x4bbfea
cmp dword [ebp + 0xc], 0
je 0x4bbfea
cmp dword [ebp + 0x10], 1
jae 0x4bbfef
jmp 0x4bc0cd
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jb 0x4bc011
mov ecx, dword [ebp + 0x10]
sub ecx, 1
cmp dword [ebp - 0x1c], ecx
jbe 0x4bc016
jmp 0x4bc0cd
mov dword [ebp - 4], 0
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00486b44
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4bc051
mov dword [ebp - 4], 0xfffffffe
jmp 0x4bc0cd
mov ecx, dword [ebp - 0x1c]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
call fcn.00489f10
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4bc0ad
mov eax, dword [ebp + 0x10]
sub eax, 1
cmp dword [ebp - 0x1c], eax
ja 0x4bc0ad
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0x10]
sub eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0048f23a
add esp, 0x10
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x4bc0cd
cmp dword [ebp - 0x20], 0
je 0x4bc0ec
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00489f07
add esp, 4
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bc160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x507334]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, dword [ebp + 8]
call fcn.00407519
movzx eax, al
test eax, eax
je 0x4bc18a
xor eax, eax
jmp 0x4bc3f2
mov word [ebp - 0x218], 0
push 0x208
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.00489f10
add esp, 0xc
push 0x4decb4
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0040afe9
cmp eax, 0xffffffff
je 0x4bc1fb
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0x4decd8
call fcn.004bbf90
add esp, 0xc
test eax, eax
jne 0x4bc1e1
xor eax, eax
jmp 0x4bc3f2
lea eax, [ebp - 0x218]
push eax
push 0x4decfc
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045257d
jmp 0x4bc3e1
push 0x4ded20
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0040afe9
cmp eax, 0xffffffff
je 0x4bc24d
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0x4ded34
call fcn.004bbf90
add esp, 0xc
test eax, eax
jne 0x4bc233
xor eax, eax
jmp 0x4bc3f2
lea eax, [ebp - 0x218]
push eax
push 0x4ded48
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045257d
jmp 0x4bc3e1
push 0x4ded5c
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0040afe9
cmp eax, 0xffffffff
je 0x4bc29f
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0x4ded6c
call fcn.004bbf90
add esp, 0xc
test eax, eax
jne 0x4bc285
xor eax, eax
jmp 0x4bc3f2
lea eax, [ebp - 0x218]
push eax
push 0x4ded7c
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045257d
jmp 0x4bc3e1
push 0x4ded8c
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0040afe9
cmp eax, 0xffffffff
je 0x4bc2ea
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
ja 0x4bc2d0
xor eax, eax
jmp 0x4bc3f2
lea eax, [ebp - 0x218]
push eax
push 0x4deda0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045257d
jmp 0x4bc3e1
push 0x4dedb4
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0040afe9
cmp eax, 0xffffffff
je 0x4bc335
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
ja 0x4bc31b
xor eax, eax
jmp 0x4bc3f2
lea eax, [ebp - 0x218]
push eax
push 0x4dedc8
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045257d
jmp 0x4bc3e1
push 0x4deddc
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0040afe9
cmp eax, 0xffffffff
je 0x4bc397
push 0x20a
push 0
lea edx, [ebp - 0x218]
push edx
call fcn.00489f10
add esp, 0xc
push 0x105
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x218]
push edx
push 0x4dedf0
mov eax, dword [ebp + 8]
push eax
call fcn.0045257d
jmp 0x4bc3e1
push 0x4dee04
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0040afe9
cmp eax, 0xffffffff
je 0x4bc3e1
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x4dee20
call fcn.004bbf90
add esp, 0xc
test eax, eax
jne 0x4bc3cc
xor eax, eax
jmp 0x4bc3f2
lea edx, [ebp - 0x218]
push edx
push str._Systemroot_
mov eax, dword [ebp + 8]
push eax
call fcn.0045257d
mov ecx, dword [ebp + 8]
push ecx
call fcn.004bc110
add esp, 4
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048f726
mov esp, ebp
pop ebp
ret