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

Disassembly:
sub esp, 0x104
push ebx
push esi
mov esi, dword [esp + 0x110]
mov eax, dword [esi + 0x20]
xor ebx, ebx
test eax, eax
push edi
je 0x4785c9
mov edi, dword [0x4a4170]
push ebx
push ebx
push ebx
push ebx
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x34], eax
call edi
mov dword [esi + 0x38], eax
mov ecx, dword [0x4e7cd8]
xor eax, eax
test ecx, ecx
jle 0x478540
lea ecx, [esi + 0x44]
mov edx, dword [esi + 0x24]
inc eax
imul edx, eax
mov dword [ecx - 4], edx
mov edx, dword [esi + 0x34]
mov dword [ecx], edx
mov edx, dword [0x4e7cd8]
add ecx, 8
cmp eax, edx
jl 0x478524
mov ecx, dword [esi + eax*8 + 0x38]
lea edx, [esi + 0xc8]
push edx
push 0
push esi
dec ecx
mov dword [esi + eax*8 + 0x38], ecx
push 0x479210
mov dword [esi + eax*8 + 0x40], 0xffffffff
mov ecx, dword [esi + 0x38]
push 0
push 0
mov dword [esi + eax*8 + 0x44], ecx
call fcn.0044e25b
add esp, 0x18
test eax, eax
mov dword [esi + 0x30], eax
je 0x47862b
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
lea edx, [esi + 0x40]
push edx
mov edx, dword [0x4e7cd8]
inc edx
push edx
push eax
call dword [ecx + 0xc]
mov ebx, eax
test ebx, ebx
je 0x47862b
mov eax, dword [esi + 0x34]
mov edi, dword [0x4a4290]
push eax
call edi
mov ecx, dword [esi + 0x38]
push ecx
call edi
pop edi
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
pop esi
mov eax, ebx
pop ebx
add esp, 0x104
ret
push esi
lea edx, [esp + 0x10]
push str.SynthiaPCM:_.8x
push edx
call dword [0x4a43b8]
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
call dword [0x4a4170]
test eax, eax
mov dword [esi + 0x3c], eax
jne 0x478604
pop edi
pop esi
mov eax, 0x80004001
pop ebx
add esp, 0x104
ret
lea ecx, [esi + 0xc8]
push ecx
push 0
push esi
push 0x4793f0
push 0
push 0
call fcn.0044e25b
add esp, 0x18
test eax, eax
mov dword [esi + 0x30], eax
jne 0x47862b
mov ebx, 0x80004001
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x104
ret

Function at 0x4790a0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x4790ad
xor eax, eax
pop esi
ret
lea eax, [esi + 0xd0]
push eax
push 0
push esi
push 0x479120
push 0
push 0
call fcn.0044e25b
xor ecx, ecx
add esp, 0x18
test eax, eax
setne cl
mov dword [esi + 0xcc], eax
pop esi
mov eax, ecx
ret
Function at 0x48d0f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x131c
call fcn.0044eaf0
mov eax, dword [esp + 0x1320]
push ebx
push ebp
push esi
push edi
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.0048cfc0
sub esp, 8
mov edi, esp
mov eax, 0x48d020
mov dword [edi], eax
push 0
lea edx, [esp + 0x58]
mov ecx, 0x48d080
mov dword [edi + 4], ecx
mov dword [esp + 0x28], edx
push 0
lea eax, [esp + 0x74]
mov edx, fcn.0046d1f0
push eax
lea ecx, [esp + 0x30]
mov dword [edi + 8], edx
mov esi, 0x48d0e0
push ecx
mov dword [edi + 0xc], esi
call fcn.0049f760
add esp, 0x20
test eax, eax
jge 0x48d163
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x131c
ret
lea edx, [esp + 0x5c]
push 0xffffffffffffffff
push edx
call fcn.004a1e10
mov esi, eax
lea eax, [esp + 0x64]
push 0xffffffffffffffff
push eax
call fcn.004a0870
mov ecx, eax
imul ecx, dword [esi + 4]
shl ecx, 1
lea edx, [ecx + 0x24]
mov dword [esp + 0x2c], edx
mov dx, word [esi + 4]
mov esi, dword [esi + 8]
mov eax, 0x10
mov dword [esp + 0x38], eax
mov word [esp + 0x4a], ax
mov word [esp + 0x3e], dx
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x3e]
and eax, 0xffff
shl eax, 4
cdq
and edx, 7
add eax, edx
sar eax, 3
mov word [esp + 0x48], ax
mov eax, dword [esp + 0x48]
and eax, 0xffff
imul eax, esi
add esp, 0x10
mov dword [esp + 0x40], ecx
add ecx, 0x2c
push ecx
push 0
mov dword [esp + 0x20], 0x46464952
mov dword [esp + 0x28], 0x45564157
mov dword [esp + 0x2c], 0x20746d66
mov word [esp + 0x34], 1
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], 0x61746164
call dword [0x4a4184]
mov ebp, eax
test ebp, ebp
jne 0x48d21f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x131c
ret
mov ecx, 0xb
lea esi, [esp + 0x18]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push 1
push 2
push 0
push 0x1000
lea edx, [esp + 0x340]
push edx
lea eax, [esp + 0x74]
push eax
lea ebx, [ebp + 0x2c]
call fcn.004a2240
add esp, 0x1c
test eax, eax
je 0x48d29c
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov edi, ebx
lea esi, [esp + 0x32c]
rep movsd dword es:[edi], dword [esi]
add ebx, eax
lea eax, [esp + 0x10]
push eax
push 1
mov ecx, edx
push 2
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push 0x1000
lea ecx, [esp + 0x340]
push ecx
lea edx, [esp + 0x74]
push edx
call fcn.004a2240
add esp, 0x1c
test eax, eax
jne 0x48d258
lea eax, [esp + 0x5c]
push eax
call fcn.0049f660
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x131c
ret
Function at 0x48da50
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x48daf0
push ebx
push ebp
push esi
mov esi, dword [ecx]
push edi
xor eax, eax
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov edi, dword [ecx + 4]
xor esi, esi
cmp edi, edx
jle 0x48daa2
mov ebp, dword [ecx]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x4ab974]
xor eax, edx
inc esi
cmp esi, edi
jl 0x48da83
xor edx, edx
mov edi, dword [ecx + 0xc]
xor esi, esi
cmp edi, edx
jle 0x48dacb
mov ebp, dword [ecx + 8]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x4ab974]
xor eax, edx
inc esi
cmp esi, edi
jl 0x48daae
mov edx, dword [ecx]
pop edi
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
shr eax, 0x18
pop esi
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x10018790
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10018770
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1001878e
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
or bh, bh
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x100187ec
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x100187d3
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x100187dc
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x100187e6
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x100187c8
inc dword [ebp + 0xc]
invalid
Function at 0x1001daa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0x1000
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0x41334754
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
jne 0x1001db65
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp eax, 1
jne 0x1001db65
lea eax, [ebp - 0x14]
push eax
push 0x1100
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp eax, 1
jne 0x1001db46
push 0
push 0
push 0
push esi
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1001db36
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001db46
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
push 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0
push eax
push esi
xorps xmm0, xmm0
push edi
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10026980
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10021380
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x424
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x430], 0
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.1002aea0
add esp, 0xc
xor ebx, ebx
push esi
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100213df
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10026980
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x430]
mov dword [ebp - 0x430], 0x428
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x1002143a
mov ebx, dword [sym.imp.KERNEL32.dll_Module32NextW]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10021406
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x410]
push eax
push edi
call fcn.1002869f
add esp, 0xc
test eax, eax
je 0x10021454
lea eax, [ebp - 0x430]
push eax
push esi
call ebx
test eax, eax
jne 0x10021401
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10026980
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x41c]
jmp 0x1002143a

Function at 0x100214c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
mov dword [ebp - 0x238], edx
mov esi, ecx
mov byte [ebp - 0x231], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x100215e3
push ebx
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x1002153e
lea esp, [esp]
cmp esi, dword [ebp - 0x228]
je 0x10021538
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
test eax, eax
jne 0x10021520
jmp 0x1002153e
mov esi, dword [ebp - 0x218]
mov dword [ebp - 0x230], 0x22c
jmp 0x10021550
lea eax, [ebp - 0x230]
mov byte [ebp - 0x232], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x100215a8
lea esp, [esp]
cmp esi, dword [ebp - 0x228]
je 0x10021588
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
test eax, eax
jne 0x10021570
jmp 0x100215a8
lea eax, [ebp - 0x20c]
mov byte [ebp - 0x232], 1
push eax
push dword [ebp - 0x238]
call fcn.10028531
add esp, 8
test eax, eax
je 0x100215b9
cmp byte [ebp - 0x232], 0
mov esi, dword [ebp - 0x218]
jne 0x10021550
jmp 0x100215c0
mov byte [ebp - 0x231], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x231], 1
pop ebx
jne 0x100215e3
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10026980
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.10026980
mov esp, ebp
pop ebp
ret
Function at 0x10021600
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push str.GlobalBFURLSM
push 0
push 6
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esi], eax
test eax, eax
jne 0x10021650
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10021632
xor eax, eax
pop esi
pop ebp
ret
push str.GlobalBFURLSM
push 0x400
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi], eax
test eax, eax
je 0x1002162d
push edi
push 0x400
push 0
push 0
push 6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x10021672
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x100217b0
Capabilities:
Create process memory minidump

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
mov edi, edx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10021844
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
xor ecx, ecx
mov dword [ebp - 0x10], eax
push 0
test edi, edi
mov dword [ebp - 0xc], edi
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 1
cmove eax, ecx
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
cmp eax, 1
jne 0x10021844
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10026980
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10026980
mov esp, ebp
pop ebp
ret

Function at 0x10021dd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 1
add edi, 0xffff0000
lea ebx, [ebx]
push 0x40
push 0x3000
push 0x10000
push edi
call ebx
test eax, eax
jne 0x10021e72
inc esi
sub edi, 0x10000
cmp esi, 0x64
jbe 0x10021df0
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x10021e25
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x10021e1c
mov eax, dword [eax + ecx + 0x50]
mov edx, eax
and edx, 0xffff
je 0x10021e46
sub eax, edx
add eax, 0x10000
lea edi, [ecx + 0x10000]
mov esi, 1
add edi, eax
push 0x40
push 0x3000
push 0x10000
push edi
call ebx
test eax, eax
jne 0x10021e72
inc esi
add edi, 0x10000
cmp esi, 0x64
jbe 0x10021e53
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10025c80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov eax, ecx
xor bh, bh
push esi
xor bl, bl
mov dword [esp + 0xc], eax
push edi
test eax, eax
je 0x10025d75
test edx, edx
je 0x10025d75
mov esi, dword [ebp + 8]
test esi, esi
je 0x10025d75
cmp esi, 2
jb 0x10025d29
mov ecx, 0x5a4d
cmp word [edx], cx
jne 0x10025d29
mov ecx, dword [edx + 0x3c]
add ecx, edx
mov edi, ecx
sub edi, edx
lea eax, [edi + 4]
cmp eax, esi
ja 0x10025d25
cmp dword [ecx], 0x4550
jne 0x10025d25
lea eax, [edi + 0x88]
cmp eax, esi
ja 0x10025d25
movzx eax, word [ecx + 4]
mov edx, 0x14c
cmp ax, dx
je 0x10025d05
mov edx, 0x8664
cmp ax, dx
jne 0x10025d25
cmp dword [ecx + 0x7c], 0
jne 0x10025d23
cmp dword [ecx + 0x78], 0
jne 0x10025d23
cmp dword [ecx + 0x84], 0
jne 0x10025d23
cmp dword [ecx + 0x80], 0
je 0x10025d25
mov bl, 1
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
cmp bl, 1
jne 0x10025d61
push 1
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp eax, 1
jne 0x10025d61
mov eax, dword [esp + 0x10]
or eax, dword [esp + 0x14]
jne 0x10025d61
mov bh, bl
mov al, bh
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.10026980
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10026980
mov esp, ebp
pop ebp
ret
Function at 0x409888
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 0x40995b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409974
push ebx
push 0x409980
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 0x409908
mov al, 0x62
call fcn.00409460
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040985c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409911
call fcn.0040985c
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 0x409962
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409a14
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 0x409ac8
jmp 0x409abd
cmp dword [esi + 0x10], 0x1000
jne 0x409aa9
test byte [esi + 0x15], 1
jne 0x409aa9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409a68
cmp eax, 2
je 0x409a68
cmp eax, 0x10
je 0x409a68
cmp eax, 0x20
jne 0x409a7d
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 0x409a7d
mov bl, 1
xor ebp, ebp
jmp 0x409a8e
mov eax, dword [esi]
add eax, ebp
call fcn.00409a0c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409a81
test bl, bl
je 0x409aa9
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 0x409ac8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409a40
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x8929b4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x8929be
pushal
call 0x8929c4
pop ebp
sub ebp, 0x10
sub ebp, 0x4929b4
jmp 0x8929da
mov eax, 0x4929b4
add eax, ebp
add eax, 0x4c
mov ecx, 0x5ff
mov edx, 0x78bf18f4
xor byte [eax], dl
inc eax
dec ecx
jne 0x8929f1
jmp 0x892a04
jg 0x892a3f
jg 0x892a85
enter 0xfffffffffffff4f4, 0xfffffffffffffff4
jne 0x892a43
or al, 0xf4
hlt
pop ecx
into
hlt
fcom st(0)
pushfd
adc al, dh
xor ecx, 0x1c
int1
hlt
invalid
Function at 0x437ed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
ja 0x437f13
call 0x4224e5a1
int3
jbe 0x437f2b
inc ebp
and al, 0x91
pushfd
aas
aad 0x8c
xchg ebp, eax
rcl dword [ebx + 0x5a], cl
add al, 0x7a
inc edx
out dx, eax
and al, 0x82
adc eax, 0xb432c4a1
mov al, 0xc
jp 0x437ece
loope 0x437eb7
push esp
sti
invalid
dec ebp
adc ebp, 0x94f4e513
invalid
invalid

Function at 0x44617c
Capabilities:
Encode data using xor

Disassembly:
xor dword [ecx + 0x65], edx
pop esi
xor ecx, dword [edi + 0x3735f1a6]
xor eax, 0x45340537
invalid
invalid
scasb al, byte es:[edi]

Function at 0x4bd9f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c7478
cmp edx, dword [eax]
je 0x4bda12
add eax, 8
inc ecx
cmp eax, 0x4c7508
jl 0x4bda03
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c7478]
jne 0x4bdb40
mov eax, dword [0x4c9d1c]
cmp eax, 1
je 0x4bdb1a
test eax, eax
jne 0x4bda43
cmp dword [0x4c52c0], 1
je 0x4bdb1a
cmp edx, 0xfc
je 0x4bdb40
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bda7a
lea eax, [ebp - 0x1a4]
push 0x4c1b10
push eax
call fcn.004beb50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bec40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bdabd
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bec40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c1b0c
push edi
call fcn.004bf600
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c1af0
push eax
call fcn.004beb50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004beb60
lea eax, [ebp - 0xa0]
push 0x4c1aec
push eax
call fcn.004beb60
push dword [esi + 0x4c747c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004beb60
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c1ac4
push eax
call fcn.004bf572
add esp, 0x2c
pop edi
jmp 0x4bdb40
lea eax, [ebp + 8]
lea esi, [esi + 0x4c747c]
push 0
push eax
push dword [esi]
call fcn.004bec40
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 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00406448
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040246c
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040246c
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00402164
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00406311
mov dword [0x41203c], eax
call fcn.00406256
test eax, eax
jge 0x402550
push 8
call fcn.00402164
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00402164
pop ecx
push 1
call fcn.00402223
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00402164
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.004023d4
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0057f000
jmp 0x402495