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

Disassembly:
sub esp, 0x12c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x13c]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [esp + 0x24], edx
push 0x1000
mov dword [esp + 0x20], edi
call fcn.0041a40d
mov byte [esp + 0x1b], bl
mov ebp, eax
pop ecx
test edi, edi
je 0x408eb3
test esi, esi
je 0x408eb3
push 0x1000
push ebx
push ebp
call fcn.0041d850
xorps xmm0, xmm0
add esp, 0xc
mov esi, ebx
movlpd qword [esp + 0x28], xmm0
mov edi, ebx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push ebx
push ebx
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 1
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x408eb3
test eax, eax
je 0x408eb3
push ebx
push 1
lea eax, [esi + ebp]
push eax
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x408eb3
cmp eax, 0xffffffff
je 0x408eb3
mov al, byte [esi + ebp]
cmp al, 0xa
je 0x408d71
cmp al, 0xd
je 0x408d60
mov edi, ebx
jmp 0x408d79
test edi, edi
jne 0x408d67
inc edi
jmp 0x408d79
cmp edi, 2
jne 0x408d81
push 3
pop edi
jmp 0x408d81
cmp edi, 1
jne 0x408d7c
push 2
pop edi
inc esi
jmp 0x408d87
cmp edi, 3
je 0x408d98
inc esi
cmp edi, 4
je 0x408d99
cmp esi, 0xfff
jl 0x408cf3
jmp 0x408eb3
inc esi
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov ecx, ebp
call fcn.004179fe
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x408db5
call fcn.004179ce
push str.Content_Length:
push ebp
call fcn.0041b690
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x408e79
add edi, 0x10
push 0x446388
push edi
call fcn.0041b690
mov dword [esp + 0x20], eax
pop ecx
pop ecx
test eax, eax
je 0x408e79
mov bl, byte [eax]
push edi
mov byte [eax], 0
call fcn.0042019c
mov ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
mov byte [eax], bl
lea eax, [ecx + esi]
mov dword [esp + 0x1c], eax
inc eax
push eax
call fcn.0041a40d
push esi
mov edi, eax
push ebp
push edi
call fcn.0041baa0
mov eax, dword [esp + 0x30]
add esp, 0x14
mov dword [esp + 0x34], eax
xor ebx, ebx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push ebx
push ebx
lea eax, [esp + 0x3c]
mov byte [esp + 0x23], 1
push eax
push ebx
mov dword [esp + 0x44], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x408e9d
test eax, eax
je 0x408e9d
push ebx
push dword [esp + 0x24]
lea eax, [edi + esi]
push eax
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x408e9d
cmp eax, 0xffffffff
je 0x408e9d
mov esi, dword [esp + 0x18]
mov eax, edi
jmp 0x408e7d
mov eax, ebp
mov edi, ebx
mov ecx, dword [esp + 0x140]
mov dword [ecx], eax
mov eax, dword [esp + 0x144]
test eax, eax
je 0x408e93
mov dword [eax], esi
xor ebx, ebx
inc ebx
cmp byte [esp + 0x17], 0
je 0x408eb3
push ebp
call fcn.0041a3ca
pop ecx
test ebx, ebx
jne 0x408eb3
test edi, edi
je 0x408eb3
push edi
call fcn.0041a3ca
pop ecx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x12c
ret
Function at 0x408ec0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push ebx
push ebp
push edi
mov ebx, ecx
xor edi, edi
mov ebp, edx
test ebx, ebx
je 0x408fb5
test bp, bp
je 0x408fb5
cmp dword [esp + 0x20], edi
je 0x408fb5
cmp dword [esp + 0x24], edi
je 0x408fb5
push esi
push 6
push 1
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x408fb4
movsx eax, byte [ebx]
push eax
call fcn.0041f290
pop ecx
push ebx
test eax, eax
je 0x408f31
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x408fad
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x408f3c
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x408fad
push 2
pop ecx
xorps xmm0, xmm0
mov word [esp + 0x10], cx
push ebp
movlpd qword [esp + 0x1c], xmm0
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
lea eax, [esp + 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x408fad
push edi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp byte [esp + 0x2c], 0
jne 0x408f91
push 1
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
jmp 0x408faa
push dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov ecx, esi
push dword [esp + 0x38]
call fcn.00408c99
pop ecx
pop ecx
test eax, eax
je 0x408fad
xor edi, edi
inc edi
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x40bc02
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4375e6
call fcn.00436808
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [esi], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0x14]
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [ebp + 0xc], ecx
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov dword [ecx + 0xc], edi
mov dword [ebp - 4], 2
push edi
call fcn.0040c3bd
mov dword [ebp - 4], 3
push 0x24
call fcn.0041a3cf
pop ecx
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 4
mov dword [eax], 0x445c04
mov dword [eax + 4], 0x14
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [ebp - 4], 5
mov dword [eax], 0x445c00
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], edi
mov byte [ebp - 4], 3
mov ecx, esi
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], pe_nt_image_headers32
mov dword [esi + 0x38], 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
mov dword [esi + 0x50], 0x8775dfb
call fcn.0040c45c
or dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x40d040
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor al, al
mov ecx, dword [esi + 0x4c]
cmp ecx, 0xffffffff
je 0x40d1dc
mov edx, 0x10000000
cmp ecx, 0x7c
je 0x40d1dc
cmp ecx, 0x29
jne 0x40d080
cmp dword [esi + 0x10], 0
jne 0x40d1dc
lea edi, [esi + 0x50]
test dword [edi], edx
je 0x40d1e0
jmp 0x40d19a
lea edi, [esi + 0x50]
cmp ecx, 0x2e
jne 0x40d09e
push 5
lea ecx, [esi + 0x24]
call fcn.0040d2d5
mov ecx, esi
call fcn.0040d018
jmp 0x40d1ca
cmp ecx, 0x5c
jne 0x40d0ef
mov ecx, esi
call fcn.0040d018
test byte [edi], 0x80
je 0x40d0e3
mov al, byte [esi + 0x48]
cmp al, 0x62
jne 0x40d0cc
push 4
lea ecx, [esi + 0x24]
call fcn.0040d2d5
mov ecx, esi
call fcn.0040d018
jmp 0x40d1d1
cmp al, 0x42
jne 0x40d0e3
push 4
lea ecx, [esi + 0x24]
call fcn.0040d2d5
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x40d0c0
mov ecx, esi
call fcn.0040da1f
jmp 0x40d1ca
cmp ecx, 0x5b
jne 0x40d151
mov ecx, esi
call fcn.0040d018
lea ecx, [esi + 0x24]
call fcn.0040e903
mov eax, dword [esi + 0x4c]
cmp eax, 0x5e
jne 0x40d11c
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.0040d018
mov eax, dword [esi + 0x4c]
test dword [edi], 0x20000000
je 0x40d139
cmp eax, 0x5d
jne 0x40d139
push eax
lea ecx, [esi + 0x24]
call fcn.0040e96f
mov ecx, esi
call fcn.0040d018
mov ecx, esi
call fcn.0040e65e
cmp dword [esi + 0x4c], 0x5d
je 0x40d092
push 4
jmp 0x40d1e2
cmp ecx, 0x28
jne 0x40d16e
mov ecx, esi
call fcn.0040d018
mov ecx, esi
call fcn.0040db22
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x40d1e0
jmp 0x40d1bf
cmp ecx, 0x5e
jne 0x40d17a
push 2
jmp 0x40d0b8
cmp ecx, 0x24
jne 0x40d186
push 3
jmp 0x40d0b8
cmp ecx, 0x2a
je 0x40d1d8
cmp ecx, 0x2b
je 0x40d1d8
cmp ecx, 0x3f
je 0x40d1d8
cmp ecx, 0x7b
je 0x40d1d8
cmp ecx, 0x7d
jne 0x40d1a7
test dword [edi], edx
jne 0x40d1b0
push 6
jmp 0x40d1e2
cmp ecx, 0x5d
jne 0x40d1b0
test dword [edi], edx
je 0x40d14a
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.0040dc86
mov bl, 1
mov ecx, esi
call fcn.0040d018
test bl, bl
je 0x40d1d1
mov ecx, esi
call fcn.0040dba7
mov al, 1
jmp 0x40d047
push 0xa
jmp 0x40d1e2
pop edi
pop esi
pop ebx
ret
push 5
call fcn.0040c452
int3
Function at 0x40fb39
Capabilities:
Create process on windows
Initialize winsock library

Disassembly:
mov eax, 0x437d5b
call fcn.00436808
sub esp, 0x2a0
lea eax, [ebp - 0x2ac]
push ebx
push esi
push edi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp dword [ebp + 0x10], 0
je 0x40fbda
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrW]
push str.__run_
push dword [ebp + 0x10]
call edi
mov esi, eax
test esi, esi
je 0x40fbda
push 0x4467c8
lea ebx, [esi + 0xe]
push ebx
call edi
test eax, eax
je 0x40fbda
sub eax, esi
xor ecx, ecx
sar eax, 1
push 2
pop edx
lea esi, [eax - 6]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a40d
pop ecx
push esi
mov edi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 1
xor esi, esi
push esi
push esi
push edi
push 0x4467cc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 2
push edi
call fcn.0041a3ff
pop ecx
pop ecx
jmp 0x40fc69
push str.ggsvc
lea ecx, [ebp - 0x11c]
call fcn.00417414
xor esi, esi
mov dword [ebp - 4], esi
sub esp, 0x20
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0x104], esi
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xe0], esi
call fcn.00410202
mov byte [ebp - 4], 1
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x100]
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x11c]
cmp dword [ebp - 0x108], 8
mov dword [0x44fb6c], eax
cmovae eax, dword [ebp - 0x11c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x18], 0x417131
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11c]
call fcn.0040fc82
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x4102e3
Capabilities:
Create tcp socket
Create thread

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 6
push 1
push 2
pop ebp
push ebp
mov esi, ecx
xor edi, edi
call dword [sym.imp.WS2_32.dll_socket]
or ebx, 0xffffffff
mov dword [esi + 0x1c], eax
cmp eax, ebx
je 0x4103b2
xorps xmm0, xmm0
mov word [esp + 0x10], bp
push 0x7f000001
movlpd qword [esp + 0x1c], xmm0
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x14], eax
movzx eax, word [esi]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
lea eax, [esp + 0x10]
push 0x10
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, ebx
je 0x4103b2
push 5
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, ebx
je 0x4103b2
push edi
push edi
push esi
push 0x410441
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4103b2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xb8], eax
test eax, eax
je 0x4103b2
lea eax, [esi + 0x88]
mov ecx, esi
push eax
imul eax, dword [esi + 0x50], 0xea60
push eax
lea eax, [esi + 0x70]
push eax
movzx eax, word [esi + 0x6c]
push eax
lea eax, [esi + 0x54]
push eax
call fcn.00410616
test eax, eax
je 0x4103b2
inc edi
jmp 0x4103c3
cmp dword [esi + 0x1c], ebx
je 0x4103c3
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x1c], ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x410616
Capabilities:
Create thread

Disassembly:
mov eax, 0x437fc2
call fcn.00436808
push ecx
push ecx
mov eax, ecx
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
cmp dword [eax + 0xbc], esi
jne 0x4106e4
push ebx
push edi
push 0x58
call fcn.0041a3cf
push 0x58
mov ebx, eax
push esi
push ebx
mov dword [ebp - 0x14], ebx
call fcn.0041d850
add esp, 0x10
lea ecx, [ebx + 0xc]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 0x10], eax
push 0xf
pop edx
mov dword [ecx + 0x14], edx
mov byte [ecx], al
mov dword [ebp - 4], eax
lea edi, [ebx + 0x28]
mov dword [edi], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov byte [edi], al
mov byte [ebp - 4], 1
lea esi, [ebx + 0x40]
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov byte [esi], al
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [eax + 0xb8]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 8], eax
call fcn.00405641
mov ax, word [ebp + 0xc]
mov ecx, edi
push dword [ebp + 0x10]
mov word [ebx + 0x24], ax
call fcn.00405641
push dword [ebp + 0x18]
mov ecx, esi
call fcn.00405641
xor esi, esi
push esi
push esi
push ebx
push 0x4104b3
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x10]
test eax, eax
push 1
mov dword [ecx + 0xbc], eax
pop eax
pop edi
cmovne esi, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x4119e4
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
mov eax, 0x438399
call fcn.00436808
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
mov byte [ebp - 4], 1
lea esi, [edi + 0x10]
mov dword [ebp + 8], esi
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov byte [ebp - 4], 2
mov dword [esi + 0xc], ecx
mov byte [ebp - 4], 4
lea eax, [edi + 0x20]
mov dword [ebp - 0x14], eax
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov byte [ebp - 4], 5
mov dword [eax + 0xc], ecx
mov byte [ebp - 4], 7
lea eax, [ebp + 0x10]
mov dword [edi + 0x30], ecx
mov byte [edi + 0x34], cl
lea ecx, [edi + 0x38]
push eax
call fcn.0041147b
mov byte [ebp - 4], 8
lea ecx, [edi + 0x70]
mov al, byte [ebp + 0xc]
mov byte [edi + 0x60], al
push 8
mov byte [edi + 0x68], 8
call fcn.00409fed
mov byte [ebp - 4], 9
lea eax, [ebp + 0xf]
push eax
mov ecx, esi
mov byte [ebp + 0xf], 1
call fcn.00412085
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004111c0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 0x30
Function at 0x417759
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x20]
mov ebp, edx
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
mov edi, dword [edi]
test edi, edi
je 0x417791
test esi, esi
je 0x417791
mov al, byte [edi + ebx]
xor al, byte [ecx]
mov byte [ebp], al
inc ebp
inc ecx
dec esi
inc edi
mov dword [esp + 0x10], ecx
and edi, 0xf
jne 0x417778
cmp esi, 0x10
jb 0x417813
mov eax, ebp
sub eax, ebx
mov dword [esp + 0x18], eax
mov eax, ecx
sub eax, ebx
mov dword [esp + 0x24], eax
mov eax, esi
shr eax, 4
mov dword [esp + 0x14], eax
shl eax, 4
add ebp, eax
add ecx, eax
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
push dword [esp + 0x28]
push ebx
push ebx
call fcn.00402400
add esp, 0xc
cmp edi, 0x10
jae 0x4177fb
mov edx, dword [esp + 0x24]
lea eax, [edi + ebx]
push 0xf
pop ecx
sub ecx, edi
mov dword [esp + 0x18], eax
shr ecx, 2
mov edi, eax
inc ecx
mov eax, dword [edi]
xor eax, dword [edx + edi]
mov dword [edi + ebp], eax
lea edi, [edi + 4]
sub ecx, 1
jne 0x4177eb
add dword [esp + 0x24], 0x10
sub esi, 0x10
add ebp, 0x10
xor edi, edi
sub dword [esp + 0x14], 1
jne 0x4177c2
mov ebp, dword [esp + 0x1c]
test esi, esi
je 0x417840
push dword [esp + 0x28]
push ebx
push ebx
call fcn.00402400
mov edx, dword [esp + 0x1c]
lea ecx, [edi + ebx]
add esp, 0xc
sub edx, ebx
sub ebp, ebx
add edi, esi
mov al, byte [ecx + edx]
xor al, byte [ecx]
mov byte [ecx + ebp], al
inc ecx
sub esi, 1
jne 0x417832
mov eax, dword [esp + 0x30]
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x417a5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor esi, esi
lea eax, [esp + 0xc]
push eax
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], esi
push eax
push esi
mov ebx, edx
mov dword [esp + 0x1c], esi
mov ebp, ecx
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417ad4
mov ecx, dword [esp + 0xc]
push edi
call fcn.00417967
mov edi, eax
test edi, edi
je 0x417ad3
lea eax, [esp + 0x10]
push eax
push edi
lea eax, [esp + 0x1c]
push eax
push esi
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417acc
mov ecx, dword [esp + 0x1c]
inc esi
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [eax], edi
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
jmp 0x417ad3
mov ecx, edi
call fcn.004179ce
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x41aca8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41ace7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41ace7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41ace7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41ace7
cmp dword [ecx + 0x74], 0xe
jbe 0x41ace7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4299ea
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43e488
push 0x43e480
push str.FlsAlloc
push 0x1e
call fcn.004298d3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x429a1e
push dword [ebp + 8]
mov ecx, esi
call dword [0x43a278]
call esi
jmp 0x429a24
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x429a68
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43e498
push 0x43e490
push str.FlsGetValue
push 0x20
call fcn.004298d3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x429a9f
push dword [ebp + 8]
mov ecx, esi
call dword [0x43a278]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x42e294
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x44e014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x42e2df
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042e433
test al, al
jne 0x42e2d9
sub edx, 2
cmp edx, edi
jne 0x42e2bf
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42e301
lea eax, [edi + 2]
cmp edx, eax
je 0x42e301
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042e1e0
add esp, 0x10
jmp 0x42e3fb
push esi
lea ecx, [ebp - 0x255]
call fcn.0042e433
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42e344
push dword [ebp - 0x25c]
jmp 0x42e2f1
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x42e381
cmp word [ebp - 0x226], 0
je 0x42e3a2
cmp word [ebp - 0x226], ax
jne 0x42e381
cmp word [ebp - 0x224], 0
je 0x42e3a2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042e1e0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42e3ee
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42e35b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x42e3d6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42e3fb
push 0x42e010
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00434c20
add esp, 0x10
jmp 0x42e3cb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a8d5
leave
ret
Function at 0x436280
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4362ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4362ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x46ef1d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x46ef3e
jl 0x46ef35
test edi, edi
jne 0x46ef3e
xor eax, eax
xor edx, edx
jmp 0x46efff
cmp dword [ebx + 0x38], 0
je 0x46ef53
push eax
push edi
push dword [ebp + 8]
call fcn.0045bb80
jmp 0x46efff
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x46ef9a
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x46ef9a
cmp eax, edi
jb 0x46ef74
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00473420
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x46efa0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x46eff4
mov ecx, ebx
call fcn.0046e888
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x46efdf
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0047c682
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x46eff4
jmp 0x46efb2
test edx, edx
je 0x46eff4
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0047c682
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x4715d3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x471612
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x471612
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x471612
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x471612
cmp dword [ecx + 0x74], 0xe
jbe 0x471612
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x48327a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4962f8
push 0x4962f0
push str.FlsAlloc
push 0x1f
call fcn.00483142
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4832ae
push dword [ebp + 8]
mov ecx, esi
call dword [0x4911bc]
call esi
jmp 0x4832b4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4832f8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x496308
push 0x496300
push str.FlsGetValue
push 0x21
call fcn.00483142
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48332f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4911bc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x483337
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x496310
push 0x496308
push str.FlsSetValue
push 0x22
call fcn.00483142
mov esi, eax
add esp, 0x10
test esi, esi
je 0x483371
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4911bc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]