joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412440
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x418e10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor esi, esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], esi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], esi
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x30]
mov ebx, 1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], esi
je 0x4125ef
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x14]
add edx, 0x4c
push edx
call sub.MFC42.DLL_CString::operator_1
push 0xa
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
cmp esi, 0xffffffff
jne 0x4124e3
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0040f300
add esp, 8
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
jmp 0x41253e
lea edx, [esp + 0x30]
push esi
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x30], 2
call fcn.0040f300
add esp, 8
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
inc esi
lea ecx, [esp + 0x1c]
push esi
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
push edx
call ebp
cmp eax, 0xffffffff
je 0x41254e
test al, 0x10
je 0x412562
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4124a4
jmp 0x4125ef
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], ebx
push ecx
mov ecx, edi
call fcn.00410a30
mov eax, dword [esp + 0x34]
test eax, eax
je 0x412585
push 0x3f
lea ecx, [esp + 0x18]
call fcn.0041755e
push 0x12e
mov ecx, edi
call fcn.00410e50
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.004171fe
push ecx
mov byte [esp + 0x30], 4
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x41ed14
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x30], bl
call fcn.00410f40
push 0x41ebfc
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x30]
mov ecx, edi
push eax
mov byte [esp + 0x2c], 5
call fcn.00410c30
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 8
Function at 0x4140f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x418fe9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
push edi
mov dword [esp + 0x18], 0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x124], 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x14]
push 1
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 2
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x41e14c
push eax
call esi
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4141c0
lea eax, [esp + 0xc]
push 0x41e14c
lea ecx, [esp + 0x18]
push eax
push ecx
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x124], 2
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0xc]
push str.UForm_
lea eax, [esp + 0x14]
push edx
push eax
call sub.MFC42.DLL_operator_3
lea ecx, [esp + 0x130]
lea edx, [esp + 0x14]
push ecx
mov bl, 4
push eax
push edx
mov byte [esp + 0x130], bl
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x124], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], 2
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x41e14c
push eax
call esi
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x414289
lea ecx, [esp + 0xc]
push 0x41e14c
lea edx, [esp + 0x14]
push ecx
push edx
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], 2
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x12c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.004171fe
mov dword [esp + 0x18], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x124], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x130]
mov byte [esp + 0x124], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x11c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x416bd0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], 1
mov eax, dword [esi + 4]
test eax, eax
jl 0x416be8
call fcn.00416c20
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
pop esi
test eax, eax
jge 0x416c00
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 1
push 6
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
neg eax
sbb eax, eax
neg eax
dec eax
pop ecx
ret

Function at 0x416c70
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
jge 0x416c88
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8
mov esi, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 8], eax
mov word [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
test esi, esi
mov dword [esp + 0x14], eax
jne 0x416caf
mov dword [esp + 0xc], esi
jmp 0x416ce1
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x416ce1
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x416c7e
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
test eax, eax
jne 0x416cdb
pop edi
pop esi
add esp, 0x10
ret 8
mov edx, dword [eax]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [edi + 4]
lea ecx, [esp + 8]
push 0x10
push ecx
push edx
mov word [esp + 0x16], ax
call dword [sym.imp.WS2_32.dll_bind]
xor ecx, ecx
pop edi
test eax, eax
setl cl
dec ecx
pop esi
mov eax, ecx
add esp, 0x10
ret 8

Function at 0x416d20
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
jge 0x416d38
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 8], eax
push esi
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x416d87
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x416d2e
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
test eax, eax
jne 0x416d81
pop edi
pop esi
add esp, 0x10
ret 8
mov edx, dword [eax]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [edi + 4]
lea ecx, [esp + 8]
push 0x10
push ecx
push edx
mov word [esp + 0x16], ax
call dword [sym.imp.WS2_32.dll_connect]
neg eax
sbb eax, eax
pop edi
neg eax
dec eax
pop esi
add esp, 0x10
ret 8
Function at 0x416df0
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov eax, dword [ecx + 4]
push edi
test eax, eax
mov dword [esp + 4], 1
jge 0x416e06
xor eax, eax
pop edi
pop ecx
ret
push 0
push 0
push eax
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
test edi, edi
jge 0x416e1c
xor eax, eax
pop edi
pop ecx
ret
push esi
push 0x260
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x416e40
mov ecx, eax
call fcn.00416b50
mov esi, eax
test esi, esi
je 0x416e42
mov dword [esi + 4], edi
jmp 0x416e52
xor esi, esi
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esi + 4]
lea eax, [esp + 8]
push 4
push eax
push 1
push 6
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, esi
pop esi
pop edi
pop ecx
ret
Function at 0x430040
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x24000]
push edi
or ebp, 0xffffffff
jmp 0x430062
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x430069
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x430058
mov eax, 1
add ebx, ebx
jne 0x43007b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x430070
jne 0x43008c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x430070
xor ecx, ecx
sub eax, 3
jb 0x4300a0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x430112
mov ebp, eax
add ebx, ebx
jne 0x4300ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4300b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4300dc
inc ecx
add ebx, ebx
jne 0x4300c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4300bd
jne 0x4300d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4300bd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4300fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4300ed
jmp 0x43005e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4300fc
add edi, ecx
jmp 0x43005e
pop esi
mov edi, esi
mov ecx, 0xcc0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43011a
cmp byte [edi], 9
jne 0x43011a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x43011f
lea edi, [esi + 0x2d000]
mov eax, dword [edi]
or eax, eax
je 0x43018e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3e668]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3e6e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43014c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3e6e4]
or eax, eax
je 0x430188
mov dword [ebx], eax
add ebx, 4
jmp 0x430169
call dword [esi + 0x3e6e8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4301bf
cmp al, 0xef
ja 0x4301b2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x430194
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4301a1
popal
jmp 0x417220
Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748

Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4011f3
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.00401a76
mov edi, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
push eax
call edi
push 0x7d0
mov ecx, esi
call fcn.004011c3
mov ecx, esi
call fcn.0040117b
test al, al
je 0x40125c
lea eax, [ebp - 4]
mov ecx, esi
push eax
push ebx
push 2
push 0
push 0xf060
push 0x112
call fcn.00401a76
push eax
call edi
push 0x3e8
mov ecx, esi
call fcn.004011c3
mov ecx, esi
call fcn.0040117b
test al, al
je 0x40128a
lea eax, [ebp - 4]
mov ecx, esi
push eax
push ebx
push 2
push 0
push 0
push 0x12
call fcn.00401a76
push eax
call edi
push 0x3e8
mov ecx, esi
call fcn.004011c3
mov ecx, esi
call fcn.0040117b
test al, al
je 0x4012b8
lea eax, [ebp - 4]
mov ecx, esi
push eax
push ebx
push 2
push 0
push 0
push 2
call fcn.00401a76
push eax
call edi
push 0x3e8
mov ecx, esi
call fcn.004011c3
mov esi, dword [esi + 0x10]
test esi, esi
je 0x4012c8
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401c2b
Capabilities:
Get common file path

Disassembly:
sub esp, 0x140
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040269e
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.00401d5a
mov ecx, esi
call fcn.004024c4
lea edi, [esi + 0x24]
push ebx
push edi
call fcn.00401d40
mov ebx, 0x42c45c
push ebx
push edi
call fcn.0041ba30
add esp, 0x10
jmp 0x401c9d
push ebx
push edi
call fcn.0041ba30
inc eax
push eax
push edi
call fcn.0041c1d0
push ebx
push edi
call fcn.0041ba30
add esp, 0x18
test eax, eax
jne 0x401c84
mov ebx, 0x42c458
push ebx
push edi
call fcn.0041ba30
pop ecx
pop ecx
jmp 0x401cca
push ebx
push edi
call fcn.0041ba30
inc eax
push eax
push edi
call fcn.0041c1d0
push ebx
push edi
call fcn.0041ba30
add esp, 0x18
test eax, eax
jne 0x401cb1
push edi
call fcn.0041c150
lea eax, [eax + esi + 0x21]
mov dword [esp], 0x42c454
push eax
call fcn.0041c1d0
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 0x401d07
push 0x42c448
push edi
call fcn.0041c1d0
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push edi
mov ecx, esi
call fcn.004026b9
lea eax, [esi + 0x128]
mov ecx, esi
push eax
call fcn.004026b5
push eax
push esi
push 0x42c42c
mov ecx, esi
call fcn.00401091
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x140
ret
Function at 0x402061
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.0041c310
push dword [edi + 0x130]
lea eax, [ebp - 0xc4c]
mov dword [ebp - 0x4c], esi
push dword [ebp + 8]
push 0x42c534
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]
mov ecx, edi
call fcn.004025d2
test al, al
jne 0x40219e
push dword [edi + 0x18]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40219e
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 0x402142
push dword [edi + 0x128]
lea ecx, [ebp - 0x44c]
call fcn.00411548
cmp dword [esi], ebx
mov dword [ebp + 8], ebx
jbe 0x40214f
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 0x402123
jmp 0x40214f
push 0x42c514
push ebx
call fcn.004114da
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 [0x434f14], ebx
je 0x402195
mov ecx, edi
call fcn.0040223b
push 0x42c4c0
push dword [edi + 0x18]
call fcn.004021ae
pop ecx
push eax
call fcn.004114da
push dword [edi + 0x18]
call fcn.00401f46
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 0x40221d
Capabilities:
Suspend thread

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

Function at 0x40222c
Capabilities:
Resume thread

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x40223a
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret
Function at 0x40223b
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 0x40225e
push eax
call esi
and dword [edi], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x40226c
push eax
call esi
and dword [ebx + 0xc], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00405339
mov ecx, eax
call fcn.004053c1
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.004148c8
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 0x4022df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x808]
push 0x42c578
push eax
call fcn.0041c368
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.004148c8
push eax
push dword [ebp - 4]
call esi
push eax
call edi
pop edi
pop esi
test eax, eax
pop ebx
jne 0x402328
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x808]
push 0x42c53c
push eax
call fcn.0041c368
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
leave
ret

Function at 0x4023e9
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 0x100
mov dword [ebp + 8], edi
push dword [ebx + 0x2c]
call fcn.00401000
push eax
push edi
call fcn.00401ee9
add esp, 0x10
test eax, eax
jne 0x40241e
xor al, al
jmp 0x4024bf
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 0x402458
mov ecx, dword [edx + 0x14]
cmp edi, ecx
jb 0x40244a
mov esi, dword [edx + 0x10]
add esi, ecx
cmp edi, esi
jb 0x402458
add edx, 0x28
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 4]
jl 0x40243a
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 [0x434f10], ecx
cmp dword [eax + 0x100], 0x100
jne 0x402499
cmp byte [eax + 0x105], 0
jne 0x402499
add ecx, 0x100
mov dword [0x434f18], 0xc
mov dword [0x434f14], ecx
jmp 0x4024bd
add ecx, 0x104
push 0x18
mov dword [0x434f14], ecx
mov eax, dword [eax + 0x100]
pop ecx
mov dword [0x434f18], eax
cmp eax, ecx
jb 0x4024bd
mov dword [0x434f18], ecx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret