joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b95
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xd], 0
je 0x402ba9
mov dword [esi + 0x10], 8
xor al, al
pop esi
ret
and dword [esi + 0x10], 0
mov eax, dword [esi + 8]
push edi
test eax, eax
je 0x402c05
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402bfc
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
jne 0x402bf3
movzx eax, word [edi + 4]
mov ecx, 0x14c
cmp ax, cx
je 0x402be4
mov ecx, 0x8664
cmp ax, cx
jne 0x402bf3
push dword [edi + 0x58]
mov ecx, esi
call main
mov dword [edi + 0x58], eax
jmp 0x402c0c
mov dword [esi + 0x10], 7
jmp 0x402c0c
mov dword [esi + 0x10], 6
jmp 0x402c0c
mov dword [esi + 0x10], 1
xor eax, eax
cmp dword [esi + 0x10], eax
pop edi
sete al
pop esi
ret

Function at 0x402d01
Capabilities:
Parse pe header

Disassembly:
and dword [ecx + 0x10], 0
mov edx, dword [ecx + 8]
push esi
test edx, edx
je 0x402d57
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x402d4e
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x402d45
movzx edx, word [eax + 4]
mov esi, 0x14c
cmp dx, si
jne 0x402d3b
and dword [ecx + 0x10], 0
mov eax, dword [eax + 0x58]
pop esi
ret
mov esi, 0x8664
cmp dx, si
je 0x402d32
mov dword [ecx + 0x10], 7
jmp 0x402d5e
mov dword [ecx + 0x10], 6
jmp 0x402d5e
mov dword [ecx + 0x10], 1
xor eax, eax
pop esi
ret

Function at 0x4060f1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x406100
pop dword [ebp - 0x3c]
mov eax, 0x406100
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x3e21630f
sub dword [ebp - 0x4c], 0xefcf1dc4
mov dword [ebp - 0x48], 0xeefa0c96
sub dword [ebp - 0x48], 0xbcc6c051
mov dword [ebp - 0x44], 0xf8b25c93
sub dword [ebp - 0x44], 0xac661865
mov dword [ebp - 0x40], 0x811a6ec2
add dword [ebp - 0x40], 0x7ee5913e
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x9d1ecfba
sub dword [ebp - 0x4c], 0x28ac6664
mov dword [ebp - 0x48], 0x17d233d9
sub dword [ebp - 0x48], 0xd665d264
mov dword [ebp - 0x44], 0x16560f9
sub dword [ebp - 0x44], 0x9df5f48d
mov dword [ebp - 0x40], 0xe0a47220
add dword [ebp - 0x40], 0x1f5b8de0
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xb7e8395
add eax, 0xf4c41cc3
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3feb1
push 0
call eax
mov ecx, 0x480f
mov esi, eax
mov edi, 0xf427ef29
add edi, 0xc2cbcd7
add edi, dword [ebp - 0x3c]
mov ebx, 0x6a1acea4
add ebx, 0x7c354b67
add dword [ebp - 0x34], eax
mov edx, dword [edi]
add dword [ebp - 8], ecx
sub edx, ebx
xor dword [ebp - 4], 0x180a9d68
mov dword [esi], edx
sub dword [ebp - 0x38], 0xce63f245
add esi, 0x77ec9948
add esi, 0x881366bc
add edi, 4
loop 0x406212
add eax, 0x279e7b62
add eax, 0xd86297ad
mov ebx, eax
add eax, 0xe92860dd
sub eax, 0xe92860d8
mov ecx, 0xaa46a67a
sub ecx, 0xaa06a67a
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x300093c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x30009436
mov eax, dword [ebp + 8]
test eax, 3
je 0x300093f8
cmp word [eax], 0
je 0x300093f1
lea eax, [eax + 2]
test eax, 3
je 0x300093f8
jmp 0x300093df
sub eax, dword [ebp + 8]
shr eax, 1
jmp 0x30009433
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x10001
xor edx, ecx
and edx, 0x80008000
je 0x300093f8
sub eax, dword [ebp + 8]
shr eax, 1
test cx, cx
lea eax, [eax - 2]
je 0x30009433
test ecx, 0xffff0000
lea eax, [eax + 1]
je 0x30009433
lea eax, [eax*2 + 2]
add eax, dword [ebp + 8]
jmp 0x300093f8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret 4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x12ce584f
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x4ced2507
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x412cc9
Capabilities:
Encode data using xor

Disassembly:
or esp, dword [0x38043b3d]
sbb byte [edx - 0x5d], 0x5f
lea eax, [edi - 0x13fcc57d]
sti
inc edi
invalid
mov word [ebp + 0x26], ds
invalid

Function at 0x417e10
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
mov esi, 0x190
push str.SoftwareMicrosoftWindowsCurrentVersionExplorer
push 0x80000001
mov edi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x417ee7
lea ecx, [esp + 0x24]
push ebp
mov ebp, 4
push ecx
push ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0x24], eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.Browse_For_Folder_Width
push edx
call ebx
test eax, eax
jne 0x417e94
mov edi, dword [esp + 0x1c]
xor esi, esi
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.Browse_For_Folder_Height
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebp
call ebx
test eax, eax
pop ebp
jne 0x417ec2
or esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x417edc
mov ecx, dword [0x4c9b4c]
push 0x4c983c
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, edi
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x47c4b8
Capabilities:
Encode data using xor

Disassembly:
add bl, al
mov dword [ebp + 0x50132d82], ebx
mov bl, 0x73
or byte [eax + ebp*4], ch
sub byte [0x73b35013], 8
sub al, 0xa8
xor byte [eax], 0x9a
xor eax, 0x5cdd2d0b
mov ebp, 0x573d5f3
add esp, dword [esi]
salc
jbe 0x47c483
loopne 0x47c4dc
fcomi st(3)
fcomp qword [esi - 0x57]
xchg byte [ebx + 0x62], bl
cmpsd dword [esi], dword es:[edi]
das
xchg ecx, eax
push eax
arpl word [0xe823f49b], cx
pop ebx
bound esp, qword [edi + 0x6350912f]
or eax, 0xe823f49b
push edi
sbb eax, 0xf6e1de66
sub al, 0x6d
push ebx
dec edi
jns 0x47c487
and eax, 0xd9e048ef
shr byte [edx - 0x5d3d39cd], 0x25
int3
or eax, 0x74427277
jnp 0x47c4ab
pop es
lodsd eax, dword [esi]
pushfd
xchg ebp, eax
ficomp dword [eax - 0x43]
pushfd
xor ebp, dword [ecx - 2]
and dword [edi - 0x381993a2], edx
std
ret

Function at 0x47d6e8
Capabilities:
Encode data using xor

