joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490e30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5053a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.004ba6d3
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x490e94
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x490e94
lea eax, [ebp - 0x108]
push eax
call dword [0x50533c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4bf6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004a4bf6
mov esp, ebp
pop ebp
ret

Function at 0x490eb0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00490e30

Function at 0x493250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x4e77cc
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x493270
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push str.LoadLibraryExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x4e77e8
push esi
mov dword [ebp - 8], ebx
call fcn.004ba7a0
add esp, 8
test eax, eax
je 0x4932bc
test ebx, ebx
je 0x4932ac
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4932e5
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4932e5
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x493390
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x493301
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x505330]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x493386
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x493386
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x493332
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x493350
sub ecx, edx
add ecx, ebx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x493360
mov eax, dword [ebp - 8]
test eax, eax
je 0x49337d
push 8
push 0
push ebx
call eax
jmp 0x493384
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x505334]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x496e70
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x496ea2
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
pop ebp
ret

Function at 0x497020
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x497053
push 0x2e
push edi
call fcn.004aa600
add esp, 8
test eax, eax
je 0x497051
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x4981b0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4981c1
sub esi, ecx
je 0x4981d8
lea eax, [esi + esi]
push eax
call dword [0x505330]
jmp 0x4981e3
push 0x4f60c8
call dword [0x50533c]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4981f6
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
push edi
call fcn.00495c20
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x498274
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8002
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x498269
push 0
lea eax, [esi + esi]
mov dword [ebp - 0xc], 0x10
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebx + 0x10], 0
push edi
mov byte [ebx + 0x14], 0
call dword [0x505334]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4984c0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5053a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push edi
mov edi, dword [ebp + 0x10]
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [ebp - 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x498557
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x18], xmm0
push edi
mov word [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
mov dword [ebp - 0x10], 8
call fcn.004985c0
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.00499b30
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x498569
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4bf6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push dword [ebp - 0x20]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004a4bf6
mov esp, ebp
pop ebp
ret
Function at 0x4989d0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
pop ebp
ret
Function at 0x498af0
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x5053a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x128], edi
mov eax, dword [edi + 8]
mov dword [ebp - 0x108], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x120], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x110], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x10c], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x11c], eax
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x114], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x118], eax
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp + 0xc]
add eax, 2
nop
movzx edx, byte [eax - 2]
lea eax, [eax + 4]
movzx ecx, byte [eax - 5]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax - 4]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax - 3]
shl edx, 8
or edx, ecx
mov dword [ebp + esi*4 - 0x104], edx
inc esi
cmp esi, 0x10
jl 0x498b60
lea ebx, [ebp - 0xcc]
mov edi, 0x30
nop word [eax + eax]
mov ecx, dword [ebx - 0x34]
lea ebx, [ebx + 4]
mov edx, dword [ebx - 4]
mov esi, ecx
mov eax, ecx
rol esi, 0xe
ror eax, 7
xor esi, eax
shr ecx, 3
xor esi, ecx
mov eax, edx
mov ecx, edx
rol eax, 0xd
rol ecx, 0xf
xor ecx, eax
shr edx, 0xa
xor ecx, edx
add esi, ecx
add esi, dword [ebx - 0x3c]
add esi, dword [ebx - 0x18]
mov dword [ebx + 4], esi
sub edi, 1
jne 0x498ba0
mov edi, dword [ebp - 0x128]
xor ebx, ebx
mov ecx, dword [ebp - 0x11c]
nop dword [eax]
mov esi, dword [ebp - 0x108]
mov edx, ecx
mov eax, ecx
ror edx, 0xb
rol eax, 7
xor edx, eax
mov eax, ecx
ror eax, 6
xor edx, eax
mov eax, dword [ebp - 0x114]
xor eax, dword [ebp - 0x118]
and eax, ecx
mov ecx, esi
xor eax, dword [ebp - 0x118]
add edx, eax
ror ecx, 0xd
add edx, dword [ebx + 0x4e7f98]
mov eax, esi
add edx, dword [ebp + ebx - 0x104]
add ebx, 4
add edx, dword [ebp - 0x124]
add dword [ebp - 0x10c], edx
rol eax, 0xa
xor ecx, eax
mov eax, esi
ror eax, 2
xor ecx, eax
mov eax, dword [ebp - 0x120]
mov esi, eax
add ecx, edx
and eax, dword [ebp - 0x108]
or esi, dword [ebp - 0x108]
and esi, dword [ebp - 0x110]
mov edx, dword [ebp - 0x108]
or esi, eax
mov eax, dword [ebp - 0x118]
add esi, ecx
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x108], esi
cmp ebx, 0x100
jl 0x498bf0
add dword [edi + 8], esi
add dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10c]
add dword [edi + 0x14], eax
mov eax, dword [ebp - 0x114]
add dword [edi + 0x1c], eax
mov eax, dword [ebp - 0x118]
add dword [edi + 0x20], eax
add dword [edi + 0x18], ecx
mov eax, dword [ebp - 0x124]
add dword [edi + 0x24], eax
xor eax, eax
add dword [edi + 0xc], edx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4bf6
mov esp, ebp
pop ebp
ret
Function at 0x499a20
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x505330]
mov edi, eax
add esp, 4
test edi, edi
jne 0x499a4d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x499a94
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x499a9a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x499afb
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x499ac0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x499b27
mov eax, dword [esi + 4]
push 1
push 0x4e819e
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x4e819f
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x499b00
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4c34c8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c3347

Function at 0x4c677c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c643c
Function at 0x40b940
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push esi
push ebx
sub esp, 0x24
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov word [ebp - 0x16], ax
mov dword [esp + 4], 2
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
sub esp, 8
mov esi, eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x418ed8
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x418e78
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
mov ebx, eax
call fcn.0040f8c0
mov dword [eax], 0x415224
mov dword [eax + 4], 0x12c
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.got__08lx_n
mov dword [esp], eax
call fcn.0040b890
test ebx, ebx
jne 0x40ba88
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x1c]
sub esp, 8
mov ebx, eax
call fcn.0040f8c0
mov dword [eax], 0x415224
mov dword [eax + 4], 0x130
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.got__08lx_n
mov dword [esp], eax
call fcn.0040b890
test ebx, ebx
jne 0x40ba88
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x1c]
sub esp, 8
test eax, eax
jne 0x40ba88
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x16]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x20]
sub esp, 8
mov ebx, eax
call fcn.0040f8c0
mov dword [eax], 0x415224
mov dword [eax + 4], 0x137
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.got__08lx_n
mov dword [esp], eax
call fcn.0040b890
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40ba9a
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40baac
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40babe
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
test esi, esi
js 0x40bac8
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
cmp word [ebp - 0x16], 0xffff
sete al
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x40c090
Capabilities:
Get file version info
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea eax, [ebp - 0x110]
sub esp, 0x11c
mov ebx, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.version.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x114], eax
sub esp, 8
test eax, eax
jne 0x40c0d0
lea esp, [ebp - 8]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x40c0be
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x114]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x110]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.version.dll_GetFileVersionInfoA]
sub esp, 0x10
mov ebx, eax
test eax, eax
jne 0x40c158
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
lea ebx, [ebp - 0x108]
mov dword [esp + 0xc], 0x4b0
mov dword [esp], ebx
mov dword [esp + 8], 0x409
mov dword [esp + 4], str.StringFileInfo_04x_04xOriginalFilename
call fcn.0040adc0
lea eax, [ebp - 0x114]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 8], eax
mov dword [esp], esi
call dword [sym.imp.version.dll_VerQueryValueA]
sub esp, 0x10
mov ebx, eax
test eax, eax
je 0x40c125
mov eax, dword [ebp - 0x10c]
mov dword [esp], str.wcodstub.dll
xor ebx, ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_lstrcmpiA]
sub esp, 8
test eax, eax
sete bl
jmp 0x40c125

Function at 0x40f810
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [esp], 1
call dword [0x412094]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_fflush]
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x410cb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [ebp - 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00410d70
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
push ebp
mov ebp, esp
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
pop ebp
shl edx, 5
add eax, edx
ret
Function at 0x1001107d
Capabilities:
Terminate process

Disassembly:
jmp 0x10026690
jmp fcn.10027830
cmp ecx, dword [0x1002f0d8]
jne 0x1002669a
repz ret
jmp 0x100111a4

Function at 0x10024460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x1002446f
pop dword [ebp - 0x10]
mov eax, 0x1002446f
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xdcd8a731
sub dword [ebp - 0x20], 0x8e8661e6
mov dword [ebp - 0x1c], 0xeb63839f
sub dword [ebp - 0x1c], 0xb930375a
mov dword [ebp - 0x18], 0xc69725be
add dword [ebp - 0x18], 0x85b51e70
mov dword [ebp - 0x14], 0x56a56286
add dword [ebp - 0x14], 0xa95a9d7a
lea eax, [ebp - 0x20]
push eax
mov eax, 0x88944cca
add eax, 0x876eb5fe
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x2fb74047
add dword [ebp - 0x20], 0x44bb290f
mov dword [ebp - 0x1c], 0x574caaf6
sub dword [ebp - 0x1c], 0x15e04981
mov dword [ebp - 0x18], 0x3ed68b64
sub dword [ebp - 0x18], 0xdb671ef8
mov dword [ebp - 0x14], 0xcde96132
add dword [ebp - 0x14], 0x32169ece
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x52c603ba
add eax, 0xbd3cff12
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x32fd0
push 0
call eax
mov ecx, 0x46105f1b
sub ecx, 0x46102b62
mov edx, eax
mov ebx, 0x10033200
add ebx, dword [ebp - 0x10]
mov esi, 0x48f17c6
sub esi, 0xf3b33698
add dword [ebp - 4], 0x463a00b1
mov edi, dword [ebx]
sub dword [ebp - 8], 0xd8c404b6
xor edi, esi
mov dword [ebp - 8], 0x97ba9e87
mov dword [edx], edi
add dword [ebp - 4], esi
add edx, 4
add ebx, 0x9bca6703
sub ebx, 0x9bca66ff
loop 0x10024586
add eax, 0xd25b9f09
sub eax, 0xd25add52
xor ebx, ebx
add ebx, eax
add eax, 0x6e37f1a
sub eax, 0x6e37f15
mov ecx, 0x342ec232
add ecx, 0xdbd13dce
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x4028a0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4028dd
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x108]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4028fd
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.00403f4c
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x402ad0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402aff
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403e04
jmp 0x402b1d
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402a04
mov edi, eax
test ebx, ebx
je 0x402b1d
cmp dword [esi], 0
je 0x402b1d
dec ebx
jmp 0x402b06
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
imul edx, dword [0x542040], 0x8088405
inc edx
mov dword [0x542040], edx
mul edx
mov eax, edx
ret

Function at 0x402ff4
Capabilities:
Query or enumerate registry value

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

Function at 0x403cd4
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.00402710
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x542045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403c9c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc