joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403540
Capabilities:
Create thread

Disassembly:
cmp dword [0x41300c], 0
je 0x4035be
cmp dword [esp + 4], 0
je 0x40359f
mov eax, dword [0x4141a4]
test eax, eax
je 0x403566
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, 1
ret
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0x402f40
push 0
push 0
mov dword [0x4141a4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4035ec
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x4035ec
push str._monitoroff
push eax
call fcn.004041d0
add esp, 8
mov eax, 1
ret
cmp dword [esp + 4], 0
je 0x4035d5
mov eax, dword [0x4141a4]
test eax, eax
je 0x4035d5
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
cmp dword [0x4145c0], eax
setne al
add eax, 1
push eax
call fcn.00402ee0
add esp, 4
mov eax, 1
ret

Function at 0x403600
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
je 0x40364d
mov eax, dword [0x413018]
cmp eax, 2
jne 0x40362e
push 0x104
push 0x4143b0
push 0x40e624
call fcn.00403270
add esp, 0xc
mov dword [0x413018], eax
cmp eax, 1
jne 0x4036be
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push 0x4143b0
jmp 0x40368c
mov eax, dword [0x413014]
cmp eax, 2
jne 0x403673
push 0x104
push 0x4141a8
push 0x40e614
call fcn.00403270
add esp, 0xc
mov dword [0x413014], eax
cmp eax, 1
jne 0x4036be
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push 0x4141a8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4036be
push 0
push 0
push 1
lea eax, [esp + 0x14]
push eax
push esi
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4037e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x11c
mov eax, dword [0x41301c]
xor eax, esp
mov dword [esp + 0x118], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 8]
cmp eax, 7
jb 0x403821
mov eax, 1
mov dword [0x4145c0], eax
mov dword [0x4145bc], eax
jmp 0x40384f
cmp eax, 6
jne 0x40384f
mov eax, dword [esp + 0xc]
cmp eax, 3
jb 0x403840
mov eax, 1
mov dword [0x4145c0], eax
mov dword [0x4145bc], eax
jmp 0x40384f
cmp eax, 2
jb 0x40384f
mov dword [0x4145c0], 1
push esi
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4038a3
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov edx, dword [esp + 4]
mov dword [0x4145b8], edx
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004045a9
add esp, 0x11c
ret
mov ecx, dword [esp + 0x11c]
mov eax, dword [esp + 4]
pop esi
xor ecx, esp
mov dword [0x4145b8], eax
call fcn.004045a9
add esp, 0x11c
ret
Function at 0x4038d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push 0x44
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004045c0
xor eax, eax
add esp, 0xc
cmp dword [esp + 0x68], eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x44
mov word [esp + 0x40], 5
mov dword [esp + 0x18], str.Winsta0Default
jne 0x40391a
mov dword [esp + 0x18], str.Winsta0Winlogon
mov eax, dword [esp + 0x5c]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0x68]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x68]
push 0
push eax
mov eax, dword [esp + 0x68]
push 0x410
push 0
push 0
push 0
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x403976
mov eax, dword [esp]
cmp eax, 0xffffffff
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x403960
push eax
call esi
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
je 0x40396c
push eax
call esi
mov eax, 1
pop esi
add esp, 0x54
ret
xor eax, eax
add esp, 0x54
ret

Function at 0x403980
Capabilities:
Get session information

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x28]
test esi, esi
jne 0x403993
xor eax, eax
pop esi
add esp, 0x1c
ret
push ebp
mov ebp, dword [esp + 0x28]
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x10
push ebp
push 0
mov dword [esp + 0x20], 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x4039cf
mov eax, dword [esp + 0xc]
movzx edi, word [eax]
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
test di, di
jne 0x403a9d
lea edx, [esp + 0x30]
push edx
push 0xf01ff
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403a9d
mov eax, dword [esp + 0x30]
push esi
push 1
push 2
push 0
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x403a25
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x1c
ret
mov edx, dword [esp + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
lea eax, [esp + 0x1c]
push eax
push str.SeTcbPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x403a98
mov edx, dword [esi]
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
push 0
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x403a98
mov ecx, dword [esi]
push 4
lea eax, [esp + 0x14]
push eax
push 0xc
push ecx
mov dword [esp + 0x20], ebp
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x403a98
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x1c
ret
mov edx, dword [esi]
push edx
call edi
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x1c
ret
Function at 0x403ab0
Capabilities:
Get session information

Disassembly:
sub esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov edi, eax
cmp edi, 0xffffffff
je 0x403afa
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push 8
push edi
push 0
mov dword [esp + 0x18], 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x403afa
mov eax, dword [esp + 4]
push esi
mov esi, dword [eax]
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
test esi, esi
pop esi
jne 0x403afa
mov eax, edi
pop edi
add esp, 8
ret
xor eax, eax
pop edi
add esp, 8
ret

Function at 0x403de0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403e22
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x18]
mov dword [edx], eax
mov eax, 1
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret

Function at 0x403e30
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
add eax, 1
ret

Function at 0x403e60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x41301c]
xor eax, esp
mov dword [esp + 0x214], eax
mov ecx, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebx
mov ebx, dword [esp + 0x22c]
push esi
mov esi, dword [esp + 0x22c]
push edi
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x23c]
xor edi, edi
neg edx
sbb edx, edx
and edx, 0x100
add edx, 1
push edx
push edi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x206
lea eax, [esp + 0x1e]
push edi
push eax
mov word [esp + 0x24], di
call fcn.004045c0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ecx
mov dword [esp + 0x28], 0x208
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403f18
lea edx, [esp + 0x18]
push edx
push 0x104
push ebx
call fcn.00404d86
add esp, 0xc
mov edi, 1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x220]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004045a9
add esp, 0x218
ret
Function at 0x403f40
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 4]
push eax
push 0xf003f
xor esi, esi
push esi
push str.SOFTWAREASUSATK_Package
push 0x80000002
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403f9f
mov edx, dword [esp + 4]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push esi
push str.ActiveProcessId
push edx
mov dword [esp + 0x20], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 4]
neg esi
sbb esi, esi
push eax
add esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x403fb0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
push esi
lea eax, [esp + 4]
push eax
xor esi, esi
push 0x28
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404015
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x404015
mov eax, dword [esp + 4]
push esi
push esi
push 0x10
lea edx, [esp + 0x14]
push edx
push esi
push eax
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x404015
mov esi, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x404024
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x404300
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x41301c]
xor eax, esp
mov dword [esp + 0x414], eax
cmp dword [0x4145bc], 0
je 0x4043e6
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x4043e6
lea ecx, [esp]
push ecx
push eax
mov dword [esp + 8], 0
call fcn.00403980
add esp, 8
test eax, eax
je 0x4043e6
push 0x206
lea edx, [esp + 0xa]
push 0
push edx
mov word [esp + 0x10], 0
call fcn.004045c0
add esp, 0xc
push 0x104
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x206
lea ecx, [esp + 0x212]
push 0
push ecx
mov word [esp + 0x218], 0
call fcn.004045c0
lea edx, [esp + 0x10]
push edx
push str._sSlideToShutDown.exe
lea eax, [esp + 0x220]
push 0x104
push eax
call fcn.00404d3a
push 0
call fcn.004037b0
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x230]
push ecx
push 0
push 0
push edx
call fcn.004038d0
push 1
call fcn.004037b0
mov eax, dword [esp + 0x38]
add esp, 0x38
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004045a9
add esp, 0x418
ret
Function at 0x404400
Capabilities:
Get process image filename

Disassembly:
sub esp, 0x20c
mov eax, dword [0x41301c]
xor eax, esp
mov dword [esp + 0x208], eax
cmp dword [0x4145c4], 0
jne 0x40442c
call fcn.00403fb0
mov dword [0x4145c4], 1
mov eax, dword [esp + 0x210]
push esi
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4044ea
push 0x206
lea ecx, [esp + 0xa]
push 0
push ecx
mov word [esp + 0x10], 0
call fcn.004045c0
add esp, 0xc
push 0x104
lea edx, [esp + 8]
push edx
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 4]
push 0x5c
push eax
call fcn.00404d56
add esp, 8
test eax, eax
je 0x4044ea
mov ecx, str.HControl.exe
add eax, 2
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4044c6
test dx, dx
je 0x4044c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4044c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4044a0
xor eax, eax
jmp 0x4044cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4044ea
mov eax, 1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004045a9
add esp, 0x20c
ret
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004045a9
add esp, 0x20c
ret

Function at 0x404510
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREASUSATK_Package
push 0x80000002
mov esi, 3
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4045a2
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.ActiveProcessId
push ecx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404597
push edi
mov edi, dword [esp + 0x10]
cmp edi, 0xffffffff
jne 0x40457d
lea esi, [eax + 2]
jmp 0x40458c
push edi
call fcn.00404400
add esp, 4
test eax, eax
je 0x40458c
xor esi, esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x404596
mov dword [eax], edi
pop edi
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x408b12
Capabilities:
Contain obfuscated stackstrings

Disassembly:
adc al, 0x8d
je fcn.00408b4e
sbb byte [ecx - 0x1017438b], cl
std
invalid

Function at 0x408cd3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
xchg esi, eax
mov esi, 0xc6975d88
inc ebp
cwde
pop ss
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
xor eax, esi
inc ebp
wait
xor eax, 0x349c45c6

Function at 0x408ce4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xor eax, esi
inc ebp
wait
xor eax, 0x349c45c6
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
sahf
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
inc ebp
mov byte [0xa345c635], al
and al, 0xc6
inc ebp
movsb byte es:[edi], byte [esi]
and al, dh
inc ebp
movsd dword es:[edi], dword [esi]
xor eax, 0x41a645c6

Function at 0x408d02
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
mov byte [0xa345c635], al
and al, 0xc6
inc ebp
movsb byte es:[edi], byte [esi]
and al, dh
inc ebp
movsd dword es:[edi], dword [esi]
xor eax, 0x41a645c6
call fcn.0040891e
push eax
push esi
push dword [ebp + 8]
call fcn.004088d3
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [di - 0x23], 0x42

Function at 0x409894
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [0x11fffffc]
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.0040891e
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004088d3
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.0040890e
mov bh, 0xe8
fldenv [esi + 0x10468]
add byte [ebp - 0x12b7b], cl
call dword [eax - 1]
xchg ebp, eax
sub al, 0xfc
invalid
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x6fd819c1
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x1a3f248b
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40618c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esp
call fcn.00403fe7
dec edi
wait
inc eax
shl byte [ecx + 0x30], 0
add byte [eax], al
add byte [ebx + 0x708b0c40], cl
sbb al, 0xad
cmp byte [eax + 0x1c], 0x18
je 0x4061ab
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00403fe7
and byte [0xf88b8290], dl
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.00403fe7
in al, 0xb9
cmpsd dword [esi], dword es:[edi]
sub ecx, dword [ecx - 0x75]
xor al, 0x8b
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x4061d4
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x4061d4
call fcn.00403fe7
ror dword [esi - 0x2e], 0xac
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.00403fe7
test dword [0x75ff27e1], 0x475ff08
push dword [ebp]
call fcn.004047e7
pop es
push edi
push ebp
call dword [sym.imp.USER32.dll_CharPrevW]
mov edi, eax
movzx eax, word [edi]
cmp eax, 0x20
je 0x406239
cmp eax, 0x5c
jne 0x406242
xor eax, eax
mov word [edi], ax
cmp ebp, edi
jb 0x406222
pop edi
pop esi
pop ebp
ret 4

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

Disassembly:
add byte [eax], al
add byte [ebx + 0x708b0c40], cl
sbb al, 0xad

Function at 0x406248
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406271
mov eax, dword [0x40b058]
cmp eax, 0xffffffff
je 0x406265
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40b058], 0xffffffff
jmp 0x40631c
cmp dword [0x461530], ebx
je 0x40631c
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp word [0x46a560], bx
je 0x4062e8
cmp dword [0x40b058], 0xffffffff
jne 0x4062f1
mov esi, 0x46a560
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 4
push 0x40000000
push esi
mov dword [ebp + 8], eax
call fcn.00405fb0
mov dword [0x40b058], eax
cmp eax, 0xffffffff
je 0x40631a
cmp dword [ebp + 8], 0xffffffff
jne 0x4062dd
push ebx
lea ecx, [ebp - 4]
push ecx
push 2
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], 0xfeff
call edi
mov eax, dword [0x40b058]
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40b058], 0xffffffff
je 0x40631a
push 0x4096a8
mov esi, 0x461540
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push esi
push dword [0x40b058]
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4033e0
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4098ec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40993e
test eax, edx
je 0x409941
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409901
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x409927
add ecx, 4
js 0x409917
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409924
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x40994d
test edx, edx
jne 0x4098f4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40e3a4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e47a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004055c8
lea eax, [ebp - 4]
call fcn.00405a34
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004059dc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e464
mov eax, ebx
call fcn.00402f00
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e45d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004059dc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e447
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e48c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e447
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e464
mov eax, dword [ebp - 0x10]
call fcn.00402f1c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e481
lea eax, [ebp - 4]
call fcn.00405530
ret