joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46bc4a
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x46bc7a
push edi
call ebx
push eax
call fcn.0046a54a
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x46bca4
test byte [ebp - 4], 1
je 0x46bca4
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x46bca4
push edi
call ebx
push eax
call fcn.0046a54a
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x46bd4a
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0046bb97
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x46bcd6
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.0046bb97
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x46bcec
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0046bb97
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46bd16
push 0
call ebx
push eax
call fcn.0046a54a
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x46bd34
push eax
call ebx
push eax
call fcn.0046a54a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46bd48
push eax
call ebx
push eax
call fcn.0046a54a
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x46bd71
test byte [ebp - 4], 1
jne 0x46bd71
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x46bd71
push edi
call ebx
push eax
call fcn.0046a54a
pop edi
pop ebx
leave
ret 8

Function at 0x46c23f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x46c261
cmp dword [edi + 0x3c], 0
jne 0x46c261
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004761d8
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0046c28e
pop edi
pop esi
pop ebx
ret 8
Function at 0x46d873
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46d8ab
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046b6a4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046b67c
jmp 0x46d8b7
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46d8bb
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x4aa378
mov ecx, edi
call fcn.0046b386
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x46d90e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x46d921
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0046b6a4
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0046b67c
jmp 0x46d921
mov ecx, esi
call fcn.0046bd8e
test eax, eax
je 0x46d921
push edi
mov ecx, eax
call fcn.0046d873
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x46f10c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46f14e
call fcn.004761d8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46f14e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46f145
xor eax, eax
jmp 0x46f156
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046f15c
pop edi
pop esi
pop ebx
ret 4

Function at 0x477395
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4773c3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4773e1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004772fb
jmp 0x4773e1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4773e1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004772fb
test edi, edi
mov eax, edi
jne 0x4773cb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x47104c
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 4]
jmp 0x45916b

Function at 0x486033
Capabilities:
Encrypt data using aes

Disassembly:
lea esp, [esp + 4]
and edi, 0xff0000
mov bp, word [esp]
jmp 0x486055
inc bp
mov edi, dword [edi*4 + reloc.USER32.dll_MessageBoxA]
jmp 0x486013

Function at 0x486a3b
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x10
sub esp, 0xe
lea esp, [esp + 3]
jmp 0x486a7d
pop word [esp + 7]
lea esp, [esp + 2]
mov edi, dword [edi*4 + reloc.USER32.dll_MessageBoxA]
sub esp, 2
add esp, 1
jmp 0x486a00
pushal
jmp 0x486a19
setb bl
bswap ebx
lea ebx, [ecx*4]
movzx ebx, byte [esi + 2]
jmp 0x486a8a
lea esp, [esp + 0x58]
xor edi, dword [ebx*4 + reloc.USER32.dll_MessageBoxA]
bsr bx, cx
jmp 0x486a3e
and edi, ecx
mov edi, dword [edi*4 + reloc.USER32.dll_MessageBoxA]
and ebx, ecx
jmp 0x486a66
mov ebx, dword [ebx*4 + reloc.USER32.dll_MessageBoxA]
call fcn.00486a50
lodsd eax, dword [esi]
sub dword [ecx - reloc.USER32.dll_MessageBoxA], edi
imul eax, dword [edx - reloc.USER32.dll_MessageBoxA], 0

Function at 0x486b4c
Capabilities:
Encrypt data using aes

Disassembly:
lea esp, [esp + 0xc]
xor edi, dword [ebx*4 + reloc.USER32.dll_MessageBoxA]
bswap ebx
jmp 0x486b31

Function at 0x486c11
Capabilities:
Encrypt data using aes

Disassembly:
jmp 0x486cc5
stc
sub esp, 0xc
push word [esp + 5]
add esp, 5
lea esp, [esp + 1]
jmp 0x486c9b
lea esp, [esp + 0x28]
xor edi, dword [ebx*4 + reloc.USER32.dll_MessageBoxA]
movzx ebx, byte [esi + 9]
call fcn.00486c82
and edx, ecx
sub esp, 0x1e
sub esp, 6
jmp 0x486d67
pop word [esp]
add esp, 1
pushal
lea esp, [esp + 1]
and ebx, ecx
jmp 0x486c16
lea ebp, [ebp + 8]
mov edx, dword [ebp]
pop ebp
push esp
lea esp, [esp + 3]
jmp 0x486d04
stc
cmc
cmc
pushal
lea esp, [esp + 0x20]
popal
jmp 0x486cd8
add esp, 0
lea esp, [esp + 1]
jmp 0x486d48
mov dx, 0x21c9
push ebp
pushal
mov dword [esp + 8], esi
jmp 0x486cf9
mov dword [esi + 4], edi
lea edi, [esi*4]
bsf di, ax
call fcn.00486d2c
and al, 0xa6
xor al, 0x53
scasb al, byte es:[edi]
insd dword es:[edi], dx
push edi
mov esi, 0xe24b2889
lea esp, [esp + 0x2c]
xor edi, dword [edx*4 + reloc.USER32.dll_MessageBoxA]
mov dx, word [esp]
stc
mov dh, byte [esp]
jmp 0x486d20

Function at 0x486c82
Capabilities:
Encrypt data using aes

Disassembly:
and edx, ecx
mov edx, dword [edx*4 + reloc.USER32.dll_MessageBoxA]
sub esp, 0x10
lea esp, [esp + 0xb]
jmp 0x486c84
jmp 0x486c69
push word [esp + 1]
mov dword [esp], ebp
lea esp, [esp + 3]
jmp 0x486caf

Function at 0x486d2c
Capabilities:
Encrypt data using aes

Disassembly:
mov ebx, dword [ebx*4 + reloc.USER32.dll_MessageBoxA]
jmp 0x486f19
mov edi, edx
cmc
shr edi, 0x18
call fcn.00486e56
mov edi, 0x58d8cefa
mov ebx, dword [ebx*4 + reloc.USER32.dll_MessageBoxA]
pushal
lea edi, reloc.USER32.dll_MessageBoxA
mov word [esp + 0x1a], di
jmp 0x4877ed
mov edi, edx
call fcn.00487436
Function at 0x486e56
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov edi, dword [edi*4 + reloc.USER32.dll_MessageBoxA]
jmp 0x486e31
sub esp, 0x1c
push word [esp + 0x2b]
lea esp, [esp + 2]
jmp 0x486d7c
mov word [esp], sp
mov edi, dword [edi*4 + reloc.USER32.dll_MessageBoxA]
and edi, ecx
pushal
jmp 0x486d98
btc ebx, esp
btr ebx, edx
jmp 0x486ee5
and ebx, ecx
lea esp, [esp + 0x28]
xor edi, dword [ebx*4 + reloc.USER32.dll_MessageBoxA]
mov bl, 0xe2
jmp 0x486dc1
mov ebx, dword [ebx*4 + reloc.USER32.dll_MessageBoxA]
push esp
push dword [esp]
mov byte [esp + 2], ch
jmp 0x486dd8
not ebx
movzx ebx, byte [esi + 0xa]
cmc
pushal
mov dword [esp + 0x13], esi
jmp 0x486df6
and ebx, ecx
lea esp, [esp + 0x44]
xor edi, dword [ebx*4 + reloc.USER32.dll_MessageBoxA]
bsr bx, cx
jmp 0x486e12
stc
jmp 0x486db1
movzx ebx, byte [esi + 0xd]
pushal
mov byte [esp + 9], ah
and edx, ecx
call 0x486e76
pushal
lea edi, [eax + ebx]
btc edi, edi
mov dword [esp + 8], esi
push edx
jmp 0x486f43
lea ebp, [ebp + 8]
mov dword [ebp], edi
pop ebp
stc
mov di, word [esp]
jmp 0x486f24
pop word [esp]
lea esp, [esp + 2]
popal
jmp 0x486f03

Function at 0x486fea
Capabilities:
Encrypt data using aes

Disassembly:
and edx, ecx
mov edx, dword [edx*4 + reloc.USER32.dll_MessageBoxA]
call 0x486fea
cmp cl, byte [ebp - 0x72fcdb9c]
and al, 1
jmp 0x487050
mov ebx, dword [ebx*4 + reloc.USER32.dll_MessageBoxA]
sub esp, 2
pushal
lea esp, [esp + 2]
jmp 0x486fdb
lea esp, [esp + 3]
push edx
lea esp, [esp + 1]
jmp 0x487002
lea esp, [esp + 0x1c]
xor edi, dword [edx*4 + reloc.USER32.dll_MessageBoxA]
push edx
lea esp, [esp + 4]
jmp 0x4871c1
and ebx, ecx
lea esp, [esp + 0x24]
xor edi, dword [ebx*4 + reloc.USER32.dll_MessageBoxA]
call fcn.00487027
and edx, ecx
sub esp, 0x1a
mov dword [esp + 0x13], ecx
lea esp, [esp + 2]
jmp 0x487029
dec dword [ebp - 4]
pushal
mov dword [esi + 0xc], edi
lea esp, [esp + 0x20]
jmp 0x487138

