joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006f825
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10079330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1006062c
mov dword [ebp - 0x14], eax
cmp dword [0x1066615c], esi
jne 0x1006f918
push 0x800
push esi
push 0x1000795c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1006f8a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1006f9f8
push esi
push esi
push 0x1000795c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1006f9f8
push 0x10007974
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1006f9f8
push eax
call ebx
push 0x10007980
push edi
mov dword [0x1066615c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007990
push edi
mov dword [0x10666160], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100079a4
push edi
mov dword [0x10666164], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1066616c], eax
test eax, eax
je 0x1006f915
push 0x100079c0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10666168], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1006f93d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1006f930
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1006f952
push 4
pop eax
jmp 0x1006f9fa
cmp dword [ebp - 0x14], esi
je 0x1006f952
push dword [0x1066615c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1006f937
mov eax, dword [0x10666168]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1006f9b0
cmp dword [0x1066616c], edi
je 0x1006f9b0
push eax
call ebx
push dword [0x1066616c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1006f9b0
test eax, eax
je 0x1006f9b0
call ecx
test eax, eax
je 0x1006f9a5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1006f9a5
test byte [ebp - 8], 1
jne 0x1006f9b0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1006f9e0
mov eax, dword [0x10666160]
cmp eax, edi
je 0x1006f9dd
push eax
call ebx
test eax, eax
je 0x1006f9dd
call eax
mov esi, eax
test esi, esi
je 0x1006f9dd
mov eax, dword [0x10666164]
cmp eax, edi
je 0x1006f9dd
push eax
call ebx
test eax, eax
je 0x1006f9dd
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1066615c]
call ebx
test eax, eax
je 0x1006f9f8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1006f9fa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x43c2e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x43c32d
call fcn.00439647
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x43c32d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x43c370
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x43c359
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x43c359
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x43c36d
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x440099
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4400d4
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4400bb
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4400cc
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4400d6
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4400b1
xor eax, eax
pop edi
pop esi

Function at 0x44034d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
dec dword [ecx + 0x5d880c4d]
ror byte [eax + 0x45c6c15d], 0xc2
in al, dx
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00440059
imul esi, dword [ecx + 0x458d6900], 0xffffffc0
push eax
call fcn.00440069
push eax
push esi
push dword [ebp + 8]
call fcn.0044001e
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.00440059
inc edx
xchg ebx, eax
xchg byte [ecx - 0x73], al
inc ebp
call 0x512c614f
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6

Function at 0x4403d9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00440069
push eax
Function at 0x440407
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
push dword [ebp + 8]
call fcn.0044001e
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
invalid

Function at 0x440441
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
lahf
adc esi, eax
inc ebp
mov al, byte [0xa145c633]
mov byte cs:[ebp - 0x5e], 0x35

Function at 0x440bd9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp + 0x14]
call fcn.0044001e
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
mov byte [ebp - 0x51d], 0x9a
mov byte [ebp - 0x51c], 0xac
mov byte [ebp - 0x51b], 0x98
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
push eax
call fcn.00440069
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0044001e
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.00440059
stosb byte es:[edi], al
jne 0x440c29
sbb al, byte [eax - 0x5135b]
inc dword [eax]
and byte [ebp - 0x513], 0
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
invalid
test edx, edi
cli

Function at 0x44146f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x4414af
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x441459
call fcn.00440059
invalid
invalid

Function at 0x441df0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x7bc], 0
and byte [ebp - 0x7bb], 0
mov byte [ebp - 0x7ba], 2
and byte [ebp - 0x7b9], 0
mov byte [ebp - 0x7b8], 0xa1
mov byte [ebp - 0x7b7], 0xb2
push dword [edx - 0x7b57a3a]
invalid
push dword [ecx - 0x7b47a3a]
invalid
invalid
mov eax, 0xf84c85c6
invalid
dec edi
mov byte [ebp - 0x7b3], 0xce
mov byte [ebp - 0x7b2], 0xd3
mov byte [ebp - 0x7b1], 0x99
mov byte [ebp - 0x7b0], 0x91
mov byte [ebp - 0x7af], 0x91
mov byte [ebp - 0x7ae], 0xfd
call fcn.00440059
movsd dword es:[edi], dword [esi]
loope 0x441ec7
mov byte [0x858d0b6a], al
inc esp
clc
invalid
clc
invalid
Function at 0x4496bb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x449702
call fcn.00439647
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x449702
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x44971e
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004491bb
mov esi, eax
test edi, edi
je 0x44971c
test ebx, ebx
je 0x44971c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x44f11b
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5c9030]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x44f150
xor eax, eax
jmp 0x44f1a3
lea eax, [ebp - 0x210]
push eax
call fcn.00537ff9
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x44f181
push 0x599930
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0053babc
add esp, 0xc
test eax, eax
jne 0x44f14c
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0053babc
add esp, 0xc
test eax, eax
jne 0x44f14c
lea eax, [ebp - 0x210]
push eax
call fcn.0043a8c8
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0053792d
leave
ret

Function at 0x45fc32
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0045f8d6
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x45fc7c
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041698b
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004169ae
jmp 0x45fc87
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00450ab9
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x45fc8d
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0043b3b8
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x45fcca
call fcn.0045f8d6
mov dword [esi + 0xc], 1
jmp 0x45fccf
call fcn.0045f8d6
cmp dword [esi], 0
je 0x45fd18
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x45fcf0
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041698b
jmp 0x45fd02
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.0040260f
push pe_nt_image_headers32
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004169ae
jmp 0x45fd3c
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x45fd3c
push dword [esi]
push dword [ebp + 8]
call fcn.00450ab9
pop esi
pop ebp
ret 0xc

Function at 0x48758e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00439647
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4875c7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004871cb
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x487625
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x487649
cmp dword [edi + 0x74], 0
jne 0x487649
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00439647
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004875e6
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4013b7
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 1], 0x3a
jne 0x4013f1
cmp byte [eax + 2], 0x5c
jne 0x4013f1
push esi
push 3
push eax
mov esi, 0x4329cc
push esi
call fcn.00415100
and byte [0x4329cf], 0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
pop esi
jne 0x4013f1
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x40143b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401460
test al, 0x10
je 0x401460
xor eax, eax
inc eax
jmp 0x401525
push ebx
push esi
push 0x8000
push edi
call fcn.00415825
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, eax
cmp esi, 0xffffffff
pop ecx
pop ecx
je 0x4014c5
push 2
push 0
push esi
call fcn.00415493
push esi
mov dword [0x429840], eax
call fcn.00415384
add esp, 0x10
cmp dword [0x429840], 0x7fff8000
jbe 0x4014c1
movsx eax, byte [0x429bb1]
push eax
push eax
push eax
push edi
lea eax, [ebp - 0x168]
push str.Size_of_file___s__exceeds_2_c147_c450_c880_bytes_CAB_limit
push eax
call fcn.004152a9
add esp, 0x18
jmp 0x4014ff
xor eax, eax
jmp 0x401523
push edi
lea eax, [ebp - 0x168]
push str.Cant_open__s_n
push eax
call fcn.004152a9
add esp, 0xc
call fcn.00415224
mov eax, dword [eax]
dec eax
dec eax
je 0x4014f1
sub eax, 0xb
jne 0x4014c1
push str.Permission_denied
jmp 0x4014f6
push str.File_not_exist
lea eax, [ebp - 0x168]
push eax
call ebx
push str.._nSkip_this_file_
lea eax, [ebp - 0x168]
push eax
call ebx
push 0x24
pop edx
lea ecx, [ebp - 0x168]
call fcn.004011a2
sub eax, 6
neg eax
sbb eax, eax
inc eax
pop esi
pop ebx
pop edi
leave
ret
Function at 0x40306a
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push esi
mov esi, dword [ebp + 8]
push 0x5c
push esi
call fcn.00415070
and dword [ebp - 8], 0
pop ecx
pop ecx
mov ecx, eax
inc eax
test ecx, ecx
mov dword [ebp - 4], eax
jne 0x403092
mov dword [ebp - 4], esi
push 0x423230
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x14c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x4031c8
mov esi, dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
mov ebx, 0x429664
test byte [ebp - 0x14c], 0x10
je 0x40322b
cmp byte [ebp - 0x120], 0x2e
jne 0x403106
cmp byte [ebp - 0x11f], 0
je 0x403287
cmp byte [ebp - 0x11f], 0x2e
jne 0x403106
cmp byte [ebp - 0x11e], 0
je 0x403287
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [0x43272e], 0
je 0x403188
lea edx, [ebp - 0x120]
mov ecx, 0x429bc0
call fcn.004011b7
test eax, eax
jne 0x403144
lea edx, [ebp - 0x1c]
mov ecx, 0x429bc0
call fcn.004011b7
test eax, eax
je 0x403188
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x138]
push eax
call esi
push 0x4329d0
push ebx
lea eax, [ebp - 0x148]
push eax
call edi
push dword [ebp + 8]
xor eax, eax
mov al, byte [ebp - 0x14c]
and eax, 0x37
mov word [0x429bac], ax
call fcn.00402bc9
test eax, eax
pop ecx
jne 0x4031b6
mov dword [ebp - 8], 1
test byte [0x432734], 2
je 0x403287
push 0x42322c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 8]
call fcn.0040306a
dec eax
pop ecx
je 0x4031d4
dec eax
jne 0x403287
mov dword [ebp - 8], 2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop ebx
mov eax, dword [ebp - 4]
and byte [eax], 0
mov eax, dword [ebp - 8]
pop esi
leave
ret
cmp byte [0x43272e], 0
je 0x403287
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x138]
push eax
call esi
push 0x4329d0
push ebx
lea eax, [ebp - 0x148]
push eax
call edi
xor eax, eax
mov al, byte [ebp - 0x14c]
push 0x5c
push dword [ebp - 4]
and eax, 0x37
mov word [0x429bac], ax
call fcn.00415070
push dword [ebp + 8]
and byte [eax], 0
call fcn.00402bc9
add esp, 0xc
jmp 0x403278
cmp byte [0x427e68], 0
jne 0x403287
lea edx, [ebp - 0x120]
mov ecx, 0x429bc0
call fcn.004011b7
test eax, eax
jne 0x403259
lea edx, [ebp - 0x1c]
mov ecx, 0x429bc0
call fcn.004011b7
test eax, eax
je 0x403287
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
push 0x432880
call fcn.00402b62
pop ecx
pop ecx
test eax, eax
jne 0x4031b6
mov dword [ebp - 8], 1
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4030cd
jmp 0x4031bd
Function at 0x405006
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
xor ebx, ebx
push ebx
push 0x3e8
push dword [0x42980c]
push dword [0x429808]
call fcn.00414f00
push dword [0x429524]
push dword [0x429520]
push edx
push eax
call fcn.004174d0
push ebx
push dword [0x432898]
mov esi, eax
lea eax, [ebp - 0x118]
push eax
call fcn.00404ca4
push ebx
push dword [0x432728]
lea eax, [ebp - 0xf8]
push eax
call fcn.00404ca4
push 0xa
pop ecx
mov eax, esi
cdq
idiv ecx
lea ecx, [ebp - 0xf8]
push ecx
lea ecx, [ebp - 0x118]
push ecx
movsx ecx, byte [0x429bb0]
mov esi, 0x429686
push edx
push ecx
push eax
push str._d_c_d_____s_of__s_
push esi
call fcn.004152a9
add esp, 0x1c
test byte [0x429674], 2
je 0x4050b2
push 0x429680
push dword [0x42955c]
call dword [sym.imp.USER32.dll_SetWindowTextA]
test byte [0x429674], 4
je 0x405180
cmp dword [ebp + 8], ebx
je 0x405167
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
cmp edi, 0x100
jge 0x405166
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CharToOemA]
mov eax, 0xff
sub eax, edi
push eax
lea eax, [ebp + edi - 0x118]
push 0x20
push eax
call fcn.004150a0
add esp, 0xc
cmp edi, ebx
lea eax, [ebp - 0x118]
mov byte [ebp - 0x19], bl
push eax
je 0x40511f
push str._n_____s_r
jmp 0x405124
push 0x423358
call fcn.00416ccd
pop ecx
pop ecx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
cmp word [ebp - 0x18], bx
je 0x405155
movsx ecx, word [ebp - 0x18]
mov eax, 0x103
cdq
idiv ecx
inc eax
jmp 0x405158
push 4
pop eax
sub word [ebp - 0x12], ax
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
pop edi
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemA]
push 0x429680
push str._s___r
call fcn.00416ccd
pop ecx
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x41727a
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x417296
call fcn.00415224
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x417308
push esi
push 0x88
push 1
call fcn.0041ab05
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4172ee
push esi
call fcn.004180c7
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x4171da
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x4172e6
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x417305
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00416768
test ebx, ebx
pop ecx
je 0x417300
push ebx
call fcn.00415236
pop ecx
or eax, 0xffffffff
jmp 0x417307
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x4178f2
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x424698
call fcn.00419180
mov edi, 0x94
mov eax, edi
call fcn.00415d90
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x428fdc], ecx
mov eax, dword [esi + 4]
mov dword [0x428fe8], eax
mov edx, dword [esi + 8]
mov dword [0x428fec], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x428fe0], esi
cmp ecx, 2
je 0x417952
or esi, 0x8000
mov dword [0x428fe0], esi
shl eax, 8
add eax, edx
mov dword [0x428fe4], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x41798b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41798b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4179a3
cmp eax, 0x20b
je 0x417990
mov dword [ebp - 0x1c], edi
jmp 0x4179b7
cmp dword [ecx + 0x84], 0xe
jbe 0x41798b
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4179b1
cmp dword [ecx + 0x74], 0xe
jbe 0x41798b
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00419c9e
pop ecx
test eax, eax
jne 0x4179cb
push 0x1c
call fcn.004178ce
pop ecx
call fcn.004182b6
test eax, eax
jne 0x4179dc
push 0x10
call fcn.004178ce
pop ecx
call fcn.0041b167
mov dword [ebp - 4], edi
call fcn.00418c61
test eax, eax
jge 0x4179f5
push 0x1b
call fcn.004178a9
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4351a0], eax
call fcn.0041b045
mov dword [0x428fbc], eax
call fcn.0041afa3
test eax, eax
jge 0x417a1b
push 8
call fcn.004178a9
pop ecx
call fcn.0041ad70
test eax, eax
jge 0x417a2c
push 9
call fcn.004178a9
pop ecx
call fcn.00419349
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x417a3f
push eax
call fcn.004178a9
pop ecx
mov eax, dword [0x428ffc]
mov dword [0x429000], eax
push eax
push dword [0x428ff4]
push dword [0x428ff0]
call fcn.0040930c
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x1c], edi
jne 0x417a6e
push esi
call fcn.00419481
call fcn.004194a3
jmp 0x417aa0
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.004191bb
ret