joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10470
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push 0
lea ecx, [ebp - 4]
push ecx
push 0xb
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [ebp - 0xc], eax
push 0x71727931
mov edx, dword [ebp - 4]
push edx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x104eb
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0xb
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x104eb
push 0x71727931
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x10500
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0x240
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0xf003f
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwCreateKey]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jge 0x10587
mov eax, dword [ebp - 0x24]
jmp 0x105b3
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x115e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x1c], 0xc0000001
mov dword [ebp - 0x28], 0
call dword [sym.imp.HAL.dll_KeGetCurrentIrql]
movzx eax, al
test eax, eax
je 0x11609
mov eax, dword [ebp - 0x1c]
jmp 0x11690
push str.Callback_bdProtectExpCallBack
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [ebp - 0x18], 0x18
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0x240
lea edx, [ebp - 0x24]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 1
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExCreateCallback]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x1168d
mov dword [0x124a0], 0
push 0x124a0
push 0x100
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ntoskrnl.exe_ExNotifyCallback]
mov eax, dword [0x124a0]
push eax
push str.g_pfnCheckCameraUser_0x_p_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x11c80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
call fcn.000115e0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x11ca2
cmp dword [0x124a0], 0
jne 0x11cb9
mov eax, dword [0x124a0]
push eax
mov ecx, dword [ebp - 4]
push ecx
push str.GetCameraUserChecker_fail_st_x_g_pfnCheckCameraUser_p_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x408ae3
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
add al, 0x8d
sbb eax, 0x50016af4
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_WSASend]
clc
push dword [ebp + 0x2c]
div byte [ebp + 0x5fc0d83d]
add bh, bh
xlatb
test eax, eax
jne 0x408b15
pop eax
push es
pop edi
lea ecx, [ebx + 0xc195de5]
xchg ebp, eax
call edi
or byte [esi], al
add byte [eax], al
add byte [eax], al
popal
add eax, 0xa2580
pop esi
shl ebp, cl
pop ebp
ret 0xc

Function at 0x408db0
Capabilities:
Set socket configuration

Disassembly:
adc byte [edx], ch
nop
lodsd eax, dword [esi]
add eax, dword [eax]
xchg edx, eax
push ecx
push ebx
lea edi, [esi + 0x17]
mov dword [0xfd00288c], eax
pop ss
push esi
fisttp dword [ebx + 0x40c1b893]
arpl sp, sp
add al, 0x46
push 0x1058
push 0xffff
push edx
dec ebp
pushal
pop ds
shl edx, cl
inc esi
mov dl, 0x6a
std
push edi
stosd dword es:[edi], eax
add eax, 0xfa000010
imul edi, edi, 0xff508008
ror dword [ebx + 0x148b107d], cl
or al, 0x2b
jle 0x408d9e
mov ecx, ebp
and byte [edi + 0x13], bl
xor esi, edx
xor byte [ebp - 0x5d], bl
or al, 0
test edi, edi
jg 0x408d9d
push 0x55868504
dec esp
mov ecx, dword [esi + 4]
inc ebp
or byte [eax], al
add byte [eax], al
add byte [eax + ebp*8], cl
mov dword [eax - 0x3b7c0001], edx
add al, 0x69
sal byte [ebp + 0x3d], 0x8b
inc esi
add al, 0x8b
cmp eax, sym.imp.WSOCK32.dll_setsockopt
lea edx, [ebp + 0x56]
bound eax, qword [edx + edx*2]
stosb byte es:[edi], al
push es
adc byte [eax], al
add byte [edx], ch
invalid
xchg ebx, eax
pop esi
and byte [ecx - 0x3fcc8f82], cl
pop edi
pop esi
pop ebx
sub eax, 0x2a30cc2
adc byte [eax - 0x1374aa70], 0x51
mov eax, dword [ebp + 0x10]
xor ecx, ecx
test eax, eax
setne cl
xchg edi, eax
dec ebp
cld
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x40
push esi
lcall 0xab00, 0x22175
xor al, 7
add al, byte [eax]
add byte [ebx + 0x420ff983], cl
xchg dword [eax], eax
add eax, dword [eax]
add al, dh
ror byte [edx + 0x9911076], cl
add bh, bh
and al, 0x95
clc
nop
call 0x194818f0
xor edx, edx
mov ecx, dword [esi - 0x1e]
xchg esi, eax
loope 0x408dee
pop es
sbb dword [ebx], esi
ror byte [ebx - 0x1e691db2], cl
test byte [eax - 0x6bfdfd07], 0xc2
into
or eax, 0x4e5e2ff3
cmp cl, 2
add dl, byte [edx + eax*8 + 0x2ff30dce]
pop esi
dec esi
insd dword es:[edi], dx
lea eax, [ebp - 4]
push 0xffffffffffffff8a
push eax
push 8
push 0xffff
push ecx
call dword [0x7c40c1b8]
cmp eax, 0xffffffff
je 0x409065
mov eax, dword [ebp + 0x10]
test eax, eax
mov ebp, dword [0xc0e7438]
lodsd eax, dword [esi]
mov dword [esi + 0x38], eax
xor eax, eax
loope 0x408e59
in eax, 0x5d
invalid
cmp eax, ecx
je 0x408e31
mov eax, dword [esi + 4]
lea edx, [ebp - 4]
push 4
push edx
push 1
push 0xffdd
push eax
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x9340d065
invalid
mov ebx, dword [eax + 0x51]
rol dword [eax], 0xff
salc
test eax, eax
jne 0x409078
pop esi
mov esp, ebp
pop ebp
je 0x409083
add dh, ah
salc
out 0xd6, al
add eax, 0xa4880
pop esi
sbb esp, ebp
pop ebp
insd dword es:[edi], dx
scasb al, byte es:[edi]
add byte [ebx - 0x3f7aefbb], cl
inc esi
cmp byte [edi + ecx - 0x80], dh
int3
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4267d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
jmp 0x4267ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4267f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4267e0
mov eax, 1
add ebx, ebx
jne 0x426803
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4267f8
jne 0x426814
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4267f8
xor ecx, ecx
sub eax, 3
jb 0x426828
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42689a
mov ebp, eax
add ebx, ebx
jne 0x426833
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x426840
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x426864
inc ecx
add ebx, ebx
jne 0x426850
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x426845
jne 0x426861
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x426845
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x426884
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x426875
jmp 0x4267e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x426884
add edi, ecx
jmp 0x4267e6
pop esi
mov edi, esi
mov ecx, 0x692
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4268a2
cmp byte [edi], 0x11
jne 0x4268a2
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 0x4268a7
lea edi, [esi + 0x23000]
mov eax, dword [edi]
or eax, eax
je 0x426916
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x261dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2625c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4268d4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x26264]
or eax, eax
je 0x426910
mov dword [ebx], eax
add ebx, 4
jmp 0x4268f1
call dword [esi + 0x26260]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x426947
cmp al, 0xef
ja 0x42693a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x42691c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x426929
mov ebp, dword [esi + 0x26268]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x42697b
sub esp, 0xffffff80
jmp 0x406275
Function at 0x5f8673
Capabilities:
Encode data using xor

Disassembly:
xchg dword [esi], edi
inc eax
mov ds, word [edi*4 + 0x51d037b0]
adc bh, byte [ecx + 0x54]
aad 0xb1
invalid

Function at 0x6d9b13
Capabilities:
Encode data using xor

Disassembly:
enter 0xfffffffffffff805, 0xffffffffffffffef
or dword [edx - 0x737ae304], 0x82967385
mov ebp, 0xb15e9e62
movsb byte es:[edi], byte [esi]
fsubr dword [esp + esi + 0x22]
test dword [ebp + eax*4 - 0x427d698d], ecx
bound ebx, qword [esi - 0x275b4ea2]
insb byte es:[edi], dx
xor al, 0x22
outsd dx, dword [esi]
out dx, eax
aad 0xe0
xor byte [edi], cl
in eax, 0x2a
sbb eax, 0x28dfc414
push cs
inc ebp
pop edi
sub byte [ebp - 0x7e754918], 0x84
jl 0x6d9a92
mov byte [esi + esi*4], al
shr dword [ebx], cl
ja 0x6d9a9a
sub dword [eax - 0x12f4bed], edx
add ecx, esi
mov ah, 0xd0
inc byte [ebx]
into
sub esp, edx
and ah, al
ret 0x39fb
cmp ebx, edx
pop ss
sbb dh, byte [eax]
jnp 0x6d9ac8
xchg esp, eax
jo 0x6d9acd
or dword [eax + 0x489ff6f2], eax

Function at 0x76f503
Capabilities:
Encode data using xor

Disassembly:
invalid
inc ebx
mov bl, bl
neg byte [ecx - 0x4b103a]
inc edx
inc edi
xchg edx, eax
jg 0x76f4fa
sbb ah, byte [ebp + 0xa]
push ebx
adc byte [ebx + 6], al
mov ebx, 0x2b7356d5
mov word [edi + 0x21], es
loopne 0x76f4ad
xor eax, 0x9dcfe73f
invalid
cmp ebp, dword [edi + 0x35]
pop edx
arpl word [edx], sp
xchg ebx, eax
rcl byte [edi + 0x4c]
dec esp
dec esp
mov bl, 0xf5
jp 0x76f4c7
sbb bl, byte [ebx + 0x3ed789c3]
mov edi, 0x3b4926a9
dec esp
scasd eax, dword es:[edi]
jb 0x76f595
sub esp, 0xffffff9b
xchg ebp, eax
push 0x24
arpl word es:[edi - 0x3a], di
xchg dword [0xf5eeacbf], esi
mov al, byte [esi + 0x4f]
aaa
ljmp 0x5913
aas
add eax, 0x4689b719
scasb al, byte es:[edi]
arpl word [edx], bp
invalid
cmp esi, dword [edi + 0x575b522a]
jno 0x76f5a4
jle 0x76f5cf
wait
jmp 0x76f537
or ebp, eax
cmpsd dword [esi], dword es:[edi]
stosd dword es:[edi], eax
popfd
xlatb
daa
cmp bh, byte [edi + 0x7a8a6c9]
push esi
inc ebx
mov edi, 0x1def1b21
outsb dx, byte [esi]
out dx, al
pop ss
inc esp
out 0xbd, eax
movsd dword es:[edi], dword [esi]
xchg edi, eax
mov ebx, 0xf8368c88
push esp
push ebx
push ds
call 0x23269194
xchg edx, eax
fisub word [ebx + 0x1b]
jbe 0x76f611
inc edx
or dword [eax], eax
sub al, 7
pop ds
push edi
dec ebx
or byte [edx - 0x78], bh
cmp ecx, dword [esi]
imul edx, dword [ecx - 0x4442db3e], 0xffffffac
into
sbb ebx, dword [ebx]
or eax, 0x2e4a7426
test dword [edi], esi
xchg edi, eax
mov ebx, 0x4ef82e0f
imul eax, dword [edi + 0x6b], 0x6884ab69
sbb dword [ecx - 0xd5b7421], 0x2203a4b8
dec ebx
cdq
mov dword [0x87bbc02c], eax
aas
cmp eax, dword [ebx]
daa
pop esi
imul esi, edx, 0x13
push edi
wait
daa
jge 0x76f5db
imul esp, edx, 0xfffffffe
fisttp dword [edi]
push dword [edi - 0x48]
cli
les ebx, [edi - 0x738465e]
xchg edx, eax
fcomp qword [ebx]
inc edi
sbb eax, 0xf3ad0d0b
jmp 0x76f684
dec edx
dec esi
jbe 0x76f6d6
pushfd
mov al, 0xd4
push ebp
fstp xword [eax]
sbb eax, 0x1e4c3986
jl 0x76f70a
push 0xb37beab8
cmpsd dword [esi], dword es:[edi]
mov eax, 0xa3bbbe77
lea esi, [ebx + 0x48]
push 0x5b
jmp 0x76f6a3
invalid
iretd
Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x13535b73
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x8965a89
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4036a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x471020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40373c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40371c
xor eax, eax
push ebp
push 0x403715
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 0x403758
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 0x40371c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x471020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x471020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404550
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47304c], 0
je 0x4045b1
cmp word [0x473220], 0xd7b2
jne 0x404579
cmp dword [0x473228], 0
jbe 0x404579
mov eax, 0x47321c
call dword [0x473238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x4045d8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47102c], 0
jne 0x4045cd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405de0
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406010
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e63
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406010
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e63
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40602c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405eec
xor eax, eax
push ebp
push 0x405ee5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405c1c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405eca
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40604c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405eca
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405eec
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406006
cmp byte [ebp - 0xd], 0
jne 0x405f33
cmp byte [ebp - 0x12], 0
je 0x406006
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405f4c
dec ebx
cmp byte [ebx], 0x2e
je 0x405f5b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405f4b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406006
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405f98
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406006
cmp byte [ebp - 0xd], 0
je 0x406006
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406006
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4085cc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40865c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40865c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40860f
test edx, 3
jne 0x4085fe
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408609
jmp 0x40860f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40860f
cmp dword [ecx - 8], 1
je 0x408619
mov edx, ebx
or edx, 3
call fcn.00404e1c
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40862b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046d0

Function at 0x408668
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4086f8
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4086f8
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4086ab
test edx, 3
jne 0x40869a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4086a5
jmp 0x4086ab
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4086ab
cmp dword [ecx - 8], 1
je 0x4086b5
mov edx, ebx
or edx, 3
call fcn.00404e1c
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4086c7
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046d0

Function at 0x40ba00
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 0x40ba39
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047c0
jmp 0x40ba42
mov eax, ebx
mov edx, esi
call fcn.00404724
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ba4c
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 0x40ba6e
movzx eax, byte [esp]
jmp 0x40ba70
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c100
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bf78
mov eax, dword [0x472c90]
cmp byte [eax], 0
je 0x40c17c
mov eax, dword [0x472a70]
call fcn.00403030
call fcn.00402e08
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.0040914c
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 0x40c1c4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c1b2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x472a14]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4757f8]
call fcn.00405bc4
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 0x40ca58
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cb2e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404768
lea eax, [ebp - 4]
call fcn.00404be4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b94
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cb18
mov eax, ebx
call fcn.00402cac
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cb11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b94
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cafb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cb40
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cafb
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb18
mov eax, dword [ebp - 0x10]
call fcn.00402cc8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb35
lea eax, [ebp - 4]
call fcn.004046d0
ret