joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b630
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x42b57c
call sub.user32.dll_EnumWindows
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x42b7cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042b1b0
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
push 0
call sub.KERNEL32.DLL_Sleep
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x42b775
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042adb0
cmp dword [ebp - 4], 0
je 0x42b7b7
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404868
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b7d4
lea eax, [ebp - 4]
call fcn.004043a8
ret

Function at 0x42e7a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x458ae8], 0
je 0x42e8ef
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x457234]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42e8ef
mov eax, dword [0x458aec]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x458ae8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42e8be
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x458ae8]
call fcn.00414190
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42e8b6
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42e8b6
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42e8b6
mov eax, dword [ebp - 0x14]
call fcn.00437460
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42e8b6
push ebp
call fcn.0042e75c
pop ecx
test al, al
jne 0x42e8b6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42e872
mov eax, dword [ebp - 0x14]
call fcn.00435f90
dec eax
jle 0x42e8b6
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.0040383c
cmp byte [ebp - 1], 0
je 0x42e8b6
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42e8b6
mov edx, dword [ebp - 0x14]
mov eax, dword [0x458aec]
call fcn.0042df28
inc edi
dec ebx
jne 0x42e805
mov eax, dword [0x458aec]
cmp dword [eax + 8], 0
jle 0x42e8d6
mov eax, dword [0x458aec]
call fcn.0042dfb8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42e8ef
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042e5c4
pop ecx
test al, al
jne 0x42e8ef
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43be6c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x457398]
cmp byte [eax + 0xc], 0
je 0x43bfd9
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43bfd2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x458af8], 0
jne 0x43bec0
push 0x43bfe0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x43bfe8
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x458af8], eax
cmp dword [0x456b70], 0
jne 0x43bfbb
push 0x43bff8
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x456b70], eax
cmp dword [0x456b70], 0
je 0x43bfbb
push 0x43c004
mov eax, dword [0x456b70]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x458afc], eax
push 0x43c014
mov eax, dword [0x456b70]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x458b00], eax
push 0x43c028
mov eax, dword [0x456b70]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x458b04], eax
push 0x43c040
mov eax, dword [0x456b70]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x458b08], eax
push 0x43c058
mov eax, dword [0x456b70]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x458b0c], eax
push 0x43c06c
mov eax, dword [0x456b70]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x458b10], eax
push 0x43c084
mov eax, dword [0x456b70]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x458b14], eax
push 0x43c09c
mov eax, dword [0x456b70]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x458b18], eax
push 0x43c0b8
mov eax, dword [0x456b70]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x458b1c], eax
push 0x43c0c4
mov eax, dword [0x456b70]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x458b20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43bfd9
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43fe8c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004043a8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43fedb
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404618
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4476ac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4476fc]
test si, 4
je 0x4476c0
or bl, 1
test si, 8
je 0x4476ca
or bl, 4
test si, 1
je 0x4476d4
or bl, 8
test si, 2
je 0x4476de
or bl, 0x10
test si, 0x10
je 0x4476e8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4476f7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44e2b4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44e45f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44e440
mov dl, 1
mov eax, dword [0x412230]
call fcn.00403604
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004043a8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44e42f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043c1cc
test al, al
je 0x44e422
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44e470
lea eax, [ebp - 0x254]
call fcn.00408f78
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44e422
xor eax, eax
push ebp
push 0x44e41b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44e4a8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44e404
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404618
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44e404
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404618
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e422
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44e325
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415d94
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e466
lea eax, [ebp - 0x260]
call fcn.004043a8
ret

Function at 0x44eda8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x458b44]
cmp byte [eax + 0xa5], 0
jne 0x44ee19
cmp dword [0x458b5c], 0
jne 0x44edda
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x44ed64
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x458b5c], eax
cmp dword [0x458b58], 0
jne 0x44edf5
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x458b58], eax
cmp dword [0x458b60], 0
jne 0x44ee19
push esp
push 0
push 0
push 0x44ed08
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x458b60], eax
pop edx
ret
Function at 0x45312c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404868
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x453184
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4573a4]
mov dl, 1
mov eax, dword [0x452c00]
call fcn.0040bc48
call fcn.00403dbc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00452d38
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x453cd0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffbfc
mov ebx, eax
push 0x400
lea eax, [esp + 4]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x401
call fcn.00404618
add esp, 0x404
pop ebx
ret

Function at 0x453d00
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
mov dword [ebp - 8], 0x10
mov eax, dword [ebp - 8]
call fcn.00402a28
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x453d5a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
je 0x453d44
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004045a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453d61
mov eax, dword [ebp - 4]
call fcn.00402a58
ret

Function at 0x453d68
Capabilities:
Shutdown system

Disassembly:
push ebx
add esp, 0xffffffd8
mov ebx, eax
mov eax, dword [0x45738c]
cmp dword [eax], 2
jne 0x453de2
push esp
push 0x28
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x453de2
lea eax, [esp + 0xc]
push eax
push 0x453df8
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
cmp eax, 1
sbb eax, eax
inc eax
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
mov edx, 0x10
xor ecx, ecx
mov dword [esp + 4], ecx
test al, al
je 0x453de2
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x1c]
push eax
push edx
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push ebx
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x28
pop ebx
ret
Function at 0x453e0c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404858
xor eax, eax
push ebp
push 0x453f8d
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
xor edx, edx
mov eax, 2
call fcn.00453484
mov esi, eax
mov dword [ebp - 0x12c], 0x128
lea edx, [ebp - 0x12c]
mov eax, esi
call fcn.004534a4
mov ebx, eax
jmp 0x453f59
lea eax, [ebp - 0x138]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00404618
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00408810
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00407fc4
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00407fc4
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.004047b4
je 0x453f30
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00404618
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00407fc4
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00407fc4
mov edx, dword [ebp - 0x148]
pop eax
call fcn.004047b4
jne 0x453f4a
push 0
mov eax, dword [ebp - 0x124]
push eax
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
push eax
call sub.KERNEL32.DLL_TerminateProcess
mov edi, eax
lea edx, [ebp - 0x12c]
mov eax, esi
call fcn.004534c4
mov ebx, eax
test ebx, ebx
jne 0x453e8b
push esi
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453f94
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.004043cc
lea eax, [ebp - 4]
call fcn.004043a8
ret
Function at 0x5e7ad4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
pushal
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x5e7bc3
mov ecx, eax
mov ebx, dword [ecx + 0x3c]
add ecx, ebx
mov ecx, dword [ecx + 0x7c]
test ecx, ecx
je 0x5e7bc3
mov dword [ebp - 4], ecx
mov ebx, eax
mov ecx, dword [ebx + 0x3c]
add ebx, ecx
mov ebx, dword [ebx + 0x78]
add ebx, eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp + 0xc]
test eax, 0xffff0000
je 0x5e7b6f
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x5e7bc3
dec ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 0xc]
push ecx
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
add eax, dword [ebp - 0xc]
push edi
push dword [ebp + 0xc]
push eax
call dword [edi + 0x124abb05]
pop edi
pop ecx
test eax, eax
jne 0x5e7b28
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 0xc]
shl ecx, 1
add eax, ecx
movzx ecx, word [eax]
jmp 0x5e7b75
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebx + 0x10]
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x14]
cmp ecx, eax
jge 0x5e7bc3
mov eax, dword [ebp - 0xc]
mov edx, dword [ebx + 0x1c]
add edx, eax
shl ecx, 2
add edx, ecx
cmp dword [edx], 0
je 0x5e7bc3
mov ebx, dword [edx]
add eax, ebx
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 8]
jle 0x5e7bc3
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x5e7bc3
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.005e7a1d
mov dword [ebp - 0x10], eax
popal
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x401037
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path

Disassembly:
call 0x401037
push 0
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push esi
push edi
push ebx
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403030], eax
mov dword [ebp - 8], 0
push 0xa
push section..data
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
je 0x401089
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
je 0x401089
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4010c1
push 4
push 0x1000
push dword [ebp - 0xc]
push 0
call sub.kernel32.dll_VirtualAlloc
mov edi, eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push edi
call sub.kernel32.dll_RtlMoveMemory
mov dword [ebp - 8], edi
push 0xdeadbeef
push dword [ebp - 0xc]
push dword [ebp - 8]
call section..text
cmp dword [ebp - 8], 0
je 0x4010fb
lea eax, [ebp - 0x40c]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push str.dup2patcher.dll
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_lstrcatA
push dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 0x40c]
push eax
call fcn.00401184
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_LoadLibraryA
or eax, eax
je 0x401130
mov ebx, eax
push str.load_patcher
push ebx
call sub.kernel32.dll_GetProcAddress
or eax, eax
je 0x40111e
call eax
push ebx
call sub.kernel32.dll_FreeLibrary
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_DeleteFileA
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401184
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4011af
xor eax, eax
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_FlushFileBuffers
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc

Function at 0x407f4e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cdq
in al, 0xa5
nop
xchg dword [0x607bd570], esp
Function at 0x43b441
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
add ebx, dword [ebp - 0x1c]
mov edi, dword [ebx + 0x20]
add edi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edi
mov edi, dword [ebx + 0x24]
add edi, dword [ebp - 0x1c]
mov dword [ebp - 0x40], edi
mov edi, dword [ebx + 0x1c]
add edi, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], edi
mov edi, dword [ebx + 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0xc], 0
mov ebx, dword [ebp - 0x10]
mov ebx, dword [ebx]
add ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x44], ebx
xor esi, esi
mov ebx, dword [ebp - 0x44]
mov ebx, dword [ebx]
inc dword [ebp - 0x44]
and ebx, 0xff
cmp ebx, 0
je 0x43b5a3
rol esi, 7
add esi, ebx
xor esi, 1
jmp 0x43b493
cmp dword [ebp + 0xc], esi
jne 0x43b5cd
mov ebx, dword [ebp - 0x40]
add ebx, dword [ebp - 0x28]
mov ebx, dword [ebx]
and ebx, 0xffff
shl ebx, 2
add ebx, dword [ebp - 0x3c]
mov ebx, dword [ebx]
add ebx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], 1
add dword [ebp - 0x10], 4
add dword [ebp - 0x28], 2
dec dword [ebp - 4]
cmp dword [ebp - 4], 0
jne 0x43b485
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x10001000
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x68
push ebx
push ebp
push edi
mov edi, dword [esp + 0x78]
test edi, edi
jne 0x1000105b
lea eax, [esp + 0x24]
push str.AutoWindow.cpp_CalcAutoWindow____ImageIn__NULL_n
push eax
call fcn.100049dc
add esp, 8
lea ecx, [esp + 0x24]
push ecx
call sub.Log.dll_TimeLog
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, byte [0x1001c796]
test al, al
je 0x100011b4
push edi
lea eax, [esp + 0x28]
push str.Debug
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop ebp
pop ebx
add esp, 0x68
ret
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x100010b2
lea ecx, [esp + 0x24]
push str.AutoWindow.cpp_CalcAutoWindow____theStruct__NULL_n
push ecx
call fcn.100049dc
add esp, 8
lea edx, [esp + 0x24]
push edx
call sub.Log.dll_TimeLog
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, byte [0x1001c796]
test al, al
je 0x100011b4
push 0
lea ecx, [esp + 0x28]
push str.Debug
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop ebp
pop ebx
add esp, 0x68
ret
mov ebp, dword [esp + 0x80]
test ebp, ebp
jne 0x1000110a
lea edx, [esp + 0x24]
push str.AutoWindow.cpp_CalcAutoWindow____Window__NULL_n
push edx
call fcn.100049dc
add esp, 8
lea eax, [esp + 0x24]
push eax
call sub.Log.dll_TimeLog
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, byte [0x1001c796]
test al, al
je 0x100011b4
push ebp
lea edx, [esp + 0x28]
push str.Debug
push edx
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop ebp
pop ebx
add esp, 0x68
ret
mov ebx, dword [esp + 0x84]
test ebx, ebx
jne 0x1000115d
lea eax, [esp + 0x24]
push str.AutoWindow.cpp_CalcAutoWindow____Level__NULL_n
push eax
call fcn.100049dc
add esp, 8
lea ecx, [esp + 0x24]
push ecx
call sub.Log.dll_TimeLog
lea edx, [esp + 0x24]
push edx
call sub.Log.dll_DebugPrint
mov al, byte [0x1001c796]
test al, al
je 0x100011b4
push ebx
lea eax, [esp + 0x28]
push str.Debug
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop ebp
pop ebx
add esp, 0x68
ret
push esi
mov dword [0x10019b38], eax
xor esi, esi
push esi
call fcn.100011c0
add esp, 4
inc esi
cmp esi, 3
jl 0x10001165
push 3
call fcn.10001320
push edi
call fcn.10001340
add esp, 8
xor esi, esi
lea ecx, [esp + esi*4 + 0x10]
lea edx, [esp + esi*4 + 0x1c]
push ecx
push edx
push esi
call fcn.10001470
add esp, 0xc
inc esi
cmp esi, 3
jl 0x10001186
push ebx
lea eax, [esp + 0x14]
push ebp
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.100017e0
add esp, 0x10
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x68
ret
Function at 0x10001340
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x54
test eax, eax
jne 0x10001397
lea eax, [esp + 4]
push str.AutoWindow.cpp_CalcHisto____wImg__NULL_n
push eax
call fcn.100049dc
add esp, 8
lea ecx, [esp + 4]
push ecx
call sub.Log.dll_TimeLog
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, byte [0x1001c796]
test al, al
je 0x1000145d
push 0
lea eax, [esp + 8]
push str.Debug
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0x54
ret
push ebx
push ebp
push esi
push edi
mov ebp, eax
mov ecx, 0x1000
xor eax, eax
mov edi, 0x10015b38
mov dword [esp + 0x68], 0x10011b38
mov dword [esp + 0x10], 0x400
rep stosd dword es:[edi], eax
xor ebx, ebx
xor esi, esi
mov edi, dword [esp + 0x68]
xor ecx, ecx
mov dx, word [edi]
test dx, dx
je 0x100013ff
mov ax, word [edi + 2]
test ax, ax
je 0x100013ff
and edx, 0xffff
cmp edx, esi
jne 0x100013eb
mov edx, 1
shl edx, cl
or ebx, edx
jmp 0x100013ff
and eax, 0xffff
cmp eax, esi
jne 0x100013ff
mov eax, 1
shl eax, cl
not eax
and ebx, eax
inc ecx
add edi, 4
cmp ecx, 4
jl 0x100013c5
mov ecx, ebx
xor edx, edx
mov dx, word [ebp]
and ecx, 0xffff
add ebp, 2
mov eax, dword [ecx*4 + 0x1000e040]
shl eax, 0xa
add eax, edx
mov edi, dword [eax*4 + 0x10015b38]
lea eax, [eax*4 + 0x10015b38]
inc edi
inc esi
cmp esi, 0x400
mov dword [eax], edi
jl 0x100013bf
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x10]
add ecx, 0x10
dec eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x10], eax
jne 0x100013bb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret