joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ea0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x124
mov eax, dword [0x45b2ec]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
push edi
mov edi, dword [esp + 0x130]
push 0x104
lea eax, [esp + 0x25]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x2c], 0
call fcn.004259a0
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push edi
mov ecx, esi
call fcn.00407db0
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
cmp eax, 1
pop edi
pop esi
jne 0x407f2b
mov eax, dword [esp]
mov edx, dword [esp + 4]
shrd eax, edx, 0xa
shr edx, 0xa
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00424ba6
add esp, 0x124
ret 4
mov ecx, dword [esp + 0x120]
xor ecx, esp
xor eax, eax
xor edx, edx
call fcn.00424ba6
add esp, 0x124
ret 4

Function at 0x408320
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43b02b
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x45b2ec]
xor eax, esp
mov dword [esp + 0x26c], eax
push esi
push edi
mov eax, dword [0x45b2ec]
xor eax, esp
push eax
lea eax, [esp + 0x27c]
mov dword fs:[0], eax
push 0x167
lea eax, [esp + 0x115]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x11c], 0
call fcn.004259a0
mov ecx, dword [esi]
push str.FXSSYS30.INI
push ecx
lea edx, [esp + 0x124]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x10]
call fcn.004091f0
lea ecx, [esp + 0x110]
push ecx
mov dword [esp + 0x288], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, eax
mov edx, esi
and edx, 0xfffffffe
push edx
lea eax, [esp + 0x114]
push eax
call edi
test eax, eax
lea ecx, [esp + 0xc]
jne 0x4083f3
mov dword [esp + 0x284], 0xffffffff
call fcn.00407c80
xor eax, eax
jmp 0x40842f
push 0x43e994
push str.SucceedToAdministratorSettings
push str.InstallInfo
call fcn.00409240
push esi
lea ecx, [esp + 0x114]
push ecx
call edi
test eax, eax
mov dword [esp + 0x284], 0xffffffff
lea ecx, [esp + 0xc]
je 0x4083ea
call fcn.00407c80
mov eax, 1
mov ecx, dword [esp + 0x27c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.00424ba6
add esp, 0x27c
ret
Function at 0x408460
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43b02b
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x45b2ec]
xor eax, esp
mov dword [esp + 0x26c], eax
push esi
push edi
mov eax, dword [0x45b2ec]
xor eax, esp
push eax
lea eax, [esp + 0x27c]
mov dword fs:[0], eax
push 0x167
lea eax, [esp + 0x115]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x11c], 0
call fcn.004259a0
mov ecx, dword [esi]
push str.FXSMBV30.INI
push ecx
lea edx, [esp + 0x124]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x10]
call fcn.004091f0
lea ecx, [esp + 0x110]
push ecx
mov dword [esp + 0x288], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, eax
mov edx, esi
and edx, 0xfffffffe
push edx
lea eax, [esp + 0x114]
push eax
call edi
test eax, eax
lea ecx, [esp + 0xc]
jne 0x408536
mov dword [esp + 0x284], 0xffffffff
call fcn.00407c80
xor eax, eax
jmp 0x4085be
push 0x43ddaa
push str.Password
push str.SavePassword
call fcn.00409240
push 0x43ddaa
push str.UserID
push str.SavePassword
lea ecx, [esp + 0x18]
call fcn.00409240
push 0x43e9c8
push str.UserPassword
push str.SavePassword
lea ecx, [esp + 0x18]
call fcn.00409240
push 0x43e9c8
push str.InstallVersion
push str.InstallInfo
lea ecx, [esp + 0x18]
call fcn.00409240
push esi
lea ecx, [esp + 0x114]
push ecx
call edi
test eax, eax
mov dword [esp + 0x284], 0xffffffff
lea ecx, [esp + 0xc]
je 0x40852a
call fcn.00407c80
mov eax, 1
mov ecx, dword [esp + 0x27c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.00424ba6
add esp, 0x27c
ret
Function at 0x4085f0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43b02b
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x45b2ec]
xor eax, esp
mov dword [esp + 0x26c], eax
push esi
push edi
mov eax, dword [0x45b2ec]
xor eax, esp
push eax
lea eax, [esp + 0x27c]
mov dword fs:[0], eax
push 0x167
lea eax, [esp + 0x115]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x11c], 0
call fcn.004259a0
mov ecx, dword [esi]
push str.FXSTWD30.INI
push ecx
lea edx, [esp + 0x124]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x10]
call fcn.004091f0
lea ecx, [esp + 0x110]
push ecx
mov dword [esp + 0x288], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, eax
mov edx, esi
and edx, 0xfffffffe
push edx
lea eax, [esp + 0x114]
push eax
call edi
test eax, eax
lea ecx, [esp + 0xc]
jne 0x4086c6
mov dword [esp + 0x284], 0xffffffff
call fcn.00407c80
xor eax, eax
jmp 0x40874e
push 0x43ddaa
push str.Password
push str.SavePassword
call fcn.00409240
push 0x43ddaa
push str.UserID
push str.SavePassword
lea ecx, [esp + 0x18]
call fcn.00409240
push 0x43e9c8
push str.UserPassword
push str.SavePassword
lea ecx, [esp + 0x18]
call fcn.00409240
push 0x43e9c8
push str.InstallVersion
push str.InstallInfo
lea ecx, [esp + 0x18]
call fcn.00409240
push esi
lea ecx, [esp + 0x114]
push ecx
call edi
test eax, eax
mov dword [esp + 0x284], 0xffffffff
lea ecx, [esp + 0xc]
je 0x4086ba
call fcn.00407c80
mov eax, 1
mov ecx, dword [esp + 0x27c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.00424ba6
add esp, 0x27c
ret
Function at 0x408780
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43b02b
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x45b2ec]
xor eax, esp
mov dword [esp + 0x26c], eax
push esi
push edi
mov eax, dword [0x45b2ec]
xor eax, esp
push eax
lea eax, [esp + 0x27c]
mov dword fs:[0], eax
push 0x167
lea eax, [esp + 0x115]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x11c], 0
call fcn.004259a0
mov ecx, dword [esi]
push str.FXSUSR30.INI
push ecx
lea edx, [esp + 0x124]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x10]
call fcn.004091f0
lea ecx, [esp + 0x110]
push ecx
mov dword [esp + 0x288], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, eax
mov edx, esi
and edx, 0xfffffffe
push edx
lea eax, [esp + 0x114]
push eax
call edi
test eax, eax
lea ecx, [esp + 0xc]
jne 0x408853
mov dword [esp + 0x284], 0xffffffff
call fcn.00407c80
xor eax, eax
jmp 0x4088a7
push 0x43e9c8
push str.InstallVersion
push str.InstallInfo
call fcn.00409240
push 0x43ddaa
push str.Path
push str.TempDir
lea ecx, [esp + 0x18]
call fcn.00409240
push esi
lea ecx, [esp + 0x114]
push ecx
call edi
test eax, eax
mov dword [esp + 0x284], 0xffffffff
lea ecx, [esp + 0xc]
je 0x40884a
call fcn.00407c80
mov eax, 1
mov ecx, dword [esp + 0x27c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.00424ba6
add esp, 0x27c
ret

Function at 0x409210
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0x43ddaa
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
ret 0x10

Function at 0x409872
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x45b2ec]
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 0x4098b2
push 0x43ec68
push 4
push eax
call fcn.0042609a
push eax
call fcn.00401090
add esp, 0x10
jmp 0x4098c4
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x409932
push edi
call fcn.00426e61
mov edi, dword [eax]
call fcn.00426e61
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.00426e07
add esp, 0x18
mov ebx, eax
call fcn.00426e61
cmp dword [eax], 0
je 0x409912
call fcn.00426e61
push dword [eax]
call fcn.004097f3
pop ecx
jmp 0x409919
call fcn.00426e61
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x409932
cmp ebx, esi
jae 0x409932
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x409934
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00424ba6
leave
ret
Function at 0x40c81e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x43b332
call fcn.0042696d
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.0040ed55
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x40c869
call fcn.0040ed55
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 0x40c87a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x40c887
or eax, 0xffffffff
jmp 0x40c9e3
mov ecx, esi
call fcn.0040c343
mov dword [ebp - 0x14], eax
call fcn.00411657
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x40c905
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x40c905
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40c905
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00409843
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x40c905
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x40c905
mov ecx, ebx
call fcn.0040dc26
test eax, eax
je 0x40c905
push 0
mov ecx, ebx
call fcn.0040dc41
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00413035
push dword [ebp - 0x14]
call fcn.004115af
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0040c626
xor edi, edi
cmp eax, edi
je 0x40c962
test byte [esi + 0x3c], 0x10
je 0x40c94c
push 4
pop edi
mov ecx, esi
call fcn.0040db37
test ax, 0x100
je 0x40c942
push 5
pop edi
push edi
mov ecx, esi
call fcn.00411145
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x40c962
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0040de14
or dword [ebp - 4], 0xffffffff
jmp 0x40c98d
cmp dword [ebp - 0x28], edi
je 0x40c99b
push 1
mov ecx, ebx
call fcn.0040dc41
cmp dword [ebp - 0x2c], edi
je 0x40c9ab
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x40c9c4
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x40c9c4
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.0040c37d
cmp dword [esi + 0x58], edi
je 0x40c9e0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00426a12
ret
Function at 0x40d064
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 0x40d0aa
call fcn.0040ed55
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40d0aa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40d0ed
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 0x40d0d6
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 0x40d0d6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40d0ea
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 0x40e123
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x43c114
call fcn.0042693a
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40e148
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40e194
call fcn.0040bfc3
push eax
lea ecx, [ebp - 0x10]
call fcn.004014b0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040b94b
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004011f0
mov eax, esi
call fcn.00426a12
ret 8

Function at 0x412605
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41263e
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040bfa2
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040b09f
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x414152
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 0x414195
call fcn.0040ed55
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x414195
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4141b0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00413d09
test ebx, ebx
mov esi, eax
je 0x4141ae
test edi, edi
je 0x4141ae
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4155ff
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x415608
xor eax, eax
jmp 0x415671
cmp dword [esp + 8], 0
jne 0x415614
call fcn.0040b931
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.00429a3a
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x41564f
push dword [esi + 0x10]
call fcn.00429740
test eax, eax
pop ecx
jne 0x41564f
mov esi, dword [esi + 0xc]
call fcn.00426e74
push esi
push dword [eax]
push 1
call fcn.004226d3
push dword [esi + 0x10]
call fcn.0042976f
test eax, eax
pop ecx
je 0x41566e
push dword [esi + 0x10]
call fcn.00429694
push eax
call fcn.00401090
pop ecx
pop ecx
jmp 0x41563d
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x41567a
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x415684
call fcn.0040b931
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.00429bb4
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x4156b1
mov esi, dword [esi + 0xc]
call fcn.00426e74
push esi
push dword [eax]
push 1
call fcn.004226d3
pop esi
ret 8

Function at 0x4166c7
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 0x4166f5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x416713
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00416631
jmp 0x416713
mov eax, dword [esi + 0x14]
test eax, eax
je 0x416713
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00416631
test edi, edi
mov eax, edi
jne 0x4166fd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x45e3fc]
test ecx, ecx
je 0x4167d6
jmp 0x4166c6
ret 8

Function at 0x424ba6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45b2ec]
jne 0x424bb0
repz ret
jmp fcn.0042b398
Function at 0x42979e
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 0x4297db
cmp dword [ebp + 0x14], edi
je 0x4297db
cmp ecx, edi
jne 0x4297e2
call fcn.00426e61
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0042c502
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4297f6
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x429817
cmp ebx, 0xffffffff
je 0x429806
push ebx
push edi
push ecx
call fcn.004259a0
add esp, 0xc
cmp esi, edi
je 0x4297c3
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4297c3
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x429833
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x42983a
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x42992b
test word [esi + 0xc], 0x10c
je 0x42988e
mov eax, dword [esi + 4]
test eax, eax
je 0x42988e
jl 0x42998c
cmp ebx, eax
mov edi, ebx
jb 0x42985f
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x429933
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00424dc1
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 0x429923
cmp ebx, dword [ebp - 0xc]
jb 0x4298fb
cmp dword [ebp - 0xc], 0
je 0x4298b8
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4298ad
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4298b4
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4298c3
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4298c3
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x42995f
push eax
push dword [ebp - 8]
push esi
call fcn.004293f3
pop ecx
push eax
call fcn.0043382f
add esp, 0xc
test eax, eax
je 0x42999e
cmp eax, 0xffffffff
je 0x42998c
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x429923
push esi
call fcn.0043314e
cmp eax, 0xffffffff
pop ecx
je 0x429990
cmp dword [ebp - 4], 0
je 0x42995f
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 0x429842
mov eax, dword [ebp + 0x14]
jmp 0x4297dd
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x42994a
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004259a0
add esp, 0xc
call fcn.00426e61
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4297d3
cmp dword [ebp + 0xc], 0xffffffff
je 0x429975
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004259a0
add esp, 0xc
call fcn.00426e61
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4297d3
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4297dd
or dword [esi + 0xc], 0x10
jmp 0x429990
Function at 0x42c1f7
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 + 0x45b5d8]
je 0x42c212
inc edi
cmp edi, 0x17
jb 0x42c203
cmp edi, 0x17
jae 0x42c392
push ebp
push 3
call fcn.00435453
cmp eax, 1
pop ecx
je 0x42c35e
push 3
call fcn.00435453
test eax, eax
pop ecx
jne 0x42c246
cmp dword [0x45b300], 1
je 0x42c35e
cmp ebx, 0xfc
je 0x42c391
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x45ebe8
push ebp
call fcn.0042609a
add esp, 0xc
test eax, eax
je 0x42c27c
push esi
push esi
push esi
push esi
push esi
call fcn.0042c406
add esp, 0x14
push 0x104
mov esi, 0x45ec01
push esi
push 0
mov byte [0x45ed05], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42c2c0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042609a
add esp, 0xc
test eax, eax
je 0x42c2c0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042c406
add esp, 0x14
push esi
call fcn.00426d60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42c305
push esi
call fcn.00426d60
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45eefc
push 0x441d9c
sub ecx, eax
push ecx
push eax
call fcn.004288dc
add esp, 0x14
test eax, eax
je 0x42c305
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042c406
add esp, 0x14
jmp 0x42c307
xor esi, esi
push 0x441d98
push ebx
push ebp
call fcn.00426f2c
add esp, 0xc
test eax, eax
je 0x42c327
push esi
push esi
push esi
push esi
push esi
call fcn.0042c406
add esp, 0x14
push dword [edi*8 + 0x45b5dc]
push ebx
push ebp
call fcn.00426f2c
add esp, 0xc
test eax, eax
je 0x42c349
push esi
push esi
push esi
push esi
push esi
call fcn.0042c406
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00435296
add esp, 0xc
jmp 0x42c391
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42c391
cmp ebp, 0xffffffff
je 0x42c391
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x45b5dc]
push dword [esi]
call fcn.00426d60
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