joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10044db0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x1010d770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov dword [ebp - 8], 0x80
push edi
mov dword [ebp - 0x8c], eax
mov esi, dword [eax + 0x3a0]
mov edi, dword [eax]
lea ebx, [esi + 0x15c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x88]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [ebx]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x10044e36
push dword [ebp - 8]
lea eax, [ebp - 0x88]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.100632e0
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x10044e69
push str.Received_too_short_packet
push edi
call fcn.10033ab0
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.10043e50
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x10044e82
jmp dword [eax*4 + 0x10044f9c]
cmp edx, 4
jle case.0x10044e82.4
mov ecx, ebx
call fcn.10043e60
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x10044e82.4
mov ecx, dword [ebp - 0x8c]
lea eax, [edx - 4]
push eax
mov eax, dword [ebx]
mov edx, 1
add eax, 4
push eax
call fcn.10034020
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10044ee9
mov edx, 5
mov ecx, esi
call fcn.10044b20
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
mov ecx, edi
sub eax, 4
cdq
add dword [edi + 0x70], eax
adc dword [edi + 0x74], edx
push dword [edi + 0x74]
push dword [edi + 0x70]
call fcn.1003e390
add esp, 8
jmp case.0x10044e82.4
mov ecx, ebx
call fcn.10043e60
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [ebx]
add eax, 4
push eax
push 0x101024dc
push edi
call fcn.10033a30
jmp 0x10044f63
lea eax, [edx - 2]
mov ecx, esi
mov edx, dword [ebx]
push eax
add edx, 2
call fcn.10043ef0
add esp, 4
test eax, eax
je case.0x10044e82.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x1010221c
push edi
call fcn.10033ab0
add esp, 0xc
mov ecx, dword [ebp - 0x8c]
call fcn.1003e470
test eax, eax
je 0x10044e56
mov edx, 5
mov ecx, esi
call fcn.10044b20
mov ecx, dword [ebp - 4]
mov eax, 0x2a
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
Function at 0x10048920
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1010d770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], 0x10
push edi
lea ecx, [ebp - 8]
or edi, 0xffffffff
push ecx
mov eax, dword [esi + 0x158]
lea ecx, [ebp - 0x18]
mov ebx, dword [esi]
push ecx
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10048977
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
mov edx, dword [ebp - 0x1c]
mov ecx, esi
call fcn.10032300
cmp edi, 0xffffffff
jne 0x100489aa
push str.Error_accept__ing_server_connect
push ebx
call fcn.10033ab0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.10033a30
add esp, 8
mov dword [esi + 0x158], edi
mov edx, 1
mov ecx, edi
call fcn.10052410
mov byte [esi + 0x165], 1
mov eax, dword [ebx + 0x198]
test eax, eax
je 0x10048a16
push 1
push edi
push dword [ebx + 0x19c]
call eax
add esp, 0xc
test eax, eax
je 0x10048a16
mov edx, edi
mov ecx, esi
call fcn.10032300
mov dword [esi + 0x158], 0xffffffff
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
Function at 0x1004aa20
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, edx
mov eax, 0x51eb851f
imul ebx
push esi
sar edx, 5
xor esi, esi
mov eax, edx
push edi
shr eax, 0x1f
mov edi, ecx
add eax, edx
mov ecx, dword [edi]
cmp eax, 2
je 0x1004aa5a
push str.Couldnt_set_desired_mode
push ecx
call fcn.10033ab0
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ebx, 0xc8
je 0x1004aa71
push ebx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ecx
call fcn.10033a30
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x13
jne 0x1004aa87
mov ecx, edi
call fcn.10049b60
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x1004aa9a
mov ecx, edi
call fcn.10049bb0
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x1004aaad
mov ecx, edi
call fcn.10049ce0
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0x1004aabb
mov ecx, edi
call fcn.10049cf0
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x1004d3f0
Capabilities:
Parse pe header

Disassembly:
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x1004d3fb
jmp dword [eax*4 + 0x1004d454]
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, cl
ret

Function at 0x1004d5b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x1010d770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x198]
mov esi, ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1004d5fc
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.10033ab0
add esp, 0xc
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x198]
cmp al, 2
jne 0x1004d624
shr eax, 8
test al, al
jne 0x1004d624
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.10033ab0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 2
pop esi
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
Function at 0x1004d820
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1010d770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
mov esi, ecx
mov byte [ebp - 6], al
push 3
lea eax, [ebp - 8]
mov byte [ebp - 8], 0xff
push eax
push dword [esi + 0x154]
mov edi, dword [esi]
mov ebx, edx
mov byte [ebp - 7], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1004d873
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.10033ab0
add esp, 0xc
push dword [ebp + 8]
mov ecx, dword [esi]
mov edx, str.SENT
push ebx
call fcn.1004d720
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
mov esi, edx
mov eax, dword [ebx]
mov edi, dword [eax + 0x114]
mov eax, dword [edi + esi*4 + 8]
sub eax, 0
je 0x1004db5c
sub eax, 2
je 0x1004db12
dec eax
jne 0x1004db3e
mov eax, dword [edi + esi*4 + 0x408]
sub eax, 0
je 0x1004db06
dec eax
jne 0x1004db3e
mov dword [edi + esi*4 + 8], 1
mov dword [edi + esi*4 + 0x408], eax
pop edi
pop esi
pop ebx
ret
mov dword [edi + esi*4 + 8], 0
pop edi
pop esi
pop ebx
ret
mov eax, dword [edi + esi*4 + 0x408]
sub eax, 0
je 0x1004db42
dec eax
jne 0x1004db3e
mov dword [edi + esi*4 + 8], 3
mov dword [edi + esi*4 + 0x1008], eax
push esi
mov edx, 0xfc
call fcn.1004d820
add esp, 4
pop edi
pop esi
pop ebx
ret
cmp dword [edi + esi*4 + 0x1808], 1
mov dword [edi + esi*4 + 8], 1
jne 0x1004db3e
pop edi
pop esi
pop ebx
jmp fcn.1004e4c0
cmp dword [edi + esi*4 + 0x808], 1
jne 0x1004db92
push esi
mov edx, 0xfb
mov dword [edi + esi*4 + 8], 1
call fcn.1004d820
add esp, 4
cmp dword [edi + esi*4 + 0x1808], 1
jne 0x1004db3e
mov edx, esi
mov ecx, ebx
pop edi
pop esi
pop ebx
jmp fcn.1004e4c0
cmp dword [edi + esi*4 + 0x1808], 1
jne 0x1004db30
push esi
mov edx, 0xfb
mov dword [edi + esi*4 + 8], 1
call fcn.1004d820
add esp, 4
mov edx, esi
mov ecx, ebx
pop edi
pop esi
pop ebx
jmp fcn.1004e4c0
Function at 0x1004f010
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1010d770]
xor eax, ebp
mov dword [ebp - 4], eax
push ecx
call fcn.10062cb0
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x1004f071
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x1004f071
lea eax, [ebp - 0x108]
push eax
call dword [0x1010f534]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
Function at 0x10052df0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1010d770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], ebx
mov dword [esi], ebx
lea esi, [ebp - 8]
push esi
push eax
push edx
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x10052f61
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x10052f4d
cmp dword [edi + 4], 2
jne 0x10052eec
cmp dword [edi + 0x18], 0
je 0x10052eec
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10052eec
cmp eax, 0x10
jb 0x10052eec
push 0x20
call dword [0x1010f52c]
mov esi, eax
add esp, 4
test esi, esi
je 0x10052f42
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x1010f52c]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x10052f31
mov ecx, dword [edi + 0x18]
movdqu xmm0, xmmword [ecx]
movdqu xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x10052eda
push eax
call dword [0x1010f534]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x10052f17
mov eax, dword [ebp - 0xc]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x10052ee9
mov dword [eax + 0x1c], esi
mov dword [ebp - 0xc], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x10052e36
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
test eax, eax
je 0x10052f08
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x10052f49
mov ecx, ebx
call fcn.10052db0
xor ebx, ebx
jmp 0x10052f59
push dword [esi + 0x18]
mov edi, 8
call dword [0x1010f540]
push esi
call dword [0x1010f540]
add esp, 8
jmp 0x10052efa
push esi
mov edi, 8
call dword [0x1010f540]
add esp, 4
jmp 0x10052efa
mov edi, 8
jmp 0x10052efa
test ebx, ebx
jne 0x10052f59
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 0x14]
mov dword [eax], ebx
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret

Function at 0x100531a0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push edx
push 0x10032e00
push 0
push 0
call fcn.1005dfa2
add esp, 0x18
test eax, eax
je 0x100531bf
cmp eax, 0xffffffff
jne 0x100531c1
xor eax, eax
ret
Function at 0x10054900
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, edx
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x1005492b
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x1005491e
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 8]
push 1
push edi
call ecx
jmp 0x1005495d
cmp dword [esi + 8], 0
jne 0x1005494f
push 0x10107c78
push dword [eax + 8]
call fcn.100622b7
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x1005494f
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 8]
push 1
push edi
call fcn.10061636
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1005497f
mov eax, dword [esi + 8]
test eax, eax
je 0x10054979
push eax
call fcn.1005fd74
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x10057230
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

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

Function at 0x10058310
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, ecx
push 0x401
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + 0x400], 0
test eax, eax
jne 0x10058341
push 0x2e
push esi
call fcn.10060540
add esp, 8
test eax, eax
je 0x1005833f
mov byte [eax], 0
xor eax, eax
pop esi
ret
Function at 0x10058cc0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1010d770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
push esi
push edi
push 0xf0000000
push 1
push 0
push 0
push eax
mov esi, edx
mov dword [ebp - 0xc], 8
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x10058d53
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movdqu xmmword [ebp - 0x24], xmm0
lea edx, [ebp - 0x18]
mov word [ebp - 0x24], 0x208
mov ecx, ebx
mov dword [ebp - 0x20], 0x6601
mov dword [ebp - 0x1c], 8
call fcn.10058c30
mov ecx, edx
call fcn.10059de0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x10058d66
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
push dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
Function at 0x10058ef0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1010d770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, edx
push esi
mov esi, eax
mov dword [ebp - 8], eax
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10058f10
sub esi, ecx
lea eax, [esi + esi]
push eax
call dword [0x1010f52c]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10058f40
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
mov ecx, edi
push esi
call fcn.10058510
add esp, 4
lea eax, [ebp - 8]
push 0xf0000000
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x10058fbe
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x8002
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10058fb3
push 0
lea eax, [esi + esi]
mov dword [ebp - 0x10], 0x10
push eax
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
push 2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebx + 0x10], 0
push edi
mov byte [ebx + 0x14], 0
call dword [0x1010f540]
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
Function at 0x10059270
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1010d770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x2c
mov edi, edx
call dword [0x1010f52c]
mov esi, eax
add esp, 4
test esi, esi
jne 0x100592a5
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0xc]
mov dword [esi], fcn.10057230
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ecx + 8]
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
cmp ebx, 0x40
jbe 0x100592ed
push ecx
call dword [0x101004f0]
push ebx
push edi
push dword [esi + 4]
call dword [0x101004f4]
mov edi, dword [esi + 8]
push dword [esi + 4]
add edi, 8
push edi
call dword [0x101004f8]
mov ebx, 0x10
add esp, 0x18
mov dword [ebp + 8], ebx
push dword [esi + 4]
call dword [0x101004f0]
push dword [esi + 8]
call dword [0x101004f0]
add esp, 8
xor eax, eax
test ebx, ebx
je 0x10059350
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov edi, edi
movzx eax, byte [edi]
xor al, 0x36
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
push dword [esi + 4]
call dword [0x101004f4]
movzx eax, byte [edi]
lea edi, [edi + 1]
xor al, 0x5c
mov byte [ebp - 5], al
lea eax, [ebp - 5]
push 1
push eax
push dword [esi + 8]
call dword [0x101004f4]
add esp, 0x18
dec ebx
jne 0x10059310
cmp dword [ebp + 8], 0x40
jae 0x10059386
mov eax, dword [ebp - 0x10]
mov edi, 0x40
sub edi, eax
jmp 0x10059360
push 1
push 0x100ff939
push dword [esi + 4]
call dword [0x101004f4]
push 1
push 0x100ff93a
push dword [esi + 8]
call dword [0x101004f4]
add esp, 0x18
dec edi
jne 0x10059360
mov ecx, dword [ebp - 4]
mov eax, esi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret

Function at 0x1005a150
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d4f28
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1010d770]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x1c]
mov dword [ebp - 4], 0
cmp ecx, eax
je 0x1005a191
push 0xffffffffffffffff
push 0
push eax
call fcn.10019da0
lea ecx, [esi + 4]
lea eax, [ebp + 0xc]
cmp ecx, eax
je 0x1005a1a5
push 0xffffffffffffffff
push 0
push eax
call fcn.10019da0
mov eax, dword [ebp + 0x24]
push dword [esi + 0x50]
mov dword [esi + 0x64], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push esi
push 0x1005a3c0
push 0
push 0
call fcn.1005dfa2
add esp, 0x18
mov dword [esi + 0x4c], eax
push 0xffffffffffffffff
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
neg esi
sbb esi, esi
cmp dword [ebp + 0x20], 8
jb 0x1005a1f8
push dword [ebp + 0xc]
call fcn.1005cd08
add esp, 4
lea eax, [esi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x20
Function at 0x100790b4
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1010d770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.100659e8
mov dword [ebp - 0x14], eax
cmp dword [0x10110c94], esi
jne 0x100791a7
push 0x800
push esi
push 0x100dcc68
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10079134
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10079287
push esi
push esi
push 0x100dcc68
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10079287
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10079287
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x10110c94], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x10110c98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100dccb0
push edi
mov dword [0x10110c9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10110ca4], eax
test eax, eax
je 0x100791a4
push 0x100dcccc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10110ca0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x100791cc
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100791bf
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x100791e1
push 4
pop eax
jmp 0x10079289
cmp dword [ebp - 0x14], esi
je 0x100791e1
push dword [0x10110c94]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x100791c6
mov eax, dword [0x10110ca0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007923f
cmp dword [0x10110ca4], edi
je 0x1007923f
push eax
call ebx
push dword [0x10110ca4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007923f
test eax, eax
je 0x1007923f
call ecx
test eax, eax
je 0x10079234
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10079234
test byte [ebp - 8], 1
jne 0x1007923f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1007926f
mov eax, dword [0x10110c98]
cmp eax, edi
je 0x1007926c
push eax
call ebx
test eax, eax
je 0x1007926c
call eax
mov esi, eax
test esi, esi
je 0x1007926c
mov eax, dword [0x10110c9c]
cmp eax, edi
je 0x1007926c
push eax
call ebx
test eax, eax
je 0x1007926c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10110c94]
call ebx
test eax, eax
je 0x10079287
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10079289
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret