joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b8e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40b8f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40b934
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40b930
lea ebx, [ebx]
cmp esi, eax
jae 0x40b934
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40b920
cmp esi, eax
jb 0x40b93a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40c140
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x44ab74
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x462e60]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov dword [esi], vtable.CPatchDlg.0
mov ecx, dword [esi + 0x78]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0x20], 0xa
je 0x40c18a
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov edi, dword [esi + 0x7c]
cmp edi, ebx
je 0x40c1a1
mov ecx, edi
call fcn.0040a9d0
push edi
call fcn.00415b52
add esp, 4
mov edi, dword [esi + 0x80]
cmp edi, ebx
je 0x40c1bb
mov ecx, edi
call fcn.00403b00
push edi
call fcn.00415b52
add esp, 4
mov ebp, 0x10
cmp dword [esi + 0xf0], ebp
jb 0x40c1d0
mov eax, dword [esi + 0xdc]
jmp 0x40c1d6
lea eax, [esi + 0xdc]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call edi
cmp dword [esi + 0x10c], ebp
jb 0x40c1ef
mov eax, dword [esi + 0xf8]
jmp 0x40c1f5
lea eax, [esi + 0xf8]
push eax
call edi
cmp dword [esi + 0xb8], ebp
jb 0x40c208
mov eax, dword [esi + 0xa4]
jmp 0x40c20e
lea eax, [esi + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esi + 0x188]
mov byte [esp + 0x20], 9
call fcn.00421bcd
lea ecx, [esi + 0x134]
mov byte [esp + 0x20], 8
call fcn.00421c6b
mov eax, dword [esi + 0x130]
sub eax, ebp
mov byte [esp + 0x20], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c25b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x12c]
sub eax, ebp
mov byte [esp + 0x20], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c281
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x128], ebp
jb 0x40c298
mov eax, dword [esi + 0x114]
push eax
call fcn.00415b52
add esp, 4
mov edi, 0xf
mov dword [esi + 0x128], edi
mov dword [esi + 0x124], ebx
mov byte [esi + 0x114], bl
cmp dword [esi + 0x10c], ebp
jb 0x40c2c6
mov eax, dword [esi + 0xf8]
push eax
call fcn.00415b52
add esp, 4
mov dword [esi + 0x10c], edi
mov dword [esi + 0x108], ebx
mov byte [esi + 0xf8], bl
cmp dword [esi + 0xf0], ebp
jb 0x40c2ef
mov eax, dword [esi + 0xdc]
push eax
call fcn.00415b52
add esp, 4
mov dword [esi + 0xf0], edi
mov dword [esi + 0xec], ebx
mov byte [esi + 0xdc], bl
cmp dword [esi + 0xd4], ebp
jb 0x40c318
mov eax, dword [esi + 0xc0]
push eax
call fcn.00415b52
add esp, 4
mov dword [esi + 0xd4], edi
mov dword [esi + 0xd0], ebx
mov byte [esi + 0xc0], bl
cmp dword [esi + 0xb8], ebp
jb 0x40c341
mov eax, dword [esi + 0xa4]
push eax
call fcn.00415b52
add esp, 4
mov dword [esi + 0xb8], edi
mov dword [esi + 0xb4], ebx
mov byte [esi + 0xa4], bl
cmp dword [esi + 0x9c], ebp
jb 0x40c36a
mov eax, dword [esi + 0x88]
push eax
call fcn.00415b52
add esp, 4
mov dword [esi + 0x9c], edi
mov dword [esi + 0x98], ebx
mov ecx, esi
mov byte [esi + 0x88], bl
mov dword [esp + 0x20], 0xffffffff
call fcn.0041f416
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x40eb60
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x94
mov eax, dword [0x462e60]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov edi, dword [esp + 0xa4]
push edi
call ebp
mov ebx, eax
test ebx, ebx
jle 0x40ec35
push esi
push 0x44e528
push str.debug.txt
call fcn.00431e5c
mov esi, eax
add esp, 8
test esi, esi
je 0x40ec34
add dword [0x46432c], 1
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x1e]
movzx edx, word [esp + 0x1c]
movzx eax, word [esp + 0x1a]
push ecx
movzx ecx, word [esp + 0x1c]
push edx
movzx edx, word [esp + 0x1e]
push eax
movzx eax, word [esp + 0x1e]
push ecx
mov ecx, dword [0x46432c]
push edx
push eax
push ecx
push str._n_d__02d__02d__02d:_02d:_02d._03d_:
lea edx, [esp + 0x40]
push 0x80
push edx
call fcn.0043264b
push 2
push 0
push esi
call fcn.004329db
add esp, 0x34
push esi
push 1
lea eax, [esp + 0x28]
push eax
call ebp
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00431d16
push esi
push 1
push ebx
push edi
call fcn.00431d16
push esi
call fcn.004315c1
add esp, 0x24
pop esi
mov ecx, dword [esp + 0x9c]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00431e6f
add esp, 0x94
ret
Function at 0x40ec50
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
mov eax, 0x1650
call fcn.00434500
mov eax, dword [0x462e60]
xor eax, esp
mov dword [esp + 0x164c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x165c]
push esi
push edi
push ebp
push str._s.
lea eax, [esp + 0x160]
push 0x104
push eax
call fcn.0043264b
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x40edf2
mov edi, 0x44d710
lea esi, [esp + 0x44]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40ed0b
mov edi, 0x44d714
lea esi, [esp + 0x44]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40ed0b
lea eax, [esp + 0x44]
push eax
push ebp
push str._s_s
lea ecx, [esp + 0x164]
push 0x104
push ecx
call fcn.0043264b
add esp, 0x14
lea edx, [esp + 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40ed0b
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, 0x44d710
lea esi, [esp + 0x44]
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov ebx, eax
je 0x40ede6
mov edi, 0x44d714
lea esi, [esp + 0x44]
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40ede6
test ebx, ebx
je 0x40edee
lea ecx, [esp + 0x44]
push ecx
push ebp
push str._s_s
lea edx, [esp + 0x164]
push 0x104
push edx
call fcn.0043264b
add esp, 0x14
lea eax, [esp + 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40ede6
push eax
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x40ee00
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x15c]
push eax
push str.FILE:__s____s
lea ecx, [esp + 0x268]
push 0x1400
push ecx
call fcn.0043264b
lea edx, [esp + 0x270]
push edx
call fcn.0040eb60
mov eax, dword [esp + 0x2c]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
jne 0x40ed07
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x165c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00431e6f
add esp, 0x1650
ret
Function at 0x411720
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x41172f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x4606dc]
test eax, eax
je 0x41173d
call fcn.004115d0
mov edx, dword [esp + 0x10]
cmp edx, 8
mov eax, dword [esp + 8]
not eax
jb 0x411831
push ebx
push edi
mov edi, edx
shr edi, 3
xor ecx, ecx
mov cl, byte [esi]
mov ebx, eax
shr ebx, 8
sub edx, 8
xor ecx, eax
and ecx, 0xff
mov eax, dword [ecx*4 + 0x464340]
xor eax, ebx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x464340]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x464340]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x464340]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x464340]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x464340]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x464340]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x464340]
shr eax, 8
xor eax, ecx
inc esi
dec edi
jne 0x411757
pop edi
pop ebx
test edx, edx
je 0x411851
xor ecx, ecx
mov cl, byte [esi]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x464340]
shr eax, 8
xor eax, ecx
inc esi
dec edx
jne 0x411835
not eax
pop esi
ret 0xc
Function at 0x41af16
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x41af59
call fcn.00421a0a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41af59
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41af74
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041aacd
test ebx, ebx
mov esi, eax
je 0x41af72
test edi, edi
je 0x41af72
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41dc64
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x462e60]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x41dca4
push 0x4505c0
push 4
push eax
call fcn.00432ad1
push eax
call fcn.0040e9c0
add esp, 0x10
jmp 0x41dcb6
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41dd24
push edi
call fcn.00431b73
mov edi, dword [eax]
call fcn.00431b73
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00431b19
add esp, 0x18
mov ebx, eax
call fcn.00431b73
cmp dword [eax], 0
je 0x41dd04
call fcn.00431b73
push dword [eax]
call fcn.00415b5c
pop ecx
jmp 0x41dd0b
call fcn.00431b73
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x41dd24
cmp ebx, esi
jae 0x41dd24
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x41dd26
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00431e6f
leave
ret
Function at 0x41fb78
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x44b49b
call fcn.00435391
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00421a0a
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x41fbc3
call fcn.00421a0a
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x41fbd4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x41fbe1
or eax, 0xffffffff
jmp 0x41fd3d
mov ecx, esi
call fcn.0041f6a8
mov dword [ebp - 0x14], eax
call fcn.00418327
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x41fc5f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41fc5f
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41fc5f
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00416e8f
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x41fc5f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x41fc5f
mov ecx, ebx
call fcn.0041b7ac
test eax, eax
je 0x41fc5f
push 0
mov ecx, ebx
call fcn.0041b7c7
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00419dd4
push dword [ebp - 0x14]
call fcn.0041827f
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0041f980
xor edi, edi
cmp eax, edi
je 0x41fcbc
test byte [esi + 0x3c], 0x10
je 0x41fca6
push 4
pop edi
mov ecx, esi
call fcn.0041b693
test ax, 0x100
je 0x41fc9c
push 5
pop edi
push edi
mov ecx, esi
call fcn.00417df0
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x41fcbc
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041b996
or dword [ebp - 4], 0xffffffff
jmp 0x41fce7
cmp dword [ebp - 0x28], edi
je 0x41fcf5
push 1
mov ecx, ebx
call fcn.0041b7c7
cmp dword [ebp - 0x2c], edi
je 0x41fd05
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41fd1e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x41fd1e
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0041f6e2
cmp dword [esi + 0x58], edi
je 0x41fd3a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00435436
ret
Function at 0x420445
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x42048b
call fcn.00421a0a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42048b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4204ce
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4204b7
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 0x4204b7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4204cb
mov ecx, dword [esi + 0x4c]
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 0x422f75
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 0x422fa3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x422fc1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00422edf
jmp 0x422fc1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x422fc1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00422edf
test edi, edi
mov eax, edi
jne 0x422fab
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x466270]
test ecx, ecx
je 0x423084
jmp 0x422f74
ret 8