Function at 0x48701c
Capabilities:
Encrypt data using aes

Disassembly:
and edx, ecx
mov edx, dword [edx*4 + reloc.USER32.dll_MessageBoxA]
call 0x486fea
cmp cl, byte [ebp - 0x72fcdb9c]
and al, 1
jmp 0x487050
mov ebx, dword [ebx*4 + reloc.USER32.dll_MessageBoxA]
sub esp, 2
pushal
lea esp, [esp + 2]
jmp 0x486fdb
lea esp, [esp + 3]
push edx
lea esp, [esp + 1]
jmp 0x487002
lea esp, [esp + 0x1c]
xor edi, dword [edx*4 + reloc.USER32.dll_MessageBoxA]
push edx
lea esp, [esp + 4]
jmp 0x4871c1
and ebx, ecx
lea esp, [esp + 0x24]
xor edi, dword [ebx*4 + reloc.USER32.dll_MessageBoxA]
call fcn.00487027
and edx, ecx
sub esp, 0x1a
mov dword [esp + 0x13], ecx
lea esp, [esp + 2]
jmp 0x487029
dec dword [ebp - 4]
pushal
mov dword [esi + 0xc], edi
lea esp, [esp + 0x20]
jmp 0x487138

Function at 0x4877a0
Capabilities:
Encrypt data using aes

Disassembly:
push esp
call 0x4877a7
insd dword es:[edi], dx
push dword [esp + 4]
jmp 0x4877d6

Function at 0x4877a7
Capabilities:
Encrypt data using aes

Disassembly:
push esp
call 0x4877a7
insd dword es:[edi], dx
push dword [esp + 4]
jmp 0x4877d6
Function at 0x487bef
Capabilities:
Encrypt data using aes

Disassembly:
lea esp, [esp + 4]
jbe 0x4870b5
ja 0x48710d

Function at 0x48d801
Capabilities:
Execute anti-debugging instructions

Disassembly:
call 0x48d2d1
lea esp, [esp + 2]
lea esp, [esp + 4]
mov dword [esp + 0x38], 0
stc
jmp 0x48dd0f
pushal
pushal
mov byte [esp + 0x32], ah
jmp 0x48d2a4
jmp 0x48ddee
push esp
lea esp, [esp + 0x44]
cmp dword [esp + 0x10], ebx
push edx
lea esp, [esp + 1]
jmp 0x48ddbc
jmp 0x48dd26
mov dx, ax
mov ax, 0x85e7
stc
jmp 0x48dd51
pop word [esp]
push edx
push esp
jmp 0x48d884
movzx eax, al
jmp 0x48d84a
mov al, byte [edx]
mov dl, dh
mov byte [esp + 0x38], al
jmp 0x48d828
mov dword [esp + 0x28], eax
jmp fcn.0048d348
mov edx, dword [esp + 0x3c]
not si
lea esi, [esp + eax]
jmp 0x48d840
lea esp, [esp + 2]
lea esp, [esp + 8]
js 0x48d20c
jns 0x48d86b
sbb eax, 0x91620797
pop edx
mov ah, byte [0x3488c754]
mov byte [esp], dh
invalid
or bh, bh
invalid
push edx
call fcn.0048e02e
fimul word [edx + eax*8 - 0x5b]
push esp
jecxz 0x48dba6
invalid
xchg bh, bl
xchg bl, bh
mov bl, bh
jmp 0x48db8a
lea ebx, [esi - 1]
push edx
pop word [esp]
mov byte [esp], ch
lea esp, [esp + 1]
jmp 0x48dbba
dec eax
lea esp, [esp + 0x1c]
test ecx, ecx
pushal
lea esp, [esp + 0x20]
jle 0x48d29f
jg 0x48db6d
lea esp, [esp + 1]
jmp 0x48dc45
mov dword [esp + 0x14], ebx
jmp 0x48d289
test ebx, ebx
push edx
push word [esp + 1]
push esp
lea esp, [esp + 2]
jmp 0x48dd6d
mov esi, dword [esp + 0x1c]
call fcn.0048d2c1
les eax, [edx - 0x30]
mov bh, 0x42
cld
xchg byte [edi], al
xchg edi, eax
add esp, ecx
cmp dl, byte [0x60c08584]
lea esp, [esp + 0x20]
jne 0x48db51
je 0x48d2bc
mov cl, ch
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp]
jmp 0x48dd7d
lea esp, [esp + 8]
jl 0x48db51
jge 0x48d4ec
sub edx, eax
and dh, bh
jmp 0x48dd9e
push ebp
mov ebp, ecx
lea ebp, [ebp*4]
jmp 0x48ddcb
lea esp, [esp + 3]
jle fcn.0048d348
jmp 0x48d2bc
lea ebp, [eax + ebp]
mov edx, dword [ebp]
pop ebp
mov ax, word [esp]
bswap eax
jmp 0x48ddf8
inc esi
mov dword [esp + 0x10], esi
jmp 0x48d289
mov ax, word [esp]
push edx
jmp 0x48de2e
mov byte [esp + 0xb], bh
jmp 0x48e08a
lea esp, [esp + 4]
mov eax, dword [esp + 0x3c]
pushal
pop dword [esp + 0x10]
mov word [esp], bx
jmp 0x48de16
add edx, ebp
call fcn.0048dec3
lea esp, [esp + 1]
mov edi, dword [esp + 4]
not bx
lea esi, [ecx + 0xab]
jmp 0x48e0b8
mov esi, dword [esp + 8]
mov ebp, dword [esp]
bsf bp, ax
rol bx, cl
mov bl, 0x28
jmp 0x48e16b
add esp, 0x24
pushal
mov byte [esp + 0x16], dh
lea esp, [esp + 0x20]
ret 8
mov ebp, dword [esp + 0x10]
pushal
pop dword [esp + 6]
mov dword [esp + 3], eax
lea esp, [esp + 0x30]
jmp 0x48e112
lea esp, [esp + 0xc]
pop ebx
sub esp, 0x12
lea esp, [esp + 2]
jmp 0x48e131

Function at 0x48dc6a
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushal
lea esp, [esp + 0xf]
mov word [esp + 0xb], bx
pushal
lea esp, [esp + 1]
jmp 0x48dce6
add eax, ebp
cmc
cmc
push edx
lea esp, [esp + 0x24]
jmp 0x48dc85
jmp 0x48dc4e
cmp eax, ecx
lea esp, [esp + 0x10]
jb 0x48d316
mov edx, 0x377bbaac
jmp 0x48dcb3
mov dword [esp + 0x20], eax
sub esp, 0x10
mov dword [esp + 1], ebp
jmp 0x48dc6c
lea esp, [esp + 0x30]
test eax, eax
jne 0x48d35e
jmp 0x48d289
Function at 0x534e87
Capabilities:
Parse pe header

Disassembly:
jmp 0x534f00
mov dword [esp], ecx
call fcn.00534e89

Function at 0x534e89
Capabilities:
Parse pe header

Disassembly:
mov byte [esp + 1], ch
mov dword [esp + 0x30], esp
push edx
mov dword [esp], ebp
mov byte [esp], ch
jmp 0x534ed9

Function at 0x534ee6
Capabilities:
Parse pe header

Disassembly:
call fcn.0053400c
mov word [esp], bx
mov byte [esp + 2], dh
mov byte [esp + 2], bh
call fcn.00534e3d
mov byte [esp], ch
mov word [esp], dx
call 0x534ee6
fisttp word [ecx + 0x5434246c]
mov byte [esp + 1], ah
pop word [esp]
jmp 0x534f08
push esp
lea esp, [esp + 1]
lea esp, [esp]
mov dword [esp], eax
pushal
mov word [esp + 0x1e], sp
jmp 0x535008
lea esp, [esp + 0x1f]
lea esp, [esp]
call fcn.00534f63
push eax
jmp 0x534007
pop word [esp + 0x20]
push word [esp + 0x20]
push word [esp + 0x1d]
lea esp, [esp + 3]
mov dword [esp + 0x54], esi
pushal
jmp 0x534fa6

Function at 0x534f41
Capabilities:
Parse pe header

Disassembly:
call fcn.00534f89
push dword [esp + 3]
lea esp, [esp + 1]
mov dword [esp + 0x64], edi
jmp 0x534f6d
lea esp, [esp + 0x64]
mov eax, dword fs:[0x30]
jmp 0x534f8e

