joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407d5a
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41aca4
call fcn.00411544
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, 0x423eb8
xor ebx, ebx
push esi
push ebx
push str.ScriptDriven
push dword [0x41b548]
call edi
sub eax, ebx
je 0x407d98
dec eax
je 0x407dae
dec eax
je 0x407db8
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 0x407dde
push esi
push ebx
push dword [0x41b578]
push dword [0x41b588]
call edi
cmp eax, 2
je 0x407de3
mov ecx, dword [ebp - 0x18]
call fcn.00408af6
test al, al
je 0x407de3
push 1
pop eax
jmp 0x407d9a
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
lea eax, [ebp + 8]
push eax
push 0x41f560
push 4
push ebx
push 0x41b9b8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x407e23
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x407e1b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
pop ebx
jmp 0x407f22
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
push 0x41f830
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 2
call dword [ecx]
cmp eax, ebx
jl 0x407ee1
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 0x407e60
push dword [ebp - 0x14]
jmp 0x407edb
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 0x4230e0
push dword [0x41b574]
push dword [0x41b548]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x407e9b
xor edi, edi
jmp 0x407ec7
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.00411720
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.0040c6af
pop ecx
cmp eax, 1
pop ecx
push dword [ebp - 0x14]
jne 0x407efb
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x407e0b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x407e0b
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x407f12
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x407f22
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x407d9a
Function at 0x407fda
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
call fcn.00401046
mov dword [ebp - 4], eax
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x407]
mov byte [ebp - 0x408], bl
rep stosd dword es:[edi], eax
mov esi, dword [ebp + 0x14]
cmp dword [ebp + 0x10], ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esi], 2
je 0x40802d
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x408]
push edi
push eax
call fcn.00410fb0
pop ecx
pop ecx
jmp 0x408067
mov edi, 0x423eb8
push edi
push ebx
push dword [0x41b578]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi], eax
push edi
lea eax, [ebp - 0x408]
push 0x400
push eax
push dword [ebp + 8]
push dword [0x41b57c]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, dword [ebp + 0xc]
mov esi, dword [esi]
sub esi, ebx
je 0x408148
dec esi
je 0x408123
dec esi
je 0x40810a
dec esi
je 0x4080b4
dec esi
jne 0x4080f0
push dword [ebp + 8]
push 0x4230e4
push edi
call fcn.0040c475
push edi
call fcn.0040c5ad
test eax, eax
jne 0x4080f0
mov eax, 0x483
push edi
push eax
mov dword [0x424d80], eax
call fcn.0040bd91
pop ecx
pop ecx
xor eax, eax
jmp 0x4080f3
mov esi, dword [ebp - 8]
push ebx
mov ecx, esi
call fcn.00407d5a
cmp dword [esi + 0x10], ebx
je 0x4080fa
push edi
lea eax, [ebp - 0x408]
push dword [ebp + 8]
mov ecx, esi
push eax
call fcn.00408159
test eax, eax
je 0x4080b0
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x408]
push 1
push eax
push str._URL
call fcn.0040a77e
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
lea eax, [ebp - 0x408]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4080f0
mov ecx, dword [ebp - 8]
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x408]
push eax
call fcn.00408159
test eax, eax
jne 0x4080f0
jmp 0x4080b0
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x408]
push 1
push eax
call fcn.0040a5a4
test eax, eax
je 0x4080b0
lea eax, [ebp - 0x408]
push eax
jmp 0x408088
lea eax, [ebp - 0x408]
push eax
push 0x42497c
jmp 0x40808d
Function at 0x408af6
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 0x408b62
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 0x408b74
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408e29
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 0x408ed9
dec eax
je 0x408ece
dec eax
jne 0x408ee0
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 0x408ebe
dec eax
je 0x408eb5
dec eax
jne 0x408ec1
mov dword [ebp - 0x18], 5
jmp 0x408ec1
mov dword [ebp - 0x18], 3
jmp 0x408ec1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0xcc], ecx
jb 0x408ee0
mov dword [ebp - 0x14], esi
jmp 0x408ee0
movzx eax, cx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jmp 0x408ee0
mov dword [ebp - 0x18], 7
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00401046
mov ecx, eax
call fcn.00409dac
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x4090cf
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 0x409109
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 0x4090e7
pop edi
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc
Function at 0x40a426
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b4
push ebx
push esi
push edi
push 1
push dword [0x41f970]
mov dword [ebp - 4], ecx
call fcn.0040a5a4
test eax, eax
je 0x40a50e
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x4b3]
mov byte [ebp - 0x4b4], bl
push dword [0x41f970]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x4b4]
push 0x4230e4
push eax
call fcn.0040c475
lea eax, [ebp - 0x4b4]
mov edi, str.Languages
push eax
push ebx
push str.Count
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, ebx
mov dword [ebp - 8], eax
jbe 0x40a506
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ebx
push 0x41f36c
lea eax, [ebp - 0xb4]
push str._s_d
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x1c]
push 0x13
push eax
lea eax, [ebp - 0xb4]
push 0x4230e0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40a50e
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push str.0x0_s.ini
push eax
call esi
mov ecx, dword [ebp - 4]
add esp, 0xc
lea eax, [ebp - 0x34]
push 1
push eax
call fcn.0040a5a4
test eax, eax
je 0x40a50e
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x40a4a1
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x40a509

Function at 0x40a67b
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 0x40a731
lea eax, [ebp - 0x118]
push 0xff
push eax
push dword [ebp + 0xc]
call fcn.0040be05
add esp, 0xc
cmp dword [ebp + 0xc], 0x452
jne 0x40a721
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40a6dd
lea eax, [ebp - 0x118]
push 0x41f16c
push eax
call fcn.00412030
pop ecx
test eax, eax
pop ecx
jne 0x40a6f9
mov eax, 0x486
push eax
mov dword [0x424d80], eax
call fcn.0040bd91
pop ecx
push dword [0x424d80]
call fcn.00411f2e
lea eax, [ebp - 0x18]
push eax
push 0
call fcn.0040cda2
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 0x40a8f9
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
and byte [ebp - 0x41c], 0
push esi
mov dword [ebp - 4], ecx
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x41b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x423eb8
push edi
push 0
push dword [0x41b638]
push dword [0x41b634]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push 0x41fa1c
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 [0x41b634]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 8]
pop edi
sub eax, 0
pop esi
je 0x40a9c2
dec eax
jne 0x40a9d0
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.0040a5a4
test eax, eax
je 0x40a9be
lea eax, [ebp - 0x41c]
push eax
push 0x4230e4
push dword [ebp + 0xc]
call fcn.0040c475
push dword [ebp + 0xc]
call fcn.0040c5ad
test eax, eax
jne 0x40a9d0
xor eax, eax
jmp 0x40a9d3
lea eax, [ebp - 0x41c]
push eax
push 0x42497c
jmp 0x40a9aa
push 1
pop eax
leave
ret 8
Function at 0x40a9d7
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 + 0x2cd0]
push 0x7f00
push ebx
mov dword [ebp - 0x50], 0x40ab2f
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 + 0x2cd0]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.USER32.dll_GetClassInfoA]
test eax, eax
jne 0x40aa5a
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x40aafc
push 0xd0
call fcn.004110c7
mov esi, eax
pop ecx
cmp esi, ebx
je 0x40aafc
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 + 0x2cd0]
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 + 0x2894], 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 0x40ab00
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x40ab28
push esi
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 5
push ebx
mov dword [edi + 0x2894], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0x2894]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40b2ec
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x41af0e
call fcn.00411544
push ecx
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
lea eax, [esi + 0x11c]
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edi
mov dword [esi + 0x114], 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], 0x41b9f8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.0040b7fd
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocString
push dword [ebp + 8]
mov dword [esi + 0x110], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x108], eax
jne 0x40b379
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
jmp 0x40b3fc
push 0x2e
mov dword [esi + 0x10c], 1
call fcn.004110c7
push 0x2e
push edi
push eax
mov dword [esi + 0x118], eax
call fcn.00410ec0
add esp, 0x10
mov ecx, esi
push edi
push edi
push dword [esi + 0x110]
push dword [esi + 0x108]
call fcn.0040ba8b
test eax, eax
je 0x40b3fc
lea eax, [ebp - 0x10]
push edi
push eax
push 0x2e
push dword [esi + 0x118]
push dword [esi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b3fc
cmp dword [ebp - 0x10], edi
je 0x40b3fc
mov ecx, esi
call fcn.0040b4b4
test eax, eax
je 0x40b3fc
mov eax, dword [esi + 0x118]
mov ax, word [eax + 0xe]
cmp ax, di
je 0x40b3fc
movzx eax, ax
push eax
mov ecx, esi
call fcn.0040b779
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40b5c3
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ecx + 0x10c], ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
je 0x40b612
cmp dword [ebp + 8], ebx
je 0x40b612
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 SysReAllocString
push ecx
call esi
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x40b61b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x114], 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.0040ba8b
test eax, eax
je 0x40b612
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 0x40b65f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
push dword [ebp - 8]
mov dword [ecx + 0x114], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b612
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10c]
mov eax, 0x400
cmp ecx, eax
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], eax
jae 0x40b67a
mov dword [ebp + 8], ecx
push dword [ebp + 8]
call fcn.004110c7
pop ecx
mov edi, eax
lea eax, [ebp - 4]
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
push dword [ebp + 8]
push edi
push dword [ebp - 8]
call esi
test eax, eax
je 0x40b6d8
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp - 4]
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
sub dword [ebp + 0xc], eax
je 0x40b6d8
cmp eax, ebx
je 0x40b6d8
cmp dword [ebp + 0xc], 0x400
jae 0x40b6ca
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp + 8]
push edi
push dword [ebp - 8]
jmp 0x40b697
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0x10]
call esi
push edi
call fcn.00402fcf
pop ecx
push 1
pop eax
jmp 0x40b614

Function at 0x40b779
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 0x40b7f6
mov esi, 0x138
push esi
call fcn.004110c7
mov ebx, eax
push esi
push 0
push ebx
call fcn.00410ec0
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 0x40b7f6
cmp dword [ebp - 8], 0
je 0x40b7f6
push ebx
lea ecx, [edi + 0x11c]
call fcn.0040bad0
push 1
push 0
push dword [ebx + 0x10c]
mov ecx, edi
push dword [edi + 0x108]
call fcn.0040ba8b
test eax, eax
je 0x40b7f6
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jl 0x40b792
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40b7fd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
push esi
push edi
xor edi, edi
push edi
mov esi, ecx
push 0x80
push 3
push edi
push 3
lea eax, [esi + 4]
push SysReAllocString
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40b842
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
jmp 0x40b891
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x78]
push 0x40
push eax
push ebx
call esi
mov ecx, dword [ebp - 0xc]
push edi
push edi
push dword [ebp - 0x3c]
push ebx
call fcn.0040ba8b
test eax, eax
je 0x40b891
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x13c]
push 0x18
push eax
push ebx
call esi
movzx eax, word [ebp - 0x128]
mov ecx, dword [ebp - 0xc]
push 1
push edi
push eax
push ebx
call fcn.0040ba8b
test eax, eax
jne 0x40b895
xor eax, eax
jmp 0x40b8e7
cmp word [ebp - 0x136], di
mov dword [ebp - 8], edi
jbe 0x40b8d1
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x38]
push 0x28
push eax
push ebx
call esi
cmp word [ebp - 8], di
mov eax, dword [ebp - 0x24]
je 0x40b8bb
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x28]
inc dword [ebp - 8]
mov dword [ebp - 4], eax
mov ax, word [ebp - 8]
cmp ax, word [ebp - 0x136]
jb 0x40b8a1
mov ecx, dword [ebp - 0xc]
push ebx
call fcn.0040b8ec
add dword [ebp - 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b8ec
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push 2
push ebx
mov dword [ebp - 4], ecx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x40b918
xor eax, eax
jmp 0x40b9c8
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x40b9bd
push esi
mov esi, dword [eax + 0x3c]
add esi, eax
push edi
mov edi, dword [esi + 0xa8]
cmp edi, ebx
mov dword [ebp - 0xc], edi
je 0x40b9b2
mov ecx, dword [ebp - 4]
push esi
push str..debug
call fcn.0040b9cd
cmp eax, ebx
je 0x40b968
cmp dword [eax + 0xc], edi
jne 0x40b968
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0xac]
add ecx, dword [ebp + 8]
jmp 0x40b999
mov ecx, dword [ebp - 4]
push esi
push str..rdata
call fcn.0040b9cd
mov edi, eax
cmp edi, ebx
je 0x40b9b2
mov eax, dword [esi + 0xac]
push 0x1c
xor edx, edx
pop ecx
div ecx
cmp eax, ebx
je 0x40b9b2
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0xc]
add ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
cmp eax, ebx
jbe 0x40b9ad
mov edx, dword [ebp - 8]
add ecx, 0x10
add edx, dword [ecx]
add ecx, 0x1c
dec eax
jne 0x40b9a3
jmp 0x40b9b0
mov edx, dword [ebp - 8]
mov ebx, edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x40be4a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push esi
lea eax, [ebp - 0x14]
push dword [0x4244d4]
push str._04x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.USER32.dll_CharNextA]
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
call esi
push eax
call esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x814]
push eax
push 0x423eb8
call fcn.0040c2c6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0040c475
lea eax, [ebp - 0x414]
push str..ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x414]
push eax
push 0x12c
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push 0x4230e0
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop esi
leave
ret