joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ccb
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 1], 0
mov eax, dword fs:[0x30]
mov al, byte [eax + 2]
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
setne al
leave
ret

Function at 0x402e5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x43386c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
lea ecx, [ebp - 0x40c]
push ecx
push 0x20019
xor ebx, ebx
push ebx
push eax
push SysStringLen
mov dword [ebp - 0x408], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402ef6
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x404]
push eax
push ebx
push ebx
push esi
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402eea
mov esi, ebx
cmp dword [ebp + 0x18], ebx
jle 0x402eea
push dword [edi + esi*4]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x402ee8
inc esi
cmp esi, dword [ebp + 0x18]
jl 0x402ecc
jmp 0x402eea
mov bl, 1
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040d1d5
leave
ret 0x14

Function at 0x40300a
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x43386c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
cmp byte [esi], 0
mov edi, dword [ebp + 0xc]
jne 0x403061
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x40303f
xor eax, eax
jmp 0x4030eb
xor eax, eax
push eax
push eax
push eax
push 3
push eax
push eax
push eax
push 0xffffffffffffffff
push eax
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x40305e
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x403038
mov byte [esi], 1
lea eax, [ebp - 8]
push eax
push 0x42d2d8
push 0x17
xor esi, esi
push esi
push 0x4274c4
mov dword [ebp - 8], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x403038
mov eax, dword [ebp - 8]
lea edx, [ebp - 0xc]
push edx
push esi
push esi
push 0x80
push esi
push esi
push esi
mov dword [ebp - 0xc], esi
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0x4030ab
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x403038
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
push edx
push esi
push 0x20
push edi
mov dword [ebp - 0x10], esi
mov ecx, dword [eax]
push 0x42cac0
push eax
call dword [ecx + 0x50]
test eax, eax
jns 0x4030d6
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
jmp 0x4030a3
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d1d5
leave
ret 8
Function at 0x4030fc
Capabilities:
Reference sql statements
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x425167
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x43386c]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x43386c]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x42cb22
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], ebx
call fcn.0040273a
push str.SELECT__FROM_Win32_NetworkAdapter_WHERE__Name_LIKE__TAP___AND__NOT_PNPDeviceID_LIKE__ISATAP___AND__NetEnabled__True_
push str.ROOTCIMV2
mov ecx, esi
mov dword [esp + 0x78], ebx
call fcn.0040300a
mov esi, eax
test esi, esi
je 0x403228
mov eax, dword [esi]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 1
push 0xffffffffffffffff
push esi
mov dword [esp + 0x2c], ebx
call dword [eax + 0x10]
cmp eax, 1
je 0x403222
test eax, eax
js 0x403222
mov eax, dword [esp + 0x18]
push ebx
mov ecx, dword [eax]
push ebx
lea edx, [esp + 0x24]
push edx
push ebx
push str.Name
push eax
call dword [ecx + 0x10]
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ecx
push dword [esp + 0x28]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
call fcn.0040222f
mov byte [esp + 0x70], 1
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4031e8
cmp dword [esi + 4], ebx
jne 0x4031e3
push dword [esi]
call fcn.0040ce50
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
jmp 0x4031ea
mov eax, ebx
push eax
lea ecx, [esp + 0x4c]
call fcn.0040273a
lea eax, [esp + 0x48]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
push eax
mov ecx, edi
mov byte [edi], bl
call fcn.004022e3
lea ecx, [esp + 0x48]
call fcn.00402331
test esi, esi
je 0x403240
mov ecx, esi
call fcn.004021d7
jmp 0x403240
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea eax, [esp + 0x30]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
push eax
mov ecx, edi
mov byte [edi], bl
call fcn.004022e3
lea ecx, [esp + 0x30]
call fcn.00402331
mov eax, edi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0040d1d5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404ef1
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x43386c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x22c
push edi
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.0040fd10
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404f32
xor eax, eax
jmp 0x404f9f
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x404f53
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404f2e
push ebx
mov ebx, str.csrss.exe
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0040fe28
pop ecx
pop ecx
test eax, eax
je 0x404fad
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x404f87
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0040fe28
pop ecx
pop ecx
test eax, eax
je 0x404fad
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x404f74
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d1d5
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
jmp 0x404f9e

Function at 0x404fbc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x43386c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x114
push esi
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.0040fd10
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
pop esi
jb 0x405030
cmp dword [ebp - 0x110], 1
jb 0x405030
push str.CsrGetProcessId
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40502c
call eax
jmp 0x405035
xor eax, eax
jmp 0x405035
call fcn.00404ef1
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x405052
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x405054
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d1d5
leave
ret
Function at 0x405060
Capabilities:
Encode data using xor

Disassembly:
push 0x10
mov eax, 0x4256e5
call fcn.00411554
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ebx
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x24]
inc eax
push eax
call fcn.0040c92a
cmp dword [ebp + 0x28], 0x10
lea ecx, [ebp + 0x14]
cmovae ecx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x24]
inc ecx
push ecx
push eax
mov dword [ebp - 0x18], eax
call fcn.0040ff94
mov eax, dword [ebp + 0x24]
inc eax
push ebx
mov dword [ebp - 0x10], eax
call fcn.0040ffe9
add esp, 0x14
mov esi, eax
mov dword [ebp - 0x1c], esi
test ebx, ebx
je 0x4050e4
mov ecx, dword [ebp + 8]
mov ebx, esi
sub ecx, esi
mov esi, dword [ebp - 0x14]
xor eax, eax
cmp edi, dword [ebp - 0x10]
cmove edi, eax
lea eax, [edi - 1]
cdq
idiv dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov al, byte [edx + eax + 1]
add al, byte [ebp + 0x2c]
xor al, byte [ecx + ebx]
inc edi
mov byte [ebx], al
inc ebx
dec esi
jne 0x4050be
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp + 0x14]
call fcn.00402331
mov eax, esi
call fcn.00411522
ret 0x28
Function at 0x405c1d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x10
push 0
push 0x435e84
mov esi, ecx
call fcn.0040fd10
mov edi, dword [ebp + 8]
mov eax, 0x5a4d
add esp, 0xc
cmp word [edi], ax
je 0x405c46
xor al, al
jmp 0x405cbb
mov eax, dword [esi]
push ebx
push edi
push edi
mov ecx, esi
call dword [eax + 0x10]
mov ebx, eax
test ebx, ebx
je 0x405cb4
mov ecx, esi
call fcn.0040535c
test eax, eax
je 0x405cb4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov dword [ebp + 8], eax
test eax, eax
je 0x405ca6
push ebx
push eax
call fcn.0040596f
push ebx
call fcn.00405b52
push ebx
call fcn.00405bb0
mov ecx, eax
test ecx, ecx
je 0x405ca6
mov eax, dword [esi]
push edi
push dword [ebp + 8]
push ebx
push edi
push ecx
mov ecx, esi
call dword [eax + 0x1c]
test al, al
je 0x405cb4
push dword [ebp + 8]
call fcn.00405af5
test al, al
jne 0x405cb8
push 0
push dword [0x435e84]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor al, al
jmp 0x405cba
mov al, 1
pop ebx
pop edi
pop esi
pop ebp
ret 4

Function at 0x405dbe
Capabilities:
Accept command line arguments

Disassembly:
push 0xc
mov eax, 0x4254a2
call fcn.004115bd
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040175a
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], esi
jl 0x405e0e
push str.Track
push eax
call fcn.0041018c
pop ecx
pop ecx
test eax, eax
je 0x405e0e
mov ecx, dword [ebp - 0x14]
sub eax, ecx
sar eax, 1
js 0x405e0e
add ecx, 0xfffffff0
jmp 0x405e56
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov byte [ebp - 4], 2
call fcn.00402769
test al, al
je 0x405e31
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004021a3
or esi, 0xffffffff
jmp 0x405e70
call fcn.00404fbc
test al, al
jne 0x405e21
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00401734
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov ecx, dword [ebp - 0x14]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.004021a3
jmp 0x405e70
lea ecx, [ebp + 8]
call fcn.00402331
mov eax, esi
call fcn.00411522
ret 0x18
Function at 0x405f62
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x425793
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x43386c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
xor edi, edi
mov ecx, dword [eax + 4]
add ecx, esi
push edi
mov edx, dword [ecx + 0xc]
and edx, 0xfffffffe
mov eax, edx
or eax, 4
cmp dword [ecx + 0x38], edi
cmove edx, eax
push edx
call fcn.00404939
push ecx
push esi
lea ecx, [esp + 0x14]
call fcn.00408770
mov dword [esp + 0x38], edi
mov eax, dword [esi]
mov ecx, dword [eax + 4]
test byte [ecx + esi + 0xc], 6
jne 0x40600f
mov ecx, dword [ecx + esi + 0x38]
push 1
push dword [ebp + 0x10]
mov eax, dword [ecx]
push edi
push edi
lea edx, [esp + 0x24]
push edx
call dword [eax + 0x28]
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
adc ecx, dword [esp + 0x20]
cmp eax, dword [0x426320]
jne 0x40600f
cmp ecx, dword [0x426324]
jne 0x40600f
mov eax, dword [esi]
push edi
mov ecx, dword [eax + 4]
add ecx, esi
push 2
call fcn.004049cf
or dword [esp + 0x38], 0xffffffff
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov ecx, dword [eax + ecx + 0x38]
test ecx, ecx
je 0x40602a
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40624c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x425763
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x43386c]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x43386c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
or ebx, 0xffffffff
cmp dword [ebp + 8], ebx
jne 0x406298
xor eax, eax
jmp 0x40641a
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4062c6
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4062c6
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x40641a
cmp dword [esi + 0x50], 0
je 0x406418
mov ecx, esi
call fcn.00406e4a
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [esi + 0x40], ecx
jne 0x4062fa
push dword [esi + 0x50]
movsx eax, al
push eax
call fcn.00410599
pop ecx
cmp eax, ebx
cmovne ebx, dword [ebp + 8]
pop ecx
jmp 0x406418
push ecx
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x2c], cl
push 8
lea ecx, [esp + 0x30]
mov byte [esp + 0x2f], al
mov dword [esp + 0x44], 0xf
call fcn.004086c6
and dword [esp + 0x50], 0
lea eax, [esi + 0x48]
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x3c]
mov esi, dword [esi + 0x40]
cmp edi, 0x10
mov edi, dword [esi]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x2c]
cmovae ecx, dword [esp + 0x2c]
lea edx, [esp + 0x2c]
cmovae edx, dword [esp + 0x2c]
add eax, ecx
push eax
push edx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x3b]
push eax
push dword [esp + 0x30]
mov ecx, esi
call dword [edi + 0x1c]
test eax, eax
js 0x40640f
cmp eax, 1
jg 0x4063f0
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
cmp edi, 0x10
lea eax, [esp + 0x28]
cmovae eax, ecx
sub edx, eax
mov dword [esp + 0x14], edx
je 0x4063bd
push dword [esi + 0x50]
lea eax, [esp + 0x2c]
push edx
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call fcn.004107f1
mov edx, dword [esp + 0x24]
add esp, 0x10
cmp edx, eax
jne 0x40640f
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x27]
mov byte [esi + 0x45], 1
cmp dword [esp + 0x20], eax
jne 0x4063eb
test edx, edx
jne 0x40632a
cmp dword [esp + 0x38], 0x20
jae 0x40640f
push edx
push 8
lea ecx, [esp + 0x30]
call fcn.00404069
jmp 0x406326
mov ebx, dword [ebp + 8]
jmp 0x40640f
cmp eax, 3
jne 0x40640f
mov eax, dword [esp + 0x10]
push dword [eax + 0x50]
movsx eax, byte [esp + 0x2b]
push eax
call fcn.00410599
pop ecx
cmp eax, ebx
cmovne ebx, dword [ebp + 8]
pop ecx
lea ecx, [esp + 0x28]
call fcn.00402331
mov eax, ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0040d1d5
mov esp, ebp
pop ebp
ret 4
Function at 0x406cdd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4255a9
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x43386c]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x43386c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x406e2a
cmp byte [esi + 0x45], bl
je 0x406e2a
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x406d41
xor al, al
jmp 0x406e2c
push ebx
push 8
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.004086c6
lea eax, [esi + 0x48]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
mov ecx, dword [ecx + 0x40]
push eax
mov eax, dword [esp + 0x34]
lea edi, [esp + 0x24]
cmovae edi, edx
lea esi, [esp + 0x24]
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
push dword [esp + 0x24]
call dword [edx + 0x20]
sub eax, ebx
je 0x406dab
dec eax
jne 0x406e10
mov esi, dword [esp + 0x14]
jmp 0x406db2
mov esi, dword [esp + 0x14]
mov byte [esi + 0x45], bl
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
cmp ecx, 0x10
lea eax, [esp + 0x20]
cmovae eax, edx
sub edi, eax
je 0x406df1
push dword [esi + 0x50]
cmp ecx, 0x10
push edi
lea eax, [esp + 0x28]
cmovae eax, edx
push 1
push eax
call fcn.004107f1
add esp, 0x10
cmp edi, eax
jne 0x406e19
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
cmp byte [esi + 0x45], 0
je 0x406e17
test edi, edi
jne 0x406d70
push ebx
push 8
lea ecx, [esp + 0x28]
call fcn.00404069
jmp 0x406d68
dec eax
dec eax
jne 0x406e1d
inc eax
jmp 0x406e1b
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x20]
call fcn.00402331
mov al, bl
jmp 0x406e2c
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0040d1d5
mov esp, ebp
pop ebp
ret
Function at 0x40a350
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40a35b
xor eax, eax
pop ebp
ret
push ebx
push esi
mov esi, dword [ebp + 8]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x40a413
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42d830]
movzx eax, byte [edx + 1]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42d830]
movzx eax, byte [edx + 2]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42d830]
movzx eax, byte [edx + 3]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42d830]
movzx eax, byte [edx + 4]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42d830]
movzx eax, byte [edx + 5]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42d830]
movzx eax, byte [edx + 6]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42d830]
movzx eax, byte [edx + 7]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42d830]
add edx, 8
sub esi, 8
dec edi
jne 0x40a376
pop edi
test esi, esi
je 0x40a42c
movzx eax, byte [edx]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x42d830]
inc edx
dec esi
jne 0x40a417
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret

Function at 0x40a434
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov edx, 0xff
and eax, edx
shr esi, 8
mov eax, dword [eax*4 + 0x42d830]
xor eax, esi
movzx ecx, al
add ecx, dword [edi + 4]
mov dword [edi], eax
mov eax, dword [edi + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, edx
shr eax, 8
xor eax, dword [ecx*4 + 0x42d830]
mov dword [edi + 8], eax
pop edi
pop esi
ret

Function at 0x40aab7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x43386c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
push edi
mov edi, dword [ebp + 0xc]
mov esi, ebx
imul esi, dword [ebp + 8]
cmp byte [edi], 0
mov eax, ecx
mov dword [ebp - 8], eax
je 0x40aafc
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40aaf7
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x40ab23
mov edx, dword [edi + 0x1c]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x18]
jbe 0x40ab0c
mov esi, dword [edi + 0x18]
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.0040d280
add esp, 0xc
add dword [edi + 0x1c], esi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor edx, edx
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d1d5
leave
ret
Function at 0x40b81c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jne 0x40b8a4
cmp dword [esi + 4], 0xffffffff
jne 0x40b8a4
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.0040f7e0
movzx eax, word [esi + eax*2 + 0x242]
pop ecx
cmp eax, 0x5c
je 0x40b868
cmp eax, 0x2f
je 0x40b868
push 0x42d4e0
push edi
call fcn.00411268
pop ecx
pop ecx
push 0x20
call fcn.0040d8c4
pop ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x18], ecx
mov ecx, eax
mov word [eax], 0x100
mov byte [eax + 0x10], bl
mov dword [eax + 0x1c], ebx
mov dword [eax + 0xc], ebx
call fcn.0040adb4
xor ecx, ecx
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov dword [esi], eax
mov eax, ecx
pop edi
jmp 0x40b8a9
mov eax, 0x1000000
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x41c598
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43386c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00413882
mov dword [ebp - 0x14], eax
cmp dword [0x435e18], edi
jne 0x41c689
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41c616
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41c769
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41c769
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41c769
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x435e18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x435e1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x435e20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x435e28], eax
test eax, eax
je 0x41c686
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x435e24], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41c6ae
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41c6a1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41c6c3
push 4
pop eax
jmp 0x41c76b
cmp dword [ebp - 0x14], edi
je 0x41c6c3
push dword [0x435e18]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41c6a8
mov eax, dword [0x435e24]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41c721
cmp dword [0x435e28], esi
je 0x41c721
push eax
call ebx
push dword [0x435e28]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41c721
test eax, eax
je 0x41c721
call ecx
test eax, eax
je 0x41c716
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41c716
test byte [ebp - 8], 1
jne 0x41c721
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41c751
mov eax, dword [0x435e1c]
cmp eax, esi
je 0x41c74e
push eax
call ebx
test eax, eax
je 0x41c74e
call eax
mov edi, eax
test edi, edi
je 0x41c74e
mov eax, dword [0x435e20]
cmp eax, esi
je 0x41c74e
push eax
call ebx
test eax, eax
je 0x41c74e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x435e18]
call ebx
test eax, eax
je 0x41c769
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41c76b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d1d5
leave
ret