joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406b18
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push 0
push 0
push 0
cld
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
sub eax, 3
mov edx, dword es:[ecx]
push edx
imul ax, word [esp]
pop edx
movzx eax, al
cmp ax, 0x7c
je 0x406b78
push 0
push 1
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
cmp eax, dword [edx + ebp]
je 0x406bba
mov eax, 0x406b73
lea eax, es:[edx + eax]
push ebp
sub esp, 4
mov dword [esp], eax
push 0
call 0x406bb4
test eax, eax
jne 0x406b93
jmp 0x406bba
leave
push ecx
retf
cmc
nop
mov eax, esp
lea eax, [eax + 8]
mov ecx, eax
or eax, dword [ecx]
and eax, dword [ecx]
cld
or eax, 7
xchg dword es:[esp + 0xc], edx
nop
lea eax, ss:[eax + 0x789690]
nop
xchg esi, eax
js 0x406b97
lea eax, [eax - 0x783648]
sub edx, 0x1b4
add dword [edx], eax
mov ecx, dword [esp]
sub esp, 0xffffffec
sub eax, eax
push cs
pop dx
push dx
je 0x406b75
jmp dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
add byte [eax], al
add byte [eax], al
xlatb
std
or byte [edx - 0x6f58a8b9], cl
add byte [ebx - 0x74ffed8b], cl
or al, 0x84
sbb byte [esi], bl
outsb dx, byte [esi]
out 0x2e, eax
or ebx, ecx
mov dword [0x46ec1379], edx
mov bl, 0xa7
jo 0x406be0
mov ebp, dword [eax - 0x1474ffde]
int3

Function at 0x40e9cb
Capabilities:
Get number of processors

Disassembly:
mov dword fs:[eax], esp
clc
nop
jae 0x40f361
wait
and cl, al
add byte [ecx - 0x704fce6], dl
push dword fs:[eax]
clc
nop
jae 0x40ce1c
out dx, al
add byte [eax], al
fsubr st(7), st(0)
pop ebp
dec eax
lea esp, [esp + eax]
clc
xor eax, eax
clc
nop
jae 0x40d781
pop es
add byte [eax - 0xe], al
fiadd dword [eax]
sub ecx, dword [ebx - 0x5440a8fa]
jecxz 0x40ea25
add byte [edi + 0x5c3243c], al
pop ebp
and al, byte [0x50f80005]
les eax, fs:[eax - 1]
clc
nop
jae 0x40e1dc
add byte [eax], al
outsb dx, byte [esi]
add byte [eax], al
sub eax, 0x300d8b64
add byte [eax], al
add al, bh

Function at 0x40f25f
Capabilities:
Get number of processors

Disassembly:
mov ecx, ebx
wait
cld
nop
jmp fcn.0040f7b0
pushal
clc
nop
jae 0x40dcec
add dh, ch
stosd dword es:[edi], eax
add byte [eax], al
retf 0x913a
Function at 0x410594
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
push esi
push eax
push 1
push eax
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4105c9
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
leave
ret
push str.unable_to_create_tls_index
lea ecx, [ebp - 0x1c]
call fcn.00404e60
push 0x4171ec
lea eax, [ebp - 0x1c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x410b90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 4
mov esi, ecx
call fcn.00410d51
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x410bac
mov dword [eax], ecx
jmp 0x410bae
mov eax, ecx
push ecx
push ecx
push esi
push 0x410c20
push ecx
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
pop esi
mov dword [ecx], eax
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x137d4851
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x672d2560
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x7bde11
Capabilities:
Encode data using xor

Disassembly:
push eax
call 0xb881f0fb
add ebp, edi
outsb dx, byte [esi]
clc
test byte [eax + 0x57], cl
mov edi, ecx
das
mov dword [edi], 0x4789698c
mov dword [edi + 4], eax
mov dword [eax + 0x4ffbbfff], eax
or bh, al
inc edi
or al, 0x37
add byte [ebp - 0x7fe78b37], al
jge 0x7bde37
add byte [edx + edx - 0x75], dh
add dword [esi + 0x51], edx
inc eax
hlt
lcall 0xc160, 0xbf5fc78b
or al, 0x8c
mov edi, 0x8c0cc160
dec eax
push es
dec edi
push ebp
or byte [eax - 0x20], al
xor ecx, dword ds:[ebx + ecx*4 + 0x42]
add al, 0x4f
inc edi
fadd st(0)
dec esp
mov dl, byte [edx + 0x4c]
add al, 0x30
pop ss
jae 0x7bde33
add ah, cl
cmp dword [ebx + 0x297c892a], ecx
xor byte [eax + eax*8 + 0x60], bh
or byte [ecx], dl
Function at 0x973270
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x65900d
lea edi, [esi - 0x25800d]
push edi
or ebp, 0xffffffff
jmp 0x973292
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x973299
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x973288
mov eax, 1
add ebx, ebx
jne 0x9732ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x9732a0
jne 0x9732bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9732a0
xor ecx, ecx
sub eax, 3
jb 0x9732d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x973342
mov ebp, eax
add ebx, ebx
jne 0x9732db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x9732e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x97330c
inc ecx
add ebx, ebx
jne 0x9732f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x9732ed
jne 0x973309
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9732ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x97332c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x97331d
jmp 0x97328e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x97332c
add edi, ecx
jmp 0x97328e
pop esi
mov edi, esi
mov ecx, 0x187f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x97334a
cmp byte [edi], 0x11
jne 0x97334a
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 0x97334f
lea edi, [esi + 0x56f000]
mov eax, dword [edi]
or eax, eax
je 0x9733be
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x57b834]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x57b88c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x97337c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x57b894]
or eax, eax
je 0x9733b8
mov dword [ebx], eax
add ebx, 4
jmp 0x973399
call dword [esi + 0x57b890]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x9733ef
cmp al, 0xef
ja 0x9733e2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x9733c4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x9733d1
mov ebp, dword [esi + 0x57b898]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
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 0x973423
sub esp, 0xffffff80
jmp 0x40ebac
Function at 0x401bb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401bc5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401c06
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401c02
nop word [eax + eax]
cmp esi, edx
jae 0x401c06
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x401bf0
cmp esi, edx
jb 0x401c0b
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x404210
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x41500c]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push esi
mov esi, dword [ebp + 0xc]
push esi
mov word [esp + 8], cx
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
call fcn.00407c50
cmp dword [esp + 0x18], 8
lea eax, [esp + 4]
cmovae eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x18]
cmp ecx, 8
jb 0x404276
inc ecx
push ecx
push dword [esp + 8]
call fcn.004081c0
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040d7a5
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4052d0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x2c]
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov eax, dword [0x4157d0]
cmp eax, dword [ecx + 4]
jle 0x405328
push 0x4157d0
call fcn.0040d92a
add esp, 4
cmp dword [0x4157d0], 0xffffffff
jne 0x405328
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0x40f9c0
mov dword [0x4157d4], eax
call fcn.0040dc81
push 0x4157d0
call fcn.0040d8eb
add esp, 8
push esi
push dword [0x4157d4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [ebp + 8]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
test eax, eax
jle 0x405362
xor ecx, ecx
push 0x20
mov word [esi], cx
mov ecx, esi
push eax
call fcn.00407960
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, esi
push eax
push 0x410c44
mov word [esi], ax
call fcn.00407c50
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x408740
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f1bb
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x41500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x190]
mov dword [ebp - 0x190], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x408880
cmp dword [ebp - 0x18c], 6
jl 0x408880
lea eax, [ebp - 0x198]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, 1
je 0x4087ed
push 8
call fcn.0040dca9
add esp, 4
mov esi, eax
mov dword [ebp - 0x1a0], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push esi
lea ecx, [ebp - 0x44]
mov dword [esi], vtable.tp::error_win.0
mov dword [esi + 4], eax
call fcn.00408530
push 0x413834
lea eax, [ebp - 0x44]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov esi, dword [ebp - 0x198]
mov dword [ebp - 0x1a0], esi
lea eax, [ebp - 0x19c]
mov dword [ebp - 4], 0
push eax
push 4
lea eax, [ebp - 0x194]
mov dword [ebp - 0x194], 0
push eax
push 0x14
push esi
mov dword [ebp - 0x19c], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, 1
je 0x40886b
push 8
call fcn.0040dca9
add esp, 4
mov esi, eax
mov dword [ebp - 0x1a4], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push esi
lea ecx, [ebp - 0x78]
mov dword [esi], vtable.tp::error_win.0
mov dword [esi + 4], eax
call fcn.00408530
push 0x413834
lea eax, [ebp - 0x78]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
cmp dword [ebp - 0x194], 0
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x408882
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d7a5
mov esp, ebp
pop ebp
ret
Function at 0x40b1e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x41500c]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.0040b130
mov esi, eax
test esi, esi
jne 0x40b2d7
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x40b2a9
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.0040b1e0
mov esi, eax
test esi, esi
jne 0x40b2d7
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x40b270
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40b2c0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.0040af80
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40b2e6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0040d7a5
mov esp, ebp
pop ebp
ret 4
Function at 0x40b750
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f826
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x41500c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40b7fc
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40b7fc
call fcn.0040ace0
mov esi, eax
jmp 0x40b8ec
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40b81f
call fcn.0040ace0
jmp 0x40b8df
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x40b83d
call fcn.0040ace0
jmp 0x40b8df
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x40b85e
mov esi, 0x8007000e
jmp 0x40b8e1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040d510
jmp 0x40b888
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x40b89f
mov esi, 0x8007000e
jmp 0x40b8e1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40b8bf
call fcn.0040ace0
jmp 0x40b8df
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040c640
mov esi, eax
test edi, edi
je 0x40b8ec
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40b910
lea ecx, [ebp - 0x418]
call fcn.0040d650
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040d7a5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401490
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x42b930]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x401525
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e2
cmp dword [ebp + 0x10], ebx
jne 0x401519
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.00401490
test eax, eax
jne 0x4014f4
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014c9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405a91
cmp eax, ebx
je 0x40152c
push ebx
push dword [0x42b930]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401525
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42b930], ebx
jne 0x401522
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401522
jmp 0x401525
Function at 0x403228
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x400
mov esi, 0x44c800
push esi
add eax, 0x3e8
push ebx
mov dword [0x42b8a0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push esi
call fcn.0040631a
mov edi, eax
mov dword [ebp - 0xc], edi
mov dword [0x40b010], edi
cmp edi, 0xffffffff
jne 0x403282
mov eax, 0x409314
jmp 0x403457
push esi
mov esi, 0x44a800
push esi
call fcn.00405a3b
push esi
call fcn.00406264
push eax
push 0x44d000
call fcn.00405a3b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [0x4219b8], eax
mov esi, eax
jle 0x40339d
mov ebx, 0x419930
mov eax, dword [0x42b8ac]
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
cmp esi, eax
mov edi, esi
jl 0x4032d6
mov edi, eax
push edi
push ebx
call fcn.00402f21
test eax, eax
je 0x40345e
cmp dword [0x42b8ac], 0
jne 0x403368
push 0x1c
push ebx
lea eax, [ebp - 0x28]
push eax
call fcn.004062ed
mov eax, dword [ebp - 0x28]
test eax, 0xfffffff0
jne 0x403376
cmp dword [ebp - 0x24], 0xaf17f02b
jne 0x403376
cmp dword [ebp - 0x18], 0x279fa43
jne 0x403376
cmp dword [ebp - 0x1c], 0x52fc4833
jne 0x403376
cmp dword [ebp - 0x20], 0xbccf0f4a
jne 0x403376
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x41992c]
and eax, 2
or dword [0x42b920], eax
mov eax, dword [ebp - 0x10]
cmp eax, esi
mov dword [0x42b8ac], ecx
jg 0x403466
test byte [ebp + 8], 8
jne 0x40335a
test byte [ebp + 8], 4
jne 0x40339b
inc dword [ebp - 4]
lea esi, [eax - 4]
cmp edi, esi
jbe 0x403376
mov edi, esi
jmp 0x403376
test byte [ebp + 8], 2
jne 0x403376
push 0
call fcn.00402ebd
pop ecx
cmp esi, dword [0x4219b8]
jge 0x40338b
push edi
push ebx
push dword [ebp - 8]
call fcn.00406f06
mov dword [ebp - 8], eax
add dword [0x41992c], edi
sub esi, edi
test esi, esi
jg 0x4032bb
xor ebx, ebx
push 1
call fcn.00402ebd
pop ecx
cmp dword [0x42b8ac], ebx
je 0x403466
cmp dword [ebp - 4], ebx
je 0x4033e0
push dword [0x41992c]
call fcn.00402f5a
push 4
lea eax, [ebp + 8]
push eax
call fcn.00402f21
test eax, eax
je 0x403466
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x403466
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x42b8ac]
add eax, 0x1c
push eax
call fcn.00402f5a
push dword [ebp - 0x14]
push esi
push ebx
push 0xffffffffffffffff
call fcn.00402f77
cmp eax, dword [ebp - 0x14]
jne 0x403466
test byte [ebp - 0x28], 1
mov dword [0x42b84c], esi
mov eax, dword [esi]
mov dword [0x42b8a8], eax
je 0x403425
inc dword [0x42b8a4]
push 8
pop ecx
lea eax, [esi + 0x44]
sub eax, 8
add dword [eax], esi
dec ecx
cmp ecx, ebx
jne 0x40342b
push 1
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x3c], eax
push 0x40
add esi, 4
push esi
push 0x42b860
call fcn.004062ed
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push 1
call fcn.00402ebd
pop ecx
mov eax, str._n_n_n_n_n
jmp 0x403457
Function at 0x4058e4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405901
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x405904
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40597d
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x800
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405966
cmp dword [ebp + 0x14], 1
je 0x40596b
cmp dword [ebp + 0x14], 2
je 0x40596b
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x7fe], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14
Function at 0x405f0e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc00]
test eax, eax
jle 0x405f79
xor ecx, ecx
test eax, eax
jle 0x405f5c
push ebx
mov eax, ecx
cdq
push 3
pop ebx
idiv ebx
mov eax, ecx
and eax, 0x80000001
jns 0x405f41
dec eax
or eax, 0xfffffffe
inc eax
mov dl, byte [edx + esi + 0xc24]
add dl, byte [eax + esi + 0xc24]
xor byte [ecx + esi], dl
inc ecx
cmp ecx, dword [esi + 0xc00]
jl 0x405f2b
pop ebx
push 0
lea eax, [ebp - 4]
push eax
push dword [esi + 0xc00]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
and dword [esi + 0xc00], 0
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, dword [esi + 0xc00]
pop esi
sete al
leave
ret

Function at 0x406153
Capabilities:
Check for peb beingdebugged flag
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
mov dword [ebp - 4], eax
pop eax
cmp dword [ebp - 4], 1
jne 0x40617b
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
leave
ret

Function at 0x40617d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x426208], 0x44
call fcn.00406111
lea eax, [ebp - 0x10]
push eax
push 0x426208
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4061bd
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40631a
Capabilities:
Get file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
nop
call fcn.00406111
mov eax, esi
inc eax
push 0
neg eax
sbb eax, eax
and eax, esi
push eax
push dword [esp + 0x18]
push 0
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop esi
ret 0xc

Function at 0x406353
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x64
pop edi
call fcn.00406111
mov esi, dword [ebp + 8]
mov eax, dword [0x40971c]
mov dword [ebp - 8], eax
mov eax, dword [0x409720]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4063a8
test edi, edi
jne 0x406365
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x4063a2