joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000df8e
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x1000dfb0
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x1000e152
cmp edi, dword [ebp + 0x10]
jb 0x1000e152
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.1000da7a
inc edi
jmp 0x1000e039
jmp 0x1000e046
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1000da7a
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1000da7a
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x1000e09a
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x1000e07e
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.1000e0c8
add dword [eax], 0x39
jle 0x1000e0a4
sub al, 0xf5
mov ch, al
call fcn.1000e0dd
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x1000fdb5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x1000fdcb
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x1000fddc
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.1000fe1d
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx
Function at 0x10012189
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x100120d2
add ebx, 0
push ecx
call 0x100120e7
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x723b93bb
sub ebx, dword [0x723d8bfa]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x723d8bea
call fcn.1000dbb1
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.1000d0bf
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x10012245
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x10012245
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x100121fc
mov eax, 1
lock xchg dword [0x723d8bf6], eax
push 0x3dd1fc71
call 0x10012189
push esi
add esp, 8
cmp eax, 0
jne 0x10012172
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x10012198
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x100121ad
cmp ecx, edx
cmp eax, 0
je 0x100121d2
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x100121bc
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.100121eb
dec eax
loope 0x100121ee
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x723d8bf6], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x10012222
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x10012237
jmp 0x10012242
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x10012130
Function at 0x100192aa
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x10019580
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x723c586e
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x723bc834
push 0xffffffffffffffff
call fcn.100104aa
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x10019314
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.1001932c
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x10019574
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x10019548
Function at 0x10028d7a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10028d9c
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10028d9c
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10028d9c
ret
cmp word [ebx + 4], 0x14c
jne 0x10028d9c
test word [ebx + 0x16], 2
je 0x10028d9c
test word [ebx + 0x16], 0x100
je 0x10028d9c
cmp word [ebx + 0x18], 0x10b
jne 0x10028d9c
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10028d9c
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10028e28
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10028dbc
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1000fd07
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10028d9c
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x10028e28
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10028d9c
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10028d9c
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10028d9c
ret
cmp word [ebx + 4], 0x14c
jne 0x10028d9c
test word [ebx + 0x16], 2
je 0x10028d9c
test word [ebx + 0x16], 0x100
je 0x10028d9c
cmp word [ebx + 0x18], 0x10b
jne 0x10028d9c
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10028d9c
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10028e28
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10028dbc
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1000fd07
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10028d9c
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x10028edf
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10028f38
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10028edf
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10028eee
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1042eb91
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10028f3f
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1000fdb5
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10028fde
add edi, 4
add eax, 2
dec ecx
jne 0x10028f24
call 0x10028f8b
loope 0x10028f81
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10028fdb
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10028fec
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x10028f9f
cmp eax, ecx
ja 0x10028f9f
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10029029
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1002901f
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.10010294
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10028eee
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x10028f38
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10028edf
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10028eee
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1042eb91
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10028f3f
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1000fdb5
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10028fde
add edi, 4
add eax, 2
dec ecx
jne 0x10028f24
call 0x10028f8b
loope 0x10028f81
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10028fdb
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10028fec
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x10028f9f
cmp eax, ecx
ja 0x10028f9f
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10029029
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1002901f
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.10010294
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x42405a]
shl eax, 2
mov dword [0x42405e], eax
push edi
push ecx
xor eax, eax
mov edi, 0x42e784
mov ecx, 0x493a28
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
mov edx, dword fs:[4]
mov dword [0x42406e], edx
mov eax, dword [edx - 8]
mov dword [0x424066], eax
mov eax, dword [edx - 4]
mov dword [0x42406a], eax
sub edx, 4
mov dword [0x493654], edx
sub edx, 4
cmp edx, esp
jae 0x401054
mov esp, edx
push 0
call fcn.0041d1ea
pop ecx
push 0x42402c
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x424062], eax
push 0
jmp fcn.00422380

Function at 0x4013de
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
mov esi, 0x424588
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
lea edx, [ebp - 0x104]
push edx
call fcn.0041ab64
pop ecx
movsx ecx, byte [ebp + eax - 0x105]
cmp ecx, 0x5c
je 0x40142d
push 0x424f80
lea eax, [ebp - 0x104]
push eax
call fcn.0041aaa4
add esp, 8
push 0x424f82
lea edx, [ebp - 0x104]
push edx
call fcn.0041aaa4
add esp, 8
push 0x8001
call sub.KERNEL32.DLL_SetErrorMode
mov ebx, eax
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [esi], eax
push ebx
call sub.KERNEL32.DLL_SetErrorMode
cmp dword [esi], 0
jne 0x40146a
xor eax, eax
jmp 0x4014e7
push 0x424f8e
push dword [esi]
call sub.KERNEL32.DLL_GetProcAddress
test eax, eax
je 0x401497
push dword [0x438168]
call eax
test eax, eax
jne 0x4014a6
push dword [esi]
call sub.KERNEL32.DLL_FreeLibrary
xor edx, edx
mov dword [esi], edx
xor eax, eax
jmp 0x4014e7
push dword [esi]
call sub.KERNEL32.DLL_FreeLibrary
xor edx, edx
mov dword [esi], edx
xor eax, eax
jmp 0x4014e7
push 0x424f9c
push dword [esi]
call sub.KERNEL32.DLL_GetProcAddress
test eax, eax
je 0x4014d3
push dword [0x438168]
call eax
test eax, eax
jne 0x4014e2
push dword [esi]
call sub.KERNEL32.DLL_FreeLibrary
xor edx, edx
mov dword [esi], edx
xor eax, eax
jmp 0x4014e7
push dword [esi]
call sub.KERNEL32.DLL_FreeLibrary
xor edx, edx
mov dword [esi], edx
xor eax, eax
jmp 0x4014e7
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40152b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [ebp - 0x90], 4
jae 0x401557
xor eax, eax
jmp 0x401579
cmp dword [ebp - 0x90], 4
jne 0x401574
cmp dword [ebp - 0x8c], 0xa
jb 0x401570
mov eax, 1
jmp 0x401579
xor eax, eax
jmp 0x401579
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x402496
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
call sub.KERNEL32.DLL_GetLogicalDrives
mov esi, eax
test esi, esi
jne 0x4024ad
xor eax, eax
jmp 0x4024ec
xor ebx, ebx
mov ecx, ebx
mov eax, 1
shl eax, cl
test eax, esi
je 0x4024e4
lea edx, [ebx + 0x41]
push edx
push 0x425005
lea eax, [ebp - 0xc]
push eax
call fcn.0041e5ec
add esp, 0xc
lea edx, [ebp - 0xc]
push edx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 5
jne 0x4024e4
lea eax, [ebx + 0x41]
jmp 0x4024ec
inc ebx
cmp ebx, 0x1a
jl 0x4024af
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4087e2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
push ebx
cmp byte [0x4241e0], 0
je 0x4088bc
push 0x20
push 0x4241e0
call fcn.0041aae0
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x4088bc
mov byte [ebx], 0
push 0x4241e0
lea eax, [ebp - 0x138]
push eax
call fcn.0041ab34
add esp, 8
inc ebx
push ebx
call fcn.0040eda8
mov ebx, eax
push 0x42e88c
lea eax, [ebp - 0x23c]
push eax
call fcn.0041ab34
add esp, 8
lea edx, [ebp - 0x23c]
push edx
call fcn.0041ab64
pop ecx
movsx ecx, byte [ebp + eax - 0x23d]
cmp ecx, 0x5c
je 0x408874
push 0x4256db
lea eax, [ebp - 0x23c]
push eax
call fcn.0041aaa4
add esp, 8
push ebx
lea edx, [ebp - 0x23c]
push edx
call fcn.0041aaa4
add esp, 8
push 0x4256dd
lea ecx, [ebp - 0x138]
push ecx
call fcn.0041aaa4
add esp, 8
lea eax, [ebp - 0x23c]
push eax
lea edx, [ebp - 0x138]
push edx
call fcn.0041aaa4
add esp, 8
push 1
lea ecx, [ebp - 0x138]
push ecx
call sub.KERNEL32.DLL_WinExec
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408d10
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
test byte [0x43817b], 0x80
jne 0x408d77
lea eax, [ebp - 4]
push eax
push 0x28
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.ADVAPI32.dll_OpenProcessToken
test eax, eax
jne 0x408d38
xor eax, eax
jmp 0x408d8d
lea edx, [ebp - 0x10]
push edx
push 0x425746
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push dword [ebp - 4]
call sub.ADVAPI32.dll_AdjustTokenPrivileges
call sub.KERNEL32.DLL_GetLastError
test eax, eax
je 0x408d77
xor eax, eax
jmp 0x408d8d
push 0
push 2
call sub.USER32.dll_ExitWindowsEx
test eax, eax
jne 0x408d88
xor eax, eax
jmp 0x408d8d
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x408fa0
Capabilities:
Get common file path
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd74
push ebx
mov ebx, 0x42559c
mov eax, 0x425588
call fcn.0041d008
push 0x10
lea edx, [ebp - 0x70]
push edx
push 3
push 0x800
call sub.KERNEL32.DLL_GetLocaleInfoA
lea ecx, [ebp - 0x70]
push ecx
lea eax, [ebx + 0x1c4]
push eax
lea edx, [ebp - 0x60]
push edx
call fcn.0041ab34
add esp, 8
push eax
call fcn.0041aaa4
add esp, 8
lea ecx, [ebp - 0x70]
push ecx
push 0x4245a9
call fcn.0041ab34
add esp, 8
lea eax, [ebp - 0x60]
push eax
call sub.KERNEL32.DLL_LoadLibraryA
test eax, eax
jne 0x409015
lea edx, [ebx + 0x1cd]
push edx
call sub.KERNEL32.DLL_LoadLibraryA
test eax, eax
je 0x40901e
mov dword [0x43817c], eax
cmp byte [0x438178], 4
jae 0x4090cb
call fcn.004013de
test eax, eax
jne 0x4090cb
push 0x104
lea ecx, [ebp - 0x174]
push ecx
call sub.KERNEL32.DLL_GetSystemDirectoryA
lea eax, [ebp - 0x174]
push eax
call fcn.0041ab64
pop ecx
movsx edx, byte [ebp + eax - 0x175]
cmp edx, 0x5c
je 0x409079
lea ecx, [ebx + 0x1d9]
push ecx
lea eax, [ebp - 0x174]
push eax
call fcn.0041aaa4
add esp, 8
lea edx, [ebx + 0x1db]
push edx
lea ecx, [ebp - 0x174]
push ecx
call fcn.0041aaa4
add esp, 8
test byte [0x43817b], 0x80
jne 0x4090b0
lea eax, [ebp - 0x174]
push eax
lea edx, [ebx + 0x1e7]
push edx
call fcn.00408f04
add esp, 8
jmp 0x4090c6
lea ecx, [ebp - 0x174]
push ecx
lea eax, [ebx + 0x1f2]
push eax
call fcn.00408f04
add esp, 8
call fcn.004013de
push 0x10
lea edx, [ebp - 0x70]
push edx
push 3
push 0x800
call sub.KERNEL32.DLL_GetLocaleInfoA
lea ecx, [ebp - 0x70]
push ecx
lea eax, [ebx + 0x1fe]
push eax
lea edx, [ebp - 0x28c]
push edx
call fcn.0041e5ec
add esp, 0xc
lea ecx, [ebp - 0x28c]
push ecx
lea eax, [ebp - 0x278]
push eax
call fcn.00409563
add esp, 8
push 0
lea edx, [ebp - 0x278]
push edx
call fcn.0041d4dc
add esp, 8
test eax, eax
je 0x409138
lea ecx, [ebx + 0x209]
push ecx
lea eax, [ebp - 0x278]
push eax
call fcn.00409563
add esp, 8
push 0
lea edx, [ebp - 0x278]
push edx
call fcn.0041d4dc
add esp, 8
test eax, eax
je 0x409163
lea ecx, [ebx + 0x215]
push ecx
lea eax, [ebp - 0x278]
push eax
call fcn.00409563
add esp, 8
lea edx, [ebp - 0x278]
push edx
push 0
call fcn.00407787
mov word [ebp - 0x3c], 8
lea ecx, [ebx + 0x221]
push ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.0040d55c
add esp, 8
mov dword [ebp - 0x2c], 0x4257ec
mov edx, dword [0x493654]
inc dword [edx]
lea ecx, [ebp - 0x2c]
push ecx
mov eax, dword [ebp - 0x2c]
call dword [eax + 4]
pop ecx
mov ebx, eax
cmp byte [0x438178], 4
jae 0x4091b4
call fcn.004014ed
push dword [0x43817c]
call sub.KERNEL32.DLL_FreeLibrary
mov eax, ebx
push eax
mov edx, dword [0x493654]
dec dword [edx]
push 0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0040d586
add esp, 8
pop eax
mov edx, dword [ebp - 0x4c]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c77c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor edx, edx
cmp esi, edx
jle 0x40c797
xor byte [eax], cl
inc edx
inc eax
cmp esi, edx
jg 0x40c78f
pop esi
pop ebp
ret
Function at 0x40c79a
Capabilities:
Delete registry key
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
push esi
push edi
push 0
call fcn.00423268
pop ecx
push eax
call fcn.004206a4
pop ecx
push 0x104
lea eax, [ebp - 0x114]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
push 0x426477
lea edx, [ebp - 0x114]
push edx
call fcn.0041aaa4
add esp, 8
push 0x4263f8
lea ecx, [ebp - 0x114]
push ecx
call fcn.0041aaa4
add esp, 8
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.0041d4dc
add esp, 8
test eax, eax
je 0x40c957
push 0x426479
lea edx, [ebp - 0x114]
push edx
call fcn.0041da58
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x40c957
xor edi, edi
lea esi, [ebp - 0x214]
add esi, edi
call fcn.004206bc
mov dword [esi], eax
mov eax, dword [esi]
mov dword [esi + 4], eax
push 4
push 0x1a
add esi, 4
push esi
call fcn.0040c77c
add esp, 0xc
add edi, 8
cmp edi, 0x100
jl 0x40c827
push ebx
push pe_nt_image_headers32
push 1
lea eax, [ebp - 0x214]
push eax
call fcn.0041de64
add esp, 0x10
cmp eax, 0x100
jne 0x40c957
push ebx
call fcn.0041d59c
pop ecx
xor ebx, ebx
xor edi, edi
add ebx, ebx
mov al, byte [ebp + edi - 0x214]
and al, 1
or bl, al
add edi, 8
cmp edi, 0x40
jl 0x40c883
push 0x4263fc
push 0x80000002
call sub.ADVAPI32.dll_RegDeleteKeyA
push 0x426439
push 0x80000002
call sub.ADVAPI32.dll_RegDeleteKeyA
xor edx, edx
mov dword [ebp - 4], edx
xor ecx, ecx
mov dword [ebp - 8], ecx
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x4263fc
push 0x80000002
call sub.ADVAPI32.dll_RegCreateKeyExA
test eax, eax
jne 0x40c90c
xor ecx, ecx
mov cl, bl
and ecx, 0xff
mov dword [ebp - 0xc], ecx
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push 0x426475
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegSetValueExA
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x426439
push 0x80000002
call sub.ADVAPI32.dll_RegCreateKeyExA
test eax, eax
jne 0x40c957
xor eax, eax
mov al, bl
and eax, 0xff
mov dword [ebp - 0x10], eax
push 4
lea edx, [ebp - 0x10]
push edx
push 4
push 0
push 0x426475
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegSetValueExA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret