joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f730
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44f763
push esi
call fcn.0045daf0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44f75c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44f7e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44f7d2
mov eax, dword [esi + 8]
test eax, eax
je 0x44f787
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44f7ce
cmp eax, 2
je 0x44f7d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44f77a
cmp eax, 3
je 0x44f7ad
cmp eax, 1
jne 0x44f77a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44f77a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44f77a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044f810
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44f7f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044f810
add esp, 4
pop esi
ret

Function at 0x450090
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4500b1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4500b1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4500b1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x46b280
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x46b323
test eax, eax
jbe 0x46b323
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x46b323
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x46b2ce
xor esi, esi
jmp 0x46b2d4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46b2ff
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0040e750
add esi, eax
push esi
mov ebx, esi
call fcn.0040e750
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x46b2e0
pop ebp
test edi, edi
pop edi
jne 0x46b323
test ebx, ebx
je 0x46b323
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00485ff0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x46b445
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46b55d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46b55d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0049737d
mov esi, eax
test esi, esi
je 0x46b55d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46b55d
mov ecx, esi
call fcn.0046b3d0
cmp edi, eax
jge 0x46b55d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x46b4e3
mov dword [esp + 0x34], 1
jmp 0x46b53e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46b55d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0046a9d0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x470060
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x13dff44]
xor edx, edx
cmp eax, edx
jne 0x470086
xor eax, eax
mov byte [eax + 0x13dfe44], al
inc eax
cmp eax, 0x100
jl 0x47006e
mov dword [0x13dff44], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x13dfe44
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x470117
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4700ea
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4700b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x470190
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4701e3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4701ca
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x476b90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a401e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004774b0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x139ca3c
call fcn.004956be
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x476c23
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004956be
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x476c1c
push 0
mov ecx, eax
call fcn.0046dc90
mov dword [esi + 0xc], eax
jmp 0x476c25
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x476c25
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x497d21
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x497d59
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00495dd8
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00495db0
jmp 0x497d65
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49940f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x499451
call fcn.0049eec6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x499451
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x499448
xor eax, eax
jmp 0x499459
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049945f
pop edi
pop esi
pop ebx
ret 4
Function at 0x49f3f6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49f424
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49f442
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049f35c
jmp 0x49f442
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49f442
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049f35c
test edi, edi
mov eax, edi
jne 0x49f42c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4029c5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push esi
push edi
lea edi, [ebp - 0x25c]
mov ecx, 0x97
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [str.073110116101114110101116082101097100070105108101]
push ecx
call fcn.004013f3
add esp, 8
mov esi, esp
lea edx, [ebp - 0x104]
push edx
mov edi, esp
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp edi, esp
call fcn.00402b65
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00402b65
mov dword [0x40acf8], eax
call fcn.00401d70
test eax, eax
jne 0x402a60
call fcn.00402331
call fcn.0040260d
call fcn.004018cb
xor eax, eax
jmp 0x402b50
mov eax, dword [ebp + 0x10]
push eax
call fcn.00402c80
add esp, 4
test eax, eax
je 0x402a85
push str.start
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00402fa0
add esp, 8
test eax, eax
jne 0x402af1
push 0x44
push 0
lea edx, [ebp - 0x25c]
push edx
call fcn.00403020
add esp, 0xc
mov dword [ebp - 0x230], 1
mov word [ebp - 0x22c], 5
push str.__start
push 0x40abf4
call fcn.00402e90
add esp, 8
mov esi, esp
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x25c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x40abf4
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp esi, esp
call fcn.00402b65
xor eax, eax
jmp 0x402b50
call fcn.00402985
mov byte [ebp - 0x208], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [ebp - 0x208]
push edx
push 0x40abf4
call fcn.00401d9b
add esp, 8
lea eax, [ebp - 0x208]
push eax
call fcn.00402c80
add esp, 4
cmp eax, 0x26
jne 0x402b46
lea ecx, [ebp - 0x208]
push ecx
call fcn.00402075
add esp, 4
jmp 0x40c820
pop edi
pop esi
add esp, 0x25c
cmp ebp, esp
call fcn.00402b65
mov esp, ebp
pop ebp
ret 0x10
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x23bd521b
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xc442f95
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x402d53
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x403488
call fcn.0040323c
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4043a0
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402d98
cmp eax, esi
jne 0x402d8b
xor esi, esi
inc esi
mov edi, esi
jmp 0x402d9b
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x402d6f
xor esi, esi
inc esi
cmp dword [0x4043a4], esi
jne 0x402dad
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x402de7
cmp dword [0x4043a4], ebx
jne 0x402de1
mov dword [0x4043a4], esi
push 0x4011a8
push 0x40119c
call fcn.00402ec2
pop ecx
pop ecx
test eax, eax
je 0x402de7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402ebc
mov dword [0x404034], esi
cmp dword [0x4043a4], esi
jne 0x402e0a
push 0x401198
push 0x401190
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4043a4], 2
test edi, edi
jne 0x402e17
xor eax, eax
mov ecx, 0x4043a0
xchg dword [ecx], eax
cmp dword [0x4043a8], 0
je 0x402e43
push 0x4043a8
call fcn.00403090
pop ecx
test eax, eax
je 0x402e43
push ebx
push 2
push ebx
mov esi, dword [0x4043a8]
mov ecx, esi
call dword [0x40515c]
call esi
push dword [0x404040]
push dword [0x40403c]
push dword [0x404038]
call fcn.00401a43
add esp, 0xc
mov dword [0x404030], eax
cmp dword [0x404048], 0
jne 0x402ea1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x404034], 0
jne 0x402eb5
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x404030]
mov dword [ebp - 4], 0xfffffffe
call fcn.00403284
ret
call fcn.0051b000
jmp 0x402d53

Function at 0x402f94
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4034a8
call fcn.0040340c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x402ff4
cmp eax, 0xffffffff
je 0x402ff4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x402fed
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x402fed
cmp edx, 0x10000000
jae 0x402fed
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 0x402fea
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00403451
ret 4

Function at 0x403040
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 0x40307e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x403076
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x403080
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x403066
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401250
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x3e8
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x4012a8
push eax
push str.Error
push str.Failed_to_open_process.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020e4
mov esp, ebp
pop ebp
ret
push 4
push 0x1000
push 0xd
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
push 0
test esi, esi
jne 0x4012ed
push str.Error
push str.Failed_to_allocate_memory_in_target_process.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
lea eax, [esi - 2]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020e4
mov esp, ebp
pop ebp
ret
push 0xd
push 0x404210
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x40133d
push eax
push str.Error
push str.Failed_to_write_to_process_memory.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x8000
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 0xfffffffd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020e4
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 0
push esi
push str.LoadLibraryA
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
test ebx, ebx
jne 0x4013a7
push eax
push str.Error
push str.Failed_to_create_remote_thread.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x8000
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 4]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020e4
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40140a
cmp dword [ebp - 8], 0
jne 0x40140a
push 0
push str.Error
push str.DLL_injection_failed__LoadLibrary_returned_0.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x8000
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
pop ebx
pop edi
mov eax, 0xfffffffb
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020e4
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004020e4
mov esp, ebp
pop ebp
ret
Function at 0x4029b5
Capabilities:
Parse pe header

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

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00405722
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x405670
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x405613
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x405656
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x40562a
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x405645
test al, 0x40
je 0x40563c
mov ecx, dword [edi + 0x20]
jmp 0x405643
test al, 0x80
je 0x405656
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x405656
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x4055e2
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x40ff55
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00410105
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x410053
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x40fff6
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x410039
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x41000d
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x410028
test al, 0x40
je 0x41001f
mov ecx, dword [edi + 0x20]
jmp 0x410026
test al, 0x80
je 0x410039
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x410039
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x40ffc5
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret