joyce8/EMBER2024-capa huggingface dataset:
Function at 0x558606
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5b3e64]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x558636
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0xd0], ebx
push edi
mov edi, 0x104
lea eax, [ebp - 0x114]
push edi
push ebx
push eax
call fcn.0053d790
add esp, 0xc
lea eax, [ebp - 0x114]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x10]
mov word [ebp - 0xd], 0x642e
push eax
lea eax, [ebp - 0x114]
mov word [ebp - 0x10], 0x6464
push eax
mov word [ebp - 0xb], 0x6c6c
mov byte [ebp - 9], bl
mov byte [ebp - 0xe], 0x72
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
pop edi
test eax, eax
je 0x5586f4
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0xd0], eax
test eax, eax
je 0x5586f4
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0x6e6f4d
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xd4], eax
test eax, eax
je 0x5586f4
push ebx
push dword [esi + 0xd0]
push eax
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [esi + 0xd8], eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0053aa0d
mov esp, ebp
pop ebp
ret
Function at 0x4074a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd9c
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405b4c
xor eax, eax
push ebp
push 0x4051d2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00404bf4
mov dword [ebp - 0x50], 0x44
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405b5c
push eax
push 0
call fcn.004069e8
test eax, eax
je 0x4075cc
push 0
call fcn.00406a10
mov ebx, eax
lea eax, [ebp - 0x16c]
mov ecx, 0x40
mov edx, ebx
call fcn.00406a84
cmp word [ebp - 0x16c], 0x5a4d
jne 0x4075cc
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x130]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, eax
lea eax, [ebp - 0x264]
mov ecx, 0xf8
call fcn.00406a84
cmp dword [ebp - 0x264], 0x4550
jne 0x4075cc
mov esi, dword [ebp - 0x214]
push 0x40
push 0x3000
push esi
mov edi, ebx
push edi
mov eax, dword [ebp - 0x60]
push eax
call fcn.00406a50
lea edx, [ebp - 0xc]
push edx
push esi
push edi
push eax
mov eax, dword [ebp - 0x60]
push eax
call fcn.00406a58
mov dword [ebp - 0x12c], 0x10007
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call fcn.00406a18
mov eax, dword [ebp - 8]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call fcn.00406a38
mov eax, dword [ebp - 0x5c]
push eax
call fcn.00406a30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4051d9
lea eax, [ebp - 4]
call fcn.004057d8
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..00cfg
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x84e51
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x51d25020
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x426c00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426c2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426c2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x46bee1
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg dword [esp], ebp
pushfd
lea esp, [esp + 1]
mov byte [esp], bh
lea esp, [esp + 1]
jmp 0x46c5dc
lea esp, [esp + 2]
lea ebp, [ebp + 0x16]
push dx
lea esp, [esp + 2]
xchg dword [esp], ebp
call fcn.0046c3e6
sub edx, 0xdfdfcb27
lea esp, [esp + 2]
jmp 0x46c62e

Function at 0x46c7e6
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov bh, dh
mov dx, word [esp]
mov bx, sp
mov bx, di
btc bx, cx
jmp 0x46c7d0

Function at 0x46cabd
Capabilities:
Execute anti-debugging instructions

