joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f3a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47c478
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004756cf
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0044ed40
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004755fd
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00471ec3
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00471ec3
push 1
push 0
push 0
mov ecx, esi
call fcn.00471e6b
push 1
push 0
push 1
mov ecx, esi
call fcn.00471e6b
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00475741
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x44f520
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47c498
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004756cf
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0044ed40
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004755fd
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x44f5e4
cmp dword [esp + 0x40], 1
jne 0x44f5e2
cmp ecx, eax
jge 0x44f5e4
mov eax, ecx
cmp eax, 0xc8
jge 0x44f5f0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0044f3a0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00475741
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x44fd60
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47c503
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004702df
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00475977
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00476e93
test eax, eax
je 0x44fe7c
mov ecx, dword [esp + 0x3c]
call fcn.004759a4
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44fe40
push edi
mov ecx, esi
call fcn.0047300e
mov ecx, esi
call fcn.0044ffe0
cmp dword [esp + 0x38], 1
jne 0x44fe75
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00473149
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4528b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4528e3
push esi
call fcn.004559a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4528dc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x452969
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x452952
mov eax, dword [esi + 8]
test eax, eax
je 0x452907
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45294e
cmp eax, 2
je 0x452952
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4528fa
cmp eax, 3
je 0x45292d
cmp eax, 1
jne 0x4528fa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4528fa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4528fa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00452990
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x452978
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00452990
add esp, 4
pop esi
ret

Function at 0x4710d4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47110c
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.0046f18b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046f163
jmp 0x471118
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4727cb
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 0x47280d
call fcn.00478283
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47280d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x472804
xor eax, eax
jmp 0x472815
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047281b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4787b3
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 0x4787e1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4787ff
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00478719
jmp 0x4787ff
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4787ff
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00478719
test edi, edi
mov eax, edi
jne 0x4787e9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401290
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb88
and esp, 0xfffffff0
mov eax, 0
add eax, 0xf
add eax, 0xf
shr eax, 4
shl eax, 4
mov dword [ebp - 0xb4c], eax
mov eax, dword [ebp - 0xb4c]
call fcn.00401980
call sym.___main
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0x270f
jg 0x401514
mov dword [esp + 4], section..rdata
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._puts
mov dword [esp], str.ArmaLib.dll
call sub.KERNEL32.dll_LoadLibraryA
sub esp, 4
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
je 0x40133f
mov dword [esp + 4], 0x403014
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._puts
jmp 0x401368
mov dword [esp + 4], 0x403020
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._puts
jmp 0x40152a
lea eax, [ebp - 0xc]
inc dword [eax]
mov dword [esp + 4], str.GetArmaData
mov eax, dword [ebp - 0x41c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0x420], eax
mov dword [esp + 4], str.GetArmax12Data
mov eax, dword [ebp - 0x41c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0x424], eax
lea ecx, [ebp - 0xb28]
mov edx, section..data
mov eax, 0x700
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], ecx
call sym._memcpy
mov dword [esp], 4
call sym._malloc
mov dword [ebp - 0xb2c], eax
mov edx, dword [ebp - 0xb2c]
lea eax, [ebp - 0xb28]
mov dword [edx], eax
mov dword [esp], 4
call sym._malloc
mov dword [ebp - 0xb30], eax
mov eax, dword [ebp - 0xb30]
mov dword [eax], 0x403047
fldz
fstp qword [ebp - 0xb38]
mov dword [ebp - 0xb40], 0x7d
mov dword [esp + 4], 0x40304a
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._puts
cmp dword [ebp - 0x420], 0
jne 0x40146c
mov dword [esp + 4], str.arma_null
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._puts
lea eax, [ebp - 0xb38]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 2
mov dword [esp + 0x20], 1
mov eax, dword [ebp - 0xb30]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0xb40]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 1
mov eax, dword [ebp - 0xb2c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], 0x40305d
mov eax, dword [ebp - 0x420]
call eax
mov dword [ebp - 0xb3c], eax
fld qword [ebp - 0xb38]
fstp qword [esp + 8]
mov dword [esp + 4], str.arma__.2f
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._sprintf
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._puts
jmp 0x4012ca
mov dword [esp], str.PAUSE
call sub.msvcrt.dll_system
mov dword [ebp - 0xb44], 0
mov eax, dword [ebp - 0xb44]
leave
ret

Function at 0x401b70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init
Function at 0x405cbb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c60c], 0
push esi
jne 0x405cf2
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 0x405ccc
mov dword [ecx*4 + 0x42c608], eax
inc ecx
cmp ecx, 0x100
jl 0x405cc7
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405d23
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 + 0x42c608]
xor eax, esi
inc ecx
dec edx
jne 0x405d05
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x9c15593
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x287b96
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x100b972c
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.100b97ab
jae 0x100b9738
xor ecx, ecx
call fcn.100b97ab
jae 0x100b9762
xor eax, eax
call fcn.100b97ab
jae 0x100b9773
mov al, 0x10
call fcn.100b97ab
adc al, al
jae 0x100b9754
jne 0x100b97a0
stosb byte es:[edi], al
jmp 0x100b9739
call fcn.100b97b7
dec ecx
loop 0x100b977f
mov eax, ebp
call fcn.100b97b5
jmp 0x100b97a1
lodsb al, byte [esi]
shr eax, 1
je 0x100b97c7
adc ecx, 2
mov ebp, eax
jmp 0x100b97a1
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.100b97b5
cmp eax, 0x7d00
jae 0x100b979f
cmp eax, 0x500
jae 0x100b97a0
cmp eax, 0x7f
ja 0x100b97a1
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x100b9739
pop ebp
ret 8
Function at 0x402ebc
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x449390]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402f37
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402f3e
cmp dword [ebp + 0x10], ebx
jne 0x402f2b
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402ebc
test eax, eax
jne 0x402f3e
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402efe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.0040659a
cmp eax, ebx
je 0x402f63
push ebx
push dword [0x449390]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402f37
cmp dword [0x449390], ebx
jne 0x402f34
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402f34
jmp 0x402f37
Function at 0x4034cc
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x421474]
sub esi, dword [0x4153e0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x4492ec], eax
jle 0x403634
push dword [0x429484]
call fcn.0040367d
push ebx
push ebx
push dword [0x4153e0]
push dword [0x40a64c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x429480], esi
mov dword [0x421470], ebx
mov ebp, 0x415470
mov eax, dword [0x421478]
mov edi, 0x4000
sub eax, dword [0x429484]
cmp eax, edi
jg 0x403541
mov edi, eax
mov esi, 0x41d470
push edi
push esi
call fcn.0040364b
test eax, eax
je 0x40361c
add dword [0x429484], edi
mov dword [0x415400], esi
mov dword [0x415404], edi
cmp dword [0x4492f0], ebx
je 0x403598
cmp dword [0x449380], ebx
jne 0x403598
mov eax, dword [0x429480]
push ebx
sub eax, dword [0x421474]
sub eax, dword [esp + 0x1c]
add eax, dword [0x4153e0]
mov dword [0x421470], eax
call fcn.00403065
pop ecx
mov ecx, 0x4153e8
mov dword [0x415408], ebp
mov dword [0x41540c], 0x8000
call fcn.004066a8
test eax, eax
jl 0x403646
mov esi, dword [0x415408]
sub esi, ebp
je 0x4035f6
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x40a64c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403621
cmp esi, dword [esp + 0x10]
jne 0x403621
add dword [0x4153e0], esi
cmp dword [0x415404], ebx
jne 0x403567
jmp 0x403602
cmp dword [0x415404], ebx
jne 0x403646
cmp edi, ebx
je 0x403646
mov eax, dword [0x421474]
mov ecx, eax
sub ecx, dword [0x4153e0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x403625
jmp 0x40352b
or eax, 0xffffffff
jmp 0x40363e
push 0xfffffffffffffffe
jmp 0x403648
push ebx
push ebx
push eax
push dword [0x40a64c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00403065
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
push 0xfffffffffffffffd
pop eax
jmp 0x40363e
Function at 0x40587f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x43fcc8], 0x44
push eax
xor eax, eax
push 0x43fcc8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4058ba
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x405c71
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43d4c8
push esi
call fcn.004060a5
push esi
call fcn.00405c22
mov edi, eax
test edi, edi
jne 0x405c92
xor eax, eax
jmp 0x405ce4
push edi
call fcn.0040632d
test byte [0x4492f8], 0x80
je 0x405cab
mov al, byte [edi]
test al, al
je 0x405c8e
cmp al, 0x5c
je 0x405c8e
sub edi, esi
push esi
call fcn.004060bb
cmp eax, edi
push esi
jle 0x405cce
call fcn.00406573
test eax, eax
je 0x405cc6
test byte [eax], 0x10
je 0x405c8e
push esi
call fcn.00405bd5
jmp 0x405cad
call fcn.00405b8e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405d5b
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405d77
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405d7a
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405da9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405dee
mov eax, edi
dec edi
test eax, eax
jne 0x405db4
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405de8
Function at 0x405df2
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.0040659a
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405e16
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405f4f
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43fe50], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x43fe50
je 0x405e5a
push 1
push 0
push esi
call fcn.00405d7a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405f55
cmp eax, edi
jg 0x405f55
mov esi, 0x43f8c8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405f55
cmp eax, edi
jg 0x405f55
push esi
push ebp
push str._s_s_r_n
push 0x43f4c8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4492f0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004060d9
push 4
push 0xc0000000
push esi
call fcn.00405d7a
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405f4f
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405f48
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405f48
cmp edi, dword [esp + 0x18]
jne 0x405f48
push str._Rename__r_n
push esi
call fcn.00405ce9
test eax, eax
jne 0x405f5c
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004060a5
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x43f4c8
push eax
call fcn.00405d35
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x449370]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aad0
push eax
call fcn.00405ce9
test eax, eax
je 0x405f13
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405f83
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405f78
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405f15
Function at 0x405f8b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405ffc
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405feb
cmp dword [ebp + 0x14], 1
je 0x405fed
cmp dword [ebp + 0x14], 2
je 0x405fed
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14