joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402bc0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00402543
push 0x414494
lea ecx, [ebp - 0xc]
call fcn.00402594
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402c9c
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00401310
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.00401410
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.00402594
test byte [ebp - 0x25c], 0x10
mov edi, dword [ebp - 0xc]
je 0x402c6b
push 0x414490
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402c7f
push 0x414488
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402c7f
push edi
call fcn.00402bc0
pop ecx
jmp 0x402c7b
push 0
push edi
call esi
test eax, eax
je 0x402cbf
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x402cbf
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402c06
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x402cbf
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x402cbf
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x402cc7
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402ccd
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [0x418810], 0
je 0x402cda
xor eax, eax
inc eax
ret
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402cf0
xor eax, eax
inc eax
pop esi
ret
test al, 0x10
jne 0x402d0e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402d0a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.00402bc0
pop ecx
pop esi
ret

Function at 0x402dc4
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.004013f8
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x402e02
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.0040257c
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi]
and word [eax + esi*2], 0
mov dword [edi + 4], esi
mov eax, edi
pop edi
pop esi
ret
Function at 0x402f57
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call edi
mov esi, dword [ebp + 8]
mov ecx, esi
mov ebx, eax
call fcn.004013f8
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.0040257c
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.0040257c
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.004010fe
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40307e
xor eax, eax
jmp 0x4030d7
test al, 0x10
je 0x40308f
push 0x10
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x4030d7
mov eax, dword [0x418790]
test eax, eax
jne 0x4030a1
push esi
call fcn.00403034
pop ecx
jmp 0x4030d7
cmp eax, 2
jne 0x4030d4
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x403098
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jl 0x403098
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x40339b
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
lea ecx, [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.00402543
xor esi, esi
cmp dword [ebp - 0x10], esi
jg 0x4033cc
push esi
lea ecx, [ebp - 0x18]
call fcn.00401112
movzx eax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x18]
je 0x4033e0
cmp ax, 0x2f
jne 0x4033e9
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 4], ebx
mov esi, ebx
jmp 0x40340f
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x403402
cmp ax, 0x5c
je 0x403402
dec esi
test esi, esi
jg 0x4033ed
test esi, esi
je 0x4034be
and word [edi + esi*2], 0
push edi
call fcn.0040196d
test eax, eax
pop ecx
je 0x4033fe
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x403446
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00403061
test eax, eax
pop ecx
pop ecx
je 0x403446
xor esi, esi
jmp 0x4034e3
push edi
call fcn.0040196d
test eax, eax
pop ecx
jne 0x403460
push edi
push 0xc
push 1
call fcn.00407d88
add esp, 0xc
jmp 0x40343f
cmp esi, ebx
jge 0x4034b2
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x403498
jmp 0x403497
movzx eax, word [edi + esi*2]
cmp ax, 0x5c
je 0x40349e
cmp ax, 0x2f
je 0x40349e
inc esi
cmp word [edi + esi*2], cx
jne 0x403487
push edi
mov word [edi + esi*2], cx
call fcn.0040196d
test eax, eax
pop ecx
je 0x403451
cmp esi, dword [ebp - 4]
jl 0x403464
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x403503
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x4034ee
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x4034ee
cmp ax, 0x7a
ja 0x4034ee
cmp word [ecx + 2], 0x3a
jne 0x4034ee
xor esi, esi
inc esi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x403503
push ecx
push 0xc
push 1
call fcn.00407d88
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403fb0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.004013f8
push 2
mov ecx, esi
call fcn.0040257c
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
mov ecx, dword [esi]
and word [ecx], 0
and dword [esi + 4], 0
test eax, eax
jbe 0x404003
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.0040257c
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.004010fe
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
and dword [ebp + 8], 0
lea ecx, [eax + 0xf]
mov dword [ebp - 4], ecx
lea ebx, [eax + eax]
push dword [ebp - 4]
mov ecx, esi
call fcn.0040257c
push dword [ebp + 8]
add eax, ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esi]
push edi
call fcn.004010fe
and word [edi + eax*2], 0
add esp, 0x10
push dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404058
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x404013
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40405f
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41838c], esi
jle 0x4040b3
mov eax, dword [0x418390]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.004012de
lea eax, [ebp - 0xc]
push eax
call fcn.00403bc6
mov eax, dword [0x418390]
mov eax, dword [eax + esi*4]
pop ecx
push dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
inc esi
cmp esi, dword [0x41838c]
pop ecx
jl 0x404070
pop esi
leave
ret
Function at 0x40446f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
push ebx
push esi
push edi
call fcn.00401f2e
push 3
call fcn.00401f84
push 0x28
mov dword [0x418784], eax
call fcn.00401f84
push 2
mov dword [0x418780], eax
call fcn.00401f84
push 5
mov dword [0x41877c], eax
call fcn.00401f84
push 0x15
mov dword [0x418778], eax
call fcn.00401f84
push 0x16
mov dword [0x418774], eax
call fcn.00401f84
push 0x17
mov dword [0x418770], eax
call fcn.00401f84
add esp, 0x1c
xor ebx, ebx
mov dword [0x41876c], eax
mov dword [0x418764], ebx
mov dword [0x418768], ebx
mov edi, 0x418384
xor esi, esi
push esi
push ebx
lea eax, [ebp - 0x2a4]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404593
push ebx
lea eax, [ebp - 0x98]
push 0x415454
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.004013f8
lea ecx, [ebp - 0xc]
call fcn.004013f8
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401310
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401310
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00402fb3
cmp dword [esi + 0x41835c], ebx
jne 0x404583
push dword [esi + 0x418360]
lea ecx, [ebp - 0x18]
call fcn.00401310
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401310
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00402fb3
add esi, 8
cmp esi, 0x28
jb 0x404553
lea ecx, [ebp - 0x18]
call fcn.0040246c
inc ebx
cmp ebx, 0x40
jl 0x4044ea
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404aae
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.004013f8
lea ecx, [ebp - 0x18]
call fcn.004013f8
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x54]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
xor ebx, ebx
inc ebx
add esp, 0xc
test byte [ebp + 0xc], bl
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], ebx
je 0x404aff
and dword [ebp - 0x38], 0
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x404b0c
mov dword [ebp - 0x48], str.runas
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.004045fe
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00401310
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x404b6f
test dword [ebp + 0xc], 0x10000
jne 0x404b51
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
xor ebx, ebx
jmp 0x404b5a
Function at 0x404eed
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
cmp word [esi + 2], 0x3a
jne 0x40509f
movzx eax, word [esi + 4]
cmp ax, 0x5c
je 0x404f17
cmp ax, 0x2f
jne 0x40509f
mov ax, word [esi]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0x5c
mov word [ebp - 0xa], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x40509f
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00403fb0
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x405069
push edi
lea ecx, [ebp - 0x1c]
call fcn.004013f8
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00401310
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402594
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013c9
mov esi, 0x415514
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402594
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.00402594
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013c9
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00402594
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402594
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013c9
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402594
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004027bd
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x34]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
pop edi
je 0x40507a
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x40507a
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp + 8]
pop ecx
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4050a5
push dword [ebp - 0x28]
call fcn.00402ccd
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x4050a6
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x406b51
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00406b13
add esp, 0x1c
leave
ret
Function at 0x408c88
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x408c90
mov dword [ecx*4 + 0x418960], eax
inc ecx
cmp ecx, 0x100
jb 0x408c8b
mov edx, 0x800
jmp 0x408cdd
mov eax, dword [ecx*4 + 0x418560]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x418960]
inc ecx
mov dword [ecx*4 + 0x41895c], eax
cmp ecx, edx
jb 0x408cbc
mov dword [0x418820], 0x4130a0
call fcn.0040de86
test eax, eax
pop esi
jne 0x408cff
mov dword [0x418820], 0x412fc0
ret
Function at 0x40e025
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e04b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40e04b
xor al, al
jmp 0x40e06b
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00412d80
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x41244e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x412467
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 4], ecx
lea esi, [eax + edi]
jmp 0x41248a
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x41248f
inc esi
cmp esi, dword [ebp - 4]
jb 0x412481
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x412584
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x4124e3
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x4124ba
cmp cl, 0xff
jne 0x41250e
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x41251c
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x412523
dec ecx
shl edx, cl
and edx, 7
je 0x4124ab
movzx ecx, byte [edx + 0x415c9c]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x415c94], 0
mov cl, byte [ebx + 4]
je 0x41250b
test cl, cl
je 0x41250b
cmp cl, 0xff
jne 0x4124ab
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x41247c
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x412557
movzx edi, byte [edx + 0x415c9c]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x412542
cmp al, 0xff
jne 0x412554
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x4124d5
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x41247c
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0xc25d20], 1
mov dword [0xc25d1c], 1
mov dword [0xc25d18], 1
mov dword [0xc25d10], 1
jne 0x401060
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010c0
mov dword [0x616014], eax
mov eax, dword [0xc25d2c]
test eax, eax
je 0x4010b0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0xc25d40]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0xc25d28]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x5d0844], 1
je 0x4010f0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x40107a
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401060
cmp dword [ecx + 0x84], 0xe
jbe 0x401060
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401060
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401060
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401060
Function at 0x406e41
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x406e66
cmp dword [ebp - 0xc], 1
je 0x406f5d
jmp 0x406f58
mov eax, dword [ebp + 0x84]
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 0x80]
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x7c]
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x78]
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x74]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x70]
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x6c]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x68]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x64]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x60]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x5c]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x58]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x54]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x50]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x4c]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x48]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x44]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x40]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.___super_fnc__628
mov dword [ebp - 0xc], 1
nop
jmp 0x406e51
nop
leave
ret
Function at 0x407199
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xcc
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0
je 0x4072f9
cmp dword [ebp - 0x1c], 1
jne 0x4072f3
mov eax, dword [ebp + 0x18]
mov edi, dword [eax]
mov eax, dword [ebp + 0x10]
mov esi, dword [eax]
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], edi
fldz
fstp qword [esp + 0x94]
mov dword [esp + 0x90], esi
fld qword [0x5d88f8]
fstp qword [esp + 0x88]
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
fld qword [0x5d88d8]
fstp qword [esp + 0x78]
mov dword [esp + 0x74], 1
mov dword [esp + 0x70], ebx
fld qword [0x5d88d8]
fstp qword [esp + 0x68]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], eax
fld qword [0x5d88d8]
fstp qword [esp + 0x50]
mov dword [esp + 0x4c], 6
fld qword [0x5d88f8]
fstp qword [esp + 0x44]
mov dword [esp + 0x40], 3
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 2
mov dword [esp + 0x30], 8
mov dword [esp + 0x2c], 0
fld1
fstp qword [esp + 0x24]
mov dword [esp + 0x20], 0
fld1
fstp qword [esp + 0x18]
fld qword [0x5d88d0]
fstp qword [esp + 0x10]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x5d11f8
mov dword [esp + 4], 5
mov dword [esp], 7
call sym._StrCmpiW
mov edx, dword [ebp + 0x20]
mov dword [edx], eax
mov dword [ebp - 0x1c], 0
jmp 0x4072f4
nop
jmp 0x4071ac
nop
add esp, 0xcc
pop ebx
pop esi
pop edi
pop ebp
ret