joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c410
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x41c419
xor ecx, ecx
jne 0x41c419
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x41c43a
mov eax, 0xd
jmp 0x41c495
xor eax, eax
jne 0x41c421
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x41c44b
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8
Function at 0x41ec10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x34], 1
mov ecx, dword [ebp - 0x30]
add ecx, 4
call fcn.00415a60
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x35], al
push 0xa
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41ec8b
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x41ec89
push 0
push 0
push 0
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x41ec4d
jmp 0x41ec37
mov ecx, dword [ebp - 0x30]
add ecx, 4
call fcn.00415a60
sub eax, 1
mov dword [ebp - 0x24], eax
jmp 0x41eca7
mov edx, dword [ebp - 0x24]
sub edx, 1
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
jl 0x41ecec
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 4
call fcn.00415ae0
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x10]
push edx
call fcn.0042a5b1
add esp, 4
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0042894c
add esp, 4
jmp 0x41ec9e
mov ecx, dword [ebp - 0x30]
add ecx, 4
call fcn.004201c0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x28], 0xffffffff
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x2c], 1
push 0x43c72c
mov edx, dword [ebp - 4]
push edx
call fcn.00429856
add esp, 8
test eax, eax
je 0x41ed48
push str._application
mov eax, dword [ebp - 4]
push eax
call fcn.00429856
add esp, 8
add eax, 0x18
push eax
mov ecx, dword [ebp - 0x30]
call fcn.0041e760
jmp 0x41edba
push 0x43c7d4
mov ecx, dword [ebp - 4]
push ecx
call fcn.00429856
add esp, 8
test eax, eax
je 0x41ed7c
push str._file
mov edx, dword [ebp - 4]
push edx
call fcn.00429856
add esp, 8
add eax, 0xa
push eax
mov ecx, dword [ebp - 0x30]
call fcn.0041db40
jmp 0x41edba
push 0x43c7ec
mov eax, dword [ebp - 4]
push eax
call fcn.00429856
add esp, 8
test eax, eax
je 0x41edb0
push str._stat
mov ecx, dword [ebp - 4]
push ecx
call fcn.00429856
add esp, 8
add eax, 0xa
push eax
mov ecx, dword [ebp - 0x30]
call fcn.0041e1e0
jmp 0x41edba
push 0
mov ecx, dword [ebp - 0x30]
call fcn.0041db40
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x28], 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x41f970
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
cmp dword [ebp + 0xc], 0
jne 0x41f983
xor al, al
jmp 0x41f9d0
cmp dword [ebp + 0x10], 0
je 0x41f9ce
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f9ab
cmp dword [ebp - 4], 0
jne 0x41f9af
xor al, al
jmp 0x41f9d0
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 4]
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xfffffe00
mov dword [ebp + 0x10], eax
jmp 0x41f983
mov al, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x428841
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x445b60], 0
push esi
jne 0x4287b4
call fcn.004286da
test eax, eax
je 0x4287f7
mov eax, dword [0x445b60]
cmp eax, 1
jne 0x4287d5
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4287f7
pop esi
ret
push eax
call dword [0x445b68]
test eax, eax
jne 0x42883f
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4287fb
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x445b60]
call dword [0x445b68]
mov edi, eax
test edi, edi
je 0x428820
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x42883c
mov edi, esi
add esi, 0xff0
push edi
push dword [0x445b60]
call dword [0x445b64]
add edi, 0x10
cmp edi, esi
jb 0x428828
mov eax, edi
pop edi
pop esi
ret
jmp 0x4287a1

Function at 0x428b32
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4447bc]
jne 0x428b3c
repz ret
jmp fcn.0042bc44

Function at 0x436368
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042bdbc
and dword [ebp - 4], 0
cmp dword [0x44666c], 0
mov ebx, eax
jne 0x436419
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4364ca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4364ca
push eax
call fcn.0042bd4a
mov dword [esp], 0x43dba4
push edi
mov dword [0x44666c], eax
call esi
push eax
call fcn.0042bd4a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x446670], eax
call esi
push eax
call fcn.0042bd4a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x446674], eax
call esi
push eax
call fcn.0042bd4a
pop ecx
mov dword [0x44667c], eax
test eax, eax
je 0x436419
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042bd4a
pop ecx
mov dword [0x446678], eax
mov eax, dword [0x446678]
cmp eax, ebx
je 0x436471
cmp dword [0x44667c], ebx
je 0x436471
push eax
call fcn.0042bdc5
push dword [0x44667c]
mov esi, eax
call fcn.0042bdc5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x436471
test edi, edi
je 0x436471
call esi
test eax, eax
je 0x436468
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x436468
test byte [ebp - 0xc], 1
jne 0x436471
or dword [ebp + 0x10], 0x200000
jmp 0x4364aa
mov eax, dword [0x446670]
cmp eax, ebx
je 0x4364aa
push eax
call fcn.0042bdc5
pop ecx
test eax, eax
je 0x4364aa
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4364aa
mov eax, dword [0x446674]
cmp eax, ebx
je 0x4364aa
push eax
call fcn.0042bdc5
pop ecx
test eax, eax
je 0x4364aa
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44666c]
call fcn.0042bdc5
pop ecx
test eax, eax
je 0x4364ca
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4364cc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10012c2
Capabilities:
Listen for remote procedure calls
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ebx
call fcn.01001ccc
mov edi, eax
cmp edi, ebx
je 0x100657e
push esi
mov esi, dword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpA]
push edi
push 0x1002668
push 0xa
push 0x100265c
call esi
test eax, eax
jne 0x10013de
push edi
push 0x1002654
push 0xa
push 0x100264c
call esi
test eax, eax
jne 0x10013de
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push str.SystemCurrentControlSetControlPrint
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100139d
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.SerializeRpc
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
push eax
push 0x100c6b0
lea eax, [ebp - 0xc]
push eax
push ebx
push str.CallExitProcessOnShutdown
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.MaxRpcSize
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
test eax, eax
je 0x1001394
mov dword [ebp - 0x10], 0x100000
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push dword [ebp - 0x10]
push 0xa
push ebx
push ebx
push ebx
push dword [0x100c6c4]
call dword [sym.imp.RPCRT4.dll_RpcServerRegisterIf2]
test eax, eax
jne 0x10013de
cmp dword [ebp - 0x14], ebx
jne 0x1006585
push 0x8000
call dword [sym.imp.RPCRT4.dll_RpcMgmtSetServerStackSize]
push 1
push 0x1770
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
pop esi
pop edi
pop ebx
leave
ret
xor eax, eax
jmp 0x10013d9
xor eax, eax
jmp 0x10013da
call dword [sym.imp.RPCRT4.dll_I_RpcSsDontSerializeContext]
jmp 0x10013bf

Function at 0x1001af6
Capabilities:
Create thread

Disassembly:
push 0x18
push 0x1004ac8
call fcn.0100152e
xor esi, esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push 0x10018ee
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x1001b3b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebp - 0x24], eax
or dword [ebp - 4], 0xffffffff
call fcn.0100151d
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1001b2e

Function at 0x1001c59
Capabilities:
Terminate process

Disassembly:
push 0x100c6b4
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10020c3
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1004ae8
call fcn.0100152e
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10021d6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10021d6
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
jne 0x1006476
cmp dword [ecx + 0x74], 0xe
jbe 0x10021d6
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100c1e0], 0xffffffff
or dword [0x100c1dc], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100c6f8]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100c6f4]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100c1e4], eax
call fcn.01001c56
cmp dword [0x100c6c8], edi
je 0x100649b
call fcn.010021e4
push 0x1004ae0
push 0x1004adc
call sub.msvcrt.dll__initterm
mov eax, dword [0x100c6f0]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x100c6ec]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1004ad8
push 0x1004ad4
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01001c59
jmp 0x10064ac
mov dword [ebp - 0x1c], edi
jmp 0x100211b
cmp eax, 0x20b
jne 0x10021d6
cmp dword [ecx + 0x84], 0xe
jbe 0x10021d6
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1002115
push fcn.01001c56
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
jmp 0x100216e
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x10064c0
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10064f5
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100151d
ret
Function at 0x1002254
Capabilities:
Create thread
Terminate process

Disassembly:
push ecx
push ebp
push 0x100c5c0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.01001c6c
xor ebp, ebp
push ebp
push 0x1006b8d
push 0x1004b1c
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExW]
cmp eax, ebp
mov dword [0x100c1d4], eax
je 0x1006404
push 1
call fcn.01002028
cmp eax, 1
mov dword [0x100c1d0], eax
jne 0x1002323
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
push edi
mov ebx, str.Spooler_exiting
mov edi, 0x1f0003
push ebx
push ebp
push edi
call esi
cmp eax, ebp
jne 0x1006417
push 0x1004af4
push ebp
xor esi, esi
inc esi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebp
mov dword [0x100c1c8], eax
je 0x1006443
call fcn.010012c2
cmp eax, ebp
jne 0x1002328
push esi
call fcn.01002028
lea eax, [esp + 0x10]
push eax
push ebp
push dword [0x100c1d4]
push 0x1001b7f
push 0x10000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebp
je 0x1002332
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0100233a
cmp eax, ebp
jne 0x1002328
push 2
call fcn.01002028
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
push ebp
push eax
push esi
call fcn.01006c1b
jmp 0x1002320
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1002315
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push eax
push ebp
call fcn.01006c1b
jmp 0x1002323
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call fcn.01002028
cmp eax, 1
mov dword [0x100c1d0], eax
jne 0x1002320
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10022ae
push ebp
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10073f3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x100743d
cmp word [eax], 0
je 0x100743d
push esi
push eax
call sub.SPOOLSS.DLL_AllocSplStr
mov esi, eax
test esi, esi
je 0x100743c
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x10073da
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1007436
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100743c
push esi
call sub.SPOOLSS.DLL_DllFreeSplStr
pop esi
pop ebp
ret 4
Function at 0x1009650
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push ebx
push esi
push edi
push 0xa
pop ecx
mov esi, 0x1009de0
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2c]
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push eax
call esi
mov edi, dword [ebp + 8]
test edi, edi
pop ecx
mov ebx, eax
je 0x10096e7
cmp word [edi], 0
je 0x10096e7
push edi
call esi
cmp eax, ebx
pop ecx
jb 0x10096e7
push 0x104
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10096e7
push ebx
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10096cb
lea eax, [edi + ebx*2]
push eax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
jmp 0x10096d9
lea eax, [ebp - 0x238]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x238]
push eax
call sym.spoolsv.exe_YDriverUnloadComplete
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 4

Function at 0x10097a5
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push 0x1009e28
push dword [eax + 0xc]
call dword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x10097c5
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
ret 4
Function at 0x44e529
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x40
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.0044e480
add esp, 0xc
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x44e558
mov eax, 0xea61
jmp 0x44e5d6
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x3c], 0
jne 0x44e568
mov eax, 0xea62
jmp 0x44e5d6
push 0xf8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.0044e480
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x4550
je 0x44e595
mov eax, 0xea62
jmp 0x44e5d6
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 4]
cmp ecx, 0x14c
je 0x44e5ad
mov eax, 0xea65
jmp 0x44e5d6
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 0x16]
test ch, 0x10
je 0x44e5c2
mov eax, 0xea66
jmp 0x44e5d6
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x74], 0x10
jbe 0x44e5d2
mov eax, 0xea67
jmp 0x44e5d6
xor eax, eax
jmp 0x44e5d6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405e6a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x405e8e
xor eax, eax
test eax, eax
je 0x405ea0
cmp byte [ebp + eax - 0x121], 0x5c
je 0x405ea0
xor ecx, ecx
jmp 0x405ea3
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409010]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret 4

Function at 0x405f43
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43eacc], 0
push esi
jne 0x405f7a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f54
mov dword [ecx*4 + 0x43eac8], eax
inc ecx
cmp ecx, 0x100
jl 0x405f4f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405fab
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43eac8]
xor eax, esi
inc ecx
dec edx
jne 0x405f8d
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402a90
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404538
test esi, esi
jne 0x402ac6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404628
jmp 0x402ae4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402944
mov edi, eax
test esi, esi
je 0x402ae4
cmp dword [ebx], 0
je 0x402ae4
dec esi
jmp 0x402acd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403060
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x448008], 0x8088405
inc edx
mov dword [ebx + 0x448008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4035f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x448024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403688
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403668
xor eax, eax
push ebp
push 0x403661
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4036a4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403668
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x448024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x448024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404318
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x51a044], 0
je 0x404379
cmp word [0x51a218], 0xd7b2
jne 0x404341
cmp dword [0x51a220], 0
jbe 0x404341
mov eax, 0x51a214
call dword [fcn.0051a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x448074
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4043a0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x448034], 0
jne 0x404395
push 0
push 0x44806c
push 0x448074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4044ec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402728
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x51a045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4044b4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc