joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d90
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 0x404da9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404de4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404de0
lea ebx, [ebx]
cmp esi, eax
jae 0x404de4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404dd0
cmp esi, eax
jb 0x404dea
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 0x4059f0
Capabilities:
Get common file path
Get file version info

Disassembly:
sub esp, 0x218
mov eax, dword [0x451680]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push 0x104
lea eax, [esp + 0x14]
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x405ad9
push str.msxml3.dll
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x405ad9
push esi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x405ac0
push edi
push esi
call fcn.0040a185
add esp, 4
mov edi, eax
push edi
push esi
push ebx
lea ecx, [esp + 0x24]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x405a9d
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push 0x445a9c
push edi
mov dword [esp + 0x1c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x405a9d
cmp dword [esp + 0xc], 0x34
jne 0x405a9d
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 8], 0x8001e
jae 0x405a9d
mov bl, 1
push edi
call fcn.0040a180
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004280e6
add esp, 0x218
ret
pop esi
mov al, bl
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004280e6
add esp, 0x218
ret
mov ecx, dword [esp + 0x218]
mov al, bl
pop ebx
xor ecx, esp
call fcn.004280e6
add esp, 0x218
ret
Function at 0x4116ee
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 0x411731
call fcn.0040b08f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x411731
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41174c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004112a8
test ebx, ebx
mov esi, eax
je 0x41174a
test edi, edi
je 0x41174a
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x412a85
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x451680]
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 - 0xc]
jne 0x412ac2
push 0x4408c0
push 4
push eax
call fcn.00429ad8
push eax
call fcn.00404e00
add esp, 0x10
jmp 0x412ad4
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x412b3f
push edi
call fcn.00429bba
mov edi, dword [eax]
call fcn.00429bba
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00429b60
add esp, 0x18
mov ebx, eax
call fcn.00429bba
cmp dword [eax], 0
je 0x412b1f
call fcn.00429bba
push dword [eax]
call fcn.0040b811
pop ecx
jmp 0x412b26
call fcn.00429bba
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x412b3f
cmp ebx, esi
jae 0x412b3f
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x412b41
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004280e6
leave
ret
Function at 0x413a20
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 0x413a66
call fcn.0040b08f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x413a66
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x413aa9
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 0x413a92
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 0x413a92
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x413aa6
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 0x414bac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x43bed7
call fcn.0042965a
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.0040b08f
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x414bf7
call fcn.0040b08f
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x414c08
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x414c15
or eax, 0xffffffff
jmp 0x414d71
mov ecx, esi
call fcn.004146fe
mov dword [ebp - 0x14], eax
call fcn.0040ecad
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x414c93
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x414c93
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x414c93
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0040d84a
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x414c93
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x414c93
mov ecx, ebx
call fcn.004118ec
test eax, eax
je 0x414c93
push 0
mov ecx, ebx
call fcn.00411907
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.004105d4
push dword [ebp - 0x14]
call fcn.0040ec05
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004149b4
xor edi, edi
cmp eax, edi
je 0x414cf0
test byte [esi + 0x3c], 0x10
je 0x414cda
push 4
pop edi
mov ecx, esi
call fcn.004117d3
test ax, 0x100
je 0x414cd0
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040e79b
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x414cf0
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00411ab5
or dword [ebp - 4], 0xffffffff
jmp 0x414d1b
cmp dword [ebp - 0x28], edi
je 0x414d29
push 1
mov ecx, ebx
call fcn.00411907
cmp dword [ebp - 0x2c], edi
je 0x414d39
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x414d52
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x414d52
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.00414738
cmp dword [esi + 0x58], edi
je 0x414d6e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.004296ff
ret
Function at 0x41a444
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 0x41a472
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41a490
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041a3ae
jmp 0x41a490
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41a490
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0041a3ae
test edi, edi
mov eax, edi
jne 0x41a47a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x454cf0]
test ecx, ecx
je 0x41a553
jmp 0x41a443
ret 8

Function at 0x4280e6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x451680]
jne 0x4280f0
repz ret
jmp fcn.0042c3e6

Function at 0x42b20b
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 + 0x451800]
je 0x42b226
inc edi
cmp edi, 0x17
jb 0x42b217
cmp edi, 0x17
jae 0x42b3a6
push ebp
push 3
call fcn.00433ec3
cmp eax, 1
pop ecx
je 0x42b372
push 3
call fcn.00433ec3
test eax, eax
pop ecx
jne 0x42b25a
cmp dword [0x451654], 1
je 0x42b372
cmp ebx, 0xfc
je 0x42b3a5
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x454e00
push ebp
call fcn.00428270
add esp, 0xc
test eax, eax
je 0x42b290
push esi
push esi
push esi
push esi
push esi
call fcn.00428a69
add esp, 0x14
push 0x104
mov esi, 0x454e19
push esi
push 0
mov byte [0x454f1d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42b2d4
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00428270
add esp, 0xc
test eax, eax
je 0x42b2d4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00428a69
add esp, 0x14
push esi
call fcn.0042e380
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42b319
push esi
call fcn.0042e380
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x455114
push 0x4433dc
sub ecx, eax
push ecx
push eax
call fcn.00433e10
add esp, 0x14
test eax, eax
je 0x42b319
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00428a69
add esp, 0x14
jmp 0x42b31b
xor esi, esi
push 0x4433d8
push ebx
push ebp
call fcn.00433d9f
add esp, 0xc
test eax, eax
je 0x42b33b
push esi
push esi
push esi
push esi
push esi
call fcn.00428a69
add esp, 0x14
push dword [edi*8 + 0x451804]
push ebx
push ebp
call fcn.00433d9f
add esp, 0xc
test eax, eax
je 0x42b35d
push esi
push esi
push esi
push esi
push esi
call fcn.00428a69
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00433be2
add esp, 0xc
jmp 0x42b3a5
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42b3a5
cmp ebp, 0xffffffff
je 0x42b3a5
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x451804]
push dword [esi]
call fcn.0042e380
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 0x433be2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042bdbb
xor ebx, ebx
cmp dword [0x4558f8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x433cb8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x433d98
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x433d98
push eax
call fcn.0042bd4d
mov dword [esp], 0x44361c
push edi
mov dword [0x4558f8], eax
call esi
push eax
call fcn.0042bd4d
mov dword [esp], 0x443608
push edi
mov dword [0x4558fc], eax
call esi
push eax
call fcn.0042bd4d
mov dword [0x455900], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042846a
test eax, eax
pop ecx
pop ecx
je 0x433c86
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00428a69
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x433cb8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042bd4d
cmp eax, ebx
pop ecx
mov dword [0x455908], eax
je 0x433cb8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042bd4d
pop ecx
mov dword [0x455904], eax
mov eax, dword [0x455904]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x433d3d
cmp dword [0x455908], ecx
je 0x433d3d
push eax
call fcn.0042bdc4
push dword [0x455908]
mov esi, eax
call fcn.0042bdc4
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x433d3d
cmp edi, ebx
je 0x433d3d
call esi
cmp eax, ebx
je 0x433d0a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x433d0a
test byte [ebp - 0x18], 1
jne 0x433d3d
lea eax, [ebp - 0x10]
push eax
call fcn.004284a1
test eax, eax
pop ecx
je 0x433d25
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00428a69
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x433d34
or dword [ebp + 0x10], 0x200000
jmp 0x433d78
or dword [ebp + 0x10], 0x40000
jmp 0x433d78
mov eax, dword [0x4558fc]
cmp eax, dword [ebp - 8]
je 0x433d78
push eax
call fcn.0042bdc4
cmp eax, ebx
pop ecx
je 0x433d78
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x433d78
mov eax, dword [0x455900]
cmp eax, dword [ebp - 8]
je 0x433d78
push eax
call fcn.0042bdc4
cmp eax, ebx
pop ecx
je 0x433d78
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4558f8]
call fcn.0042bdc4
cmp eax, ebx
pop ecx
je 0x433d98
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x433d9a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43b1e6
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x451680]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0043b17b
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004291d0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x43b235
cmp dword [ebp - 0x1c], 5
jb 0x43b24d
jmp 0x43b249
cmp dword [ebp - 0x10], 1
jne 0x43b24d
cmp dword [ebp - 0x1c], 4
ja 0x43b249
jne 0x43b24d
cmp dword [ebp - 0x18], 0
jbe 0x43b24d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x445028
call fcn.0043b04f
test eax, eax
jge 0x43b26e
mov byte [0x455b14], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004280e6
add ebp, 0x78
leave
ret
Function at 0x64741480
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
and esp, 0xfffffff0
sub esp, 0x20
mov ebx, dword [ebp + 0x10]
test byte [0x64745028], 1
jne 0x647414a8
mov eax, ebx
call sym._device_access_information_create
mov ebx, dword [ebp - 4]
leave
ret 0xc
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._debugstr_hstring
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.device_id__s__value__p_stub._n
mov dword [esp + 8], str.statics_CreateFromId
mov dword [esp + 4], 0x64745028
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov eax, ebx
call sym._device_access_information_create
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x64743ed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x64743f2b
cmp byte [esi + ebx - 1], 0xa
je 0x64743eff
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6474c0a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x402e5b
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402e78
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402e87
mov ebx, 0x40f020
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402e9c
mov ecx, dword [0x423ed8]
add ecx, eax
push ecx
call fcn.00403080
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040304e
test eax, eax
je 0x402ff9
test byte [ebp + 0x17], 0x80
je 0x402fe2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40af90
mov dword [ebp - 0xc], eax
call fcn.00405dd9
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403044
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402eec
mov esi, dword [ebp + 0x14]
mov edi, 0x40b020
push esi
push edi
call fcn.0040304e
test eax, eax
je 0x402ff9
sub dword [ebp + 0x14], esi
mov dword [0x40afa8], edi
mov dword [0x40afac], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40af90
mov dword [0x40afb0], ebx
mov dword [0x40afb4], eax
call fcn.00405df9
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x402fda
mov esi, dword [0x40afb0]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x423f34], 1
mov edi, eax
je 0x402f8e
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402f5b
cmp dword [ebp + 0x14], 0
jne 0x402f8e
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push 0x409120
push eax
call dword [0x407200]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404d7b
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x402fcf
cmp dword [ebp + 0x10], eax
jne 0x402fb7
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fde
cmp dword [ebp - 0x10], esi
jne 0x402fde
add dword [ebp - 4], esi
jmp 0x402fc3
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40afb0]
cmp dword [ebp - 0x14], 1
jne 0x402f0f
jmp 0x403044
cmp dword [ebp + 0x14], eax
jg 0x402edf
jmp 0x403044
push 0xfffffffffffffffc
jmp 0x402ffb
push 0xfffffffffffffffe
jmp 0x402ffb
test edi, edi
je 0x403039
cmp dword [ebp + 0x14], esi
jge 0x402fee
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040304e
test eax, eax
jne 0x403041
push 0xfffffffffffffffd
pop eax
jmp 0x403047
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403009
mov esi, dword [ebp + 0x14]
mov edi, 0x40b020
push esi
push edi
call fcn.0040304e
test eax, eax
je 0x402ff9
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fde
cmp esi, dword [ebp + 0x10]
jne 0x402fde
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x402ffe
jmp 0x403044
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40572b
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405cff
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40574f
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405888
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x422608], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422608
je 0x405793
push 1
push 0
push esi
call fcn.004056b4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40588e
cmp eax, edi
jg 0x40588e
mov esi, 0x422080
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40588e
cmp eax, edi
jg 0x40588e
push esi
push ebp
push 0x409334
push 0x421c80
call dword [0x407200]
mov ebx, eax
mov eax, dword [0x423e90]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004059ff
push 4
push 0xc0000000
push esi
call fcn.004056b4
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405888
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405881
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405881
cmp edi, dword [esp + 0x18]
jne 0x405881
push str._Rename__r_n
push esi
call fcn.00405629
test eax, eax
jne 0x405895
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004059dd
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421c80
push eax
call fcn.00405675
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423f10]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409330
push eax
call fcn.00405629
test eax, eax
je 0x40584c
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4058bc
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4058b1
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x40584e
Function at 0x81bcc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bee48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, [edi + 0x104]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.00816bc0
test eax, eax
jne 0x81bd2c
push ebp
push 0x76dfe0
mov ecx, edi
call fcn.0081af40
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.00816580
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.00806210
push ebx
mov dword [esp + 0x4c], ebp
call fcn.00816d70
add esp, 4
test eax, eax
je 0x81bdcf
add esi, 0x18
push esi
call fcn.00806bf0
add esi, eax
push esi
call fcn.00806bf0
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x81c0d2
jmp dword [ecx*4 + 0x44e510]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.0081b080
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call fcn.00806bf0
add esi, eax
push esi
call fcn.00806bf0
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x81be20
mov ecx, dword [esi + 0x1c]
push ecx
call dword [fcn.004c3634]
test eax, eax
je 0x81be20
mov eax, 1
jmp 0x81be22
xor eax, eax
cmp ebx, 8
jge 0x81c087
cmp ebx, 7
ja 0x81c0d2
jmp dword [ebx*4 + 0x44e520]
test eax, eax
jne 0x81c09a
mov ecx, dword [esp + 0x10]
push eax
push 0x76dfcc
call fcn.0081af40
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.0081c5e0
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x752fa0
call fcn.00806410
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov edx, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10