joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b9d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00408fac
xor eax, eax
push ebp
push 0x40bbf9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40ba14
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40ba2e
mov eax, dword [ebp - 4]
call fcn.00409a18
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b208
cmp word [ebp - 0x21a], 0
je 0x40bbe3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40bc08
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bafd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40bc08
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bafd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40bc44
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bafd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40bc44
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bafd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40bc78
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bafd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40bcac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40bbe3
xor eax, eax
push ebp
push 0x40bbdc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b7e4
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40bb6c
mov eax, dword [ebp - 0x10]
call fcn.0040676c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409a80
jmp 0x40bbb7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40bcec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40bbb7
mov eax, dword [ebp - 0x10]
call fcn.0040676c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40bcec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409a80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bbe3
cmp dword [ebp - 8], 0
je 0x40bbd2
mov eax, dword [ebp - 8]
call fcn.00406788
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc00
lea eax, [ebp - 4]
call fcn.00408ec8
ret
Function at 0x40bee8
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00408fac
xor eax, eax
push ebp
push 0x40bfa8
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409abc
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409c6c
mov eax, dword [ebx]
call fcn.0040bdb0
test al, al
jne 0x40bf85
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409abc
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409c6c
mov eax, dword [ebx]
call fcn.0040bdb0
test al, al
jne 0x40bf85
mov eax, ebx
call fcn.00408ec8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bfaf
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00408f28
lea eax, [ebp - 4]
call fcn.00408ec8
ret

Function at 0x40c820
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x41cc80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41ccd9
test eax, edx
je 0x41ccdc
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41cc97
movzx eax, word [eax]
sub eax, ecx
jmp 0x41ccbe
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]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41ccbf
add ecx, 4
js 0x41ccaf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41ccbc
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41ccbe
xor eax, eax
ret
test eax, eax
je 0x41cce8
test edx, edx
jne 0x41cc88
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41db88
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x41dbb5
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x41dc88
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00409a18
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41dcf2
test ah, 4
je 0x41dceb
test bl, bl
jne 0x41dcb0
mov al, 1
jmp 0x41dd19
test al, 0x10
je 0x41dcb8
xor eax, eax
jmp 0x41dd19
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41dcdc
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41dd19
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41dd19
test al, 0x10
sete al
jmp 0x41dd19
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41dd13
cmp ebx, 3
je 0x41dd13
cmp ebx, 0x7b
je 0x41dd13
mov eax, esi
call fcn.0041dc48
test al, al
jne 0x41dd17
xor eax, eax
jmp 0x41dd19
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x41dd20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.00409a18
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41ddc7
test esi, 0x400
jne 0x41dd5c
test esi, 0x10
setne bl
jmp 0x41ddf7
cmp byte [esp], 0
je 0x41dd90
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41ddf7
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41ddf7
test esi, 0x10
je 0x41dd9c
mov bl, 1
jmp 0x41ddf7
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41ddc3
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41ddf7
mov bl, 1
jmp 0x41ddf7
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41ddf1
cmp eax, 3
je 0x41ddf1
cmp eax, 0xa1
je 0x41ddf1
cmp eax, 0x7b
je 0x41ddf1
cmp eax, 0x35
je 0x41ddf1
cmp eax, 0x15
je 0x41ddf1
cmp eax, 0x43
jne 0x41ddf5
xor ebx, ebx
jmp 0x41ddf7
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x421a84
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x421abd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409050
jmp 0x421ac6
mov eax, ebx
mov edx, esi
call fcn.004092a8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x421ad0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x421af2
movzx eax, word [esp]
jmp 0x421af4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x422c44
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x422d69
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00422a4c
mov esi, eax
mov eax, dword [0x4e19b4]
cmp byte [eax], 0
je 0x422d11
mov eax, dword [0x4e1830]
call fcn.00406ffc
call fcn.004068c0
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x422c14]
call fcn.0040acac
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x422d84
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x422d4d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4e17f8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4e4c50]
call fcn.0040aea8
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422d70
lea eax, [ebp - 4]
mov edx, dword [0x422c14]
call fcn.0040add0
ret

Function at 0x424a64
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004093c4
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040c800
mov edi, eax
cmp edi, 0x104
jbe 0x424a0f
mov eax, edi
add eax, eax
call fcn.0040676c
mov esi, eax
jmp 0x424a11
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040c800
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x424a4a
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x424a34
mov eax, esp
cmp esi, eax
je 0x424a57
mov eax, esi
call fcn.00406788
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x424a90
cmp bl, 0
je 0x424a8c
cmp bl, 0x41
jl 0x424a87
cmp bl, 0x5a
jg 0x424a87
or bl, 0x20
xor al, bl
inc esi
jmp 0x424a6b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4249d0

Function at 0x4252dc
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00409abc
add esp, 0x800
pop ebx
ret
Function at 0x4337e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x433832
test eax, edx
je 0x433835
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4337f5
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 0x43381b
add ecx, 4
js 0x43380b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x433818
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 0x433841
test edx, edx
jne 0x4337e8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4811a4
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x4811ac
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4d35e4
Capabilities:
Allocate or change rwx memory
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [edx + 0x38]
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
mov eax, dword [eax]
lea ebx, [eax + 0x18]
movzx edx, word [eax + 0x14]
add ebx, edx
movzx edi, word [eax + 6]
dec edi
test edi, edi
jl 0x4d3677
inc edi
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
add eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
test edx, edx
jne 0x4d364b
mov esi, dword [esp + 8]
test esi, esi
jle 0x4d3671
push 0x40
push 0x1000
push esi
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov ebp, eax
mov dword [ebx + 8], ebp
mov edx, esi
mov eax, ebp
xor ecx, ecx
call fcn.00407060
jmp 0x4d3671
mov esi, edx
push 0x40
push 0x1000
push esi
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov ebp, eax
mov eax, dword [esp]
mov edx, dword [ebx + 0x14]
add eax, edx
mov ecx, esi
mov edx, ebp
call fcn.00406910
mov dword [ebx + 8], ebp
add ebx, 0x28
dec edi
jne 0x4d3612
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4d38bc
Capabilities:
Inspect section memory permissions

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, eax
xor esi, esi
mov eax, dword [edi]
mov ebx, eax
add ebx, 0xf8
movzx ebp, word [eax + 6]
dec ebp
test ebp, ebp
jl 0x4d399e
inc ebp
xor edx, edx
mov eax, dword [ebx + 0x24]
mov ecx, eax
and ecx, 0x20000000
cmp ecx, 0x20000000
jne 0x4d38f5
or edx, 0x10
mov ecx, eax
and ecx, 0x40000000
cmp ecx, 0x40000000
jne 0x4d3908
or edx, 2
mov ecx, eax
and ecx, 0x80000000
cmp ecx, 0x80000000
jne 0x4d391b
or edx, 8
mov ecx, eax
and ecx, 0x4000000
cmp ecx, 0x4000000
jne 0x4d3931
or edx, 0x200
and eax, 0x2000000
cmp eax, 0x2000000
jne 0x4d3953
push 0x4000
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebx + 8]
or eax, esi
push eax
call sub.kernel32.dll_VirtualFree_1
jmp 0x4d3997
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x4d3982
mov ecx, dword [ebx + 0x24]
and ecx, 0x40
cmp ecx, 0x40
jne 0x4d396c
mov eax, dword [edi]
mov eax, dword [eax + 0x20]
jmp 0x4d3982
mov ecx, dword [ebx + 0x24]
and ecx, 0x80
cmp ecx, 0x80
jne 0x4d3982
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
test eax, eax
jle 0x4d3994
push esp
push edx
push eax
mov eax, dword [ebx + 8]
or eax, esi
push eax
call sub.kernel32.dll_VirtualProtect
add ebx, 0x28
dec ebp
jne 0x4d38dd
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4d3fc8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00408fac
mov eax, dword [ebp - 8]
call fcn.00408fac
mov eax, dword [ebp - 0xc]
call fcn.00408fac
xor eax, eax
push ebp
push 0x4d40ca
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4d40a5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x49]
xor ecx, ecx
mov edx, 0x3c
call fcn.00407060
mov dword [ebp - 0x49], 0x3c
xor eax, eax
mov dword [ebp - 0x41], eax
mov dword [ebp - 0x45], 0x540
cmp byte [ebp + 8], 0
je 0x4d4043
mov eax, 0x4d40e0
mov dword [ebp - 0x3d], eax
jmp 0x4d404b
mov eax, 0x4d40ec
mov dword [ebp - 0x3d], eax
mov eax, dword [ebp - 4]
call fcn.00409a18
mov esi, eax
mov dword [ebp - 0x39], esi
mov eax, dword [ebp - 0xc]
call fcn.00409a18
mov dword [ebp - 0x35], eax
mov eax, dword [ebp - 8]
call fcn.00409a18
mov dword [ebp - 0x31], eax
mov dword [ebp - 0x2d], ebx
lea eax, [ebp - 0x49]
push eax
call sub.shell32.dll_ShellExecuteExW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x4d409b
push ebx
push 0
push 0
push esi
push 0x4d40f8
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d40af
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d40d1
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00408f28
ret
Function at 0x402820
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.00404188
test esi, esi
jne 0x402856
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.00404278
jmp 0x402874
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004026d4
mov edi, eax
test esi, esi
je 0x402874
cmp dword [ebx], 0
je 0x402874
dec esi
jmp 0x40285d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4036a0
Capabilities:
Query or enumerate registry value

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

Function at 0x40400c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x428044], 0
je 0x40406d
cmp word [0x428218], 0xd7b2
jne 0x404035
cmp dword [0x428220], 0
jbe 0x404035
mov eax, 0x428214
call dword [0x428230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x426290
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 0x404094
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x426024], 0
jne 0x404089
push 0
push 0x426288
push 0x426290
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4055f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405656
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004043dc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402dc8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405640
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40565d
lea eax, [ebp - 0x10]
call fcn.00404188
ret

Function at 0x406f14
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040462c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x406f2d
test al, 0x10
jne 0x406f31
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409178
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4091b1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404278
jmp 0x4091ba
mov eax, ebx
mov edx, esi
call fcn.004041dc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4091c4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4091e5
mov al, byte [esp]
jmp 0x4091e7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40986c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x4096e4
mov eax, dword [0x427e7c]
cmp byte [eax], 0
je 0x4098e8
mov eax, dword [0x427da8]
call fcn.00402c64
call fcn.00402644
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004074f8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x409930
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40991e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x427d80]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x428660]
call fcn.00405040
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret