joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11e4a
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
xor ebx, ebx
push 0x17f88
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
push 0x20019
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x38], 0x18
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], 0x240
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x11ff6
push esi
push edi
mov edi, 0x5f414d5f
mov esi, 0x200
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 1
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov dword [ebp - 0x18], eax
cmp eax, 0x80000005
je 0x11eda
cmp eax, 0xc0000023
jne 0x11f8b
push edi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ebx, eax
test ebx, ebx
je 0x11f89
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push ebx
push 1
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x11f7b
push edi
push esi
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 8], eax
test eax, eax
je 0x11f7b
push esi
push 0
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
push 0x17f88
push esi
push dword [ebp - 8]
call fcn.00011dae
push 0x12db8
push esi
push dword [ebp - 8]
call fcn.00011dae
push dword [ebx + 0x14]
lea eax, [ebx + 0x18]
push eax
push esi
push dword [ebp - 8]
call fcn.00011df4
push dword [ebp - 8]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
call fcn.00011c38
push edi
push dword [ebp - 8]
mov byte [ebp - 1], al
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push edi
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp byte [ebp - 1], 0
jne 0x11f99
xor ebx, ebx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x18], ebx
jge 0x11eb1
jmp 0x11f9b
xor ebx, ebx
push dword [ebp - 0x14]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp byte [ebp - 1], 0
pop edi
pop esi
je 0x11ff6
mov eax, dword [ebp + 8]
push ebx
push 0x24
push dword [eax + 4]
mov byte [ebp - 1], 0
push dword [eax]
call dword [sym.imp.ntoskrnl.exe_MmMapIoSpace]
cmp eax, ebx
je 0x11ff6
mov edx, dword [eax]
mov ecx, 0x1500c
cmp edx, dword [ecx]
jne 0x11fdb
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 1
jmp 0x11fe9
mov ecx, 0x15008
cmp edx, dword [ecx]
jne 0x11fed
mov ecx, dword [ebp + 0xc]
mov dword [ecx], ebx
mov byte [ebp - 1], 1
push 0x24
push eax
call dword [sym.imp.ntoskrnl.exe_MmUnmapIoSpace]
mov al, byte [ebp - 1]
pop ebx
leave
ret 8

Function at 0x12004
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
call sub.ntoskrnl.exe_RtlImageNtHeader
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
neg eax
sbb eax, eax
and eax, 0x3fffff85
add eax, 0xc000007b
pop ebp
ret 0x14
Function at 0x121d2
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, 0x5a4d
xor eax, eax
cmp word [ecx], dx
jne 0x121f5
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
je 0x121f5
xor eax, eax
pop ebp
ret 4
Function at 0x1a058
Capabilities:
Get system information on windows

