joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402db0
Capabilities:
Create shortcut via ishelllink
Delete file

Disassembly:
sub esp, 0x214
mov eax, dword [0x43b17c]
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
push esi
xor esi, esi
test eax, eax
jne 0x402df4
mov eax, dword [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
mov ecx, dword [esp + 0x210]
call fcn.00411aac
add esp, 0x214
ret 0x1c
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x402ef5
lea ecx, [esp + 4]
push ecx
push 0x433ab4
push 1
push 0
push 0x433ac4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402eef
mov ecx, dword [esp + 0x224]
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x50]
mov eax, dword [esp + 0x228]
test eax, eax
je 0x402e4d
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x22c]
test ecx, ecx
je 0x402e63
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x3c]
mov ecx, dword [esp + 0x230]
test cx, cx
je 0x402e7a
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x34]
mov ecx, dword [esp + 0x234]
test ecx, ecx
je 0x402e90
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x24]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x433b04
push eax
call dword [ecx]
test eax, eax
jl 0x402ee5
mov ecx, dword [esp + 0x220]
push 0x104
lea eax, [esp + 0x10]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov esi, 1
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
call fcn.00411aac
add esp, 0x214
ret 0x1c
Function at 0x403160
Capabilities:
Set registry value

Disassembly:
sub esp, 0x520
mov eax, dword [0x43b17c]
push esi
mov dword [esp + 0x520], eax
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.softwareMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4032cc
mov edx, dword [esp + 8]
push edi
push eax
lea ecx, [esp + 0xc]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
push 0x42f068
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x4032c4
lea eax, [esp + 0x31c]
push 0x42f068
push eax
call fcn.00413046
mov ecx, dword [esi + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push str._sUninst.exe
push edx
call fcn.00413046
mov eax, dword [esi + 0x1c]
push eax
lea ecx, [esp + 0x12c]
push str._swnwbwnwb.exe
push ecx
call fcn.00413046
lea edx, [esp + 0x238]
push 0x42f03c
push edx
call fcn.00413046
lea eax, [esp + 0x448]
push str.http:__www.wn51.com
push eax
call fcn.00413046
mov edx, dword [esp + 0x38]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 0x30
push 0x104
lea ecx, [esp + 0x320]
push ecx
push 1
push 0
push str.DisplayName
push edx
call esi
mov ecx, dword [esp + 8]
push 0x104
lea eax, [esp + 0x14]
push eax
push 1
push 0
push str.UninstallString
push ecx
call esi
mov eax, dword [esp + 8]
push 0x104
lea edx, [esp + 0x118]
push edx
push 1
push 0
push str.DisplayIcon
push eax
call esi
mov edx, dword [esp + 8]
push 0x104
lea ecx, [esp + 0x21c]
push ecx
push 1
push 0
push str.Publisher
push edx
call esi
mov ecx, dword [esp + 8]
push 0x104
lea eax, [esp + 0x424]
push eax
push 1
push 0
push str.URLInfoAbout
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call edi
mov eax, dword [esp + 0xc]
push eax
call edi
pop edi
mov ecx, dword [esp + 0x520]
xor eax, eax
pop esi
call fcn.00411aac
add esp, 0x520
ret

Function at 0x4032f0
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403316
xor eax, eax
pop ecx
ret 4
mov edx, dword [esp + 8]
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403320
mov ecx, dword [esp + 4]
sub eax, esi
push eax
push edx
push 1
push 0
push str.Start_Page
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret 4
Function at 0x403360
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x160
mov eax, dword [0x43b17c]
push ebx
mov ebx, dword [esp + 0x168]
mov dword [esp + 0x160], eax
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403380
sub eax, edx
mov dword [esp + 0x14], eax
je 0x40345e
push esi
push edi
push 0x104
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, 0xc
mov esi, str.Program_FilesInternet_Exploreriexplore.exe
lea edi, [esp + 0x67]
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4033c0
lea edi, [esp + 0x64]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4033d0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 1
push 0
push 0
push ebx
mov ecx, eax
push str.open
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x40345c
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0xc], ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x24]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x84]
push ecx
push 0
mov dword [esp + 0x48], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop edi
pop esi
mov ecx, dword [esp + 0x160]
pop ebx
call fcn.00411aac
add esp, 0x160
ret 4

Function at 0x4035a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42cbd8
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
call fcn.0042970e
movzx ecx, word [esp + 0x28]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x40]
push 0x42f150
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4035ee
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push edi
call fcn.0042970e
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x40]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
call fcn.0042970e
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x40]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x28]
push 0x1001
push edx
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.00425062
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x20], 0
lea ecx, [esp + 8]
jne 0x403669
mov dword [esp + 0x20], 0xffffffff
call fcn.00424c76
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push esi
push edi
call fcn.0042498a
lea ecx, [esp + 8]
call fcn.00424bd5
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.00424c76
mov ecx, dword [esp + 0x18]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x403d76
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x264
mov eax, dword [0x43b17c]
push ebx
mov ebx, dword [esp + 0x26c]
imul ebx, ebx, 0x1c
push esi
mov esi, ecx
mov dword [esp + 0x268], eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + ebx + 0x10]
mov edx, dword [ecx - 0xc]
add eax, ebx
test edx, edx
jne 0x403dac
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x260]
call fcn.00411aac
add esp, 0x264
ret 4
push edi
lea edi, [eax + 0x14]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x403ddf
push 0x24
push eax
call fcn.004127bd
add esp, 8
test eax, eax
je 0x403ddf
sub eax, dword [edi]
cmp eax, 0xffffffff
je 0x403ddf
mov edx, dword [esi + 0x1c]
push edx
push str._INSDIR
mov ecx, edi
call fcn.00403880
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [ebx + ecx]
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x20], 0x44
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
push edx
push eax
push ecx
lea edx, [esp + 0x174]
push str._s_s__s
push edx
call fcn.00413046
lea eax, [esp + 0x17c]
push eax
lea ecx, [esp + 0x7c]
push 0x42f1a4
push ecx
call fcn.00413046
add esp, 0x20
lea edx, [esp + 0x64]
push edx
mov ecx, esi
call fcn.00403480
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [esp + 0x188]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x403eda
mov eax, dword [esi + 4]
mov ecx, dword [eax + ebx]
mov edx, dword [eax + ebx + 0x10]
add eax, ebx
mov eax, dword [esi + 0x1c]
push ecx
push edx
push eax
lea ecx, [esp + 0x70]
push str._s_s
push ecx
call fcn.00413046
add esp, 0x14
lea edx, [esp + 0x64]
push edx
mov ecx, esi
call fcn.00403480
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x403ec0
push 0
push 0x42f17c
lea eax, [esp + 0x6c]
push eax
call fcn.004214ea
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x260]
call fcn.00411aac
add esp, 0x264
ret 4
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call edi
mov eax, dword [esp + 0xc]
test eax, eax
mov eax, dword [esi + 4]
mov ecx, dword [ebx + eax]
lea edx, [esp + 0x64]
push ecx
je 0x403f25
push 0x42f16c
jmp 0x403f2a
push 0x42f15c
push edx
call fcn.00413046
add esp, 0xc
lea eax, [esp + 0x64]
push eax
mov ecx, esi
call fcn.00403480
mov ecx, dword [esp + 0x26c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
call fcn.00411aac
add esp, 0x264
ret 4
Function at 0x404210
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42cbf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00403bf0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401800
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4042a2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x406be0
Capabilities:
Delete file
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x43b17c]
push ebx
push esi
push edi
mov dword [esp + 0x224], eax
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x26
lea eax, [esp + 0x18]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x406c4e
push eax
push 0x42f6e8
push 0x42f6cc
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [esp + 0x224]
call fcn.00411aac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406c55
sub eax, edx
push eax
lea ecx, [esp + 0x14]
lea esi, [ebx + 0x1c]
push ecx
mov ecx, esi
call fcn.004019a0
lea edx, [esp + 0x118]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x118]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406c90
mov eax, dword [str.Setup.ini]
mov ecx, dword [0x42f6c4]
mov dx, word [0x42f6c8]
mov dword [edi], eax
mov dword [edi + 4], ecx
push 0x8d
lea eax, [esp + 0x11c]
push eax
mov ecx, ebx
mov word [edi + 8], dx
call fcn.004035a0
test eax, eax
je 0x406c39
lea ecx, [esp + 0x118]
push ecx
mov ecx, ebx
call fcn.00405bd0
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [ebx + 0x30]
test ecx, ecx
je 0x406cfb
lea edx, [esp + 0xc]
push edx
push eax
call ecx
cmp dword [esp + 0xc], 1
jne 0x406d4a
push str.wnie
push esi
lea eax, [esp + 0x14]
push eax
call fcn.004042c0
mov eax, dword [eax]
push eax
mov ecx, ebx
call fcn.00402f10
mov ebx, eax
mov eax, dword [esp + 0xc]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406d42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
jne 0x406c39
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00403a80
mov eax, dword [eax]
push 0x42ea80
push eax
call fcn.004131be
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406d99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x406da9
push 0x42ea80
mov ecx, esi
call fcn.00404380
mov ecx, dword [esp + 0x224]
mov eax, 1
call fcn.00411aac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407c03
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407c18
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x407c2a
xor eax, eax
jmp 0x407c5c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x407c4e
cmp esi, eax
jae 0x407c26
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407c40
cmp esi, eax
jae 0x407c26
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x4096cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40971f
call fcn.0042970e
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40971f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x409715
xor eax, eax
jmp 0x409838
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40974f
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40974f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x409835
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40977c
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00407f25
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x409835
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4097c5
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4097c5
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4097bf
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00407f25
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x409825
and dword [ebp + 0xc], 0
jmp 0x409825
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x409825
push 0xc
call fcn.00424910
mov esi, eax
test esi, esi
pop ecx
je 0x409807
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x409809
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x409820
push dword [ebp - 8]
call fcn.0041f5e5
jmp 0x409825
call fcn.0041f5bc
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40978a
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x411f20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4120f4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x43f7a0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4120f4
test cl, 0x48
je 0x411f8b
cmp byte [eax + 5], 0xa
je 0x411f8b
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411fdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x411fc5
call fcn.004152a3
mov dword [eax], 9
call fcn.004152ac
mov dword [eax], esi
jmp 0x411fd5
cmp eax, 0x6d
je 0x4120f4
push eax
call fcn.004152b5
pop ecx
or eax, 0xffffffff
jmp 0x4120f6
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4120ef
test eax, eax
je 0x412004
cmp byte [ebx], 0xa
jne 0x412004
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41200d
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4120e9
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4120d9
cmp al, 0xd
je 0x41203f
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4120cb
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x412059
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x412054
add dword [ebp + 0x10], 2
jmp 0x4120ad
mov dword [ebp + 0x10], eax
jmp 0x4120c7
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x412081
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4120c7
cmp dword [ebp - 0xc], 0
je 0x4120c7
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4120a2
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4120ad
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4120ca
cmp ebx, dword [ebp + 0xc]
jne 0x4120b2
cmp byte [ebp - 1], 0xa
jne 0x4120b2
mov byte [ebx], 0xa
jmp 0x4120ca
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041253d
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4120cb
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x412023
jmp 0x4120e9
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4120e9
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4120f6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4121a6
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x43b17c]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x4121d7
xor eax, eax
jmp 0x412360
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x43f7a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x412213
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00416f36
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4122ee
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x41232c
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x412277
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x412268
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x412248
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4122b7
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x4122c0
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x412239
jmp 0x4122c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x41235b
cmp dword [ebp - 0x6c], edi
je 0x41232c
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x412321
call fcn.004152a3
mov dword [eax], 9
call fcn.004152ac
mov dword [eax], esi
jmp 0x412356
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x412316
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x4122c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x4122c2
push dword [ebp - 0x6c]
call fcn.004152b5
pop ecx
jmp 0x412356
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x412344
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x412344
xor eax, eax
jmp 0x41235e
call fcn.004152a3
mov dword [eax], 0x1c
call fcn.004152ac
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x41235e
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00411aac
add ebp, 0x3a0
leave
ret