joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a99c
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
je 0x40a9bd
lea eax, [ebp + 0xc]
push eax
push 1
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x40a9da
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x40aa45
cmp dword [ebp + 0x18], esi
mov dword [ebp + 8], 0x104
je 0x40aa01
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x14]
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x40aa39
push dword [ebp + 0x14]
call fcn.0040f8c0
test eax, eax
pop ecx
je 0x40aa2d
push dword [ebp + 0x14]
call fcn.0040f8c0
pop ecx
inc eax
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x40aa39
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop esi
mov eax, esi
pop esi
leave
ret 0x14
Function at 0x40c425
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov esi, str.Software_
lea edi, [ebp - 0x210]
push 1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ebx
xor eax, eax
movsw word es:[edi], word [esi]
push 0x3e
lea edi, [ebp - 0x206]
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x210]
push 0x4206b4
push eax
call fcn.0040ff60
mov al, byte [0x421aac]
pop ecx
pop ecx
mov byte [ebp - 0x10c], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
xor esi, esi
push eax
push ebx
lea eax, [ebp - 0x210]
push esi
push eax
push SysReAllocStringLen
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c4f2
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push esi
push str.Hook
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10c]
push eax
call fcn.0040f8c0
test eax, eax
pop ecx
je 0x40c4f2
lea eax, [ebp - 0x10c]
push 0x4209d4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40c4f2
xor ebx, ebx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x40c5c3
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x41b6dc
call fcn.0040f840
push ecx
cmp dword [ebp + 0xc], 0x8006
push ebx
push esi
push edi
mov esi, ecx
jne 0x40c6e7
mov eax, dword [0x421b68]
xor ebx, ebx
push 1
cmp eax, ebx
mov dword [ebp + 0x14], ebx
pop edi
je 0x40c604
push 0x4209f8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40c604
mov dword [ebp + 0x14], edi
mov eax, dword [esi + 8]
mov dword [0x421b74], eax
mov eax, dword [0x421b68]
cmp eax, ebx
je 0x40c661
push str._Post
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40c661
push 4
push 0x40ca74
call dword [sym.imp.USER32.dll_EnumWindows]
push dword [ebp + 0x14]
mov ecx, dword [esi + 0x8c]
mov dword [ebp - 0x10], edi
call fcn.0040137f
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
push dword [0x420910]
push ebx
push 0x404
call fcn.0040cb63
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push ebx
push 0x3a980
push 2
push dword [esi + 8]
call edi
mov ecx, esi
call fcn.0040d577
mov ecx, esi
call fcn.0040d493
add dword [0x421b7c], eax
mov dword [ebp + 0xc], ebx
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
mov dword [ebp - 4], ebx
call fcn.0040d9bc
push 0x421b78
mov ecx, esi
call fcn.0040dc1d
push ecx
mov ecx, dword [ebp + 0xc]
mov eax, esp
mov dword [ebp + 0x14], esp
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40c6c1
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esi + 0x90]
call fcn.004096c1
push ebx
push 0x7d0
push 3
push dword [esi + 8]
call edi
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x40c6ed
call fcn.0040917b
jmp 0x40c6ed
mov eax, dword [ebp + 0x14]
and dword [eax], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
Function at 0x40d493
Capabilities:
Get file size

Disassembly:
mov eax, 0x41b720
call fcn.0040f840
sub esp, 0xd4
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
call fcn.0040d9bc
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x40d4c8
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
jmp 0x40d4cb
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x10], ebx
jne 0x40d4d4
xor esi, esi
jmp 0x40d502
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0040fc80
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x10]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
lea eax, [ebp - 0xe0]
push str._sids.tmp
push eax
call fcn.0040f85f
add esp, 0xc
lea eax, [ebp - 0xe0]
push ebx
push 0x80
push 4
push ebx
push ebx
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d553
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 6
xor edx, edx
pop ecx
div ecx
push esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x40d55f
call fcn.0040917b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
lea esp, [ebp - 0xec]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40dc1d
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x41b7f4
call fcn.0040f840
sub esp, 0x114
push ebx
push esi
push edi
push str.Software
lea ecx, [ebp - 0x14]
call fcn.0040a6d6
mov esi, 0x4206bc
xor ebx, ebx
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0040a6d6
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.00409039
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00408fd6
push 0x4206b4
lea ecx, [ebp - 0x10]
call fcn.0040a6d6
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.00409039
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00408fd6
push esi
lea ecx, [ebp - 0x10]
call fcn.0040a6d6
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.00409039
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00408fd6
push 0x4206ac
lea ecx, [ebp - 0x10]
call fcn.0040a6d6
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 4
call fcn.00409039
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00408fd6
push esi
lea ecx, [ebp - 0x10]
call fcn.0040a6d6
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 5
call fcn.00409039
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00408fd6
push 0x4206a8
lea ecx, [ebp - 0x10]
call fcn.0040a6d6
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 6
call fcn.00409039
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.00408fd6
mov al, byte [0x421aac]
push 0x40
mov byte [ebp - 0x120], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x11f]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0x104
stosw word es:[edi], ax
cmp ecx, ebx
stosb byte es:[edi], al
je 0x40dd5b
call fcn.004091a8
jmp 0x40dd5d
xor eax, eax
lea ecx, [ebp - 0x18]
push ecx
push 1
push ebx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40dd98
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x120]
push eax
push ebx
push ebx
push 0x421aac
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x120]
push eax
call fcn.0040963e
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
cmp ecx, ebx
pop ebx
je 0x40ddb6
call fcn.0040917b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40ddc4
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x41b818
call fcn.0040f840
sub esp, 0x118
mov al, byte [0x421aac]
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
push 0x40
mov byte [ebp - 0x124], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x123]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x104
push str.Software
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], esi
stosb byte es:[edi], al
call fcn.0040a6d6
xor ebx, ebx
push 0x4206bc
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0040a6d6
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.00409039
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], bl
cmp ecx, ebx
je 0x40de3b
call fcn.0040917b
push 0x4206b4
lea ecx, [ebp - 0x10]
call fcn.0040a6d6
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.00409039
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], bl
cmp ecx, ebx
je 0x40de67
call fcn.0040917b
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x40de75
call fcn.004091a8
jmp 0x40de77
xor eax, eax
lea ecx, [ebp - 0x18]
push ecx
push 0xf003f
push ebx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push eax
lea eax, [ebp - 0x124]
push eax
push ebx
mov esi, str.STRUP
push ebx
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
lea eax, [ebp - 0x124]
push eax
call fcn.0040f8c0
test eax, eax
pop ecx
je 0x40dec3
cmp edi, ebx
je 0x40df0d
lea eax, [ebp - 0x124]
push 0xa
push eax
push 1
call fcn.00410739
lea eax, [ebp - 0x124]
push eax
call fcn.0040f8c0
add esp, 0x10
push eax
lea eax, [ebp - 0x124]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x20]
call fcn.0040df31
test al, al
jne 0x40df0d
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
cmp ecx, ebx
pop ebx
je 0x40df25
call fcn.0040917b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x40e2d8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push esi
push SysReAllocStringLen
push dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40e3bd
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0xc], ebx
je 0x40e3bd
lea eax, [ebx + 0x14]
push eax
call fcn.0040f8b1
pop ecx
mov esi, eax
lea eax, [ebp - 8]
push 0
push eax
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
push dword [ebp + 8]
and byte [eax + esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x14
call fcn.0040f8b1
push eax
push str.___r_n_s
push esi
mov dword [edi + 8], eax
call fcn.0040fe90
push dword [edi + 8]
call fcn.0040f8c0
push esi
mov ebx, eax
call fcn.0040f8c0
lea ecx, [ebx + 2]
add esp, 0x18
cmp eax, ecx
jbe 0x40e3a9
push dword [ebp - 0xc]
call fcn.0040f8b1
mov dword [edi + 0xc], eax
push eax
lea eax, [ebx + esi + 2]
push 0x420bf0
push eax
call fcn.0040fe90
mov ecx, dword [ebp + 0xc]
add esp, 0x10
push 1
pop eax
mov dword [ecx], eax
mov dword [ebp - 4], eax
jmp 0x40e3b6
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 1
and dword [eax], 0
push esi
call fcn.0040f36c
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40e4cd
Capabilities:
Create process on windows
Delete registry value
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x10c]
push dword [edi + 0x14]
push str._sezulaupdate.exe__update
push eax
call fcn.0040f85f
add esp, 0xc
lea eax, [ebp - 8]
xor esi, esi
mov ebx, SysReAllocStringLen
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40e549
lea eax, [ebp - 0x10c]
push eax
call fcn.0040f8c0
pop ecx
push eax
lea eax, [ebp - 0x10c]
push eax
push 1
push esi
push str.ezulaUpdate
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi + 0x1c], esi
je 0x40e59d
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push dword [edi + 0x14]
lea eax, [ebp - 0x10c]
push str._s__u___sezulaagent.dll_
push eax
call fcn.0040f85f
add esp, 0xc
lea eax, [ebp - 0x210]
push esi
push eax
lea eax, [ebp - 0x10c]
push eax
push str.regsvr32.exe
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [ebp - 4]
push eax
push 0xf003f
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e5d1
push 0x420c14
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop esi
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40e789
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push 1
pop esi
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s
push eax
call fcn.0040f85f
add esp, 0x10
lea eax, [ebp - 0x104]
push dword [ebp + 8]
push 0x40e23a
push 0
push eax
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetA]
test eax, eax
jne 0x40e7cf
xor esi, esi
jmp 0x40e7dc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop esi
leave
ret 8
Function at 0x40ea83
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov esi, ecx
mov dword [ebp - 8], ebx
je 0x40eab8
push str.Ins.log
lea eax, [ebp - 0x214]
push dword [esi + 0x10]
push str._s_s
push eax
call fcn.0040f85f
add esp, 0x10
jmp 0x40eacf
push dword [esi + 0x10]
lea eax, [ebp - 0x214]
push str._sBackuplog.vrn
push eax
call fcn.0040f85f
add esp, 0xc
push ebx
push 0x80
push 2
push ebx
push ebx
lea eax, [ebp - 0x214]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40ebe3
mov al, byte [0x421aac]
push edi
push 0x40
mov byte [ebp - 0x110], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x110]
push eax
push str.___r_n_s
push dword [esi + 0xc]
call fcn.0040fe90
lea eax, [ebp - 0x110]
push eax
call fcn.0040f8c0
add esp, 0x10
mov edi, eax
lea eax, [ebp - 4]
inc edi
push ebx
push eax
push dword [esi + 8]
inc edi
call fcn.0040f8c0
pop ecx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push dword [esi + 8]
push dword [ebp + 8]
call ebx
push dword [esi + 0xc]
call fcn.0040f8c0
cmp eax, edi
pop ecx
mov dword [ebp - 0xc], eax
jbe 0x40ebc8
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x420d68
push dword [ebp + 8]
call ebx
lea eax, [ebp - 4]
push 0
push eax
mov eax, dword [esi + 0xc]
add eax, edi
push eax
call fcn.0040f8c0
pop ecx
push eax
mov eax, dword [esi + 0xc]
add eax, edi
push eax
push dword [ebp + 8]
call ebx
mov eax, dword [ebp - 0xc]
inc eax
push eax
call fcn.0040f8b1
push dword [esi + 0xc]
mov ebx, eax
push ebx
call fcn.0040ff50
lea eax, [ebx + edi]
push eax
push 0x4207d4
push dword [esi + 0xc]
call fcn.0040f85f
push ebx
call fcn.0040f36c
add esp, 0x1c
jmp 0x40ebd9
mov ecx, esi
call fcn.0040e4cd
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.0040e5d8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret 4
Function at 0x41630c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4212b0
cmp edx, dword [eax]
je 0x41632e
add eax, 8
inc ecx
cmp eax, 0x421340
jl 0x41631f
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4212b0]
jne 0x41645c
mov eax, dword [0x421c20]
cmp eax, 1
je 0x416436
test eax, eax
jne 0x41635f
cmp dword [0x420e08], 1
je 0x416436
cmp edx, 0xfc
je 0x41645c
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x416396
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040ff50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040f8c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4163d9
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040f8c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41d1b8
push edi
call fcn.004103b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040ff50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040ff60
lea eax, [ebp - 0xa0]
push 0x41d198
push eax
call fcn.0040ff60
push dword [esi + 0x4212b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040ff60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00418c58
add esp, 0x2c
pop edi
jmp 0x41645c
lea eax, [ebp + 8]
lea esi, [esi + 0x4212b4]
push 0
push eax
push dword [esi]
call fcn.0040f8c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x5bc2d3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x5bc6a7
lea esp, [esp + 4]
jb 0x545ccd
jae 0x545c47
lea ecx, [eax + 1]
jmp 0x545ce3
Function at 0xca7180
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
push 0x40
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0xca71a3
mov eax, 1
jmp 0xca72ae
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0xca71b9
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x3c], 0
jne 0xca71c3
mov eax, 2
jmp 0xca72ae
mov edx, dword [ebp + 0x10]
push edx
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0xca71ee
mov eax, 1
jmp 0xca72ae
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0x4550
jne 0xca7214
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x58]
cmp edx, 0x10b
jne 0xca7214
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x46]
test ecx, ecx
jne 0xca721e
mov eax, 2
jmp 0xca72ae
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x46]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x140], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x140]
push eax
call fcn.00cb90b0
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x138], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x138], 0
jne 0xca725f
mov eax, 3
jmp 0xca72ae
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x54]
lea ecx, [ecx + eax + 0x18]
mov edx, dword [ebp + 8]
mov dword [edx + 0x13c], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x140]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
push eax
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0xca72ac
mov eax, 1
jmp 0xca72ae
xor eax, eax
pop ebp
ret

Function at 0xca7c50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0xca7c66
xor eax, eax
jmp 0xca7ca6
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
jne 0xca7c8b
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x18]
cmp eax, 0x10b
je 0xca7c8f
xor eax, eax
jmp 0xca7ca6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call fcn.00ca7cb0
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0xcb9d60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xcb9d90
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0xcb9da3
xor eax, eax
jmp 0xcb9e61
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0xcb9dbe
xor eax, eax
jmp 0xcb9e61
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0xcb9ddc
xor eax, eax
jmp 0xcb9e61
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
jmp 0xcb9e1e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0xcb9e5f
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.00cb90d0
add esp, 8
test eax, eax
jne 0xcb9e5d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0xcb9e61
jmp 0xcb9e15
xor eax, eax
mov esp, ebp
pop ebp
ret