joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b01f0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x904
push ebx
push ebp
push esi
push edi
push 0x7f
lea eax, [esp + 0x99]
push 0
push eax
mov byte [esp + 0xa0], 0
call fcn.004d92e0
push 0x7f
lea ecx, [esp + 0x25]
push 0
push ecx
mov byte [esp + 0x2c], 0
call fcn.004d92e0
mov ebx, dword [esp + 0x930]
mov ebp, dword [ebx]
mov edi, dword [ebp + 0x140]
mov edx, dword [edi + 0x1eb4]
sub edx, dword [edi + 0x1eb0]
lea eax, [edi + 0x1cb0]
add edx, 2
push edx
push 0x3c
mov esi, ebp
mov dword [esp + 0x30], ebp
call fcn.004afc20
mov eax, dword [edi + 0x1eb0]
movzx ecx, byte [eax]
inc eax
add esp, 0x20
mov dword [edi + 0x1eb0], eax
cmp ecx, 0x18
je 0x4b03c8
cmp ecx, 0x23
je 0x4b03a5
cmp ecx, 0x27
jne 0x4b045a
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [esp + 0x128]
push 0x800
push eax
call fcn.004a3760
mov esi, dword [edi + 0x1cac]
add esp, 0x1c
mov ebp, 4
test esi, esi
je 0x4b0339
lea esp, [esp]
mov ebx, dword [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b02c7
sub eax, edx
lea edi, [eax + ebp + 1]
cmp edi, 0x7fa
jae 0x4b032b
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x98]
push edx
push str._127_____127s
push ebx
call fcn.004d61b1
add esp, 0x10
test eax, eax
je 0x4b032b
lea eax, [esp + 0x14]
push eax
push 1
lea ecx, [esp + 0x9c]
push ecx
push 0
mov edx, 0x800
push str._c_s_c_s
sub edx, ebp
push edx
lea eax, [esp + ebp + 0x12c]
push eax
call fcn.004a3760
add esp, 0x1c
mov ebp, edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x4b02c0
mov ebx, dword [esp + 0x918]
push 0xf0
push 0xff
mov ecx, 0x800
push str._c_c
sub ecx, ebp
push ecx
lea edx, [esp + ebp + 0x124]
push edx
call fcn.004a3760
mov ecx, dword [ebx + 0x420]
add esp, 0x14
push 0
add ebp, 2
push ebp
lea eax, [esp + 0x11c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4b0398
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push edx
call fcn.00499e30
add esp, 0xc
mov esi, dword [esp + 0x10]
add ebp, 0xfffffffe
push ebp
jmp 0x4b0449
lea ecx, [edi + 0x1c28]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4b03b0
push 0xf0
push 0xff
push ecx
push 0
push 0x23
jmp 0x4b03e9
lea ecx, [edi + 0x1c08]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4b03d3
push 0xf0
push 0xff
push ecx
push 0
push 0x18
push 0xfa
push 0xff
sub eax, esi
push str._c_c_c_c_s_c_c
lea edi, [eax + 6]
lea eax, [esp + 0x134]
push 0x800
push eax
call fcn.004a3760
mov edx, dword [ebx + 0x420]
add esp, 0x28
push 0
push edi
lea ecx, [esp + 0x11c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4b0443
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebp
call fcn.00499e30
add esp, 0xc
add edi, 0xfffffffe
mov esi, ebp
push edi
push 0x3e
lea eax, [esp + 0x11e]
call fcn.004afc20
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x904
ret
Function at 0x4b06e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebp
mov ebp, dword [eax + 0x140]
mov dword [esp + 4], eax
jne 0x4b0837
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb0]
lea edi, [ebp + 0x1eb0]
mov dword [edi], ebx
cmp ebx, edi
jae 0x4b0717
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b0722
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b072d
mov byte [eax], 0x1f
inc dword [edi]
movzx ecx, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebp + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x4b075f
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b076d
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b0777
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b0781
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b078c
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b0797
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov dword [ebp + 0x1eb4], eax
sub eax, ebx
sub eax, 2
push eax
lea eax, [ebp + 0x1cb2]
push 0x3e
mov dword [edi], ebx
call fcn.004afc20
mov edi, dword [esp + 0x20]
mov edx, dword [edi + 0x420]
add esp, 8
push 0
push 3
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push edx
call ebx
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x4b07f2
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.00499e30
add esp, 0xc
lea ecx, [ebp + 0x1cb3]
push ecx
push edi
mov eax, 4
call fcn.004b0470
mov edx, dword [edi + 0x420]
add esp, 8
push 0
push 2
add ebp, 0x1cb7
push ebp
push edx
call ebx
test eax, eax
jns 0x4b0834
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.00499e30
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x4b5f00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov esi, eax
mov ebp, dword [esi + 0x424]
mov edi, dword [esi]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebp
or ebx, 0xffffffff
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4b5f4f
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ebp
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push ebp
push esi
call fcn.004a1010
add esp, 8
cmp ebx, 0xffffffff
jne 0x4b5f7c
push str.Error_accept__ing_server_connect
push edi
call fcn.00499e30
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1e
pop ebx
add esp, 0x84
ret
push str.Connection_accepted_from_server_n
push edi
call fcn.00499d60
push 1
push ebx
mov dword [esi + 0x574], 0
mov dword [esi + 0x424], ebx
call fcn.004c6340
add esp, 0x10
mov dword [esi + 0x5c0], 1
cmp dword [edi + 0x628], 0
je 0x4b5ff5
push 1
push edi
call fcn.00497a00
mov ecx, dword [edi + 0x62c]
mov edx, dword [edi + 0x628]
push 1
push ebx
push ecx
call edx
push 0
push edi
mov ebx, eax
call fcn.00497a00
add esp, 0x1c
test ebx, ebx
je 0x4b5ff5
call fcn.004b5e60
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x84
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x84
ret
Function at 0x4b9aa0
Capabilities:
Check http status code

Disassembly:
push ebx
mov ebx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebp
mov ebp, dword [esp + 0xc]
mov eax, edx
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
push edi
mov edi, dword [ebx]
cmp eax, 2
je 0x4b9ada
push str.Couldnt_set_desired_mode
push edi
call fcn.00499e30
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x4b9af1
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edi
call fcn.00499d60
add esp, 0xc
cmp ebp, 0x13
jne 0x4b9b06
push ebx
call fcn.004b9a20
add esp, 4
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x4b9b17
call fcn.004b6b30
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x4b9b30
push 0xd
push 1
push ebx
call fcn.004b8cd0
add esp, 0xc
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x4b9b44
push 0xe
push 1
push ebx
call fcn.004b8cd0
add esp, 0xc
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x4c11d0
Capabilities:
Get socket status

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
xor eax, eax
cmp ebx, eax
je 0x4c11e2
cmp dword [ebx], eax
jne 0x4c1211
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
je 0x4c11ee
cmp dword [ecx], eax
jne 0x4c1215
mov edx, dword [esp + 0x20]
cmp edx, eax
je 0x4c11fa
cmp dword [edx], eax
jne 0x4c1219
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
push edx
call fcn.004c1180
add esp, 8
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push esi
lea esi, [esp + 0xc]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x2c]
cmp esi, eax
jg 0x4c1245
jl 0x4c1235
cmp edi, eax
jae 0x4c123b
mov dword [esp + 0xc], eax
jmp 0x4c12b7
cmp esi, eax
jl 0x4c12af
jg 0x4c1245
cmp edi, eax
jbe 0x4c12af
push ebp
push eax
push 0x3e8
push esi
push edi
call fcn.004dd0d0
push 0
push 0x3e8
push edx
push eax
mov ebp, eax
mov ebx, edx
call fcn.004dcf50
push 0
sub edi, eax
push 0x3e8
sbb esi, edx
push esi
push edi
call fcn.004dcf50
mov dword [esp + 0x18], edx
test ebx, ebx
jl 0x4c1296
jg 0x4c1289
cmp ebp, 0x7fffffff
jbe 0x4c1296
mov ebp, 0x7fffffff
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
xor eax, eax
pop ebp
jmp 0x4c12b7
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
cmp edx, eax
je 0x4c12bf
cmp dword [edx], eax
jne 0x4c12c1
xor edx, edx
cmp ecx, eax
je 0x4c12c9
cmp dword [ecx], eax
jne 0x4c12cb
xor ecx, ecx
cmp ebx, eax
je 0x4c12d5
cmp dword [ebx], eax
je 0x4c12d5
mov eax, ebx
mov esi, dword [esp + 0xc]
push esi
push edx
push ecx
push eax
mov eax, dword [esp + 0x2c]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4c8420
Capabilities:
Move file

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.004a4b60
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [eax + 8]
mov ebp, dword [eax + 0xc]
add esp, 4
push 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x4c84bd
lea eax, [esp + 0x10]
push eax
call fcn.004a4b60
mov edx, dword [eax]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebp
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.004a4c00
add esp, 0x20
test edx, edx
ja 0x4c84c7
jb 0x4c849f
cmp eax, 0x3e8
ja 0x4c84c7
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x4c8455
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x4ccaf0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x20
push ebp
mov ebp, dword [esp + 0x28]
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4ccb8e
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
lea esi, [esp + 0x20]
mov word [esp + 0x14], 0x208
mov dword [esp + 0x18], 0x6601
mov dword [esp + 0x1c], 8
call fcn.004cca60
mov ecx, esi
push 8
push ecx
call fcn.004d2f80
mov ecx, dword [esp + 0x10]
add esp, 8
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x4ccb95
mov edx, dword [esp + 4]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ebp
add esp, 0x20
ret
mov eax, dword [ebp]
mov edx, dword [esp + 8]
push edx
mov dword [edi], eax
mov ecx, dword [ebp + 4]
lea eax, [esp + 0xc]
push eax
push edi
push 0
push 0
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x20]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
pop ebp
add esp, 0x20
ret

Function at 0x4ce210
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x4ce242
push 0x2e
push esi
call fcn.004d61f0
add esp, 8
test eax, eax
je 0x4ce240
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret
Function at 0x4d2fd0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4d3016
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x8002
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov eax, dword [esp + 0x18]
push esi
push eax
call fcn.0049cf70
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add esp, 4
push 0
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea eax, [esp + 8]
push eax
push 0
push 2
push ecx
mov dword [esp + 0x18], 0
call esi
cmp dword [esp + 4], 0x10
jne 0x4d3073
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push 0
lea edx, [esp + 8]
push edx
push eax
push 2
push ecx
call esi
mov eax, dword [esp + 0xc]
pop esi
test eax, eax
je 0x4d3083
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x4d3094
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0xc
ret
Function at 0x4d4620
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x54ae68]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4d4645
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x4d468c
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x4d4690
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
je 0x4d46ec
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
dec ebp
jne 0x4d46b3
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x4d4728
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x522e12
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x522e13
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x4d46f7
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x4d48e0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push 0xf0000040
push 0x18
push 0
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4d4916
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x800c
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov eax, dword [esp + 0x18]
push esi
push eax
call fcn.0049cf70
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add esp, 4
push 0
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea eax, [esp + 8]
push eax
push 0
push 2
push ecx
mov dword [esp + 0x18], 0
call esi
cmp dword [esp + 4], 0x20
jne 0x4d4973
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push 0
lea edx, [esp + 8]
push edx
push eax
push 2
push ecx
call esi
mov eax, dword [esp + 0xc]
pop esi
test eax, eax
je 0x4d4983
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x4d4994
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0xc
ret
Function at 0x4d5ddb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x54b3f0]
jne 0x4d5de5
repz ret
jmp fcn.004e404f

Function at 0x4de826
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 0x4de84d
call fcn.004ddba0
mov dword [eax], esi
call fcn.004ddb8d
push 0x16
pop esi
mov dword [eax], esi
call fcn.004e6533
mov eax, esi
jmp 0x4de8a2
test dword [ebp + 0xc], 0xfffffff9
jne 0x4de833
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4de87a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004ddbb3
pop ecx
call fcn.004ddb8d
mov eax, dword [eax]
jmp 0x4de8a2
test al, 0x10
jne 0x4de8a0
test al, 1
je 0x4de8a0
test byte [ebp + 0xc], 2
je 0x4de8a0
call fcn.004ddba0
mov dword [eax], 5
call fcn.004ddb8d
mov dword [eax], 0xd
jmp 0x4de871
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4f5973
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004e4b72
and dword [ebp - 0x14], 0
cmp dword [0x550290], 0
mov dword [ebp - 0x18], eax
jne 0x4f5a26
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4f5ace
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x52c068
push ebx
call edi
test eax, eax
je 0x4f5ace
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x52c058
push ebx
mov dword [0x550290], eax
call edi
push eax
call esi
push 0x52c044
push ebx
mov dword [0x550294], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x550298], eax
call edi
push eax
call esi
mov dword [0x5502a0], eax
test eax, eax
je 0x4f5a26
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x55029c], eax
mov eax, dword [0x55029c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4f5a7f
cmp dword [0x5502a0], ecx
je 0x4f5a7f
push eax
call esi
push dword [0x5502a0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4f5a7f
test ebx, ebx
je 0x4f5a7f
call edi
test eax, eax
je 0x4f5a76
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4f5a76
test byte [ebp - 8], 1
jne 0x4f5a7f
or dword [ebp + 0x10], 0x200000
jmp 0x4f5ab2
mov eax, dword [0x550294]
cmp eax, dword [ebp - 0x18]
je 0x4f5ab2
push eax
call esi
test eax, eax
je 0x4f5ab2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4f5ab2
mov eax, dword [0x550298]
cmp eax, dword [ebp - 0x18]
je 0x4f5ab2
push eax
call esi
test eax, eax
je 0x4f5ab2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x550290]
call esi
test eax, eax
je 0x4f5ace
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4f5ad0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5ddb
leave
ret
Function at 0x4fef70
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fef80

Function at 0x4ff200
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4ff20c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.004ff220
Function at 0x10001ff0
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x101f7210]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0x8004667e
push esi
mov ebx, ecx
mov dword [ebp - 8], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x10002042
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014aad2
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 8]
mov eax, 2
mov word [ebp - 0x24], ax
call dword [sym.imp.WS2_32.dll_htons]
push ebx
mov word [ebp - 0x22], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
je 0x10002026
push 0x10
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x12c], esi
push eax
push 0
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 1
push eax
push 0
push 0
mov dword [ebp - 0x14], 0xa
mov dword [ebp - 0x10], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x10002026
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x10002026
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1014aad2
mov esp, ebp
pop ebp
ret 8

Function at 0x100038d0
Capabilities:
Check for sandbox and av modules
Print debug messages

Disassembly:
push 0x101cc3d8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x100038ee
push 0x101cc3d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x100038fa
push 0x101cc3f0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x102036d0], eax
mov edx, str.DbgHelp.dll
mov ecx, 0x101cf8e0
cmove ecx, edx
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.10003930
call fcn.100039e0
call fcn.10003bb0
call fcn.10003c70
jmp 0x10003dc0
push esi
push edi
push 0x101ccd1c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
jne 0x10003df4
push 0x101ccd1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x10003df4
xor ecx, ecx
mov dword [0x10203724], ecx
mov dword [0x10203728], ecx
jmp 0x10003e1a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x101ccd34
push edi
call esi
push 0x101ccd50
push edi
mov dword [0x10203724], eax
call esi
mov ecx, dword [0x10203724]
mov dword [0x10203728], eax
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, 0x101cf8e0
test ecx, ecx
mov edx, 0x101ccd70
mov eax, edi
cmove eax, edx
push eax
call esi
cmp dword [0x10203728], 0
mov eax, str.User32.dll
cmove edi, eax
push edi
call esi
pop edi
pop esi
ret