Disassembly:
add edx, 0xbafdf387
jmp 0x46ceb4
jmp 0x46cafd
xchg word [esp], dx
mov dl, 0x91
call fcn.0046cae7
rdtsc
mov eax, dword [esp]
inc dl
jne 0x46cb44
neg ax
lea esp, [esp + 2]
jmp 0x46cc82
lea esp, [esp + 2]
jmp 0x46cc82
neg ax
jmp 0x46cb2e
push dx
and edx, 0x10d0cc7a
jno 0x46cbe7
cmc
jmp 0x46cbce
lea esp, [esp + 4]
sub bl, 0x54
mov dx, cx
mov ah, byte [esp]
lea eax, [0xde055a0b]
jmp 0x46cb73
shl dh, 2
push word [esp]
mov edx, 0x2ce3092b
jmp 0x46cb89
jmp 0x46cc01
lea esp, [esp + 2]
jmp 0x46cbec
cmc
lea esp, [esp + 2]
add bl, 0x33
mov dh, 0xa9
bts dx, bp
jp 0x46cbb8
mov ax, word [esp]
jmp 0x46cc0d
mov ax, word [esp]
mov al, bh
jmp 0x46cc48
mov al, bh
neg ah
jmp 0x46cc4a
mov ax, 0x9ae5
lea eax, [ecx + ecx]
mov dx, word [esp]
lea edx, [eax*4]
call 0x46ccb2
jo 0x46cc9f
push 0xffffffffffffffe9
js 0x46cc2f
jmp 0x46cbaa
invalid
invalid
mov ax, 0x9ae5
lea eax, [ecx + ecx]
mov dx, word [esp]
jmp 0x46cc67
neg ah
ror bl, 0
jge 0x46cc13
jl 0x46cc32
rol ah, 5
rdtsc
jmp 0x46ccfa
lea edx, [eax*4]
rol ah, 5
jmp 0x46cc54
inc bl
push bx
bswap edx
cmc
jp 0x46cc2d
shl dh, 2
push word [esp]
mov edx, 0x2ce3092b
jmp 0x46cb89
add al, 0xeb
cmp ebx, eax
inc esi
aam 0xb3
dec esi
cli
push 0xfffffffffffffffb
imul ecx, dword [esi], 0xfffffffd
dec ebx
pop esi
test eax, 0xb8666bc8
xor dword [edi + ecx + 0x31], edx
rdtsc
not edx
call fcn.0046cc9c
ror dh, cl
not al
or eax, ecx
xchg dword [esp + 4], edi
pushfd
pushfd
jmp 0x46cced
pop ax
lea esp, [esp + 2]
push dword [esp + 8]
ret 0xc
ror bl, 0
lea edx, [edx*4]
lea eax, [ecx*4]
jmp 0x46cdb5
mov ax, 0x353b
call fcn.0046cd71
adc edx, dword [edi + 0x21916207]
mov ecx, dword [eax]
sahf
stc
or byte [edx + 0x3bb86625], bh
xor eax, 0x87820ff9
add byte [eax], al
add byte [ebx + 0x2e2c1c4], cl
mov ax, 0x353b
stc
jb 0x46cdd3
mov eax, esp
shl edx, 2
mov ah, bh
call fcn.0046ce11
push esp
invalid
mov edx, ebx
mov ax, word [esp]
bsr ax, cx
jge 0x46cd41
jl 0x46cd2b
clc
mov ax, 0x2570
xchg al, ah
call fcn.0046d9dd
jmp 0x46d3bb
psubd mm1, qword [eax + 0x5b]
mov dl, 0xb0
aad 0x66
not eax
lea edx, [edx - 0x7d9]
jmp 0x46ce83
mov eax, 0x1e61d156
bt ax, ax
mov al, cl
xchg dword [esp], edx
lea eax, [eax + eax]
mov ah, byte [esp]
jmp 0x46ced1
mov ax, sp
mov ah, al
call fcn.0046cefa
out 0x69, al
stc
cwde
imul ebx, eax, 0x18
mov bl, byte [eax]
jg 0x46ce53
cmp eax, 0xdabf2fba
sub dword [eax - 0x27093e], eax
xor al, 0x24
neg al
push dword [esp]
ret 4
setne al
jmp 0x46c671
mov eax, esp
shl edx, 2
mov ah, bh
jmp 0x46cf33
Function at 0x46cae7
Capabilities:
Execute anti-debugging instructions

Disassembly:
inc esi
mov ax, bx
not ax
jmp 0x46cb1e
bswap edx
mov edx, ebp
push ebx
mov byte [esp + 1], ah
pop dx
xchg byte [esp], al
jmp 0x46cb08

Function at 0x46d0d2
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x46d114
not ax
ror bl, 0
not dx
mov al, byte [esp]
mov ah, byte [esp]
jmp 0x46d0fc

Function at 0x51a4a2
Capabilities:
Execute anti-debugging instructions

Disassembly:
push word [esp + 6]
pop ecx
pop ebx
jmp 0x51a4af
xchg ebx, ebp
cpuid
mov bl, byte [esp + 2]
mov ah, byte [esp + 1]
not bl
clc
jmp 0x51a502
bts edx, esp
mov cx, word [esp + 4]
cld
setge dh
jmp 0x51a56d
mov dh, bl
add esp, 1
btc ecx, ebx
xchg byte [esp], cl
lea edi, [ecx + edx]
lea esp, [esp]
jmp 0x51a4d3
cpuid
xchg edx, ecx
pushfd
mov ah, 0x2e
mov ch, byte [esp + 7]
xchg word [esp + 4], cx
jmp 0x51a4e9
lea esp, [esp + 9]
mov ah, al
mov bh, 0xe7
setb bl
mov al, 0xd9
jmp 0x51a554
mov ax, 0xbf04
mov di, 0x4c81
dec bl
rdtsc
neg bp
xchg di, bp
jmp 0x51a514
mov ax, word [esp + 1]
mov cx, bp
lea ebx, [eax*4]
cmc
jmp 0x51a581
mov dh, byte [esp + 1]
xchg byte [esp], dh
mov dx, word [esp + 1]
xchg word [esp], ax
jmp 0x51a53e
lea edx, [0x48bb43ee]
sete ch
lea ebp, [ebx + 0x59]
mov dword [esp], ebx
not dh
pushfd
jmp 0x51a52a
mov edx, edi
not bx
mov si, word [esp]
btc eax, edi
ror edx, 0
sub esp, 4
jmp 0x51a611
push word [esp + 2]
mov bh, byte [esp + 5]
lea esp, [esp]
setle cl
dec ch
bsr esi, ebp
jmp 0x51a5f3
mov dl, 0x8c
xchg si, cx
mov edx, dword [esp]
lea eax, [ebx*4]
neg dl
and cx, 0xe978
jmp 0x51a5b9
pop dx
dec bh
xchg word [esp], ax
pop word [esp]
lea edi, [ecx + edx]
cpuid
jmp 0x51a63c
neg eax
push word [esp + 1]
pop ebx
xchg cx, di
cpuid
mov word [esp + 1], di
jmp 0x51a5db
clc
sub dx, 0xb06d
neg di
xchg byte [esp], bh
cmc
xchg byte [esp], cl
jmp 0x51a667
xchg dh, bl
sub al, 0x47
mov bx, word [esp + 1]
mov dx, word [esp + 1]
setp dh
mov ebp, edi
jmp 0x51a625
xchg byte [esp], bh
push bp
adc ebx, edx
lea ecx, [ecx*4]
jmp 0x51a78c
mov bh, byte [esp + 1]
cld
bswap edx
sub cx, bp
mov byte [esp], ah
neg dl
jmp 0x51a651
lea edi, [ecx*4]
pop bp
mov dh, byte [esp]
jmp 0x51a6db
add esp, 0xc
pop eax
mov cl, byte [esp]
bswap edx
not edx
mov dl, bl
jmp 0x51a6a0
mov byte [esp], al
mov ebp, 0xa6bfc640
mov ecx, 0xb0da9c30
not edx
jmp 0x51a6ed
mov eax, 0x23cccdf7
rdtsc
cmc
mov bh, 0xab
xchg bp, bx
mov di, cx
jmp 0x51a6c5
lea edx, [esi*4]
mov al, 0x4c
xchg di, bx
call fcn.0051a72e
out 0x6a, al
clc
lahf
push 0xffffffffffffff81
or ecx, dword [ebp + 0x9d2c]
add byte [eax], al
lea ebp, [ebx*4]
push ecx
not ax
rdtsc
shr eax, cl
not bl
jmp 0x51a6b6
bsr ebp, edi
pop ecx
sub esp, 0xd
lea ecx, [ebx*4]
xor cx, 0x575
push sp
jmp 0x51a705

Function at 0x51ab53
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov si, 0x9943
mov byte [esp + 3], ah
mov di, bx
mov ecx, eax
bswap edx
jmp 0x51aa72

Function at 0x51ad68
Capabilities:
Execute anti-debugging instructions

Disassembly:
setae al
mov ah, dh
pop dword [esp + 6]
setg dl
jmp 0x51ad8f
mov ebp, 0x37222f7a
mov ch, 0x31
bsr ebx, esi
mov di, 0x3910
jmp 0x51adb4
Function at 0x51b3a2
Capabilities:
Access peb ldr_data

Disassembly:
push esi
pop di
mov eax, dword [esp + 5]
not bx
mov eax, dword [esp + 5]
pushfd
jmp 0x51b25b
sete bh
mov bl, byte [esp + 5]
pop dword [esp + 4]
rdtsc
bsr ax, si
pop bp
jmp 0x51b22f
mov al, byte [esp + 6]
pop word [esp + 6]
xchg byte [esp + 8], ah
push word [esp + 1]
xchg ch, ah
std
jmp 0x51b2a7
mov ebp, dword [esp + 3]
mov byte [esp], ch
mov esi, dword [esp]
xchg al, ah
mov esi, dword [esp + 1]
bsr dx, dx
jmp 0x51b246
popal
push dx
push word [esp + 1]
call fcn.0051b2f0
push ecx
aam 0x4a
sub eax, 0x80c135dc
inc ebx
mov ebp, dword [esp + 9]
mov dword [esp + 1], esi
xchg dword [esp + 7], ebp
inc dl
lea esp, [esp + 1]
lea esp, [esp + 0xc]
jmp 0x51b291
je 0x51b2f1
pop es
bsr ebp, edx
mov ecx, dword [esp + 8]
dec ecx
cpuid
jmp 0x51b27b
in eax, 0xff
invalid
jbe 0x51b2cb
mov dword [esp], ecx
or al, 0x24
call fcn.0051b32b
pop word [esp + 1]
lea esp, [esp]
lea esp, [esp + 2]
mov dword [esp], edx
call 0x51b39c
jno 0x51b340
jno 0x51b371
jecxz 0x51b366
mov cl, 0x22
mov al, 0xd7
xlatb
and cl, bl
int1
not dword [bp + si - 0x379f]
sbb cl, byte [eax - 0x7699dbe4]
mov byte [esp], bl
invalid
invalid
jl 0x51b39b
sbb al, 0x24
mov word [esp + 1], di
push dword [esp + 1]
mov dword [esp + 1], ecx
mov dword [esp + 4], eax
add edi, edi
je 0x51b39f
add dword [ecx - 0x76fedbb4], ecx
inc esp
and al, 4
jmp 0x51b341
lea esp, [esp + 2]
push ebx
push esp
pushal
call fcn.0051b3b8
cmc
or al, 0xff
or al, 0x64
xchg edi, eax
dec cl
leave
pop word [esp]
jmp 0x51b386
and al, 0xeb
in al, 0xeb
jmp 0x51b3c5
jl 0x51b390
js 0x51b3c7
ljmp 0x9fa
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3cf550ee
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
loop 0x431060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4310d2
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x14ec0a0d
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40bf74
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40c028
jmp 0x40c01d
cmp dword [esi + 0x10], 0x1000
jne 0x40c009
test byte [esi + 0x15], 1
jne 0x40c009
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x40bfc8
cmp eax, 2
je 0x40bfc8
cmp eax, 0x10
je 0x40bfc8
cmp eax, 0x20
jne 0x40bfdd
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40bfdd
mov bl, 1
xor ebp, ebp
jmp 0x40bfee
mov eax, dword [esi]
add eax, ebp
call fcn.0040bf6c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40bfe1
test bl, bl
je 0x40c009
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40c028
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40bfa0
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x65997d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x662168
cmp edx, dword [eax]
je 0x65999f
add eax, 8
inc ecx
cmp eax, 0x6621f8
jl 0x659990
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x662168]
jne 0x659acd
mov eax, dword [0xa67a90]
cmp eax, 1
je 0x659aa7
test eax, eax
jne 0x6599d0
cmp dword [0x662094], 1
je 0x659aa7
cmp edx, 0xfc
je 0x659acd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x659a07
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0065a360
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0065a7f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x659a4a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0065a7f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65ee34
push edi
call fcn.0065c6c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0065a360
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0065a370
lea eax, [ebp - 0xa0]
push 0x65ee14
push eax
call fcn.0065a370
push dword [esi + 0x66216c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0065a370
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0065c634
add esp, 0x2c
pop edi
jmp 0x659acd
lea eax, [ebp + 8]
lea esi, [esi + 0x66216c]
push 0
push eax
push dword [esi]
call fcn.0065a7f0
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 0x4779b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x47000]
mov dword [edi + 0x63d00], 0xd35eb4b0
push edi
jmp 0x4779da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4779e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4779d0
mov eax, 1
add ebx, ebx
jne 0x4779f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x477a04
jne 0x477a23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x477a23
dec eax
add ebx, ebx
jne 0x477a10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4779e8
add ebx, ebx
jne 0x477a1f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x477a75
xor ecx, ecx
sub eax, 3
jb 0x477a3b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x477aaa
sar eax, 1
mov ebp, eax
jmp 0x477a46
add ebx, ebx
jne 0x477a46
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x477a14
inc ecx
add ebx, ebx
jne 0x477a54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x477a14
add ebx, ebx
jne 0x477a61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x477a56
jne 0x477a72
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x477a56
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x477a94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x477a86
jmp 0x4779d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x477a94
add edi, ecx
jmp 0x4779d6
pop esi
mov edi, esi
mov ecx, 0x2841
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x477ab2
cmp byte [edi], 0x22
jne 0x477ab2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x477ab7
lea edi, [esi + 0x74000]
mov eax, dword [edi]
or eax, eax
je 0x477b2f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7b620]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7b728]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x477ae4
mov ecx, edi
jns 0x477b13
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7b730]
or eax, eax
je 0x477b29
mov dword [ebx], eax
add ebx, 4
jmp 0x477b01
call dword [esi + 0x7b72c]
mov ebp, dword [esi + 0x7b734]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x477b63
sub esp, 0xffffff80
jmp 0x42c339
Function at 0x402f04
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403380
Capabilities:
Query or enumerate registry value

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

Function at 0x404114
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ee048], 0
je 0x404175
cmp word [0x4ee21c], 0xd7b2
jne 0x40413d
cmp dword [0x4ee224], 0
jbe 0x40413d
mov eax, 0x4ee218
call dword [0x4ee234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4eb070
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 0x40419c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4eb034], 0
jne 0x404191
push 0
push 0x4eb068
push 0x4eb070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4060e4
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 0x40614a
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.00404528
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f20
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406134
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406151
lea eax, [ebp - 0x10]
call fcn.004042b8
ret

Function at 0x40b4a0
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 0x40b4d9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043a8
jmp 0x40b4e2
mov eax, ebx
mov edx, esi
call fcn.0040430c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b4ec
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 0x40b50d
mov al, byte [esp]
jmp 0x40b50f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bba4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ba0c
mov eax, dword [0x4ed034]
cmp byte [eax], 0
je 0x40bc20
mov eax, dword [0x4ece34]
call fcn.00402d70
call fcn.00402bb4
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.00408b54
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 0x40bc68
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bc56
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4ecddc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ee664]
call fcn.00405550
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