Disassembly:
push 0x14c
push 0x131b8
call fcn.00012d10
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x148], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x154], edx
cmp dword [0x1401c], 1
je 0x1a08c
mov eax, 0xc0000001
jmp 0x1a25e
mov eax, dword [0x14018]
test eax, eax
je 0x1a0a1
push edx
push dword [ebp + 0xc]
push ecx
call eax
jmp 0x1a25e
xor eax, eax
cmp dword [ebp + 0xc], 4
je 0x1a0bc
cmp dword [ebp + 0xc], 0x10c
je 0x1a0bc
mov eax, 0xc00000f0
jmp 0x1a25e
test dl, 3
je 0x1a0c6
mov eax, 0xc00000f1
test eax, eax
jl 0x1a25e
lea ebx, [ebp - 0x13c]
mov eax, 0x120
lea ecx, [ebp - 0x14c]
push ecx
push eax
push ebx
push 0xb
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [ebp - 0x144], eax
test eax, eax
jl 0x1a1c3
mov edi, dword [ebx]
mov eax, edi
mul dword [ebp + 0xc]
test edx, edx
ja 0x1a108
cmp eax, 0xffffffff
jbe 0x1a117
mov dword [ebp - 0x144], 0xc0000095
jmp 0x1a1ca
mov esi, edi
imul esi, dword [ebp + 0xc]
mov dword [ebp - 0x150], esi
mov ecx, dword [ebp - 0x154]
test ecx, ecx
je 0x1a1b9
mov eax, dword [ebp - 0x148]
cmp dword [eax], esi
jae 0x1a147
mov dword [ebp - 0x144], 0xc0000023
jmp 0x1a1b9
and dword [ebp - 0x140], 0
test edi, edi
jbe 0x1a1b9
lea edx, [ecx + 8]
lea eax, [ebx + 0x1e]
cmp dword [ebp + 0xc], 4
je 0x1a18c
cmp dword [ebp + 0xc], 0x10c
jne 0x1a19e
mov ecx, dword [eax - 0x12]
mov dword [edx - 8], ecx
mov ecx, dword [eax - 0xe]
mov dword [edx - 4], ecx
mov cx, word [eax]
mov word [edx], cx
lea esi, [eax + 2]
lea edi, [edx + 2]
push 0x40
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x154]
jmp 0x1a198
mov esi, dword [eax - 0x12]
mov edi, dword [ebp - 0x140]
mov dword [ecx + edi*4], esi
mov esi, dword [ebp - 0x150]
inc dword [ebp - 0x140]
add edx, 0x10c
add eax, 0x11c
mov edi, dword [ebp - 0x140]
cmp edi, dword [ebx]
jb 0x1a158
mov eax, dword [ebp - 0x148]
mov dword [eax], esi
jmp 0x1a1ca
cmp eax, 0xc0000004
je 0x1a1e5
lea eax, [ebp - 0x13c]
cmp ebx, eax
je 0x1a1dd
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0x144]
jmp 0x1a25e
lea eax, [ebp - 0x13c]
cmp ebx, eax
je 0x1a1f8
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
and dword [ebp - 4], 0
push 0x4b787541
push dword [ebp - 0x14c]
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithQuotaTag]
mov ebx, eax
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 4], 0xfffffffe
test ebx, ebx
jne 0x1a229
mov eax, 0xc000009a
jmp 0x1a25e
mov eax, dword [ebp - 0x14c]
jmp 0x1a0d9
call fcn.00012d58
ret 0xc
Function at 0x501d80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502360
push 0x501f80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x5033f4], 0xffffffff
mov dword [0x5033f8], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x5033f0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x5033ec]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x5033fc], ecx
call fcn.00501f70
mov eax, dword [0x503128]
test eax, eax
jne 0x501e11
push 0x501f60
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00501f40
push 0x50300c
push 0x503008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x5033e8]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x5033e4]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x503004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x501f1f
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x501e85
cmp al, 0x22
jne 0x501e77
cmp byte [esi], 0x22
jne 0x501e8e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x501e9e
cmp al, 0x20
ja 0x501e9e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x501e8e
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x501ebf
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x501ec4
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x501f04
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x501e8e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x501f1f
Function at 0x401010
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c175
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x38
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov edi, ecx
push 0x411d50
push dword [ebx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0
push 0x11
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00403b30
add esp, 0xc
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x20]
push edx
push edi
push ecx
mov eax, dword [ecx]
call dword [eax + 0xb4]
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x24]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
push 0
push 0
push 0xc
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edi, eax
lea eax, [ebp - 0x48]
push eax
call esi
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
push eax
call esi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 0x24]
movups xmm0, xmmword [ebp - 0x48]
push eax
push edi
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
push ecx
movups xmmword [eax], xmm0
call dword [edx + 0x94]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x38]
push eax
call esi
lea eax, [ebp - 0x48]
push eax
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x401140
Capabilities:
Load windows common language runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x411d5c
call esi
push 0x411d70
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40116e
push 0x800
call eax
push 0x411d8c
call esi
push str.CLRCreateInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 4], 0
test eax, eax
je 0x4011e8
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push 0x411e2c
push 0x411e3c
call eax
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4011e0
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
push 0x411e4c
push str.v4.0.30319
push ecx
call dword [eax + 0xc]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4011e0
mov eax, dword [ecx]
lea edx, [esp + 4]
push edx
push 0x411dfc
push 0x411e1c
push ecx
call dword [eax + 0x24]
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x401207
lea eax, [esp + 4]
push eax
push 0x411dfc
push 0x411e1c
push 0
push 0
push 0
call dword [sym.imp.mscoree.dll_CorBindToRuntimeEx]
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x28]
mov eax, dword [esp + 4]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xc]
push edx
push 0x411e0c
push eax
mov ecx, dword [eax]
call dword [ecx]
mov edx, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
push str._RESOLVER
call fcn.00401010
mov edx, dword [esp + 0x10]
add esp, 4
mov ecx, dword [ebp + 8]
push str._ENTRYPOINT
call fcn.00401010
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401a94
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401ad3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401ad3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401ad3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401ad3
cmp dword [ecx + 0x74], 0xe
jbe 0x401ad3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40bf80
Capabilities:
Parse pe header

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

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f0a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f0a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f098
mov eax, 1
add ebx, ebx
jne 0x40f0bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f0b0
jne 0x40f0cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0b0
xor ecx, ecx
sub eax, 3
jb 0x40f0e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f152
mov ebp, eax
add ebx, ebx
jne 0x40f0eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f0f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f11c
inc ecx
add ebx, ebx
jne 0x40f108
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f0fd
jne 0x40f119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f13c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f12d
jmp 0x40f09e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f13c
add edi, ecx
jmp 0x40f09e
pop esi
mov edi, esi
mov ecx, 0x265
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f15a
cmp byte [edi], 2
jne 0x40f15a
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 eax, ebx
loop 0x40f15f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f1ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f18c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf068]
or eax, eax
je 0x40f1c8
mov dword [ebx], eax
add ebx, 4
jmp 0x40f1a9
call dword [esi + 0xf06c]
popal
jmp 0x40354a
Function at 0x4032f4
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.00405114
test esi, esi
jne 0x40332a
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.00405204
jmp 0x403348
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031f8
mov edi, eax
test esi, esi
je 0x403348
cmp dword [ebx], 0
je 0x403348
dec esi
jmp 0x403331
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40337c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4bf008], 0x8088405
inc edx
mov dword [ebx + 0x4bf008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403ff0
Capabilities:
Query or enumerate registry value

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

Function at 0x404ec0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c404c], 0
je 0x404f21
cmp word [0x4c4220], 0xd7b2
jne 0x404ee9
cmp dword [0x4c4228], 0
jbe 0x404ee9
mov eax, 0x4c421c
call dword [0x4c4238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4bf788
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 0x404f48
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4bf030], 0
jne 0x404f3d
push 0
push 0x4bf780
push 0x4bf788
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405098
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4bf038], 0
je 0x4050be
mov edx, esi
mov eax, ebx
call dword [0x4bf038]
jmp 0x4050cd
mov eax, 8
call fcn.00402efc
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4c404d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405060
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4068a4
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 0x406ad4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406927
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406ad4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406927
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406af0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4069b0
xor eax, eax
push ebp
push 0x4069a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004066e0
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 0x40698e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406b10
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40698e
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 0x4069b0
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 0x406aca
cmp byte [ebp - 0xd], 0
jne 0x4069f7
cmp byte [ebp - 0x12], 0
je 0x406aca
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406a10
dec ebx
cmp byte [ebx], 0x2e
je 0x406a1f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406a0f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406aca
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406a5c
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 0x406aca
cmp byte [ebp - 0xd], 0
je 0x406aca
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 0x406aca
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 0x409404
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x409456
test eax, edx
je 0x409459
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409419
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40943f
add ecx, 4
js 0x40942f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40943c
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x409465
test edx, edx
jne 0x40940c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x409e78
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004055a4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409e91
test al, 0x10
je 0x409e95
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409e9c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004055a4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409eb5
test al, 0x10
jne 0x409eb9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d2fc
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 0x40d335
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405204
jmp 0x40d33e
mov eax, ebx
mov edx, esi
call fcn.00405168
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d348
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 0x40d36a
movzx eax, byte [esp]
jmp 0x40d36c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret