joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447450
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48a423
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0047b1c1
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0048093a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00481e92
test eax, eax
je 0x44756c
mov ecx, dword [esp + 0x3c]
call fcn.00480967
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x447530
push edi
mov ecx, esi
call fcn.0047df24
mov ecx, esi
call fcn.00447710
cmp dword [esp + 0x38], 1
jne 0x447565
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0047e08e
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x449740
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x449773
push esi
call fcn.0044c8b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44976c
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 0x4497f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4497e2
mov eax, dword [esi + 8]
test eax, eax
je 0x449797
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 0x4497de
cmp eax, 2
je 0x4497e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44978a
cmp eax, 3
je 0x4497bd
cmp eax, 1
jne 0x44978a
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 0x44978a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44978a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00449820
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x449808
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00449820
add esp, 4
pop esi
ret

Function at 0x455ca0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x79350c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x455cb3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x455cf4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x7935b4]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x455d26
mov bl, byte [esp + ecx + 0x4c]
jmp 0x455d2a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x455d1b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x455d48
mov bl, byte [esp + ecx + 0x4c]
jmp 0x455d4c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x455d3d
xor ecx, ecx
mov eax, 0x79351c
xor ebx, ebx
mov bl, byte [ecx + 0x7935c4]
cmp byte [esp + ebx + 0x14], 0
je 0x455d77
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x7935dc]
cmp byte [esp + ebx + 0x14], 0
je 0x455d8e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x455d5e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x455ce7
lea edx, [esp + 0x84]
push edx
call fcn.00455dd0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x45a920
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x778918
push 0x46aef4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.00469260
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45aad0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x45ab11
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x45ab7e
cmp dword [esp + 0x1c], 2
jne 0x45ab7e
cmp dword [esp + 0x10], 5
jne 0x45ab7e
cmp dword [esp + 0x14], 1
jne 0x45ab7e
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x45ab68
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x45ab59
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x45ab61
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
test eax, eax
je 0x45ab7e
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret
Function at 0x45b710
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2820
call fcn.00469b80
mov eax, dword [esp + 0x2824]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x20]
push str..PhysicalDrive_d
push ecx
call fcn.0046acee
add esp, 0xc
lea edx, [esp + 0x1c]
push 0
push 0
push 3
push 0
push 3
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x45b8bd
xor eax, eax
mov ecx, 0x9c4
mov dword [esp + 0x10], eax
lea edi, [esp + 0x11c]
mov dword [esp + 0x14], eax
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x2710
push edx
lea eax, [esp + 0x20]
push 0xc
push eax
push 0x2d1400
push esi
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
je 0x45b8bd
mov ecx, dword [esp + 0x283c]
mov edx, dword [esp + 0x128]
push ecx
push 0
lea eax, [esp + 0x124]
push edx
push eax
call fcn.0045b8d0
mov ecx, dword [esp + 0x2848]
mov edx, dword [esp + 0x13c]
push ecx
push 0
lea eax, [esp + 0x134]
push edx
push eax
call fcn.0045b8d0
mov ecx, dword [esp + 0x2860]
mov edx, dword [esp + 0x150]
push ecx
push 0
lea eax, [esp + 0x144]
push edx
push eax
call fcn.0045b8d0
mov ecx, dword [esp + 0x2864]
mov edx, dword [esp + 0x164]
push ecx
push 1
lea eax, [esp + 0x154]
push edx
push eax
call fcn.0045b8d0
mov ecx, dword [esp + 0x2884]
add esp, 0x40
xor eax, eax
lea edi, [esp + 0x11c]
mov dword [ecx], 1
mov ecx, 0x9c4
lea edx, [esp + 0xc]
push eax
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x124]
push 0x2710
push eax
push 0
push 0
push 0x700a0
push esi
call ebx
test eax, eax
je 0x45b8bd
mov edi, dword [esp + 0x124]
mov edx, dword [esp + 0x2848]
mov eax, dword [esp + 0x284c]
xor ecx, ecx
cmp edi, 0xc
push esi
setne cl
inc ecx
mov dword [edx], ecx
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x13c]
mov dword [eax], ecx
mov dword [eax + 4], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2820
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2820
ret

Function at 0x45bed0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x45bf36
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x45bf36
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x45bf17
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x45c2c0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x45c2f8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x45cfc0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x45d009
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x45d480
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48aa80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0045d030
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0045d0b0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0045d0b0
lea ecx, [esi + 0xc]
call fcn.00479b52
lea ecx, [esi + 0x10]
call fcn.00479b52
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0045e640
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0045e640
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0045e640
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00479bc7
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00479bc7
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x47bfb7
Capabilities:
Get graphical window text

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

Function at 0x47d6a8
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 0x47d6ea
call fcn.0048364f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47d6ea
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47d6e1
xor eax, eax
jmp 0x47d6f2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047d6f8
pop edi
pop esi
pop ebx
ret 4

Function at 0x483b7f
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 0x483bad
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x483bcb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00483ae5
jmp 0x483bcb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x483bcb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00483ae5
test edi, edi
mov eax, edi
jne 0x483bb5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x407f60
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
mov eax, dword [esp + 0xc]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407f8f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0x14
push esi
push edi
mov ebx, eax
call ebp
cmp dword [esp + 0x18], 0x14
je 0x407fbf
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ecx, dword [esi + 0xc]
mov edx, dword [esi]
imul edx, ecx
sub ebx, 0x14
cmp ebx, edx
je 0x407fd6
mov eax, ebx
xor edx, edx
div ecx
mov dword [esi], eax
mov eax, dword [esi]
imul eax, ecx
push eax
call fcn.00450d2b
mov edx, dword [esi + 0xc]
add esp, 4
imul edx, dword [esi]
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
push eax
push edi
mov dword [esi + 0x10], eax
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x408010
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
mov eax, dword [esi + 4]
imul eax, dword [esi + 0xc]
push eax
call fcn.00450d2b
add esp, 4
mov dword [esi + 0x10], eax
test eax, eax
je 0x40804f
mov edx, dword [esi]
lea ecx, [esp + 4]
imul edx, dword [esi + 0xc]
push 0
push ecx
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
pop esi
pop ecx
ret

Function at 0x408750
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp]
push 0
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret

Function at 0x408a10
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x483958]
test eax, eax
je 0x408a80
mov eax, dword [0x48383c]
push esi
dec eax
push eax
push 0x483838
call fcn.00407cf0
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, eax
add esp, 8
test edx, edx
je 0x408a5b
push edi
lea ecx, [esp + 8]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov edx, dword [0x483950]
push edx
call esi
pop edi
mov ecx, dword [0x483950]
lea eax, [esp + 4]
push 0
push eax
push 2
push 0x46b2f4
push ecx
call esi
mov edx, dword [0x483950]
push edx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop esi
pop ecx
ret
Function at 0x408a90
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x483958]
push ebx
push esi
push edi
test eax, eax
je 0x408aa8
mov eax, dword [0x483950]
push eax
jmp 0x408b34
mov eax, dword [0x483954]
test eax, eax
je 0x408b3a
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x483850
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408b3a
mov eax, dword [0x48383c]
xor esi, esi
test eax, eax
jle 0x408b33
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0x483838
call fcn.00407cf0
mov edx, eax
add esp, 8
test edx, edx
je 0x408b17
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push ebx
call ebp
lea edx, [esp + 0x10]
push 0
push edx
push 2
push 0x46b2f4
push ebx
call ebp
mov eax, dword [0x48383c]
inc esi
cmp esi, eax
jl 0x408aeb
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x48383c]
xor esi, esi
test eax, eax
jle 0x408b6a
push esi
push 0x483838
call fcn.00407cf0
add esp, 8
test eax, eax
je 0x408b60
push eax
call fcn.00450d9f
add esp, 4
mov eax, dword [0x48383c]
inc esi
cmp esi, eax
jl 0x408b45
push 0x483838
call fcn.00407c50
add esp, 4
mov ecx, 0x49
xor eax, eax
mov edi, 0x483838
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x408b90
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
test ebx, ebx
je 0x408c3d
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x408c3d
lea esi, [ecx + 1]
push esi
call fcn.00450d2b
mov edi, eax
push esi
push ebx
push edi
call fcn.00450dd0
push edi
push 0x483838
call fcn.00407c90
mov eax, dword [0x483958]
add esp, 0x18
test eax, eax
je 0x408c3d
mov eax, dword [0x48383c]
dec eax
push eax
push 0x483838
call fcn.00407cf0
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, eax
add esp, 8
test edx, edx
je 0x408c19
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov edx, dword [0x483950]
push edx
call esi
mov ecx, dword [0x483950]
lea eax, [esp + 0x10]
push 0
push eax
push 2
push 0x46b2f4
push ecx
call esi
mov edx, dword [0x483950]
push edx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop edi
pop esi
pop ebx
ret
Function at 0x408c50
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
xor ebx, ebx
xor ebp, ebp
test edi, edi
je 0x408c6e
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov edi, dword [esp + 0x18]
test edi, edi
je 0x408c82
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x408c96
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea eax, [ebx + ebp]
add eax, esi
je 0x408d6e
inc eax
push eax
call fcn.00450d2b
add esp, 4
mov edi, eax
test esi, esi
je 0x408cc3
mov ecx, dword [esp + 0x14]
lea eax, [esi + 1]
push eax
push ecx
push edi
call fcn.00450dd0
add esp, 0xc
test ebx, ebx
je 0x408cdc
mov eax, dword [esp + 0x18]
lea edx, [ebx + 1]
push edx
lea ecx, [edi + esi]
push eax
push ecx
call fcn.00450dd0
add esp, 0xc
test ebp, ebp
je 0x408cf5
mov edx, dword [esp + 0x1c]
inc ebp
lea eax, [edi + ebx]
push ebp
add eax, esi
push edx
push eax
call fcn.00450dd0
add esp, 0xc
push edi
push 0x483838
call fcn.00407c90
mov eax, dword [0x483958]
add esp, 8
test eax, eax
je 0x408d6e
mov ecx, dword [0x48383c]
dec ecx
push ecx
push 0x483838
call fcn.00407cf0
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, eax
add esp, 8
test edx, edx
je 0x408d4b
lea eax, [esp + 0x14]
push 0
push eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [0x483950]
push edx
push ecx
call esi
mov eax, dword [0x483950]
lea edx, [esp + 0x14]
push 0
push edx
push 2
push 0x46b2f4
push eax
call esi
mov ecx, dword [0x483950]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4092a0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push str.setup.cfg
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4092d3
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x4092f2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
lea eax, [esi + 1]
push eax
call fcn.00450d2b
add esp, 4
lea ecx, [esp + 0x18]
mov ebx, eax
push 0
push ecx
push esi
push ebx
push edi
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409335
test ebx, ebx
je 0x409325
push ebx
call fcn.00450d9f
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
push edi
mov byte [ebx + esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], ebx
test eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], 0
jbe 0x40943e
push ebp
mov edx, dword [esp + 0x10]
push edx
call fcn.00408e90
mov cl, byte [0x47de5c]
add esp, 4
test cl, cl
mov dword [esp + 0x20], eax
je 0x40941d
mov ecx, dword [0x46b700]
mov dword [esp + 0x14], 0
test ecx, ecx
jbe 0x40941d
mov ebp, 0x46b6fc
mov dl, byte [0x47de5c]
mov edi, dword [ebp - 4]
xor eax, eax
xor ecx, ecx
test dl, dl
mov esi, 0x47de5d
je 0x4093b5
mov dl, byte [esi]
inc eax
inc esi
test dl, dl
jne 0x4093ad
mov dl, byte [edi]
lea esi, [edi + 1]
test dl, dl
je 0x4093c6
mov bl, byte [esi]
inc ecx
inc esi
test bl, bl
jne 0x4093be
cmp eax, ecx
jne 0x4093ff
mov bl, byte [eax + 0x47de5b]
dec eax
dec ecx
cmp bl, byte [ecx + edi]
jne 0x4093ec
test eax, eax
je 0x4093f0
test ecx, ecx
je 0x4093ec
mov bl, byte [eax + 0x47de5b]
dec eax
dec ecx
cmp bl, byte [ecx + edi]
je 0x4093d7
test eax, eax
jne 0x4093ff
test ecx, ecx
jne 0x4093ff
cmp byte [0x47de5c], dl
jne 0x4093ff
call dword [ebp]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x46b700]
inc eax
add ebp, 8
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x409397
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
add ecx, eax
add edx, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
cmp ecx, eax
mov dword [esp + 0x10], edx
jb 0x40935d
pop ebp
push ebx
call fcn.00450d9f
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x1c
ret