joyce8/EMBER2024-capa huggingface dataset:
Function at 0x61e84c90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add dh, al
test dword [esi - 0x25000004], ebp
and byte [ebp - 0x351], 0
mov byte [ebp - 0x350], 0x62
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.61e84480
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.61e84435
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.61e84480
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.61e84435
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], pe_nt_image_headers32
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.61e84480
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.61e84435
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.61e84470
sub ecx, esi
adc al, 0x2f
and byte [ebp - 0x534], 0
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
invalid
test ecx, edx
cli
invalid
invalid
Function at 0x401050
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push 0x38
lea eax, [esp + 8]
push 0
push eax
call fcn.00401760
mov ecx, dword [esp + 0x4c]
add esp, 0xc
lea edx, [esp]
push edx
mov dword [esp + 4], 0x3c
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], str.open
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0x40a227
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
xor eax, eax
add esp, 0x3c
ret

Function at 0x4010c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push 0x38
lea eax, [esp + 8]
push 0
push eax
call fcn.00401760
mov ecx, dword [esp + 0x4c]
add esp, 0xc
lea edx, [esp]
push edx
mov dword [esp + 4], 0x3c
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], str.open
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0x40a230
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [esp + 0x38]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
add esp, 0x3c
ret

Function at 0x401140
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
push eax
push ecx
xor esi, esi
push ebx
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4011e3
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x4011ec
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esp + 0x2c]
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4011c3
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, 1
test eax, eax
jne 0x4011c7
mov edi, dword [esp + 0x14]
test esi, esi
je 0x4011d2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x401200
Capabilities:
Delete file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x40d010]
xor eax, esp
mov dword [esp + 0x208], eax
push edi
mov edi, dword [esp + 0x214]
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.00401760
push 0x103
lea ecx, [esp + 0x119]
push 0
push ecx
mov byte [esp + 0x120], 0
call fcn.00401760
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401305
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [esp + 0x10c]
push 0x40a240
push edx
call fcn.0040180d
lea edx, [esp + 0x10]
add esp, 0xc
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401284
lea eax, [esp + 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401298
sub eax, edx
mov edx, eax
lea eax, [esp + 4]
push esi
lea esi, [eax + 1]
jmp 0x4012b0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4012b0
push edx
sub eax, esi
lea ecx, [esp + 0x110]
push ecx
lea edx, [esp + eax + 0xc]
push edx
call fcn.004018a0
add esp, 0xc
lea eax, [esp + 8]
dec eax
pop esi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4012d5
mov ecx, dword [str..XJCABAK]
mov edx, dword [0x40a238]
mov dword [eax], ecx
mov cl, byte [0x40a23c]
mov dword [eax + 4], edx
lea edx, [esp + 4]
push edx
push edi
mov byte [eax + 8], cl
call fcn.004017da
add esp, 8
mov ecx, dword [esp + 0x20c]
pop edi
xor ecx, esp
call fcn.0040188a
add esp, 0x20c
ret

Function at 0x401320
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ecx
push esi
push edi
lea eax, [esp + 8]
push eax
push 0xf003f
xor esi, esi
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x401398
mov edx, dword [esp + 0x10]
mov eax, edx
lea esi, [eax + 1]
jmp 0x401360
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401360
mov ecx, dword [esp + 8]
sub eax, esi
inc eax
push eax
push edx
push 1
push 0
push str.GP_HDHTTPS
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
test eax, eax
je 0x401391
push eax
call edi
xor eax, eax
mov dword [esp + 8], eax
mov esi, 1
jmp 0x40139c
mov eax, dword [esp + 8]
test eax, eax
je 0x4013a3
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ecx
ret
Function at 0x4016a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x30
lea eax, [esp]
push eax
push 0x8002
push 0
mov dword [esp + 0xc], 0x30
call dword [sym.imp.USER32.dll_GetClassInfoExA]
test eax, eax
je 0x401745
push esi
mov esi, dword [esp + 0x38]
push 0x77
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 4]
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], str.GPINSHTTPSClass
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x401744
mov edx, dword [esp + 0x2c]
push edx
push 0
push 0x1f0001
mov dword [0x40df24], 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [0x40df24], eax
test eax, eax
jne 0x401744
mov eax, dword [esp + 0x2c]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0x40df28
push 0x104
mov dword [0x40df24], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
call fcn.004013b0
add esp, 4
pop esi
xor eax, eax
add esp, 0x30
ret 0x10

Function at 0x40188a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d010]
jne 0x401894
repz ret
jmp fcn.0040308e

Function at 0x4078e3
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.004041a6
and dword [ebp - 4], 0
cmp dword [0x40e9e4], 0
mov ebx, eax
jne 0x407994
push 0x40b270
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407a45
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40b264
push edi
call esi
test eax, eax
je 0x407a45
push eax
call fcn.00404134
mov dword [esp], 0x40b254
push edi
mov dword [0x40e9e4], eax
call esi
push eax
call fcn.00404134
mov dword [esp], 0x40b240
push edi
mov dword [0x40e9e8], eax
call esi
push eax
call fcn.00404134
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e9ec], eax
call esi
push eax
call fcn.00404134
pop ecx
mov dword [0x40e9f4], eax
test eax, eax
je 0x407994
push 0x40b20c
push edi
call esi
push eax
call fcn.00404134
pop ecx
mov dword [0x40e9f0], eax
mov eax, dword [0x40e9f0]
cmp eax, ebx
je 0x4079ec
cmp dword [0x40e9f4], ebx
je 0x4079ec
push eax
call fcn.004041af
push dword [0x40e9f4]
mov esi, eax
call fcn.004041af
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4079ec
test edi, edi
je 0x4079ec
call esi
test eax, eax
je 0x4079e3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4079e3
test byte [ebp - 0xc], 1
jne 0x4079ec
or dword [ebp + 0x10], 0x200000
jmp 0x407a25
mov eax, dword [0x40e9e8]
cmp eax, ebx
je 0x407a25
push eax
call fcn.004041af
pop ecx
test eax, eax
je 0x407a25
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407a25
mov eax, dword [0x40e9ec]
cmp eax, ebx
je 0x407a25
push eax
call fcn.004041af
pop ecx
test eax, eax
je 0x407a25
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e9e4]
call fcn.004041af
pop ecx
test eax, eax
je 0x407a45
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407a47
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42ecc0
Capabilities:
Encode data using xor

Disassembly:
dec edi
in al, 0x15
sub eax, dword [edi]
push 0xf5b83c68
aad 0xc6
mov dword [0x93d71d1c], eax
xor cl, byte [0x818be23]
xchg ebp, eax
in al, dx
mov dl, 0x52
invalid

Function at 0x48a78a
Capabilities:
Encode data using xor

Disassembly:
mov ebp, 0x4285e375
add byte [esi + 0x541caebb], ch
push ebp
xchg esp, eax
push ecx
pop ebp
mov dl, byte [edx - 9]
sbb al, 0x12
xor cl, bh
jne 0x48a6f6
enter 0x336d, 9
cmpsd dword [esi], dword es:[edi]
cmp cl, cl
lds edx, [ebp - 0x5ae1b2cf]
ljmp 0xa14f:0x8bcce08c
jp 0x48a6e2
loopne 0x48a734
xchg esi, eax
sti
arpl ax, bp
test byte [edx], cl
pop es
xor bl, byte cs:[edx]
xor bl, byte [edx]
mov ebx, 0xdd85c508
jmp 0x48a7bd
pop edx
popal
aaa
jns 0x48a74d
wait
mov al, 0x3b
xchg ebx, eax
invalid
mov cl, 0xb1
mov ch, 0x63

Function at 0x4ba801
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c3398
cmp edx, dword [eax]
je 0x4ba823
add eax, 8
inc ecx
cmp eax, 0x4c3428
jl 0x4ba814
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c3398]
jne 0x4ba951
mov eax, dword [0x4c7d2c]
cmp eax, 1
je 0x4ba92b
test eax, eax
jne 0x4ba854
cmp dword [0x4c32c4], 1
je 0x4ba92b
cmp edx, 0xfc
je 0x4ba951
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba88b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bb1e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb670
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba8ce
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb670
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bfadc
push edi
call fcn.004bd540
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bb1e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bb1f0
lea eax, [ebp - 0xa0]
push 0x4bfabc
push eax
call fcn.004bb1f0
push dword [esi + 0x4c339c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bb1f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bd4b4
add esp, 0x2c
pop edi
jmp 0x4ba951
lea eax, [ebp + 8]
lea esi, [esi + 0x4c339c]
push 0
push eax
push dword [esi]
call fcn.004bb670
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 0x4041c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x40ccf4]
mov dword [0x40cec4], eax
mov ecx, dword [0x40cec4]
mov dword [0x40cec0], ecx
mov dword [0x40ceb4], 0
mov esi, esp
push str.POSIXLY_CORRECT
call dword [sym.imp.ucrtbased.dll_getenv]
add esp, 4
cmp esi, esp
call fcn.004010c8
mov dword [0x40cebc], eax
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 0x10]
movsx edx, byte [ecx + eax]
cmp edx, 0x2d
jne 0x404229
mov dword [0x40ceb8], 2
mov eax, dword [ebp + 0x10]
add eax, 1
mov dword [ebp + 0x10], eax
jmp 0x404271
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 0x10]
movsx ecx, byte [eax + edx]
cmp ecx, 0x2b
jne 0x404252
mov dword [0x40ceb8], 0
mov edx, dword [ebp + 0x10]
add edx, 1
mov dword [ebp + 0x10], edx
jmp 0x404271
cmp dword [0x40cebc], 0
je 0x404267
mov dword [0x40ceb8], 0
jmp 0x404271
mov dword [0x40ceb8], 1
mov eax, dword [ebp + 0x10]
pop esi
cmp ebp, esp
call fcn.004010c8
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4012b6
Capabilities:
Hide graphical window

Disassembly:
push ebp
push 0x10000
push 0x1000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x403eb4], eax
push 0x64
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, 0x30
push eax
mov dword [eax], ecx
add eax, 0x4c
mov ebp, eax
mov eax, 0x400000
mov dword [0x403eb0], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0x401191
mov dword [ebp - 0x24], str.resiliency
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor eax, eax
push eax
push dword [0x403eb0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.abasement
push str.resiliency
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403eb8], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401380
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401367
mov eax, dword [0x403eb4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
pop ebp
ret 0x10

Function at 0x40177f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4017be
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4017be
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4017be
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4017be
cmp dword [ecx + 0x74], 0xe
jbe 0x4017be
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x412180
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4121ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4121ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000a578
Capabilities:
Hash data with md5

Disassembly:
push edi
xor eax, eax
mov dword [0x100227b0], eax
xor eax, eax
mov dword [0x100227b4], eax
mov edi, 0x10022760
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov eax, 0x100227a0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop edi
ret

Function at 0x1000a6f0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegCreateKeyExA
or eax, eax
jne 0x1000a72f
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.advapi32.dll_RegDeleteValueA
push eax
push dword [ebp - 8]
call sub.advapi32.dll_RegCloseKey
pop eax
leave
ret 0xc

Function at 0x1000a740
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push dword [ebp + 0x14]
pop dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegCreateKeyExA
or eax, eax
jne 0x1000a78f
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.advapi32.dll_RegSetValueExA
push eax
push dword [ebp - 8]
call sub.advapi32.dll_RegCloseKey
pop eax
leave
ret 0x10

Function at 0x1000a7a0
Capabilities:
Check os version
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
cmp dword [ebp + 0x18], 1
jne 0x1000a7e5
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x9c], 5
jb 0x1000a7de
cmp dword [ebp - 0x98], 1
jb 0x1000a7de
mov ecx, 0x101
jmp 0x1000a7ea
mov ecx, 1
jmp 0x1000a7ea
mov ecx, 0xf003f
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push ecx
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegCreateKeyExA
or eax, eax
jne 0x1000a834
push dword [ebp + 0x14]
call sub.kernel32.dll_lstrlenA
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
push dword [ebp + 0x14]
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.advapi32.dll_RegSetValueExA
push eax
push dword [ebp - 8]
call sub.advapi32.dll_RegCloseKey
pop eax
leave
ret 0x14

Function at 0x10024ed0
Capabilities:
Query or enumerate registry value

Disassembly:
cmp ecx, dword [0x1000e000]
jne 0x10024eda
repz ret
jmp fcn.10025931

Function at 0x1002dbe9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push 0x40000000
push 0x1000c944
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [0x1000ee90], eax
ret
Function at 0x402a54
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.004048c4
test esi, esi
jne 0x402a8a
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.004049b4
jmp 0x402aa8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402908
mov edi, eax
test esi, esi
je 0x402aa8
cmp dword [ebx], 0
je 0x402aa8
dec esi
jmp 0x402a91
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4039e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ac010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403a80
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403a60
xor eax, eax
push ebp
push 0x403a59
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 0x403a9c
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 0x403a60
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4ac010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ac010], ax
mov esp, ebp
pop ebp
ret

Function at 0x404748
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4af044], 0
je 0x4047a9
cmp word [0x4af218], 0xd7b2
jne 0x404771
cmp dword [0x4af220], 0
jbe 0x404771
mov eax, 0x4af214
call dword [0x4af230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ac084
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 0x4047d0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ac020], 0
jne 0x4047c5
push 0
push 0x4ac0a4
push 0x4ac084
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret