joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002ecd2
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push esi
push str.kernel32
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
je 0x1002ede1
push ebp
push edi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [esp + 0x18]
push 0x1008e90c
push edi
mov ebp, eax
call fcn.1005e690
pop ecx
pop ecx
test eax, eax
je 0x1002ed22
test ebp, ebp
je 0x1002ed19
push 8
jmp 0x1002ed3b
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x1002ed3f
test ebp, ebp
je 0x1002ed46
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002ed46
push 0x800
push esi
push edi
call ebp
mov esi, eax
jmp 0x1002eddd
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x1002eddd
mov ecx, edi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002ed61
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edx
push eax
call dword [0x1008d098]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x1002edd5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1002edd5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002ed91
mov ax, word [0x1008e920]
sub ecx, edx
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002eda9
sub ecx, edx
add ecx, ebx
sub ecx, edi
mov al, byte [edi]
mov byte [ecx + edi], al
inc edi
test al, al
jne 0x1002edb6
test ebp, ebp
je 0x1002edcc
push 8
push esi
push ebx
call ebp
jmp 0x1002edd3
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push ebx
call dword [0x1008d09c]
pop ecx
pop edi
mov eax, esi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x1002ef19
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
test byte [ebp + 8], 2
je 0x1002ef5c
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1002ef43
push 2
pop eax
leave
ret
mov eax, dword [ebp - 0x190]
cmp al, 2
jne 0x1002ef54
shr eax, 8
cmp al, 2
je 0x1002ef5c
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x1002ef3e
call fcn.100507c6
test eax, eax
jne 0x1002ef98
push 3
push 2
push eax
push 6
call fcn.1002ede5
add esp, 0x10
test eax, eax
je 0x1002ef8f
push 0x1009c860
mov dword [0x1009c85c], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
jmp 0x1002ef96
and dword [0x1009c85c], 0
xor eax, eax
leave
ret
Function at 0x10030b80
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebp
push edi
xor edi, edi
and dword [eax], edi
and dword [esp + 0x10], edi
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x28]
mov dword [esp + 0x10], edi
push dword [esp + 0x28]
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
test ebp, ebp
jne 0x10030cf4
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x18], esi
test esi, esi
je 0x10030cdf
push ebx
cmp dword [esi + 4], 2
jne 0x10030c7c
cmp dword [esi + 0x18], 0
je 0x10030c7c
cmp dword [esi + 0x10], 0
jbe 0x10030c7c
cmp dword [esi + 0x10], 0x10
jb 0x10030c7c
push 0x20
call dword [0x1008d098]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10030cb0
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 eax, dword [esi + 0xc]
and dword [ebx + 0x18], 0
and dword [ebx + 0x14], 0
and dword [ebx + 0x1c], 0
push 0x10
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 0x10
call dword [0x1008d098]
pop ecx
mov dword [ebx + 0x18], eax
test eax, eax
je 0x10030ca4
mov esi, dword [esi + 0x18]
mov edi, eax
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 esi, dword [esp + 0x1c]
cmp dword [esi + 0x14], 0
je 0x10030c60
push dword [esi + 0x14]
call dword [0x1008d0a4]
pop ecx
mov dword [ebx + 0x14], eax
test eax, eax
je 0x10030c8d
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
test edi, edi
cmove edi, ebx
mov dword [esp + 0x10], edi
test eax, eax
je 0x10030c78
mov dword [eax + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov esi, dword [esi + 0x1c]
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x10030bc8
jmp 0x10030cb3
push 8
pop ebp
push dword [ebx + 0x18]
call dword [0x1008d09c]
push ebx
call dword [0x1008d09c]
pop ecx
pop ecx
jmp 0x10030cb3
push 8
pop ebp
push ebx
call dword [0x1008d09c]
jmp 0x10030ca1
push 8
pop ebp
cmp dword [esp + 0x14], 0
pop ebx
je 0x10030cc5
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x10030cd7
push dword [esp + 0xc]
call fcn.10030b4e
pop ecx
xor edi, edi
jmp 0x10030ceb
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x10030ceb
mov ebp, 0x2af9
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x2c]
pop esi
mov dword [eax], edi
mov eax, ebp
pop edi
pop ebp
add esp, 0x10
ret

Function at 0x10030f4f
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x10]
push eax
push eax
call fcn.1005a3eb
add esp, 0x18
test eax, eax
je 0x10030f6e
cmp eax, 0xffffffff
jne 0x10030f70
xor eax, eax
ret
Function at 0x1003567a
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x24]
mov ebp, dword [edi + 0x1ac]
mov ebx, dword [edi]
push eax
lea eax, [esp + 0x14]
push eax
push ebp
or esi, 0xffffffff
mov dword [esp + 0x30], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x100356c8
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x14]
push eax
push ebp
mov dword [esp + 0x30], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push ebp
push edi
call fcn.1002d762
pop ecx
pop ecx
cmp esi, 0xffffffff
jne 0x100356e8
push str.Error_accept__ing_server_connect
push ebx
call fcn.100293e3
pop ecx
pop ecx
push 0x1e
pop eax
jmp 0x10035752
push str.Connection_accepted_from_server_n
push ebx
call fcn.10029490
and dword [edi + 0x294], 0xfffff7ff
xor ebp, ebp
inc ebp
push ebp
push esi
mov dword [edi + 0x1ac], esi
call fcn.1004fc5e
add esp, 0x10
mov dword [edi + 0x1bc], ebp
cmp dword [ebx + 0x610], 0
je 0x10035750
push ebp
push ebx
call fcn.1002a2f1
push ebp
push esi
push dword [ebx + 0x614]
call dword [ebx + 0x610]
push 0
push ebx
mov esi, eax
call fcn.1002a2f1
add esp, 0x1c
test esi, esi
je 0x10035750
push edi
call fcn.10035b02
pop ecx
push 0x2a
jmp 0x100356e5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x10037543
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0x64
cdq
pop ebx
idiv ebx
mov edi, dword [ebp + 8]
xor esi, esi
mov ecx, dword [edi]
cmp eax, 2
je 0x10037570
push str.Couldnt_set_desired_mode
push ecx
call fcn.100293e3
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x100375c7
cmp dword [ebp + 0xc], 0xc8
je 0x1003758a
push dword [ebp + 0xc]
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ecx
call fcn.10029490
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x1003759b
push edi
call fcn.10037331
pop ecx
jmp 0x100375c3
cmp eax, 0x14
jne 0x100375a8
push edi
call fcn.100365c9
jmp 0x10037598
cmp eax, 0x15
jne 0x100375b1
push 0xd
jmp 0x100375b8
cmp eax, 0x16
jne 0x100375c5
push 0xe
push 1
push edi
call fcn.10036f4b
add esp, 0xc
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1003fc41
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
lea eax, [ebp - 0x190]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1003fc70
push eax
push str.WSAStartup_failed___d_
push dword [ebp + 8]
call fcn.100293e3
add esp, 0xc
jmp 0x1003fc9a
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x190]
cmp al, 2
jne 0x1003fc8b
shr eax, 8
test al, al
jne 0x1003fc8b
xor eax, eax
leave
ret
push str.insufficient_winsock_version_to_support_telnet
push dword [ebp + 8]
call fcn.100293e3
pop ecx
pop ecx
push 2
pop eax
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi]
push 0
mov byte [ebp + 0xa], al
push 3
lea eax, [ebp + 8]
push eax
push dword [esi + 0x1a8]
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x10040414
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x10091c78
push edi
call fcn.100293e3
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push 0x10091c94
push dword [esi]
call fcn.1003fd94
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1004051e
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
push ebx
mov eax, dword [eax]
mov dword [esp + 4], eax
mov ebx, dword [eax + 0x154]
jne 0x10040669
push ebp
push edi
lea ebp, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], ebp
cmp ebp, edi
jae 0x10040555
mov byte [ebp], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10040560
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1004056b
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x1c], eax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov ecx, dword [esp + 0x1c]
movzx edx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x1004059e
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100405a8
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100405b2
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100405bc
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100405c7
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100405d2
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x1eb4], eax
sub eax, ebp
sub eax, 2
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push esi
mov dword [edi], ebp
call fcn.1003fe81
mov edi, dword [esp + 0x28]
add esp, 0x10
push 0
push 3
push ebp
push dword [edi + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x10040628
call ebp
push eax
push 0x10091ee8
push esi
call fcn.100293e3
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push edi
call fcn.1004042c
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [edi + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x10040666
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.100293e3
add esp, 0xc
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10041381
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x84
mov eax, dword [esp + 0x88]
push ebx
mov ebx, dword [eax]
push ebp
push esi
push edi
mov edi, dword [eax + 0x4d0]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
lea eax, [esp + 0x18]
push eax
mov eax, dword [edi + 0x154]
push 0
add eax, 4
push eax
push dword [edi + 0x15c]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x148], 0
mov dword [edi + 0x14c], eax
jne 0x100413f8
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [edi + 0xc8]
push eax
call fcn.1005b1c0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x148], eax
mov esi, dword [edi + 0x14c]
cmp esi, 4
jge 0x10041424
push str.Received_too_short_packet
push ebx
call fcn.100293e3
pop ecx
pop ecx
mov dword [edi + 0xc], 7
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
mov ecx, dword [edi + 0x15c]
movzx eax, byte [ecx]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 1]
or edx, eax
mov dword [edi + 0xc], edx
sub edx, 3
je 0x100414d4
dec edx
je 0x10041462
dec edx
je 0x1004149d
dec edx
je 0x10041483
push str.Internal_error:_Unexpected_packet
push 0x10092794
push ebx
call fcn.100293e3
add esp, 0xc
mov ebp, dword [esp + 0x98]
push ebp
call fcn.1004719f
pop ecx
test eax, eax
je 0x10041417
push 5
push edi
call fcn.10041c84
pop ecx
pop ecx
push 0x2a
pop eax
jmp 0x10041419
lea eax, [esi - 2]
push eax
lea eax, [ecx + 2]
push eax
push edi
call fcn.1004118f
add esp, 0xc
test eax, eax
je 0x10041462
jmp 0x10041419
mov edx, ecx
lea ebp, [ecx + 4]
movzx eax, byte [edx + 2]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 3]
add esi, 0xfffffffc
or ecx, eax
push esi
push ebp
mov dword [edi + 8], ecx
call fcn.100410ab
pop ecx
pop ecx
cmp eax, esi
jae 0x10041462
push ebp
push str.TFTP_error:__s_n
push ebx
call fcn.10029490
jmp 0x1004145f
cmp esi, 4
jle 0x10041462
mov ebp, dword [esp + 0x98]
mov edx, ecx
movzx eax, byte [edx + 2]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 3]
or ecx, eax
movzx eax, word [edi + 0x40]
inc eax
and eax, 0xffff
cmp eax, ecx
jne 0x10041469
lea eax, [esi - 4]
push eax
lea eax, [edx + 4]
push eax
push 1
push ebp
call fcn.1002933b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004152f
push 5
push edi
call fcn.10041c84
pop ecx
pop ecx
mov eax, esi
jmp 0x10041419
mov eax, dword [edi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0xa0], eax
adc dword [ebx + 0xa4], edx
push dword [ebx + 0xa4]
push dword [ebx + 0xa0]
push ebx
call fcn.10046f06
add esp, 0xc
jmp 0x10041469
Function at 0x1004acb9
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
push 4
pop edi
xor ebx, ebx
push esi
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x14], esi
call fcn.1005b850
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push dword [ebp + 0x18]
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1004ad72
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push dword [ebp + 0x1c]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1004ad55
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1004ad55
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
call edi
test eax, eax
je 0x1004ad55
cmp esi, dword [ebp - 0xc]
jb 0x1004ad55
push ebx
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call edi
cmp dword [ebp - 4], ebx
je 0x1004ad63
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], ebx
je 0x1004ad72
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100519ed
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x10051a1e
push 0x2e
push edi
call fcn.1005bd70
pop ecx
pop ecx
test eax, eax
je 0x10051a1c
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret

Function at 0x100532bf
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push esi
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100532cd
sub esi, ecx
cmp esi, 0x7fffffff
jbe 0x100532e6
push 0x1b
pop eax
jmp 0x100533b5
push edi
test esi, esi
je 0x100532f7
lea eax, [esi + esi]
push eax
call dword [0x1008d098]
jmp 0x10053302
push 0x1009ad77
call dword [0x1008d0a4]
mov edi, eax
pop ecx
test edi, edi
jne 0x10053311
push 0x1b
pop eax
jmp 0x100533b4
xor edx, edx
mov ecx, edx
test esi, esi
je 0x10053328
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], dl
inc ecx
cmp ecx, esi
jb 0x10053319
push 0xf0000000
push 1
push edx
push edx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov ebx, dword [esp + 0x24]
test eax, eax
je 0x100533a2
push ebp
lea eax, [esp + 0x10]
push eax
xor ebp, ebp
push ebp
push ebp
push 0x8002
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10053396
push ebp
lea eax, [esi + esi]
push eax
push edi
push dword [esp + 0x1c]
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push 2
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebp
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop ebp
and dword [ebx + 0x10], 0
push edi
mov byte [ebx + 0x14], 0
call dword [0x1008d09c]
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x100533bb
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, 0x20
push ebx
push esi
push 0xf0000000
xor esi, esi
inc esi
push esi
xor ebx, ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 4], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10053479
push edi
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
mov word [ebp - 0x20], 0x208
mov dword [ebp - 0x1c], 0x6601
mov dword [ebp - 0x18], 8
call fcn.1005347d
lea eax, [ebp - 0x14]
push 8
push eax
call fcn.1005704c
add esp, 0x10
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x14
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop edi
test eax, eax
jne 0x10053440
mov esi, ebx
jmp 0x1005346d
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx]
push dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
lea eax, [ebp - 4]
push eax
push edx
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1005725a
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push ecx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x1008d098]
mov edi, eax
pop ecx
test edi, edi
je 0x10057342
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
push ebx
add eax, ecx
push ebp
mov ebp, dword [esp + 0x24]
mov dword [edi + 8], eax
cmp ebp, dword [esi + 0x10]
jbe 0x100572c2
push ecx
call dword [esi]
push ebp
push dword [esp + 0x28]
push dword [edi + 4]
call dword [esi + 4]
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [esp + 0x24], eax
push eax
call dword [esi + 8]
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x100572ca
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push dword [edi + 4]
call dword [esi]
push dword [edi + 8]
call dword [esi]
pop ecx
xor ebx, ebx
pop ecx
test ebp, ebp
je 0x10057339
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x14], ebp
mov al, byte [ebx]
xor al, 0x36
mov byte [esp + 0x1c], al
push 1
lea eax, [esp + 0x20]
push eax
push dword [edi + 4]
call dword [esi + 4]
mov al, byte [ebx]
xor al, 0x5c
mov byte [esp + 0x28], al
push 1
lea eax, [esp + 0x2c]
push eax
push dword [edi + 8]
inc ebx
call dword [esi + 4]
add esp, 0x18
dec ebp
jne 0x100572e4
mov ebx, dword [esp + 0x14]
jmp 0x10057339
push 1
push 0x1007c878
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x1007c879
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0x1005731b
pop ebp
mov eax, edi
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret
Function at 0x10072036
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10063e6b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1007206e
xor eax, eax
jmp 0x1007209a
cmp esi, dword [ebp - 4]
je 0x10072097
cmp dword [ebp + 0xc], 0
je 0x10072097
push dword [edi + 0x9c]
call fcn.10071c44
push dword [edi + 0x9c]
mov esi, eax
call fcn.10061da0
pop ecx
pop ecx
cmp esi, eax
je 0x1007206a
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x10072b80
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10099790]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.10061af8
mov dword [ebp - 0x14], eax
cmp dword [0x1009be18], edi
jne 0x10072c71
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x10072bfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10072d51
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10072d51
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10072d51
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x1009be18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x1009be1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x1009be20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1009be28], eax
test eax, eax
je 0x10072c6e
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1009be24], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10072c96
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10072c89
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x10072cab
push 4
pop eax
jmp 0x10072d53
cmp dword [ebp - 0x14], edi
je 0x10072cab
push dword [0x1009be18]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10072c90
mov eax, dword [0x1009be24]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x10072d09
cmp dword [0x1009be28], esi
je 0x10072d09
push eax
call ebx
push dword [0x1009be28]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10072d09
test eax, eax
je 0x10072d09
call ecx
test eax, eax
je 0x10072cfe
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 0x10072cfe
test byte [ebp - 8], 1
jne 0x10072d09
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x10072d39
mov eax, dword [0x1009be1c]
cmp eax, esi
je 0x10072d36
push eax
call ebx
test eax, eax
je 0x10072d36
call eax
mov edi, eax
test edi, edi
je 0x10072d36
mov eax, dword [0x1009be20]
cmp eax, esi
je 0x10072d36
push eax
call ebx
test eax, eax
je 0x10072d36
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x1009be18]
call ebx
test eax, eax
je 0x10072d51
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x10072d53
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005801c
leave
ret