joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b910
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x48b93a
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x48b92b
xor eax, eax
jmp 0x48b98d
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x48b96b
cmp dword [esi + 8], 0
jne 0x48b95b
push 0x4132b4
push dword [eax + 8]
call fcn.00495078
mov dword [esi + 8], eax
pop ecx
pop ecx
test eax, eax
jne 0x48b95b
or eax, 0xffffffff
jmp 0x48b98d
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.004935a8
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x48b98b
cmp dword [esi + 8], eax
je 0x48b985
push dword [esi + 8]
call fcn.00493a76
and dword [esi + 8], edi
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x4a57d6
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b0780]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00498317
mov dword [ebp - 0x14], eax
cmp dword [0x4b5e5c], esi
jne 0x4a58c9
push 0x800
push esi
push 0x404c14
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4a5856
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4a59a9
push esi
push esi
push 0x404c14
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4a59a9
push 0x410450
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a59a9
push eax
call ebx
push 0x41045c
push edi
mov dword [0x4b5e5c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x41046c
push edi
mov dword [0x4b5e60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x410480
push edi
mov dword [0x4b5e64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b5e6c], eax
test eax, eax
je 0x4a58c6
push 0x41049c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b5e68], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4a58ee
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4a58e1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4a5903
push 4
pop eax
jmp 0x4a59ab
cmp dword [ebp - 0x14], esi
je 0x4a5903
push dword [0x4b5e5c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4a58e8
mov eax, dword [0x4b5e68]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4a5961
cmp dword [0x4b5e6c], edi
je 0x4a5961
push eax
call ebx
push dword [0x4b5e6c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4a5961
test eax, eax
je 0x4a5961
call ecx
test eax, eax
je 0x4a5956
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4a5956
test byte [ebp - 8], 1
jne 0x4a5961
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4a5991
mov eax, dword [0x4b5e60]
cmp eax, edi
je 0x4a598e
push eax
call ebx
test eax, eax
je 0x4a598e
call eax
mov esi, eax
test esi, esi
je 0x4a598e
mov eax, dword [0x4b5e64]
cmp eax, edi
je 0x4a598e
push eax
call ebx
test eax, eax
je 0x4a598e
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4b5e5c]
call ebx
test eax, eax
je 0x4a59a9
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4a59ab
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00490c9e
mov esp, ebp
pop ebp
ret
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40596d
pop dword [ebp - 8]
mov eax, 0x40596d
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x5eb0e2e7
sub dword [ebp - 0x18], 0x105e9d9c
mov dword [ebp - 0x14], 0x4545e558
add dword [ebp - 0x14], 0xeced66ed
mov dword [ebp - 0x10], 0xb81844f5
sub dword [ebp - 0x10], 0x6bcc00c7
mov dword [ebp - 0xc], 0x2226695f
sub dword [ebp - 0xc], 0x2226695f
lea eax, [ebp - 0x18]
push eax
mov eax, 0xad04d290
add eax, 0x533b9dd0
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xc0dae1cb
add dword [ebp - 0x18], 0xb397878b
mov dword [ebp - 0x14], 0x8654420f
sub dword [ebp - 0x14], 0x44e7e09a
mov dword [ebp - 0x10], 0x2b4cea4b
sub dword [ebp - 0x10], 0xc7dd7ddf
mov dword [ebp - 0xc], 0xf7c05725
sub dword [ebp - 0xc], 0xf7c05725
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x38fcf
push 0
call eax
mov ecx, 0x749c87f2
add ecx, 0x8b63c924
mov ebx, eax
mov edx, 0xc330d3a4
sub edx, 0xc2efd3a4
add edx, dword [ebp - 8]
mov edi, 0x6425bf8b
mov esi, dword [edx]
xor dword [ebp - 4], 0xcf38f678
add esi, edi
mov dword [ebx], esi
add dword [ebp - 4], edi
add ebx, 0xa2ab1024
add ebx, 0x5d54efe0
add edx, 0x9e381725
add edx, 0x61c7e8df
loop 0x405a7f
add eax, 0x1372b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x40a2d2
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x421bb0
call fcn.00417624
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.00401046
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, 0x42dba8
xor ebx, ebx
push esi
push ebx
push str.ScriptDriven
push dword [0x4235b8]
call edi
sub eax, ebx
je 0x40a310
dec eax
je 0x40a326
dec eax
je 0x40a330
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x38]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x10], 1
cmp byte [ebp + 8], bl
je 0x40a356
push esi
push ebx
push dword [0x4235e8]
push dword [0x4235f8]
call edi
cmp eax, 2
je 0x40a35b
mov ecx, dword [ebp - 0x18]
call fcn.0040b44e
test al, al
je 0x40a35b
push 1
pop eax
jmp 0x40a312
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
push ebx
push ebx
lea eax, [ebp + 8]
push ebx
push eax
push 0x427a30
push 0x423a58
call fcn.00404edd
test eax, eax
jge 0x40a39a
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x40a392
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
pop ebx
jmp 0x40a499
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
push 0x427cc0
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 2
call dword [ecx]
cmp eax, ebx
jl 0x40a458
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 3
call dword [ecx + 0x1c]
test eax, eax
jge 0x40a3d7
push dword [ebp - 0x14]
jmp 0x40a452
xor eax, eax
lea edi, [ebp - 0x2b]
mov byte [ebp - 0x2c], bl
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x2c]
push 0x14
push eax
push 0x42bad0
push dword [0x4235e4]
push dword [0x4235b8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x40a412
xor edi, edi
jmp 0x40a43e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.00417720
mov edi, esp
push ebx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp - 0x18]
mov byte [edi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.004122d8
pop ecx
cmp eax, 1
pop ecx
push dword [ebp - 0x14]
jne 0x40a472
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x40a382
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40a382
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x40a489
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x40a499
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x40a312
Function at 0x40b44e
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push edi
push str.31EE4FE8_7F9C_11D5_ABB8_00B0D02332EB
lea eax, [ebp - 0x80c]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_s
push eax
xor ebx, ebx
xor edi, edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 8]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0xf003f
push ebx
push ebx
lea eax, [ebp - 0x80c]
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40b4ba
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x80c]
push eax
push esi
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 8], ebx
sete byte [ebp - 1]
cmp edi, ebx
je 0x40b4cc
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40befa
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
push 0x42dba8
push 0
push dword [0x4235e8]
mov esi, ecx
push str.dotnetfx.exe
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 2
mov edi, 0x409
je 0x40bf30
push eax
mov ecx, esi
push dword [esp + 0x10]
call fcn.0040bf3b
test eax, eax
je 0x40bf34
mov edi, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x40e362
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
and dword [ebp - 0x14], 0
push esi
push edi
mov edi, ecx
call fcn.0040105f
push 1
lea eax, [ebp - 0xd0]
pop esi
mov dword [ebp - 0xd0], 0x94
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 4], eax
sub eax, 0
mov dword [ebp - 8], ecx
je 0x40e412
dec eax
je 0x40e407
dec eax
jne 0x40e419
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], 2
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x3c]
push 4
dec eax
pop ecx
je 0x40e3f7
dec eax
je 0x40e3ee
dec eax
jne 0x40e3fa
mov dword [ebp - 0x18], 5
jmp 0x40e3fa
mov dword [ebp - 0x18], 3
jmp 0x40e3fa
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0xcc], ecx
jb 0x40e419
mov dword [ebp - 0x14], esi
jmp 0x40e419
movzx eax, cx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jmp 0x40e419
mov dword [ebp - 0x18], 7
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00401046
mov ecx, eax
call fcn.0040f410
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x40e608
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
dec edx
test eax, eax
je 0x40e642
mov eax, dword [ecx + 0x6c]
push esi
lea esi, [edx + 1]
mov edx, dword [ebp + 8]
push edi
mov ecx, dword [ebp + 0x10]
movzx edi, byte [edx]
and ecx, 0xff
xor ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 8
mov ecx, dword [eax + ecx*4]
inc edx
xor edi, ecx
dec esi
mov dword [ebp + 0x10], edi
jne 0x40e620
pop edi
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc
Function at 0x4101e6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41029c
lea eax, [ebp - 0x118]
push 0xff
push eax
push dword [ebp + 0xc]
call fcn.00411946
add esp, 0xc
cmp dword [ebp + 0xc], 0x452
jne 0x41028c
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x410248
lea eax, [ebp - 0x118]
push 0x4271e4
push eax
call fcn.00418120
pop ecx
test eax, eax
pop ecx
jne 0x410264
mov eax, 0x486
push eax
mov dword [0x42ea7c], eax
call fcn.00411866
pop ecx
push dword [0x42ea7c]
call fcn.0041801e
lea eax, [ebp - 0x18]
push eax
push 0
call fcn.00412a0e
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
leave
ret 8

Function at 0x410480
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
mov dword [ebp - 4], ecx
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x41b]
mov byte [ebp - 0x41c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x42dba8
push edi
push ebx
push dword [0x4236e8]
push dword [0x4236e4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push 0x4283a4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.USER32.dll_CharNextA]
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
call esi
push eax
call esi
push edi
lea ecx, [ebp - 0x41c]
push 0x400
push ecx
push eax
push eax
push dword [0x4236e4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 8]
sub eax, ebx
je 0x410562
dec eax
jne 0x41057b
mov ecx, dword [ebp - 4]
push ebx
lea eax, [ebp - 0x41c]
push ebx
push eax
call fcn.0041010a
test eax, eax
je 0x41055e
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
push eax
push 0x42bad4
push esi
call fcn.00412068
push esi
call fcn.004121ca
test eax, eax
jne 0x41057b
lea eax, [ebp - 0x41c]
push eax
push 0x42e67c
push esi
call fcn.00412068
push esi
call fcn.004121ca
test eax, eax
jne 0x41057b
xor eax, eax
jmp 0x41057e
lea eax, [ebp - 0x41c]
push eax
push 0x42e67c
push dword [ebp + 0xc]
call fcn.00412068
push dword [ebp + 0xc]
jmp 0x410555
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x410585
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
mov esi, str.SetupBitmapCls
push edi
lea eax, [ebp - 0x14]
push esi
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 4
xor ebx, ebx
pop eax
mov dword [ebp - 0x54], 3
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x327c]
push 0x7f00
push ebx
mov dword [ebp - 0x50], 0x4106dd
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x7c]
push eax
push esi
push dword [edi + 0x327c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.USER32.dll_GetClassInfoA]
test eax, eax
jne 0x410608
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x4106aa
push 0xd0
call fcn.00416f98
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4106aa
mov eax, dword [ebp + 8]
push 1
pop ecx
mov dword [esi + 4], ecx
mov edx, dword [eax]
mov dword [esi], edx
mov edx, dword [eax + 4]
mov dword [esi + 8], edx
mov eax, dword [eax]
mov dword [esi + 0x78], eax
lea eax, [ebp - 0x2c]
push eax
push 0x18
push dword [esi]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
call ebx
sub eax, dword [ebp - 0x28]
push 1
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 8], eax
call ebx
sub eax, dword [ebp - 0x24]
push esi
push dword [edi + 0x327c]
xor ecx, ecx
cdq
push ecx
push ecx
push dword [ebp - 0x24]
sub eax, edx
sar eax, 1
push dword [ebp - 0x28]
mov dword [edi + 0x2e3c], ecx
push eax
push dword [ebp + 8]
push 0x86000000
push str.SetupBitmapWin
push str.SetupBitmapCls
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
test ebx, ebx
jne 0x4106ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x4106d6
push esi
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 5
push ebx
mov dword [edi + 0x2e3c], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0x2e3c]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x410da9
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x42218a
call fcn.00417624
push ecx
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
lea eax, [esi + 0x120]
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edi
mov byte [esi + 0x110], 1
mov dword [esi + 0x118], edi
mov dword [ebp - 0x14], esi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
push dword [ebp + 8]
lea eax, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], 0x423aa8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.004112c3
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocStringLen
push dword [ebp + 8]
mov dword [esi + 0x114], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x108], eax
jne 0x410e3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
jmp 0x410ec0
push 0x2e
mov dword [esi + 0x10c], 1
call fcn.00416f98
push 0x2e
push edi
push eax
mov dword [esi + 0x11c], eax
call fcn.00416fb0
add esp, 0x10
mov ecx, esi
push edi
push edi
push dword [esi + 0x114]
push dword [esi + 0x108]
call fcn.00411551
test eax, eax
je 0x410ec0
lea eax, [ebp - 0x10]
push edi
push eax
push 0x2e
push dword [esi + 0x11c]
push dword [esi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410ec0
cmp dword [ebp - 0x10], edi
je 0x410ec0
mov ecx, esi
call fcn.00410f5c
test eax, eax
je 0x410ec0
mov eax, dword [esi + 0x11c]
mov ax, word [eax + 0xe]
cmp ax, di
je 0x410ec0
movzx eax, ax
push eax
mov ecx, esi
call fcn.0041123f
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41106b
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ecx + 0x10c], ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
je 0x4110ba
cmp dword [ebp + 8], ebx
je 0x4110ba
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, 0x80
push ebx
push edi
push 3
push ebx
push 3
add ecx, 4
push SysReAllocStringLen
push ecx
call esi
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x4110c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x118], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
mov ecx, dword [ebp - 0xc]
push ebx
push ebx
push dword [ebp + 0xc]
push eax
call fcn.00411551
test eax, eax
je 0x4110ba
push ebx
push edi
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0x10]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x411107
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
push dword [ebp - 8]
mov dword [ecx + 0x118], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4110ba
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x10c]
mov eax, 0x400
cmp edi, eax
mov dword [ebp + 0xc], eax
jae 0x41111f
mov dword [ebp + 0xc], edi
push dword [ebp + 0xc]
call fcn.00416f98
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 4]
push ebx
push ecx
mov dword [ebp - 0xc], eax
push dword [ebp + 0xc]
push eax
push dword [ebp - 8]
call esi
test eax, eax
je 0x41117c
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub edi, dword [ebp - 4]
je 0x41117c
cmp dword [ebp - 4], ebx
je 0x41117c
cmp edi, 0x400
jae 0x41116c
mov dword [ebp + 0xc], edi
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebp - 8]
jmp 0x41113d
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp + 8]
test byte [eax + 0x104], 2
je 0x4111ac
push eax
push dword [ebp + 0x10]
call fcn.0040141d
pop ecx
pop ecx
push dword [ebp - 0xc]
call fcn.0041684b
pop ecx
push 1
pop eax
jmp 0x4110bc

Function at 0x41123f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
jle 0x4112bc
mov esi, 0x138
push esi
call fcn.00416f98
mov ebx, eax
push esi
push 0
push ebx
call fcn.00416fb0
add esp, 0x10
lea eax, [ebp - 8]
push 0
push eax
push esi
push ebx
push dword [edi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4112bc
cmp dword [ebp - 8], 0
je 0x4112bc
push ebx
lea ecx, [edi + 0x120]
call fcn.00411592
push 1
push 0
push dword [ebx + 0x10c]
mov ecx, edi
push dword [edi + 0x108]
call fcn.00411551
test eax, eax
je 0x4112bc
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jl 0x411258
pop edi
pop esi
pop ebx
leave
ret 4