Function at 0x431e6f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x462e60]
jne 0x431e79
repz ret
jmp fcn.0043a2d3
Function at 0x432394
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4323d1
cmp dword [ebp + 0x14], edi
je 0x4323d1
cmp ecx, edi
jne 0x4323d8
call fcn.00431b73
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00431743
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4323ec
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43240d
cmp ebx, 0xffffffff
je 0x4323fc
push ebx
push edi
push ecx
call fcn.00432700
add esp, 0xc
cmp esi, edi
je 0x4323b9
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4323b9
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x432429
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x432430
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x432521
test word [esi + 0xc], 0x10c
je 0x432484
mov eax, dword [esi + 4]
test eax, eax
je 0x432484
jl 0x432582
cmp ebx, eax
mov edi, ebx
jb 0x432455
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x432529
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004317d2
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x432519
cmp ebx, dword [ebp - 0xc]
jb 0x4324f1
cmp dword [ebp - 0xc], 0
je 0x4324ae
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4324a3
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4324aa
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4324b9
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4324b9
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x432555
push eax
push dword [ebp - 8]
push esi
call fcn.00437f47
pop ecx
push eax
call fcn.0043bb32
add esp, 0xc
test eax, eax
je 0x432594
cmp eax, 0xffffffff
je 0x432582
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x432519
push esi
call fcn.0043b451
cmp eax, 0xffffffff
pop ecx
je 0x432586
cmp dword [ebp - 4], 0
je 0x432555
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x432438
mov eax, dword [ebp + 0x14]
jmp 0x4323d3
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x432540
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00432700
add esp, 0xc
call fcn.00431b73
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4323c9
cmp dword [ebp + 0xc], 0xffffffff
je 0x43256b
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00432700
add esp, 0xc
call fcn.00431b73
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4323c9
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4323d3
or dword [esi + 0xc], 0x10
jmp 0x432586
Function at 0x4404fe
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x463ab8]
je 0x440519
inc edi
cmp edi, 0x17
jb 0x44050a
cmp edi, 0x17
jae 0x440699
push ebp
push 3
call fcn.00445d5f
cmp eax, 1
pop ecx
je 0x440665
push 3
call fcn.00445d5f
test eax, eax
pop ecx
jne 0x44054d
cmp dword [0x462eb8], 1
je 0x440665
cmp ebx, 0xfc
je 0x440698
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x466ac8
push ebp
call fcn.00432ad1
add esp, 0xc
test eax, eax
je 0x440583
push esi
push esi
push esi
push esi
push esi
call fcn.00431647
add esp, 0x14
push 0x104
mov esi, 0x466ae1
push esi
push 0
mov byte [0x466be5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4405c7
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00432ad1
add esp, 0xc
test eax, eax
je 0x4405c7
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00431647
add esp, 0x14
push esi
call fcn.004357b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x44060c
push esi
call fcn.004357b0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x466ddc
push 0x452a8c
sub ecx, eax
push ecx
push eax
call fcn.004352ab
add esp, 0x14
test eax, eax
je 0x44060c
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00431647
add esp, 0x14
jmp 0x44060e
xor esi, esi
push 0x452a88
push ebx
push ebp
call fcn.00432a60
add esp, 0xc
test eax, eax
je 0x44062e
push esi
push esi
push esi
push esi
push esi
call fcn.00431647
add esp, 0x14
push dword [edi*8 + 0x463abc]
push ebx
push ebp
call fcn.00432a60
add esp, 0xc
test eax, eax
je 0x440650
push esi
push esi
push esi
push esi
push esi
call fcn.00431647
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00445ba2
add esp, 0xc
jmp 0x440698
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x440698
cmp ebp, 0xffffffff
je 0x440698
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x463abc]
push dword [esi]
call fcn.004357b0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x445ba2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00438223
xor ebx, ebx
cmp dword [0x467024], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x445c78
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x445d58
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x455474
push edi
call esi
cmp eax, ebx
je 0x445d58
push eax
call fcn.004381b5
mov dword [esp], 0x455464
push edi
mov dword [0x467024], eax
call esi
push eax
call fcn.004381b5
mov dword [esp], 0x455450
push edi
mov dword [0x467028], eax
call esi
push eax
call fcn.004381b5
mov dword [0x46702c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004374f8
test eax, eax
pop ecx
pop ecx
je 0x445c46
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00431647
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x445c78
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004381b5
cmp eax, ebx
pop ecx
mov dword [0x467034], eax
je 0x445c78
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004381b5
pop ecx
mov dword [0x467030], eax
mov eax, dword [0x467030]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x445cfd
cmp dword [0x467034], ecx
je 0x445cfd
push eax
call fcn.0043822c
push dword [0x467034]
mov esi, eax
call fcn.0043822c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x445cfd
cmp edi, ebx
je 0x445cfd
call esi
cmp eax, ebx
je 0x445cca
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x445cca
test byte [ebp - 0x18], 1
jne 0x445cfd
lea eax, [ebp - 0x10]
push eax
call fcn.0043752f
test eax, eax
pop ecx
je 0x445ce5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00431647
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x445cf4
or dword [ebp + 0x10], 0x200000
jmp 0x445d38
or dword [ebp + 0x10], 0x40000
jmp 0x445d38
mov eax, dword [0x467028]
cmp eax, dword [ebp - 8]
je 0x445d38
push eax
call fcn.0043822c
cmp eax, ebx
pop ecx
je 0x445d38
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x445d38
mov eax, dword [0x46702c]
cmp eax, dword [ebp - 8]
je 0x445d38
push eax
call fcn.0043822c
cmp eax, ebx
pop ecx
je 0x445d38
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x467024]
call fcn.0043822c
cmp eax, ebx
pop ecx
je 0x445d58
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x445d5a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret