joyce8/EMBER2024-capa huggingface dataset:
Function at 0x531a65
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 0x531b7d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x531b7d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0056bee8
mov esi, eax
test esi, esi
je 0x531b7d
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 0x531b7d
mov ecx, esi
call fcn.005319f0
cmp edi, eax
jge 0x531b7d
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 0x531b03
mov dword [esp + 0x34], 1
jmp 0x531b5e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x531b7d
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.00530f80
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 0x539eb0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x7e893c]
xor edx, edx
cmp eax, edx
jne 0x539ed6
xor eax, eax
mov byte [eax + 0x7e883c], al
inc eax
cmp eax, 0x100
jl 0x539ebe
mov dword [0x7e893c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x7e883c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x539f67
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 0x539f3a
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 0x539f08
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x539fe0
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 0x53a033
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 0x53a01a
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 0x5409e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5796ee
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.00541300
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x6d0ca4
call fcn.0056a1fe
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x540a73
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0056a1fe
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x540a6c
push 0
mov ecx, eax
call fcn.00537ae0
mov dword [esi + 0xc], eax
jmp 0x540a75
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x540a75
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 0x56c88b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x56c8c3
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.0056a918
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0056a8f0
jmp 0x56c8cf
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x56df85
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 0x56dfc7
call fcn.00573a35
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x56dfc7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x56dfbe
xor eax, eax
jmp 0x56dfcf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0056dfd5
pop edi
pop esi
pop ebx
ret 4
Function at 0x573f65
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 0x573f93
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x573fb1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00573ecb
jmp 0x573fb1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x573fb1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00573ecb
test edi, edi
mov eax, edi
jne 0x573f9b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x100317b
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x1007a5c
sub al, 0x20
jmp 0x1007a5c
push esi
push edi
push ebx
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
jmp 0x100765a
mov esi, dword [edx + 0x28]
mov ecx, 0x18
xor edi, edi
jmp 0x1001046
ror edi, 0xd
add edi, eax
dec ecx
jne 0x1001046
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x100765a
mov eax, ebx
pop ebx
pop edi
pop esi
ret
Function at 0x1003c73
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x24]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
add eax, 0xf8
mov dword [ebp - 0x44], eax
mov ecx, 8
imul ecx, ecx, 0
mov edx, dword [ebp - 0x20]
lea eax, [ecx + edx + 0x78]
mov dword [ebp - 0x18], eax
mov ecx, 8
imul ecx, ecx, 0
mov edx, dword [ebp - 0x18]
cmp dword [ecx + edx], 0
je 0x1002398
mov eax, 8
imul eax, eax, 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax + ecx]
mov dword [ebp - 0x1c], edx
mov eax, 8
imul eax, eax, 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax + ecx + 4]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], 0
jmp 0x100d123
xor eax, eax
jmp 0x100d662
push ebp
mov ebp, esp
sub esp, 0x84
cmp dword [ebp + 8], 0
jne 0x1001065
xor eax, eax
jmp 0x100d662
jmp 0x10071fe
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x2e
je 0x100c1a2
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x1005537
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x100d123
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x10]
mov byte [edx], 0
lea eax, [ebp - 0x84]
push eax
call dword [0x4131f4]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0100c042
push eax
mov edx, dword [ebp - 0x38]
push edx
call fcn.01003c73
jmp 0x100d662
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x14]
jae 0x1002398
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 0x18]
jae 0x10041d1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0100c042
cmp eax, dword [ebp + 0xc]
jne 0x10041d1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], ecx
jb 0x10008e8
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x30]
cmp dword [ebp - 0x14], edx
jae 0x10008e8
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov ecx, 1
imul ecx, ecx, 0
lea edx, [ecx + ebp - 0x84]
mov dword [ebp - 0x10], edx
jmp 0x1005537
mov esp, ebp
pop ebp
ret 8
Function at 0x1004d00
Capabilities:
Hash data with crc32

Disassembly:
cmp dword [ebp - 0xc], 0
jle 0x100b7a2
mov eax, dword [ebp - 4]
and eax, 1
je 0x1003b76
mov ecx, dword [ebp - 4]
shr ecx, 1
xor ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
jmp 0x1002fc0
jmp 0x100caa3
mov edx, dword [ebp - 4]
shr edx, 1
mov dword [ebp - 4], edx
jmp 0x1002fc0
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0xedb88320
mov dword [ebp - 8], 0
jmp 0x100dd3c
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x100dd3c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [eax*4 + 0x46cff0], ecx
jmp 0x1008b19
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
jmp 0x1001565
cmp dword [ebp - 8], 0x100
jge 0x10072ea
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 8
jmp 0x1001565

Function at 0x1007121
Capabilities:
Check os version

Disassembly:
cmp dword [0x46cf80], 0
je 0x1006f2c
mov dword [ebp - 4], 3
jmp 0x100b2be
lea edx, [ebp - 0x114]
push edx
call fcn.01007d5b
add esp, 4
push 0
push 0x30000080
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x114]
push eax
call dword [0x413030]
mov dword [0x46cfec], eax
cmp dword [0x46cfec], 0xffffffff
jne 0x1007c0d
xor eax, eax
jmp 0x100b793
call fcn.0100a0fc
test eax, eax
jne 0x100b613
xor eax, eax
jmp 0x100b793
push 0x46c2dc
push 1
call fcn.0100b73b
add esp, 8
mov dword [0x46c2d8], eax
jmp 0x1002472
mov dword [ebp - 4], 2
jmp 0x100b2be
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
call dword [0x41303c]
push eax
call 0x1000f2c
add esp, 4
movzx ecx, al
mov dword [0x46cf80], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xa4]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 5
je 0x100595c
jmp 0x10023c9
push 0
lea ecx, [ebp - 0x10]
push ecx
push 8
push 0x46cb40
push 0
push 0
push 0x7405c
mov edx, dword [0x46cfec]
push edx
call dword [0x46cfc8]
test eax, eax
jne 0x1009238
xor eax, eax
jmp 0x100b793
mov eax, dword [0x46cb40]
mov edx, dword [0x46cb44]
mov cl, 9
call fcn.01004b2b
mov dword [0x46cb48], eax
mov dword [0x46cb4c], edx
mov eax, dword [0x46cfec]
push eax
call fcn.0100b1ea
add esp, 4
push 0x46c530
call 0x1000714
add esp, 4
test eax, eax
jne 0x100b0de
xor eax, eax
jmp 0x100b793
call fcn.0100c9c6
mov dword [0x46cb50], eax
mov dword [0x46cb54], edx
mov ecx, dword [0x46cb50]
or ecx, dword [0x46cb54]
jne 0x1003194
mov edx, dword [ebp - 8]
cmp dword [edx + 0xa4], 5
jne 0x100bff2
mov eax, dword [0x46cb48]
sub eax, 0x800
mov ecx, dword [0x46cb4c]
sbb ecx, 0
mov dword [0x46cb50], eax
mov dword [0x46cb54], ecx
jmp 0x1003194
push 0x46c2dc
mov ecx, dword [ebp - 4]
push ecx
call fcn.0100b73b
add esp, 8
mov dword [0x46c2d8], eax
jmp 0x1002472
mov edx, dword [0x46cfec]
push edx
call dword [0x46cfe0]
mov eax, 1
jmp 0x100b793
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x100b793

Function at 0x100a2a4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
call fcn.0100c5f6
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xa4], 5
jbe 0x1000fd2
call fcn.01003769
jmp 0x1000fd2
Function at 0x100ad23
Capabilities:
Hash data using jshash

Disassembly:
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x1003b87
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0xc]
jae 0x1003160
mov esi, dword [ebp - 4]
shl esi, 5
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
push ecx
call fcn.0100bd11
add esp, 4
add esi, eax
mov edx, dword [ebp - 4]
shr edx, 2
add esi, edx
xor esi, dword [ebp - 4]
mov dword [ebp - 4], esi
jmp 0x1001d83
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 4], 0x4e67c6a7
mov dword [ebp - 8], 0
mov dword [ebp - 8], 0
jmp 0x1003b87

Function at 0x100b06b
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
lodsb al, byte [esi]
mov ebx, edx
shl ebx, 5
add eax, ebx
mov ebx, edx
shr ebx, 2
add eax, ebx
xor edx, eax
dec ecx
cmp ecx, 0
jne 0x1002359
mov eax, edx
pop esi
pop edx
pop ecx
pop ebx
pop ebp
ret 4
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push esi
mov esi, dword [ebp + 8]
mov edx, 0x4e67c6a7
mov ecx, 0x10
jmp 0x1002359

Function at 0x100dd11
Capabilities:
Encode data using xor

Disassembly:
lodsb al, byte [esi]
xor dl, al
shl edx, 1
dec ecx
jne 0x1009df3
mov eax, edx
pop esi
pop edx
pop ecx
pop ebp
ret 8
push ebp
mov ebp, esp
push ecx
push edx
push esi
mov edx, 0
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp + 8]
jmp 0x1009df3
Function at 0x4011f7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
push edi
mov ebx, 0x1f4
push eax
push ebx
push 2
push 0
push 0
push 0x10
mov esi, ecx
call fcn.00401a7a
mov edi, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
push eax
call edi
push 0x7d0
mov ecx, esi
call fcn.004011c7
mov ecx, esi
call fcn.0040117b
test al, al
je 0x401260
lea eax, [ebp - 4]
mov ecx, esi
push eax
push ebx
push 2
push 0
push 0xf060
push 0x112
call fcn.00401a7a
push eax
call edi
push 0x3e8
mov ecx, esi
call fcn.004011c7
mov ecx, esi
call fcn.0040117b
test al, al
je 0x40128e
lea eax, [ebp - 4]
mov ecx, esi
push eax
push ebx
push 2
push 0
push 0
push 0x12
call fcn.00401a7a
push eax
call edi
push 0x3e8
mov ecx, esi
call fcn.004011c7
mov ecx, esi
call fcn.0040117b
test al, al
je 0x4012bc
lea eax, [ebp - 4]
mov ecx, esi
push eax
push ebx
push 2
push 0
push 0
push 2
call fcn.00401a7a
push eax
call edi
push 0x3e8
mov ecx, esi
call fcn.004011c7
mov esi, dword [esi + 0x10]
test esi, esi
je 0x4012cc
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401c2f
Capabilities:
Get common file path

Disassembly:
sub esp, 0x140
push ebx
push esi
push edi
mov esi, ecx
call fcn.004025a3
and dword [esi + 0x130], 0
and dword [esi + 8], 0
and dword [esi + 0xc], 0
lea eax, [esi + 0x134]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call fcn.00401d5e
mov ecx, esi
call fcn.004024b9
lea edi, [esi + 0x24]
push ebx
push edi
call fcn.00401d44
mov ebx, 0x42d45c
push ebx
push edi
call fcn.0041c590
add esp, 0x10
jmp 0x401ca1
push ebx
push edi
call fcn.0041c590
inc eax
push eax
push edi
call fcn.0041cd30
push ebx
push edi
call fcn.0041c590
add esp, 0x18
test eax, eax
jne 0x401c88
mov ebx, 0x42d458
push ebx
push edi
call fcn.0041c590
pop ecx
pop ecx
jmp 0x401cce
push ebx
push edi
call fcn.0041c590
inc eax
push eax
push edi
call fcn.0041cd30
push ebx
push edi
call fcn.0041c590
add esp, 0x18
test eax, eax
jne 0x401cb5
push edi
call fcn.0041ccb0
lea eax, [eax + esi + 0x21]
mov dword [esp], 0x42d454
push eax
call fcn.0041cd30
pop ecx
lea eax, [esp + 0x10]
pop ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401d0b
push 0x42d448
push edi
call fcn.0041cd30
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push edi
mov ecx, esi
call fcn.004025be
lea eax, [esi + 0x128]
mov ecx, esi
push eax
call fcn.004025ba
push eax
push esi
push 0x42d42c
mov ecx, esi
call fcn.00401091
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x140
ret
Function at 0x402065
Capabilities:
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
push ebx
push esi
push edi
push 0x44
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x4c]
push ebx
push eax
mov edi, ecx
call fcn.0041ce70
push dword [edi + 0x130]
lea eax, [ebp - 0xc4c]
mov dword [ebp - 0x4c], esi
push dword [ebp + 8]
push 0x42d534
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [edi + 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [edi + 0x134]
push eax
push ebx
push 4
push ebx
push ebx
lea eax, [ebp - 0xc4c]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [edi + 0x18]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x402193
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 8], ebx
push dword [esi]
push dword [esi + 8]
push dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x402137
push dword [edi + 0x128]
lea ecx, [ebp - 0x44c]
call fcn.004120ad
cmp dword [esi], ebx
mov dword [ebp + 8], ebx
jbe 0x402144
lea ecx, [ebp - 0x44c]
call fcn.0040114f
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 8]
add ecx, edx
sub byte [ecx], al
inc edx
cmp edx, dword [esi]
mov dword [ebp + 8], edx
jb 0x402118
jmp 0x402144
push 0x42d514
push ebx
call fcn.0041203f
pop ecx
pop ecx
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
push dword [esi]
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp dword [0x435374], ebx
je 0x40218a
mov ecx, edi
call fcn.00402230
push 0x42d4c0
push dword [edi + 0x18]
call fcn.004021a3
pop ecx
push eax
call fcn.0041203f
push dword [edi + 0x18]
call fcn.00401f4a
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x402212
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x402220
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
ret

