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

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x440e83
push esi
call fcn.00443f60
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x440e7c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x440f09
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x440ef2
mov eax, dword [esi + 8]
test eax, eax
je 0x440ea7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x440eee
cmp eax, 2
je 0x440ef2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x440e9a
cmp eax, 3
je 0x440ecd
cmp eax, 1
jne 0x440e9a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x440e9a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x440e9a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440f30
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x440f18
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440f30
add esp, 4
pop esi
ret

Function at 0x44ca50
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x44caf3
test eax, eax
jbe 0x44caf3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44caf3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x44ca9e
xor esi, esi
jmp 0x44caa4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44cacf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0044ea30
add esi, eax
push esi
mov ebx, esi
call fcn.0044ea30
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44cab0
pop ebp
test edi, edi
pop edi
jne 0x44caf3
test ebx, ebx
je 0x44caf3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00450ed0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44cc15
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 0x44cd2d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44cd2d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00461639
mov esi, eax
test esi, esi
je 0x44cd2d
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 0x44cd2d
mov ecx, esi
call fcn.0044cba0
cmp edi, eax
jge 0x44cd2d
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 0x44ccb3
mov dword [esp + 0x34], 1
jmp 0x44cd0e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44cd2d
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.0044c1a0
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 0x461fdd
Capabilities:
Get graphical window text

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

Function at 0x4636cf
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 0x463711
call fcn.00469182
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x463711
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x463708
xor eax, eax
jmp 0x463719
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046371f
pop edi
pop esi
pop ebx
ret 4
Function at 0x4696b2
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 0x4696e0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4696fe
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00469618
jmp 0x4696fe
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4696fe
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00469618
test edi, edi
mov eax, edi
jne 0x4696e8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x494980
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5d000]
push edi
jmp 0x49499a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4949a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x494990
mov eax, 1
add ebx, ebx
jne 0x4949b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4949c4
jne 0x4949e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4949e3
dec eax
add ebx, ebx
jne 0x4949d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4949a8
add ebx, ebx
jne 0x4949df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x494a35
xor ecx, ecx
sub eax, 3
jb 0x4949fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x494a6a
sar eax, 1
mov ebp, eax
jmp 0x494a06
add ebx, ebx
jne 0x494a06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4949d4
inc ecx
add ebx, ebx
jne 0x494a14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4949d4
add ebx, ebx
jne 0x494a21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x494a16
jne 0x494a32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x494a16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x494a54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x494a46
jmp 0x494996
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x494a54
add edi, ecx
jmp 0x494996
pop esi
mov edi, esi
mov ecx, 0x318d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x494a72
cmp byte [edi], 0x1b
jne 0x494a72
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 al, bl
loop 0x494a77
lea edi, [esi + 0x91000]
mov eax, dword [edi]
or eax, eax
je 0x494aef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x95784]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9589c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x494aa4
mov ecx, edi
jns 0x494ad3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x958a0]
or eax, eax
je 0x494ae9
mov dword [ebx], eax
add ebx, 4
jmp 0x494ac1
call dword [esi + 0x958b0]
mov ebp, dword [esi + 0x958a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x494b23
sub esp, 0xffffff80
jmp 0x453e3d
Function at 0x40c569
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x65c
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x4012b4
xor ebx, ebx
push 0x80000002
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40c71f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x40138c
push dword [ebp - 0xc]
mov dword [ebp - 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c716
cmp dword [ebp - 8], 1
jne 0x40c716
push esi
push edi
push 0x41
pop ecx
push 0x401380
lea eax, [ebp - 0x118]
lea esi, [ebp - 0x25c]
lea edi, [ebp - 0x118]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x401374
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x40c714
push 0x401364
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40c70b
push ebx
push 5
push ebx
push ebx
lea ecx, [ebp - 0x118]
push ecx
mov esi, 0x401350
push esi
push ecx
push ebx
call eax
test eax, eax
jl 0x40c70b
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x118]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x118]
push eax
push ebx
push ebx
push 0x26
push ebx
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
push 0x40129c
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40c6ad
push ebx
push 5
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
push esi
push eax
push ebx
call dword [ebp - 4]
cmp dword [0x419a38], ebx
je 0x40c6ad
push ebx
push 5
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
push 0x401334
push eax
push ebx
call dword [ebp - 4]
push ebx
call fcn.004146d1
test eax, eax
je 0x40c70b
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x40
lea eax, [ebp - 0x158]
push eax
push 0x64
push ebx
call esi
test eax, eax
je 0x40c70b
push 0x400
lea eax, [ebp - 0x65c]
push eax
push 0x88
push ebx
call esi
test eax, eax
je 0x40c70b
push 0x10044
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x65c]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40c70b
call fcn.00414143
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret
Function at 0x40c7bd
Capabilities:
Copy file
Delete file
Get geographical location
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
push ebx
push esi
push edi
call dword [0x418060]
mov dword [ebp - 8], eax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHUnicodeToAnsi]
mov edi, dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x230]
push eax
call edi
push 0x401448
lea eax, [ebp - 0x334]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x334]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov byte [ebp + eax - 0x333], 0
lea eax, [ebp - 0x230]
push eax
call esi
lea eax, [ebp - 0x230]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x230]
push eax
call esi
and word [ebp + eax*2 - 0x22e], 0
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x334]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x24], 2
call esi
lea eax, [eax + eax + 2]
mov dword [ebp - 4], eax
add eax, 3
and eax, 0xfffffffc
call fcn.0040dc60
mov eax, esp
push dword [ebp - 8]
lea ecx, [ebp - 0x230]
push dword [ebp - 4]
push ecx
push eax
call fcn.0040c4b4
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
lea eax, [ebp - 0x28]
push eax
mov word [ebp - 0x18], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
mov dword [ebp - 4], eax
je 0x40c916
push eax
call esi
sub ebx, eax
push ebx
push 0x401430
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x230]
push eax
call ebx
push dword [ebp - 8]
push 0x401414
push dword [ebp - 4]
call edi
lea eax, [ebp - 0x230]
push eax
call ebx
push dword [ebp - 8]
push 0x4013f8
push dword [ebp - 4]
call edi
lea eax, [ebp - 0x230]
push eax
call ebx
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edi, eax
push edi
call esi
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0x4013e4
push 0x4013a8
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x401398
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x230]
push eax
call fcn.004143f9
lea esp, [ebp - 0x340]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40d929
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x401880
call fcn.0040db00
mov edi, 0x94
mov eax, edi
call fcn.0040dc60
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 [0x418ba0], ecx
mov eax, dword [esi + 4]
mov dword [0x418bac], eax
mov edx, dword [esi + 8]
mov dword [0x418bb0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x418ba4], esi
cmp ecx, 2
je 0x40d989
or esi, 0x8000
mov dword [0x418ba4], esi
shl eax, 8
add eax, edx
mov dword [0x418ba8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40d9c4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d9c4
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40d9dc
cmp eax, 0x20b
je 0x40d9c9
mov dword [ebp - 0x1c], esi
jmp 0x40d9f0
cmp dword [ecx + 0x84], 0xe
jbe 0x40d9c4
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40d9ea
cmp dword [ecx + 0x74], 0xe
jbe 0x40d9c4
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040f1ed
pop ecx
test eax, eax
jne 0x40da04
push 0x1c
call fcn.0040d905
pop ecx
call fcn.0040f0e4
test eax, eax
jne 0x40da15
push 0x10
call fcn.0040d905
pop ecx
call fcn.0040ee7e
mov dword [ebp - 4], esi
call fcn.0040ec80
test eax, eax
jge 0x40da2e
push 0x1b
call fcn.0040d8e0
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x419e74], eax
call fcn.0040eb5e
mov dword [0x418b90], eax
call fcn.0040eabc
test eax, eax
jge 0x40da54
push 8
call fcn.0040d8e0
pop ecx
call fcn.0040e889
test eax, eax
jge 0x40da65
push 9
call fcn.0040d8e0
pop ecx
push 1
call fcn.0040e3ab
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40da7b
push eax
call fcn.0040d8e0
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040e82c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40da9c
movzx eax, word [ebp - 0x40]
jmp 0x40da9f
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040cdb4
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40dabd
push edi
call fcn.0040e4d8
call fcn.0040e4fa
jmp 0x40daef
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040db3b
ret
Function at 0x40e415
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4018c8
call fcn.0040db00
push 8
call fcn.0040f5ba
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x418be0], esi
jne 0x40e449
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x418bdc], esi
mov al, byte [ebp + 0x10]
mov byte [0x418bd8], al
cmp dword [ebp + 0xc], edi
jne 0x40e493
cmp dword [0x419e68], edi
je 0x40e483
mov eax, dword [0x419e64]
sub eax, 4
mov dword [0x419e64], eax
cmp eax, dword [0x419e68]
jb 0x40e483
mov eax, dword [eax]
cmp eax, edi
je 0x40e464
call eax
jmp 0x40e464
push 0x418044
mov eax, 0x418040
call fcn.0040e393
pop ecx
push 0x418050
mov eax, 0x418048
call fcn.0040e393
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40e4c4
cmp dword [ebp + 0x10], edi
jne 0x40e4d2
mov dword [0x418be0], esi
push dword [ebp + 8]
call fcn.0040e351
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40e4d1
push 8
call fcn.0040f505
pop ecx
ret
call fcn.0040db3b
ret

Function at 0x40e518
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4182f4]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x418080]
je 0x40e54d
inc eax
cmp eax, 0x13
jb 0x40e53e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x418080]
jne 0x40e673
mov eax, dword [0x418b98]
cmp eax, 1
je 0x40e64b
cmp eax, edx
jne 0x40e57d
cmp dword [0x418068], 1
je 0x40e64b
cmp ecx, 0xfc
je 0x40e673
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40e5b3
lea eax, [ebp - 0x80]
push 0x401cc4
push eax
call fcn.004110a0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004112d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40e5e7
mov eax, edi
push eax
call fcn.004112d0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x401cc0
push edi
call fcn.004111a0
add esp, 0x10
push edi
call fcn.004112d0
push dword [esi + 0x418084]
mov ebx, eax
call fcn.004112d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040dc60
mov ebx, esp
push 0x401ca4
push ebx
call fcn.004110a0
push edi
push ebx
call fcn.004110b0
push 0x401ca0
push ebx
call fcn.004110b0
push dword [esi + 0x418084]
push ebx
call fcn.004110b0
push 0x12010
push 0x401c78
push ebx
call fcn.00410fa0
add esp, 0x2c
jmp 0x40e673
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x418084]
push dword [esi]
call fcn.004112d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0041138c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40f23e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40f26c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40f273
cmp ebx, dword [eax + 4]
jae 0x40f273
xor eax, eax
jmp 0x40f463
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40f284
xor eax, eax
inc eax
jmp 0x40f462
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40f29a
cmp ecx, edx
jae 0x40f3df
cmp dword [eax + 4], 0
je 0x40f2a3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40f28b
cmp dword [ebp + 8], 0
je 0x40f2c5
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40f3df
cmp eax, esi
jae 0x40f3df
mov eax, dword [0x418d08]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40f2ea
cmp dword [esi*4 + 0x418d10], edi
je 0x40f3e3
inc esi
cmp esi, eax
jl 0x40f2d8
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40f45f
cmp dword [ebp - 8], 0x1000000
jne 0x40f45f
test byte [ebp - 0xc], 0xcc
je 0x40f368
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40f45f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40f45f
cmp word [eax + 0x18], 0x10b
jne 0x40f45f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40f45f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40f368
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40f368
test byte [ecx + 0x27], 0x80
jne 0x40f3df
push 1
push 0x418d50
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40f27c
mov ecx, dword [0x418d08]
test ecx, ecx
mov edx, ecx
jle 0x40f39c
lea eax, [ecx*4 + 0x418d0c]
cmp dword [eax], edi
je 0x40f39c
dec edx
sub eax, 4
test edx, edx
jg 0x40f390
test edx, edx
jne 0x40f3cd
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40f3a9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40f3c1
lea eax, [edx*4 + 0x418d10]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40f3af
cmp ecx, 0x10
jge 0x40f3cd
inc ecx
mov dword [0x418d08], ecx
push 0
push 0x418d50
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40f27c
xor eax, eax
jmp 0x40f462
test esi, esi
jle 0x40f27c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x418d50
call ebx
test eax, eax
jne 0x40f27c
cmp dword [esi*4 + 0x418d10], edi
je 0x40f439
mov eax, dword [0x418d08]
lea esi, [eax - 1]
test esi, esi
jl 0x40f427
cmp dword [esi*4 + 0x418d10], edi
je 0x40f423
dec esi
jns 0x40f417
test esi, esi
jge 0x40f437
cmp eax, 0x10
jge 0x40f432
inc eax
mov dword [0x418d08], eax
lea esi, [eax - 1]
jmp 0x40f439
je 0x40f451
xor ecx, ecx
test esi, esi
jl 0x40f451
lea eax, [ecx*4 + 0x418d10]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40f43f
push 0
push 0x418d50
call ebx
jmp 0x40f27c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret