joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4090b0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x41e444]
test eax, eax
jns 0x4090c8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x41e444], eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x409123
push esi
push 0x1c
call fcn.00412dfa
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
push esi
push dword [0x41e444]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0x41e420
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, edx
mov eax, ecx
mov dword [ebp - 4], eax
test esi, esi
jle 0x40b4bb
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push edi
mov edi, 0x10
push eax
cmp esi, edi
push 1
cmovl edi, esi
push edi
push 0x41a6b0
call ebx
mov eax, dword [ebp - 4]
sub esi, edi
add esp, 0x10
test esi, esi
jg 0x40b498
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, edx
mov eax, ecx
mov dword [ebp - 4], eax
test esi, esi
jle 0x40c0bb
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push edi
mov edi, 0x10
push eax
cmp esi, edi
push 2
cmovl edi, esi
push edi
push 0x41a6e8
call ebx
mov eax, dword [ebp - 4]
sub esi, edi
add esp, 0x10
test esi, esi
jg 0x40c098
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c7a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x41e008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x224]
mov edi, ecx
push eax
xorps xmm0, xmm0
mov ebx, edx
push edi
movlpd qword [ebp - 0x224], xmm0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetpos]
push 0x200
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x14
lea eax, [ebp - 0x20c]
push edi
push 0x200
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov dword [ebp - 0x210], 0xffdd
lea ecx, [ebp - 0x210]
push ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
mov esi, eax
lea eax, [ebp - 0x224]
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fsetpos]
add esp, 8
call fcn.004090b0
mov edx, ebx
push dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x218], ecx
lea ecx, [ebp - 0x21c]
mov dword [ebp - method.NodeFileReader.virtual_0], vtable.NodeFileReader.0
mov dword [ebp - 0x214], edi
test esi, esi
jle 0x40c878
call fcn.0040cee0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00412814
mov esp, ebp
pop ebp
ret 4
call fcn.0040c890
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412814
mov esp, ebp
pop ebp
ret 4

Function at 0x40eb20
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
xor edi, edi
nop dword [eax]
mov ecx, dword [ebx]
add esi, 3
and esi, 0xfffffffc
mov edx, esi
call fcn.004119e0
test eax, eax
jne 0x40eb5f
mov ecx, esi
call fcn.0040eaf0
cmp eax, 1
jne 0x40eb57
mov eax, edi
inc edi
cmp eax, 0xa
jl 0x40eb30
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
pop edi
pop esi
pop ebx
ret

Function at 0x40eb70
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, ecx
xor esi, esi
nop dword [eax]
push 4
push 0x3000
push 0x10000
push 0
call edi
mov ecx, eax
test ecx, ecx
jne 0x40ebb5
mov ecx, 0x10000
call fcn.0040eaf0
cmp eax, 1
jne 0x40ebad
mov eax, esi
inc esi
cmp eax, 0xa
jl 0x40eb80
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, dword [ebx + 0x20]
pop edi
mov dword [ecx], eax
lea eax, [ecx + 4]
pop esi
mov dword [ebx + 0x20], ecx
pop ebx
ret
Function at 0x40f240
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x421548], 0
jne 0x40f2dc
mov ecx, 0x42155c
mov dword [0x421550], 0x40000
mov dword [0x421554], 0x200000
mov dword [0x421558], 7
call fcn.0040f1a0
cmp dword [0x421544], 0
jne 0x40f2a2
mov eax, dword [0x421558]
mov dword [0x421544], 0x58585858
mov dword [0x421758], 0
mov dword [0x421754], eax
mov ecx, 0x42155c
call fcn.0040f1e0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
mov dword [0x421548], edx
mov dword [0x42154c], ecx
lea eax, [ecx - 1]
test ecx, eax
jne 0x40f2d6
lea eax, [edx - 1]
test edx, eax
je 0x40f2dc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.004047b5
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.004047b5
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.004047b5
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.004047b5
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.004047b5
mov dword [0x41203c], eax
call fcn.004047b5
test eax, eax
jge 0x402550
push 8
call fcn.004047b5
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.004047b5
pop ecx
push 1
call fcn.004047b5
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.004047b5
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.004047b5
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.004047b5
jmp 0x402495

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

Disassembly:
pushal
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x464720
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x52000]
push edi
jmp 0x46473a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x464741
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x464730
mov eax, 1
add ebx, ebx
jne 0x464753
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x464764
jne 0x464783
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x464783
dec eax
add ebx, ebx
jne 0x464770
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x464748
add ebx, ebx
jne 0x46477f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4647d5
xor ecx, ecx
sub eax, 3
jb 0x46479b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46480a
sar eax, 1
mov ebp, eax
jmp 0x4647a6
add ebx, ebx
jne 0x4647a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x464774
inc ecx
add ebx, ebx
jne 0x4647b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x464774
add ebx, ebx
jne 0x4647c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4647b6
jne 0x4647d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4647b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4647f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4647e6
jmp 0x464736
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4647f4
add edi, ecx
jmp 0x464736
pop esi
mov edi, esi
mov ecx, 0x1dfd
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x464812
cmp byte [edi], 6
jne 0x464812
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 0x464817
lea edi, [esi + 0x61000]
mov eax, dword [edi]
or eax, eax
je 0x46488f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x64000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x64118]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x464844
mov ecx, edi
jns 0x464873
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 + 0x6411c]
or eax, eax
je 0x464889
mov dword [ebx], eax
add ebx, 4
jmp 0x464861
call dword [esi + 0x6412c]
mov ebp, dword [esi + 0x64120]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x4648c3
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43ea34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x43ea30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43ea30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x43381f
Capabilities:
Terminate process

Disassembly:
jmp 0x475ab4
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x475ac5
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00434efe
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4338c4
Capabilities:
Query environment variable

Disassembly:
jmp 0x4811ac
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4811c0
xor edi, edi
jmp 0x4811f7
push ebx
push esi
call fcn.004810b6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00433e7d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4811e7
push ebx
push esi
push edi
call fcn.00434d6e
add esp, 0xc
push 0
call fcn.004354ee
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x434e04
Capabilities:
Parse pe header

Disassembly:
jmp 0x43b165
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43b1a5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43b1a5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43b1a5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43b1a5
cmp dword [ecx + 0x74], 0xe
jbe 0x43b1a5
cmp dword [ecx + 0xe8], 0
je 0x43b1a5
mov al, 1
ret
xor al, al
ret
Function at 0x401770
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401789
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4017c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4017c0
lea ebx, [ebx]
cmp esi, eax
jae 0x4017c4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4017b0
cmp esi, eax
jb 0x4017ca
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x404410
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
test ebx, ebx
jne 0x40441d
xor eax, eax
add esp, 0x10
ret
mov cl, byte [esi + 0xe]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalSize]
push edi
mov edi, 1
push esi
shl edi, cl
mov word [esp + 0xc], 0x4d42
call ebp
add eax, 0xe
mov dword [esp + 0xa], eax
xor eax, eax
push ebx
mov word [esp + 0x12], ax
mov word [esp + 0x14], ax
mov eax, dword [esi]
push 0xe
lea edx, [esp + 0x10]
lea ecx, [eax + edi*4 + 0xe]
push 1
push edx
mov dword [esp + 0x22], ecx
call fcn.004c32a1
add esp, 0x10
push ebx
push esi
call ebp
push eax
push 1
push esi
call fcn.004c32a1
add esp, 0x10
pop edi
mov eax, 1
pop ebp
add esp, 0x10
ret
Function at 0x405a50
Capabilities:
Get file version info

Disassembly:
sub esp, 0x98
mov eax, dword [0x5265f0]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
push esi
call fcn.00405eb0
mov ebx, eax
lea eax, [esp + 0x1c]
push eax
push ebx
mov dword [esp + 0x20], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x405bb3
push edi
push esi
call fcn.004b3e82
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x405ba9
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x4f8080
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x405ba9
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x4f8084
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x405b89
mov eax, dword [esp + 0x18]
movzx edx, word [eax + 2]
movzx eax, word [eax]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edx
push eax
lea ecx, [esp + 0x2c]
push str.StringFileInfo_04x_04xFileVersion
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x405b3b
mov edx, dword [esp + 0x14]
push edx
lea eax, [ebp + 0x10]
push pe_nt_image_headers32
push eax
call fcn.00422580
add esp, 0xc
mov eax, dword [esp + 0x18]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [esp + 0x2c]
push str.StringFileInfo_04x_04xCompanyName
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x405b89
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [ebp + 0x110]
push pe_nt_image_headers32
push edx
call fcn.00422580
add esp, 0xc
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax + 0xa]
mov dword [ebp], ecx
movzx edx, word [eax + 8]
mov dword [ebp + 4], edx
movzx ecx, word [eax + 0xe]
mov dword [ebp + 8], ecx
movzx edx, word [eax + 0xc]
mov dword [ebp + 0xc], edx
push edi
call fcn.004b3e87
add esp, 4
pop edi
mov ecx, dword [esp + 0xa0]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c2fd1
add esp, 0x98
ret 4
Function at 0x408e30
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e003b
mov eax, dword fs:[0]
push eax
sub esp, 0x4ac
mov eax, dword [0x5265f0]
xor eax, esp
mov dword [esp + 0x4a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5265f0]
xor eax, esp
push eax
lea eax, [esp + 0x4c0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4d0]
cmp dword [ebp + 0x4c0], 0
mov eax, dword [esp + 0x4d4]
mov dword [esp + 0x4b4], eax
jne 0x409014
lea ecx, [esp + 0x18]
push 0xffffffffffffffff
push ecx
call fcn.00423c10
mov ecx, eax
call fcn.00422540
test eax, eax
je 0x409014
push 1
mov ecx, 0x52f7a8
call fcn.004066f0
mov al, 0x30
mov cl, 0x37
mov bl, 0x31
mov byte [esp + 0x497], al
mov dl, 0x34
mov byte [esp + 0x49e], al
mov byte [esp + 0x49f], al
mov byte [esp + 0x4a3], al
mov eax, dword [ebp + 0x4cc]
mov byte [esp + 0x49a], cl
mov byte [esp + 0x4a1], cl
mov byte [esp + 0x494], bl
mov byte [esp + 0x495], 0x62
mov byte [esp + 0x496], 0x33
mov byte [esp + 0x498], dl
mov byte [esp + 0x499], 0x63
mov byte [esp + 0x49b], 0x61
mov byte [esp + 0x49c], 0x32
mov byte [esp + 0x49d], 0x64
mov byte [esp + 0x4a0], dl
mov byte [esp + 0x4a2], bl
mov byte [esp + 0x4a4], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x408f43
sub eax, ecx
lea edi, [eax + 0x10]
and edi, 0xfffffff0
mov dword [esp + 0x1c], vtable.CRJK.0
mov byte [esp + 0x20], dl
lea edx, [esp + 0x494]
push edx
lea esi, [esp + 0x20]
mov dword [esp + 0x4cc], 0
call fcn.00419a40
mov ecx, dword [ebp + 0x4cc]
push edi
mov edx, ecx
mov eax, esi
call fcn.0041a4f0
mov eax, dword [esp + 0x4b4]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x409008
xor esi, esi
test edi, edi
jle 0x409001
lea esp, [esp]
mov ecx, dword [ebp + 0x4cc]
movzx edx, byte [ecx + esi]
push edx
push str._02x
lea eax, [esp + 0x4bc]
push 8
push eax
call fcn.004c3b7b
add esp, 0x10
push 0
lea ecx, [esp + 0x18]
push ecx
push 2
lea edx, [esp + 0x4c0]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esi, 1
cmp esi, edi
jl 0x408fc0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00423c10
mov ecx, eax
call fcn.00422340
mov ecx, dword [esp + 0x4c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.004c2fd1
add esp, 0x4b8
ret 8
Function at 0x409040
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
push edi
mov edi, eax
cmp dword [edi + 0x4c0], 0
jne 0x4090d7
lea eax, [esp + 8]
push 0xffffffffffffffff
push eax
call fcn.00423c10
mov ecx, eax
call fcn.00422540
test eax, eax
je 0x4090d7
push 0
mov ecx, 0x52f7a8
call fcn.004066f0
mov ecx, dword [esp + 0x14]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4090cb
mov edx, dword [edi + 0x4cc]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4090a6
push 0
sub eax, edi
lea ecx, [esp + 0x10]
push ecx
add eax, 0xffffffda
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00423c10
mov ecx, eax
call fcn.00422340
pop edi
pop esi
add esp, 8
ret 4
Function at 0x40eef0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x5265f0]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x214]
push esi
mov esi, dword [eax]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
mov dword [esp + 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004c2fd1
add esp, 0x210
ret 4

Function at 0x40ef60
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x5265f0]
xor eax, ebp
mov dword [ebp + 0x39c], eax
mov eax, dword [ebp + 0x3a8]
push ebx
push esi
push edi
push 5
push 0
push 0
push eax
push str.open
push 0
mov dword [ebp - 0x7c], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ebx, eax
cmp ebx, 0x20
mov dword [ebp - 0x80], ebx
ja 0x40f0bc
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x78]
push eax
push 1
push 0
push str..htm
push SysReAllocString
call esi
test eax, eax
jne 0x40f0ba
lea ecx, [ebp - 0x78]
push ecx
lea edi, [ebp - 0x74]
call fcn.0040eef0
test eax, eax
jne 0x40f0ba
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x503a80
mov edx, edi
push edx
call ebx
lea eax, [ebp - 0x78]
push eax
push 1
push 0
mov ecx, edi
push ecx
push SysReAllocString
call esi
test eax, eax
jne 0x40f0b5
lea edx, [ebp - 0x78]
push edx
call fcn.0040eef0
test eax, eax
jne 0x40f0b5
mov eax, edi
push 0x503aa8
push eax
call fcn.004c3459
mov esi, eax
add esp, 8
test esi, esi
jne 0x40f055
mov ecx, edi
push 0x503ab4
push ecx
call fcn.004c3459
mov esi, eax
add esp, 8
test esi, esi
jne 0x40f055
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebp + eax*2 - 0x76]
jmp 0x40f05a
mov word [esi], 0
push 0x503abc
push esi
call ebx
mov eax, dword [ebp - 0x7c]
push eax
push esi
call ebx
call dword [0x527ad0]
lea ecx, [ebp - 0x74]
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x40f092
xor eax, eax
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x40f0bc
lea esi, [eax + eax]
mov eax, esi
call fcn.004c4450
mov eax, esp
push edi
push esi
lea edx, [ebp - 0x74]
push edx
push eax
call fcn.0040f160
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x40f0bc
mov eax, dword [ebp - 0x80]
jmp 0x40f0bc
mov eax, ebx
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
xor ecx, ebp
call fcn.004c2fd1
add ebp, 0x3a0
mov esp, ebp
pop ebp
ret 4
Function at 0x4230a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x2a0
mov eax, dword [0x5265f0]
xor eax, esp
mov dword [esp + 0x29c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2b8]
push edi
push 0x9c
xor ebx, ebx
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, ecx
call fcn.004c43d0
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x9c
call edi
test eax, eax
jne 0x423111
push 0x94
push eax
lea edx, [esp + 0x18]
push edx
call fcn.004c43d0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x94
call edi
push esi
lea ecx, [esp + 0xb0]
push 0x200
push ecx
call fcn.00422580
mov eax, dword [esp + 0x2c]
add esp, 0xc
sub eax, 1
je 0x4231b4
sub eax, 1
jne 0x4231ce
mov eax, dword [esp + 0x14]
cmp eax, 4
jbe 0x423185
cmp eax, 5
jne 0x423151
cmp dword [esp + 0x18], ebx
je 0x423185
push esi
push str.Global_s
lea edx, [esp + 0xb4]
push 0x200
push edx
call fcn.00422580
mov edx, dword [esp + 0x2c8]
add esp, 0x10
lea ecx, [esp + 0xac]
push ecx
push edx
mov ecx, ebp
call fcn.004a09d0
jmp 0x4231d0
push esi
lea eax, [esp + 0xb0]
push 0x200
push eax
call fcn.00422580
mov edx, dword [esp + 0x2c4]
add esp, 0xc
lea ecx, [esp + 0xac]
push ecx
push edx
mov ecx, ebp
call fcn.004a09d0
jmp 0x4231d0
mov ecx, dword [esp + 0x2b8]
lea eax, [esp + 0xac]
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x4231d0
mov eax, ebx
mov ecx, dword [esp + 0x2ac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c2fd1
add esp, 0x2a0
ret 0xc