joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47edb8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00461323
and dword [ebp - 4], 0
cmp dword [0x4dde18], 0
mov ebx, eax
jne 0x47ee69
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x47ef1a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x47ef1a
push eax
call fcn.004612b1
mov dword [esp], 0x4c4018
push edi
mov dword [0x4dde18], eax
call esi
push eax
call fcn.004612b1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4dde1c], eax
call esi
push eax
call fcn.004612b1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4dde20], eax
call esi
push eax
call fcn.004612b1
pop ecx
mov dword [0x4dde28], eax
test eax, eax
je 0x47ee69
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004612b1
pop ecx
mov dword [0x4dde24], eax
mov eax, dword [0x4dde24]
cmp eax, ebx
je 0x47eec1
cmp dword [0x4dde28], ebx
je 0x47eec1
push eax
call fcn.0046132c
push dword [0x4dde28]
mov esi, eax
call fcn.0046132c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x47eec1
test edi, edi
je 0x47eec1
call esi
test eax, eax
je 0x47eeb8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x47eeb8
test byte [ebp - 0xc], 1
jne 0x47eec1
or dword [ebp + 0x10], 0x200000
jmp 0x47eefa
mov eax, dword [0x4dde1c]
cmp eax, ebx
je 0x47eefa
push eax
call fcn.0046132c
pop ecx
test eax, eax
je 0x47eefa
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x47eefa
mov eax, dword [0x4dde20]
cmp eax, ebx
je 0x47eefa
push eax
call fcn.0046132c
pop ecx
test eax, eax
je 0x47eefa
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4dde18]
call fcn.0046132c
pop ecx
test eax, eax
je 0x47ef1a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x47ef1c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x487640
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4d9b30]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x487695
mov eax, dword [esp]
cmp al, 2
jne 0x48768f
shr eax, 8
cmp al, 2
jne 0x48768f
call fcn.0048b600
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0045875a
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.0045875a
add esp, 0x194
ret
Function at 0x496ff0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x497022
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 0x497150
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x1e0], edi
je 0x497199
push 1
push esi
call fcn.00494c30
mov eax, dword [esi + 0x16c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x1e0]
push edx
push eax
push esi
call ecx
push 0
push esi
mov edi, eax
call fcn.00494c30
add esp, 0x24
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x4971d9
cmp eax, 2
jg 0x4971d9
mov edx, dword [esi + 0x168]
push edx
push 1
lea eax, [eax + eax*2 + 0x4c52ac]
push 2
push eax
call fcn.004b780d
mov ecx, dword [esi + 0x168]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
push 1
push edx
push eax
call fcn.004b780d
add esp, 0x20
mov eax, edi
pop edi
pop esi
ret

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

Disassembly:
mov ecx, dword [ebx + 0x350]
push ebp
mov ebp, dword [ebx + eax*4 + 0x1a8]
push esi
lea esi, [eax + 0x1d]
shl esi, 4
add esi, ebx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [ecx + 0x40], 3
je 0x49774f
cmp dword [ebx + eax*4 + 0x1c0], 0x497420
jne 0x49774f
cmp dword [esi], 0
je 0x4976ea
test edi, edi
je 0x49774f
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.0048b920
add esp, 0x14
cmp eax, 0xffffffff
je 0x49774f
test al, 1
je 0x49774f
cmp dword [esi], 0
jne 0x497731
mov edx, dword [ebx]
mov eax, dword [edx + 0x508]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x4db008]
mov edi, dword [esi + 4]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp eax, ecx
je 0x49774c
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x49774f
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
ret
mov dword [esi + 4], ecx
pop edi
pop esi
pop ebp
ret
Function at 0x497760
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [ebx + eax*4 + 0x1a8]
push edi
call fcn.004976b0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [esp + 0x20]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x4977e2
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x4977b9
pop ebp
mov dword [edi], 0x51
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebp
push ebx
call fcn.004af940
mov edx, dword [ebx]
push eax
push str.Send_failure:__s
push edx
call fcn.00497270
mov eax, dword [ebx]
mov dword [eax + 0x998], ebp
add esp, 0x14
mov dword [edi], 0x37
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x49a150
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + eax]
mov ebx, 0x1505
cmp esi, edi
jae 0x49a140
movzx eax, byte [esi]
push eax
call fcn.0049d250
mov edx, ebx
shl edx, 5
movsx ecx, al
add edx, ebx
xor ecx, edx
inc esi
add esp, 4
mov ebx, ecx
cmp esi, edi
jb 0x49a121
pop edi
pop esi
movzx eax, bl
pop ebx
ret
push ecx
push esi
mov esi, eax
test esi, esi
je 0x49a17f
mov ecx, esi
call fcn.00499fa0
test eax, eax
jne 0x49a17f
lea eax, [esp + 4]
push eax
call fcn.0049a0b0
add esp, 4
mov ecx, eax
mov eax, dword [esp + 4]
pop esi
add esp, 4
jmp 0x49a110
xor eax, eax
pop esi
pop ecx
ret

Function at 0x49bb30
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x708], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x49bb6e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004971e0
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x70c]
push edx
mov dword [esp + 0xc], 1
call fcn.00499dc0
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x710]
push eax
call fcn.00499dc0
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x49bbe7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.004971e0
add esp, 0x10
add esp, 0x14
ret
Function at 0x49c270
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
mov eax, dword [0x4d9b30]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x110]
cmp dword [ebx + 0x90], 2
push ebp
mov ebp, dword [ebx]
je 0x49c3ff
cmp dword [ebx + 0x2a4], 0
push esi
push edi
jne 0x49c3f4
cmp dword [ebx + 0x314], 0
jne 0x49c3f4
mov esi, dword [esp + 0x120]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x98]
push ecx
mov edi, 0x80
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x49c304
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.004af940
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.00497270
add esp, 0x18
jmp 0x49c3fd
push edi
lea edx, [esp + 0x18]
push 0
push edx
mov dword [esp + 0x1c], edi
call fcn.004586e0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x49c351
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.004af940
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.00497270
add esp, 0x18
jmp 0x49c3fd
lea edx, [ebx + 0x134]
push edx
lea esi, [ebx + 0x106]
lea eax, [esp + 0x98]
push esi
push eax
call fcn.0049c210
add esp, 0xc
test eax, eax
jne 0x49c39e
call fcn.0045dae7
mov esi, eax
call fcn.0045dae7
mov ecx, dword [esi]
push ecx
push ebx
mov edi, eax
call fcn.004af940
mov edx, dword [edi]
push eax
push edx
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.00497270
add esp, 0x18
jmp 0x49c3fd
lea edi, [ebx + 0x5c]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x168]
push eax
lea ecx, [ebx + 0x138]
push ecx
lea edx, [esp + 0x1c]
push edx
movsw word es:[edi], word [esi]
call fcn.0049c210
add esp, 0xc
test eax, eax
jne 0x49c3f4
call fcn.0045dae7
mov esi, eax
call fcn.0045dae7
mov edi, eax
mov eax, dword [esi]
push eax
push ebx
call fcn.004af940
mov ecx, dword [edi]
push eax
push ecx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.00497270
add esp, 0x18
jmp 0x49c3fd
push ebx
call fcn.0049c190
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
pop ebp
pop ebx
xor ecx, esp
call fcn.0045875a
add esp, 0x108
ret

Function at 0x49c420
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, dword [edi]
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x49c469
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004af940
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004971e0
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004971e0
add esp, 8
pop edi
pop esi
ret
Function at 0x49dcb0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
push 0x4c5e5c
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x49dcca
pop esi
pop ebp
pop ecx
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [esp + 0x18]
mov edi, eax
push 0x4c5e48
push ebx
mov dword [esp + 0x18], edi
call fcn.004b8939
add esp, 8
test eax, eax
je 0x49dd16
test edi, edi
je 0x49dd07
push 8
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
test edi, edi
je 0x49dd3c
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49dd3c
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x49ddf0
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49dd55
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [0x4db008]
mov esi, eax
add esp, 4
test esi, esi
je 0x49dde6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x49dde6
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49dd83
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49dda0
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x49ddb0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49dddd
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x4db00c]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push esi
call dword [0x4db00c]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
Function at 0x49df90
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x18], ebx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x49e141
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x49e11f
push esi
jmp 0x49dfe0
cmp dword [edi + 4], 2
jne 0x49e098
cmp dword [edi + 0x18], ebx
je 0x49e098
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x49e098
cmp eax, 0x10
jb 0x49e098
push 0x20
call dword [0x4db008]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x49e0a5
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x4db008]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x49e0af
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x49e085
push eax
call dword [0x4db014]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x49e0c3
cmp dword [esp + 0x10], ebx
jne 0x49e08f
mov dword [esp + 0x10], esi
cmp ebp, ebx
je 0x49e096
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x49dfe0
jmp 0x49e0df
mov dword [esp + 0x14], 8
jmp 0x49e0df
push esi
mov dword [esp + 0x18], 8
call dword [0x4db00c]
add esp, 4
jmp 0x49e0df
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x4db00c]
push esi
call dword [0x4db00c]
add esp, 8
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x49e0ef
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0x10], ebx
je 0x49e119
mov eax, dword [esp + 0xc]
push eax
call fcn.0049df50
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
mov ecx, ebx
pop ebp
mov dword [esp + 4], ebx
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0xc], ebx
jne 0x49e132
push 0x2af9
mov dword [esp + 0x14], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov dword [edx], ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x49f8d0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.0045c15a
add esp, 0x18
test eax, eax
je 0x49f8f3
cmp eax, 0xffffffff
jne 0x49f8f5
xor eax, eax
ret
Function at 0x4a2220
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x14
push esi
push 0
push ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], esi
call fcn.004586e0
mov eax, dword [esp + 0x2c]
add esp, 0xc
push 0xf0000000
push eax
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4a2300
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 4]
lea edx, [esp]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4a22e1
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp]
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4a22e1
mov ecx, dword [esp]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 4
push ecx
call ebp
test eax, eax
je 0x4a22e0
cmp esi, dword [esp + 0xc]
jb 0x4a22e0
mov eax, dword [esp + 4]
push 0
lea edx, [esp + 0x18]
push edx
push ebx
push 2
push eax
call ebp
pop ebp
mov eax, dword [esp]
test eax, eax
je 0x4a22ef
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x4a2300
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0x14
ret
Function at 0x4a41f0
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4a4221
mov ecx, dword [esi]
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
ret

Function at 0x4a4230
Capabilities:
Hash data via wincrypt

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
ret

Function at 0x4a46e0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4d9b30]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.0048646e
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4a4745
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4a4745
lea edx, [esp]
push edx
call dword [0x4db014]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0045875a
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.0045875a
add esp, 0x108
ret
jmp 0x4a46e0

Function at 0x4a4760
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4d9b30]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.0048646e
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4a4745
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4a4745
lea edx, [esp]
push edx
call dword [0x4db014]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0045875a
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.0045875a
add esp, 0x108
ret
jmp 0x4a46e0
Function at 0x4ad940
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push 0
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x4004747b
push esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x4ad97f
push 4
lea edx, [esp + 4]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 8
ret
Function at 0x4bbfec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4bc01d
call fcn.0045dafa
mov dword [eax], esi
call fcn.0045dae7
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00459ce2
add esp, 0x14
push 0x16
pop eax
jmp 0x4bc072
test dword [ebp + 0xc], 0xfffffff9
jne 0x4bbff9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4bc04a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045db0d
pop ecx
call fcn.0045dae7
mov eax, dword [eax]
jmp 0x4bc072
test al, 0x10
jne 0x4bc070
test al, 1
je 0x4bc070
test byte [ebp + 0xc], 2
je 0x4bc070
call fcn.0045dafa
mov dword [eax], 5
call fcn.0045dae7
mov dword [eax], 0xd
jmp 0x4bc041
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40e25e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x416040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40e2a9
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040e47b
test al, al
jne 0x40e2a3
sub edx, 2
cmp edx, edi
jne 0x40e289
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40e2cb
lea eax, [edi + 2]
cmp edx, eax
je 0x40e2cb
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040e1aa
add esp, 0x10
jmp 0x40e3c5
push esi
lea ecx, [ebp - 0x255]
call fcn.0040e47b
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e30e
push dword [ebp - 0x25c]
jmp 0x40e2bb
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40e34b
cmp word [ebp - 0x226], 0
je 0x40e36c
cmp word [ebp - 0x226], ax
jne 0x40e34b
cmp word [ebp - 0x224], 0
je 0x40e36c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040e1aa
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40e3b8
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40e325
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40e3a0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40e3c5
push 0x40dfda
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call 0x410fa0
add esp, 0x10
jmp 0x40e395
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004074a6
leave
ret

Function at 0x40f1ae
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4028fc
push 0x4028f4
push 0x401b64
push 0x1f
call fcn.0040f0e9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f1e2
push dword [ebp + 8]
mov ecx, esi
call dword [0x41815c]
call esi
jmp 0x40f1e8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40f22c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40290c
push 0x402904
push 0x401b88
push 0x21
call fcn.0040f0e9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f263
push dword [ebp + 8]
mov ecx, esi
call dword [0x41815c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40f26b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x402914
push 0x40290c
push 0x401b9c
push 0x22
call fcn.0040f0e9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f2a5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41815c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x40f5f3
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x40f62e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40f615
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x40f626
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x40f630
inc edi
add eax, 0x28
cmp edi, esi
jb 0x40f60b
xor eax, eax
pop edi
pop esi
ret

Function at 0x40fdd5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [esi - 0x25000004], ebp
and byte [ebp - 0x351], 0
mov byte [ebp - 0x350], 0x62