Function at 0x534f46
Capabilities:
Parse pe header

Disassembly:
call fcn.00534f89
push dword [esp + 3]
lea esp, [esp + 1]
mov dword [esp + 0x64], edi
jmp 0x534f6d
lea esp, [esp + 0x64]
mov eax, dword fs:[0x30]
jmp 0x534f8e

Function at 0x534f63
Capabilities:
Parse pe header

Disassembly:
mov word [esp + 1], sp
call fcn.00534f41

Function at 0x534f89
Capabilities:
Parse pe header

Disassembly:
call 0x534f46
mov eax, dword [eax + 0xc]
jmp 0x534fcc
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
jmp 0x534fb2
Function at 0x401110
Capabilities:
Write file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
mov eax, 0x203c
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
call fcn.00401288
sub esp, eax
mov eax, dword [ecx]
lea esi, [ebp - 0x2018]
add ecx, 4
mov dword [ebp - 0x201c], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x2000
mov dword [esp + 8], esi
mov dword [esp], 6
mov dword [esp + 4], 0
call dword [sym.imp.ucrtbase.dll___stdio_common_vsprintf]
test eax, eax
jle 0x4011ac
mov ebx, eax
mov dword [esp], 0xfffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push edx
lea edx, [ebp - 0x201c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov eax, dword [ebp - 0x201c]
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret

Function at 0x4011e0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
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
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0x4049e4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00407620
test esi, esi
jne 0x404a1a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004077a8
jmp 0x404a38
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004048c8
mov edi, eax
test esi, esi
je 0x404a38
cmp dword [ebx], 0
je 0x404a38
dec esi
jmp 0x404a21
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x406350
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0040673c
mov byte [esp], al
cmp byte [esp], 0
jne 0x4064dc
test edi, edi
je 0x4064dc
mov byte [esp + 1], 0
test ebp, ebp
jle 0x406413
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4063ee
cmp edi, 0xffffffff
je 0x4063af
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4063af
mov byte [esp], 0
jmp 0x4064dc
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4063ee
test ebx, ebx
jne 0x4063e4
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402824
test eax, eax
jne 0x4063e4
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4064dc
call 0x406860
dec ebp
test ebp, ebp
jg 0x406394
cmp edi, 0xffffffff
je 0x406413
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406411
mov byte [esp], 0
jmp 0x4064dc
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40635e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402824
cmp ebx, eax
jne 0x406413
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040654c
mov edx, eax
mov ebx, dword [0x6028f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40647a
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x406478
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40647a
xor edi, edi
cmp byte [esp], 0
je 0x4064a3
mov ebx, dword [esi]
test bl, 1
jne 0x4064bc
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402824
cmp ebx, eax
jne 0x406480
mov byte [esp + 1], 1
jmp 0x4064bc
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402824
cmp ebx, eax
jne 0x4064a3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40642d
cmp byte [esp], 0
je 0x4064dc
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40727c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x602058], 0
je 0x4072e3
cmp word [0x602344], 0xd7b2
jne 0x4072a5
cmp dword [0x60234c], 0
jbe 0x4072a5
mov eax, 0x602340
call dword [0x60235c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x407310
call fcn.00408068
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x5f5032], 0
jne 0x4072ff
push 0
push 0x5f59ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4074dc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x5f5034], 0
je 0x407507
mov edx, edi
mov eax, esi
call dword [0x5f5034]
mov ebx, eax
jmp 0x407518
mov eax, 8
call fcn.00404604
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x602059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4074a4
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreateThread
mov esi, eax
test esi, esi
jne 0x40754d
mov edx, 8
mov eax, ebx
call fcn.00404620
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x409fc0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40a125
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407620
cmp si, word [0x5f5a08]
jb 0x40a058
cmp si, word [0x5f5c08]
ja 0x40a058
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40a058
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5f5a08]
jae 0x40a032
mov edi, ebx
dec edi
jmp 0x40a053
cmp si, word [ebx*8 + 0x5f5a08]
jbe 0x40a042
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40a053
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5f5a0c]
call fcn.00409ed0
jmp 0x40a058
cmp edi, dword [ebp - 8]
jae 0x40a01c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40a107
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x40a107
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040846c
push dword [ebp - 0x160]
push 0x40a140
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040846c
push dword [ebp - 0x164]
push 0x40a150
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040846c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004086a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a12c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00407680
ret