Function at 0x402221
Capabilities:
Resume thread

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x40222f
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret
Function at 0x402230
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
mov ebx, ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea edi, [ebx + 8]
mov eax, dword [edi]
test eax, eax
je 0x402253
push eax
call esi
and dword [edi], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x402261
push eax
call esi
and dword [ebx + 0xc], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004052bf
mov ecx, eax
call fcn.00405344
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
call esi
push dword [ebp - 4]
call esi
push 2
push 0
push 2
push edi
mov ecx, ebx
call fcn.004011c3
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp - 8]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
test eax, eax
jne 0x4022d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x808]
push 0x42d578
push eax
call fcn.0041cec8
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 2
push 0
lea eax, [ebx + 0xc]
push 2
push eax
mov ecx, ebx
call fcn.004011c3
push eax
push dword [ebp - 4]
call esi
push eax
call edi
pop edi
pop esi
test eax, eax
pop ebx
jne 0x40231d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x808]
push 0x42d53c
push eax
call fcn.0041cec8
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
leave
ret

Function at 0x4023de
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
push pe_nt_image_headers32
mov dword [ebp + 8], edi
push dword [ebx + 0x2c]
call fcn.00401000
push eax
push edi
call fcn.00401eed
add esp, 0x10
test eax, eax
jne 0x402413
xor al, al
jmp 0x4024b4
movzx ecx, word [esi + 0x14]
mov edi, eax
sub edi, dword [ebp + 8]
and dword [ebp + 8], 0
lea edx, [ecx + esi + 0x18]
movzx ecx, word [esi + 6]
test ecx, ecx
mov dword [ebp - 4], ecx
jle 0x40244d
mov ecx, dword [edx + 0x14]
cmp edi, ecx
jb 0x40243f
mov esi, dword [edx + 0x10]
add esi, ecx
cmp edi, esi
jb 0x40244d
add edx, 0x28
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 4]
jl 0x40242f
mov ecx, dword [edx + 0xc]
sub ecx, dword [edx + 0x14]
mov edx, dword [ebx + 0xc]
add ecx, dword [edx + 0x34]
add ecx, edi
mov dword [0x435370], ecx
cmp dword [eax + 0x100], 0x100
jne 0x40248e
cmp byte [eax + 0x105], 0
jne 0x40248e
add ecx, 0x100
mov dword [0x435378], 0xc
mov dword [0x435374], ecx
jmp 0x4024b2
add ecx, 0x104
push 0x18
mov dword [0x435374], ecx
mov eax, dword [eax + 0x100]
pop ecx
mov dword [0x435378], eax
cmp eax, ecx
jb 0x4024b2
mov dword [0x435378], ecx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret