joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10044792
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 + 0x164]
jne 0x100448dd
push ebp
push edi
lea ebp, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], ebp
cmp ebp, edi
jae 0x100447c9
mov byte [ebp], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100447d4
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100447df
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 0x10044812
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1004481c
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10044826
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10044830
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1004483b
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10044846
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.10044113
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 0x1004489c
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.10034609
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push edi
call fcn.100446a0
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 0x100448da
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.10034609
add esp, 0xc
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret
Function at 0x100448e0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x90c
mov eax, dword [0x10098688]
xor eax, esp
mov dword [esp + 0x908], eax
push ebx
mov ebx, dword [esp + 0x914]
push ebp
push esi
push edi
push 0x7f
lea eax, [esp + 0x9d]
push 0
push eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xa4], 0
call fcn.1005ec70
push 0x7f
lea eax, [esp + 0x29]
push 0
push eax
mov byte [esp + 0x30], 0
call fcn.1005ec70
mov edi, dword [ebx]
mov dword [esp + 0x2c], edi
mov ebx, dword [edi + 0x164]
mov eax, dword [ebx + 0x1eb4]
sub eax, dword [ebx + 0x1eb0]
add eax, 2
push eax
lea eax, [ebx + 0x1cb0]
push eax
push 0x3c
push edi
call fcn.10044113
mov eax, dword [ebx + 0x1eb0]
add esp, 0x28
movzx ecx, byte [eax]
inc eax
mov dword [ebx + 0x1eb0], eax
cmp ecx, 0x18
je 0x10044a83
cmp ecx, 0x23
je 0x10044a5f
cmp ecx, 0x27
jne 0x10044b15
push 0
push ecx
push 0xfa
mov ebp, 0xff
push ebp
push str._c_c_c_c
lea eax, [esp + 0x12c]
push 0x800
push eax
call fcn.1003edd6
mov ebx, dword [ebx + 0x1cac]
add esp, 0x1c
push 4
pop esi
test ebx, ebx
je 0x10044a35
mov ecx, dword [ebx]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100449c2
sub ecx, edx
lea edi, [esi + 1]
add edi, ecx
cmp edi, 0x7fa
jae 0x10044a2a
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x9c]
push eax
push str._127_____127s
push dword [ebx]
call fcn.1005fd76
add esp, 0x10
test eax, eax
je 0x10044a2a
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0xa0]
push eax
push 0
mov eax, 0x800
sub eax, esi
push str._c_s_c_s
push eax
lea eax, [esp + 0x130]
add eax, esi
push eax
call fcn.1003edd6
add esp, 0x1c
mov esi, edi
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x100449bd
mov edi, dword [esp + 0x14]
push 0xf0
push ebp
mov eax, 0x800
sub eax, esi
push str._c_c
push eax
lea eax, [esp + 0x128]
add eax, esi
push eax
call fcn.1003edd6
add esp, 0x14
add esi, 2
jmp 0x10044aca
add ebx, 0x1c28
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10044a6a
push 0xf0
mov ebp, 0xff
push ebp
push ebx
push 0
push 0x23
jmp 0x10044aa5
add ebx, 0x1c08
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10044a8e
push 0xf0
mov ebp, 0xff
push ebp
push ebx
push 0
push 0x18
push 0xfa
push ebp
push str._c_c_c_c_s_c_c
sub ecx, edx
lea eax, [esp + 0x138]
push 0x800
push eax
lea esi, [ecx + 6]
call fcn.1003edd6
add esp, 0x28
push 0
push esi
lea eax, [esp + 0x120]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x10044afe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.10034609
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [esp + 0x11e]
push eax
push 0x3e
push edi
call fcn.10044113
add esp, 0x10
mov ecx, dword [esp + 0x918]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005c9a6
add esp, 0x90c
ret
Function at 0x10045543
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x10098688]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
push esi
mov esi, dword [ebp + 0x6b8]
push edi
mov edi, dword [ebp]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [esi + 0x15c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x100455c9
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.1005e620
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], eax
mov ebx, dword [esi + 0x14c]
cmp ebx, 4
jge 0x10045603
push str.Received_too_short_packet
push edi
call fcn.10034609
pop ecx
pop ecx
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005c9a6
add esp, 0x88
ret
mov ecx, dword [esi + 0x15c]
movzx eax, byte [ecx]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 1]
or edx, eax
mov dword [esi + 0xc], edx
sub edx, 3
je 0x10045685
dec edx
je 0x10045700
dec edx
je 0x1004565e
dec edx
je 0x10045643
push str.Internal_error:_Unexpected_packet
push 0x10092524
push edi
call fcn.10034609
jmp 0x100456fd
lea eax, [ebx - 2]
push eax
lea eax, [ecx + 2]
push eax
push esi
call fcn.10045359
add esp, 0xc
test eax, eax
je 0x10045700
jmp 0x100455ea
mov edx, ecx
movzx eax, byte [edx + 2]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 3]
or ecx, eax
lea eax, [edx + 4]
push eax
push 0x10081ac8
push edi
mov dword [esi + 8], ecx
call fcn.100346c5
jmp 0x100456fd
cmp ebx, 4
jle 0x10045700
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 [esi + 0x40]
inc eax
and eax, 0xffff
cmp eax, ecx
jne 0x10045700
lea eax, [ebx - 4]
push eax
lea eax, [edx + 4]
push eax
push 1
push ebp
call fcn.1003451c
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x100456d5
push 5
push esi
call fcn.10045de2
pop ecx
pop ecx
mov eax, ebx
jmp 0x100455ea
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x90], eax
adc dword [edi + 0x94], edx
push dword [edi + 0x94]
push dword [edi + 0x90]
push edi
call fcn.1003d017
add esp, 0xc
push ebp
call fcn.1003d3d6
pop ecx
test eax, eax
je 0x100455e8
push 5
push esi
call fcn.10045de2
pop ecx
pop ecx
push 0x2a
pop eax
jmp 0x100455ea
Function at 0x1004c96e
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x10098688]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
mov ebp, dword [esi + 0x1ac]
mov ebx, dword [esi]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push ebp
or edi, 0xffffffff
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1004c9c7
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push ebp
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebp
push esi
call fcn.10034d39
pop ecx
pop ecx
cmp edi, 0xffffffff
jne 0x1004c9e7
push str.Error_accept__ing_server_connect
push ebx
call fcn.10034609
pop ecx
pop ecx
push 0x1e
pop eax
jmp 0x1004ca3a
push str.Connection_accepted_from_server_n
push ebx
call fcn.100346c5
and dword [esi + 0x3f0], 0
xor ebp, ebp
inc ebp
push ebp
push edi
mov dword [esi + 0x1ac], edi
call fcn.10052142
mov dword [esi + 0x1bc], ebp
mov eax, dword [ebx + 0x1e8]
add esp, 0x10
test eax, eax
je 0x1004ca38
push ebp
push edi
push dword [ebx + 0x1ec]
call eax
add esp, 0xc
test eax, eax
je 0x1004ca38
push esi
call fcn.1004ce06
pop ecx
push 0x2a
jmp 0x1004c9e4
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005c9a6
add esp, 0x18
ret

Function at 0x1004e8ab
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 0x1004e8d8
push str.Couldnt_set_desired_mode
push ecx
call fcn.10034609
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x1004e92f
cmp dword [ebp + 0xc], 0xc8
je 0x1004e8f2
push dword [ebp + 0xc]
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ecx
call fcn.100346c5
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x1004e903
push edi
call fcn.1004e679
pop ecx
jmp 0x1004e92b
cmp eax, 0x14
jne 0x1004e910
push edi
call fcn.1004d942
jmp 0x1004e900
cmp eax, 0x15
jne 0x1004e919
push 0xd
jmp 0x1004e920
cmp eax, 0x16
jne 0x1004e92d
push 0xe
push 1
push edi
call fcn.1004e27b
add esp, 0xc
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10052e39
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x10052e63
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x10052e54
xor eax, eax
jmp 0x10052eb6
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x10052e94
cmp dword [esi + 8], 0
jne 0x10052e84
push 0x10081d34
push dword [eax + 8]
call fcn.1005fc5b
pop ecx
pop ecx
mov dword [esi + 8], eax
test eax, eax
jne 0x10052e84
or eax, 0xffffffff
jmp 0x10052eb6
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.10060ae0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10052eb4
cmp dword [esi + 8], eax
je 0x10052eae
push dword [esi + 8]
call fcn.1005f9e1
and dword [esi + 8], edi
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x10055591
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 ebp
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100555a1
sub esi, ecx
lea ebp, [esi + esi]
push ebp
call dword [0x10098340]
mov edi, eax
pop ecx
test edi, edi
jne 0x100555c3
push 0x1b
pop eax
jmp 0x1005565e
xor ecx, ecx
test esi, esi
je 0x100555d9
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], 0
inc ecx
cmp ecx, esi
jb 0x100555c9
push 0xf0000000
push 1
xor ebx, ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [esp + 0x28]
test eax, eax
je 0x1005564e
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
push 0x8002
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10055643
push ebx
push ebp
push edi
push dword [esp + 0x1c]
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push ebx
lea eax, [esp + 0x1c]
push eax
push esi
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 ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi + 0x10], ebx
push edi
mov byte [esi + 0x14], bl
call dword [0x10098344]
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x10055666
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x10098688]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, dword [esp + 0x38]
push esi
push 0xf0000000
xor esi, esi
inc esi
push esi
push 0
push 0
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x28], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10055743
push edi
xor eax, eax
lea edi, [esp + 0x1c]
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, [esp + 0x28]
push eax
push ebp
mov word [esp + 0x24], 0x208
mov dword [esp + 0x28], 0x6601
mov dword [esp + 0x2c], 8
call fcn.10055755
lea eax, [esp + 0x30]
push 8
push eax
call fcn.1005851b
add esp, 0x10
lea eax, [esp + 0x10]
push eax
xor ebp, ebp
push ebp
push ebp
push 0x14
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop edi
test eax, eax
jne 0x10055707
mov esi, ebp
jmp 0x10055736
mov ecx, dword [esp + 0x34]
push dword [esp + 0x14]
mov eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
lea eax, [esp + 0x18]
push eax
push ebx
push ebp
push ebp
push ebp
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ebp
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
mov ecx, dword [esp + 0x2c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005c9a6
add esp, 0x24
ret

Function at 0x10056941
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 0x10056972
push 0x2e
push edi
call fcn.1005fe10
pop ecx
pop ecx
test eax, eax
je 0x10056970
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret
Function at 0x1005972c
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 [0x10098340]
mov edi, eax
pop ecx
test edi, edi
je 0x10059814
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 0x10059794
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 0x1005979c
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 0x1005980b
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 0x100597b6
mov ebx, dword [esp + 0x14]
jmp 0x1005980b
push 1
push 0x1008bbdf
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x1008bbe0
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0x100597ed
pop ebp
mov eax, edi
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret
Function at 0x1007268a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10098688]
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.100640ca
mov dword [ebp - 0x14], eax
cmp dword [0x1009b598], edi
jne 0x1007277b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x10072708
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1007285b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1007285b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007285b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x1009b598], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x1009b59c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x1009b5a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1009b5a8], eax
test eax, eax
je 0x10072778
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1009b5a4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x100727a0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10072793
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x100727b5
push 4
pop eax
jmp 0x1007285d
cmp dword [ebp - 0x14], edi
je 0x100727b5
push dword [0x1009b598]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1007279a
mov eax, dword [0x1009b5a4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x10072813
cmp dword [0x1009b5a8], esi
je 0x10072813
push eax
call ebx
push dword [0x1009b5a8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10072813
test eax, eax
je 0x10072813
call ecx
test eax, eax
je 0x10072808
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 0x10072808
test byte [ebp - 8], 1
jne 0x10072813
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x10072843
mov eax, dword [0x1009b59c]
cmp eax, esi
je 0x10072840
push eax
call ebx
test eax, eax
je 0x10072840
call eax
mov edi, eax
test edi, edi
je 0x10072840
mov eax, dword [0x1009b5a0]
cmp eax, esi
je 0x10072840
push eax
call ebx
test eax, eax
je 0x10072840
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x1009b598]
call ebx
test eax, eax
je 0x1007285b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x1007285d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005c9a6
leave
ret
Function at 0x10074bc9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10066f4e
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 0x10074c01
xor eax, eax
jmp 0x10074c2d
cmp esi, dword [ebp - 4]
je 0x10074c2a
cmp dword [ebp + 0xc], 0
je 0x10074c2a
push dword [edi + 0x9c]
call fcn.100747d7
push dword [edi + 0x9c]
mov esi, eax
call fcn.1006446c
pop ecx
pop ecx
cmp esi, eax
je 0x10074bfd
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x4016bf
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0040186f
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4017bd
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401760
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4017a3
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x401777
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x401792
test al, 0x40
je 0x401789
mov ecx, dword [edi + 0x20]
jmp 0x401790
test al, 0x80
je 0x4017a3
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4017a3
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x40172f
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x402cf9
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x402d27
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x402d1e
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x402d16
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x402d48
mov esp, ebp
pop ebp
ret

Function at 0x402d4c
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x402db8
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x402de5
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x402dd4
xor ecx, eax
xor edx, ebx
dec edi
jne 0x402dc5
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x402e0b
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x402dac
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x402e37
mov esp, ebp
pop ebp
ret 0xc