Disassembly:
push eax
mov byte [0x9c2a4c24], al
test byte [0x17967580], 0x2a
sbb dword [ecx], 4
pop edx
or byte [esi - 0x585592f1], bh
sti
or edi, edi
mov cl, 0xcd
mov ah, 0x52
fstp dword [ebx + esi*8]
popal
xor ecx, edx
push ebx
pop edx
inc esi
sbb eax, 0xd3488449
pop edx
invalid
Function at 0x4aebe8
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
aam 0xf3
add edx, dword [ecx + 0x7d9d79eb]
mov byte [0xeded59c8], al
pop ecx
in eax, dx
in eax, dx
pop ecx
in eax, dx
in eax, dx
jg 0x4aec1e
pop esi
cmc
wait
adc al, 0x40
inc ebp
out 0xc2, eax
imul esp, esi, 0x54
cld
inc edi
stosb byte es:[edi], al
xchg ecx, eax
xchg ebp, eax
xchg esi, eax
jns 0x4aec1c
jg 0x4aec16
inc ah
xchg esi, eax
movsb byte es:[edi], byte [esi]
outsd dx, dword [esi]
inc eax
cmp bh, ah
dec esi
jns 0x4aec28
into
sub bh, byte [eax]
pop es
xor al, byte [esi - 0x66c2aefd]
invalid
cmp eax, 0x25cdf099
jg 0x4aec9c
jg 0x4aec9c
jle 0x4aebf9
ficom dword [ebp*2 - 0x3583701]
adc al, 0x6d
dec eax
cmpsd dword [esi], dword es:[edi]
cld
lodsd eax, dword [esi]
push esi
aad 0x65
aad 0x65
add byte [ebp + ebx*4 - 0x13562f9c], ch
and bl, byte [eax - 0x6b4e080f]
adc bl, dh
popfd
shr byte fs:[ecx - 0xe67dd14], 1
div dword [ecx - 0x6221ed6c]
jne 0x4aebdd
call 0xe1b09a2
jb 0x4aec9c
jle 0x4aec28
jo 0x4aec9a
add ebx, esi
sub dword [ecx + ecx*8 - 5], esi
and ch, ch
push cs
stosd dword es:[edi], eax
jge 0x4aecd3
sbb byte [ebx + 0x4f], 0x20
inc ebx
pop ds
pop ebp
outsd dx, dword [esi]
pop ebx
int1
iretd
stosb byte es:[edi], al
cmp esp, ecx
xor byte [edx + ebp*4 + 0x7a], cl
jne 0x4aec2d
push 0xfffffffffffffffd
bnd ret 0x5bc8
in eax, 0xeb
in eax, dx
add byte [ebp - 0x5c], dl
and ecx, ecx
cld
movsd dword es:[edi], dword [esi]
jp 0x4aece3
push es
adc byte [ebp + 0x15ffff31], dl
das
cmc
push ebx
out 0x20, al
cmp al, 0xed
popfd
xchg ebx, eax
mov bh, 0x33
lahf
rol dword [esi + 0xe], cl
or ch, byte [edi - 0x7343890b]
xor eax, 0xfd93dfbd
jg 0x4aec68
and al, 0x5c
dec edi
aad 0x78
cdq
jmp 0x9ff7a03
or dword [ecx + esi - 0x55227cc8], ebp
jp 0x4aed5b
scasb al, byte es:[edi]
popal
out 0xad, eax
cmp dh, bl
push 0x2b
pop ecx
mov al, byte [0x885c91bb]
xor ebx, dword [ebp - 0x27]
fxch st(5)
imul ebp, dword [ebp - 0x51], 0x2d
dec edi
add edx, esi
pushfd
sub ebx, dword [ecx - 0x60]
mov ebx, 0x33885c91
pop ebp
fstpnce st(1), st(0)
int 0x6b
insd dword es:[edi], dx
scasd eax, dword es:[edi]
sub eax, 0x9cd6034f
jno 0x4aeccc
xor al, 0x8c
cmp esi, 0x2824acb6
ja 0x4aed5f
dec edi
xchg edi, eax
sar dword [edi - 0x35369f8f], 1
mov eax, 0xcfa20104
xor al, byte [ebp - 0x69]
xchg esi, eax
daa
invalid
mov dl, 0x7e
push 0x19
sub ch, cl
xchg edi, eax
or eax, dword [0x77e02920]
cmc
pop edx
push edx
or byte [edx - 0x3544afe5], dh
movsb byte es:[edi], byte [esi]
sbb dword [edx + 0x71], ecx
xor eax, 0x21e1fbf9
mov byte [0x5f20efe9], al
in eax, 0x1e
jb 0x4aed13
cmp edx, dword [esi - 0x2d]
inc eax
arpl word [eax + 0x24], dx
test dword [esp - 0x57], eax
jmp 0x3996abef
Function at 0x4bbe0d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c6408
cmp edx, dword [eax]
je 0x4bbe2f
add eax, 8
inc ecx
cmp eax, 0x4c6498
jl 0x4bbe20
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c6408]
jne 0x4bbf5d
mov eax, dword [0x4cad8c]
cmp eax, 1
je 0x4bbf37
test eax, eax
jne 0x4bbe60
cmp dword [0x4c6330], 1
je 0x4bbf37
cmp edx, 0xfc
je 0x4bbf5d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bbe97
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bc7f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bcc80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bbeda
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bcc80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c1e1c
push edi
call fcn.004beb50
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bc7f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc800
lea eax, [ebp - 0xa0]
push 0x4c1dfc
push eax
call fcn.004bc800
push dword [esi + 0x4c640c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc800
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004beac4
add esp, 0x2c
pop edi
jmp 0x4bbf5d
lea eax, [ebp + 8]
lea esi, [esi + 0x4c640c]
push 0
push eax
push dword [esi]
call fcn.004bcc80
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 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x403e59
pop dword [ebp - 0x38]
mov eax, 0x8e6f1d6a
sub eax, 0x8e2edf11
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xc107f293
add dword [ebp - 0x48], 0x8d4a52b8
mov dword [ebp - 0x44], 0xd2a2662f
sub dword [ebp - 0x44], 0xa06f19ea
mov dword [ebp - 0x40], 0x31117fdd
sub dword [ebp - 0x40], 0xe4c53baf
mov dword [ebp - 0x3c], 0x5df3bb3c
add dword [ebp - 0x3c], 0xa20c44c4
lea eax, [ebp - 0x48]
push eax
mov eax, 0x705a3646
add eax, 0x8fe63a1e
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x3d380fbc
add dword [ebp - 0x48], 0x373a599a
mov dword [ebp - 0x44], 0x44c38059
sub dword [ebp - 0x44], 0x3571ee4
mov dword [ebp - 0x40], 0x34bee69f
add dword [ebp - 0x40], 0x2eb085cd
mov dword [ebp - 0x3c], 0xe0a412f5
sub dword [ebp - 0x3c], 0xe0a412f5
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x8dc7499f
add eax, 0x72792709
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x36899
push 0
call eax
mov ecx, 0xd40b2ab9
add ecx, 0x2bf51c70
mov edx, eax
mov ebx, 0x63d4e5e1
add ebx, 0x9c6c1a1f
add ebx, dword [ebp - 0x38]
mov edi, 0x6c0648ae
add edi, 0xfc5baa18
add dword [ebp - 0x18], 0x4da89d50
mov esi, dword [ebx]
add dword [ebp - 0x1c], eax
add esi, edi
xor dword [ebp - 0x20], edi
mov dword [edx], esi
add dword [ebp - 0x10], 0x27bf8104
add edx, 4
add ebx, 4
loop 0x403f7b
add eax, 0x736d705f
sub eax, 0x736c60e8
xor ebx, ebx
add ebx, eax
add eax, 0x4bbbf55
sub eax, 0x4bbbf50
mov ecx, 0xf88757c3
add ecx, 0x7b8a83d
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x402f20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, edx
mov edx, dword [ebp + 8]
push edi
mov edi, ecx
cmp byte [edx + 0xc], 0
mov ebx, dword [edx + 4]
je 0x402f59
test esi, esi
je 0x402fc4
nop
movzx ecx, byte [edi]
lea edi, [edi + 1]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [edx + ecx*4 + 0x10]
sub esi, 1
jne 0x402f40
jmp 0x402fc4
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x40e610]
cmp eax, dword [ecx + 4]
jle 0x402f9e
push 0x40e610
call fcn.00408dc4
add esp, 4
cmp dword [0x40e610], 0xffffffff
jne 0x402f9b
push 0x40e610
mov dword [0x40e614], 0x18
call fcn.00408d7a
add esp, 4
mov edx, dword [ebp + 8]
test esi, esi
je 0x402fc4
mov ecx, dword [0x40e614]
lea edi, [edi + 1]
mov eax, ebx
shl ebx, 8
shr eax, cl
movzx ecx, al
movzx eax, byte [edi - 1]
xor ecx, eax
xor ebx, dword [edx + ecx*4 + 0x10]
sub esi, 1
jne 0x402fa2
mov al, byte [edx + 0xc]
cmp al, byte [edx + 0xd]
je 0x402fe3
mov ecx, ebx
xor ebx, ebx
lea esi, [ebx + 0x20]
mov eax, ecx
add ebx, ebx
and eax, 1
shr ecx, 1
or ebx, eax
sub esi, 1
jne 0x402fd3
mov eax, dword [edx + 8]
pop edi
pop esi
xor eax, ebx
pop ebx
pop ebp
ret
Function at 0x403de0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a0dc
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x40e008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
push 0x58
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
call fcn.00408c85
mov ebx, eax
add esp, 4
mov dword [ebp - 0x24], ebx
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 4], 0
mov ecx, dword [ecx]
mov dword [ebx], ecx
mov ecx, dword [ebp + 0x28]
mov eax, dword [ecx]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov eax, dword [edi + 4]
sub eax, dword [edi]
je 0x403e98
push eax
lea ecx, [ebx + 0x10]
call fcn.004032d0
mov eax, dword [ebp - 0x14]
mov edi, dword [ebx + 0x10]
mov esi, dword [eax + 4]
mov eax, dword [eax]
sub esi, eax
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
lea eax, [edi + esi]
add esp, 0xc
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [ebx + 0x1c], eax
push dword [ebp - 0x18]
lea ecx, [ebx + 0x20]
mov byte [ebp - 4], 1
call fcn.00407b50
push dword [ebp - 0x1c]
lea ecx, [ebx + 0x38]
mov byte [ebp - 4], 2
call fcn.00407b50
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
mov eax, dword [eax]
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x54], eax
mov edi, dword [ebp - 0x20]
mov dword [ebp - 4], 3
lea esi, [edi + 4]
push esi
push 0
push ebx
push 0x404310
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x403f23
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.004041a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408c46
mov esp, ebp
pop ebp
ret
push 6
mov dword [esi], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x40844e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0040842a
pop esi
leave
ret 8
Function at 0x4095be
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4095fd
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4095fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4095fd
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4095fd
cmp dword [ecx + 0x74], 0xe
jbe 0x4095fd
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4033e0
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x40985c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4098ae
test eax, edx
je 0x4098b1
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409871
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 0x409897
add ecx, 4
js 0x409887
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409894
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 0x4098bd
test edx, edx
jne 0x409864
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40e314
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e3ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004055c8
lea eax, [ebp - 4]
call fcn.00405a18
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004059c0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e3d4
mov eax, ebx
call fcn.00402f00
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e3cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004059c0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e3b7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e3fc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e3b7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e3d4
mov eax, dword [ebp - 0x10]
call fcn.00402f1c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e3f1
lea eax, [ebp - 4]
call fcn.00405530
ret
Function at 0x41fdcc
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xffffffd8
mov esi, eax
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
call fcn.00407a5c
mov edx, dword [0x491860]
cmp eax, dword [edx]
jne 0x41fe41
xor ebx, ebx
mov eax, dword [0x4969b8]
mov dword [esp + 8], eax
cmp ebx, 2
jne 0x41fe0b
push 0
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call sub.KERNEL32.DLL_GetTickCount
push pe_nt_image_headers32
push 0x3e8
push 0
lea eax, [esp + 0x10]
push eax
push 2
call sub.KERNEL32.DLL_GetSystemDirectoryA
mov ebx, eax
cmp ebx, 0xffffffff
setne dl
mov eax, esi
call fcn.0041faac
cmp ebx, 1
jne 0x41fe3b
xor eax, eax
call fcn.0041f660
test ebx, ebx
jne 0x41fdf4
jmp 0x41fe4d
push 0xffffffffffffffff
mov eax, dword [esp + 8]
push eax
call fcn.00407cdc
push esp
mov eax, dword [esp + 8]
push eax
call fcn.00407a8c
cmp eax, 1
sbb edx, edx
inc edx
mov eax, esi
call fcn.0041faac
mov eax, dword [esp]
add esp, 0x28
pop esi
pop ebx
ret

Function at 0x420fec
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov eax, dword [0x4947f8]
mov dword [0x48eb60], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x48eb74]
push eax
mov eax, dword [0x4947f8]
push eax
call fcn.004080c4
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x421026
mov edx, fcn.00407fc4
cmp edx, dword [ebp - 0x24]
je 0x421045
test al, al
je 0x42103b
mov eax, dword [0x4947f8]
push eax
mov eax, dword [0x48eb74]
push eax
call sub.KERNEL32.DLL_VirtualAllocEx
push 0x48eb50
call sub.KERNEL32.DLL_GlobalAddAtomA
push 0x80000000
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x4947f8]
push eax
push 0
mov ecx, 0x42109c
mov edx, dword [0x48eb74]
mov eax, 0x80
call fcn.00408540
mov ebx, eax
cmp word [ebp + 0xa], 0
je 0x421090
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00420f30
push eax
push 0xfffffffffffffffc
push ebx
call sub.KERNEL32.DLL_SetEndOfFile
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x423854
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42385a
ret

Function at 0x42e928
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
call fcn.0040765c
cmp dword [eax + 0x10], 0
je 0x42e94e
call fcn.0040765c
mov eax, dword [eax + 0x10]
push eax
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
jne 0x42e9bf
mov eax, dword [0x491850]
cmp dword [eax], 2
jne 0x42e969
mov eax, dword [0x491438]
cmp dword [eax], 5
jl 0x42e969
mov esi, 0xfffffffd
jmp 0x42e96b
xor esi, esi
xor ebx, ebx
push 0
push 0x42e9d0
push ebx
push esi
call fcn.004080a4
mov ebx, eax
call fcn.0040765c
mov dword [eax + 0x10], ebx
call fcn.0040765c
mov ebx, dword [eax + 0x10]
call fcn.0040765c
cmp dword [eax + 0x10], 0
je 0x42e9bf
push 0
call fcn.0040765c
mov eax, dword [eax + 0x10]
push eax
call sub.KERNEL32.DLL_InterlockedExchange
mov edi, eax
call fcn.00407a5c
cmp edi, eax
jne 0x42e96d
call fcn.0040765c
mov eax, dword [eax + 0x10]
pop edi
pop esi
pop ebx
ret