joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003ae70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1003b020
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1003af3d
mov edx, dword [ebp - 4]
cmp edx, dword [0x1004a194]
jb 0x1003aeba
mov eax, dword [ebp - 4]
cmp eax, dword [0x1004a198]
ja 0x1003aeba
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003ae8a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10025d10
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1003aee0
jmp 0x1003af3d
cmp dword [ebp - 0x14], 0x10000
jne 0x1003af23
cmp dword [ebp - 0x18], 0x10000
jb 0x1003af23
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003af16
mov eax, dword [ebp - 8]
jmp 0x1003af3f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003af38
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1003b020
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003ae8a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003af50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1003b050
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1003b015
mov edx, dword [ebp - 4]
cmp edx, dword [0x1004a194]
jb 0x1003af95
mov eax, dword [ebp - 4]
cmp eax, dword [0x1004a198]
ja 0x1003af95
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003af65
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10025d10
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1003afbb
jmp 0x1003b015
cmp dword [ebp - 0x14], 0x10000
jne 0x1003affe
cmp dword [ebp - 0x18], 0x10000
jb 0x1003affe
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003aff1
mov eax, dword [ebp - 8]
jmp 0x1003b017
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003b010
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1003b050
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003af65
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003c420
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x101acff4], eax
je 0x1003c43e
mov eax, 0x10dd
jmp 0x1003c51f
mov eax, dword [0x101ad004]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1003c4bc
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1003c49a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1003c49a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1003b4d0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.10022061
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1003c446
mov dword [0x101ad004], 0
call fcn.1003bdb0
mov ecx, dword [0x101ad000]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1003c509
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10022061
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1003c4d4
mov dword [0x101ad000], 0
mov dword [0x101acff4], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003ca00
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x101acff8], 0
je 0x1003ca19
mov eax, dword [0x101acff8]
jmp 0x1003cab9
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1003ca2b
xor eax, eax
jmp 0x1003cab9
push 8
call fcn.10024a58
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003ca81
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1003ca6a
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10022061
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x101acff8], eax
mov dword [0x101acffc], 0
mov eax, dword [ebp - 8]
jmp 0x1003cab9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1003ca9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1003ca4b
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x101ad000]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x101ad000], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4014e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.DuiLib.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetInstance_struct_HINSTANCE____]
add esp, 4
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x401609
push 0x3ec
call fcn.004029fa
mov edi, eax
add esp, 4
mov ecx, edi
mov dword [ebp + 8], edi
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::WindowImplBase::constructor_void_]
lea esi, [edi + 0x3c4]
mov dword [edi], vtable.CRichListWnd.4.0
mov ecx, esi
mov dword [edi + 0x10], vtable.CRichListWnd.3.0
mov dword [edi + 0x20], vtable.CRichListWnd.2.0
mov dword [edi + 0x24], vtable.CRichListWnd.1.0
mov dword [edi + 0x28], vtable.CRichListWnd.0
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CNotifyPump::constructor_void_]
lea ebx, [edi + 0x3d8]
mov dword [esi], vtable.CPage1.0
mov ecx, ebx
mov dword [esi + 0x10], 0
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CNotifyPump::constructor_void_]
push esi
sub esp, 0x44
mov dword [ebx], vtable.CPage2.0
lea eax, [edi + 0x2c]
mov dword [ebx + 0x10], 0
mov ecx, esp
mov dword [edi + 0x3d4], eax
mov dword [edi + 0x3e8], eax
mov edi, dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_char_const___int_]
push 0xffffffffffffffff
push str.page1
call edi
mov ecx, dword [ebp + 8]
mov esi, dword [sym.imp.DuiLib.dll_public:_bool___thiscall_DuiLib::CNotifyPump::AddVirtualWnd_class_DuiLib::CDuiString__class_DuiLib::CNotifyPump__]
lea ecx, [ecx + 0x10]
call esi
push ebx
sub esp, 0x44
mov ecx, esp
push 0xffffffffffffffff
push str.page2
call edi
mov ebx, dword [ebp + 8]
lea ecx, [ebx + 0x10]
call esi
push 0
push 0x190
push 0x1f4
push 0
push 0
push 0
push 0x10cf0000
push str.DuiLib_Demo_from_mbstudio.cn___meineson
push 0
mov ecx, ebx
call dword [sym.imp.DuiLib.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____char_const___unsigned_long_int__unsigned_long_int__int__int__int__int__struct_HMENU____]
mov ecx, ebx
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CWindowWnd::CenterWindow_void_]
push 5
mov ecx, ebx
call dword [sym.imp.DuiLib.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.DuiLib.dll_public:_static_int___cdecl_DuiLib::CPaintManagerUI::MessageLoop_void_]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40356e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4035ad
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4035ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4035ad
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4035ad
cmp dword [ecx + 0x74], 0xe
jbe 0x4035ad
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x408fd7
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 0x409074
push ebx
push esi
call fcn.00408fa0
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.00408f34
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x409021
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409073
push edi
push eax
call fcn.00407043
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x409041
call fcn.00407a7c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409072
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00408f34
add esp, 0x20
test eax, eax
jne 0x409060
push edi
call fcn.00407a7c
jmp 0x409068
push ebx
call fcn.00407a7c
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 0x4092e1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411930
push 0x411928
push str.FlsAlloc
push 0x1f
call fcn.004091fd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409315
push dword [ebp + 8]
mov ecx, esi
call dword [0x4104f4]
call esi
jmp 0x40931b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40935f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411940
push 0x411938
push str.FlsGetValue
push 0x21
call fcn.004091fd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409396
push dword [ebp + 8]
mov ecx, esi
call dword [0x4104f4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40939e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411948
push 0x411940
push str.FlsSetValue
push 0x22
call fcn.004091fd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4093d8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4104f4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40ed50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ed7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ed7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xb63791
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00b63810
jae 0xb6379d
xor ecx, ecx
call fcn.00b63810
jae 0xb637c7
xor eax, eax
call fcn.00b63810
jae 0xb637d8
mov al, 0x10
call fcn.00b63810
adc al, al
jae 0xb637b9
jne 0xb63805
stosb byte es:[edi], al
jmp 0xb6379e
call fcn.00b6381c
dec ecx
loop 0xb637e4
mov eax, ebp
call fcn.00b6381a
jmp 0xb63806
lodsb al, byte [esi]
shr eax, 1
je 0xb6382c
adc ecx, 2
mov ebp, eax
jmp 0xb63806
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00b6381a
cmp eax, 0x7d00
jae 0xb63804
cmp eax, 0x500
jae 0xb63805
cmp eax, 0x7f
ja 0xb63806
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb6379e
pop ebp
ret 8
Function at 0x4038e8
Capabilities:
Query or enumerate registry value

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

Function at 0x4047c4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48c048], 0
je 0x404825
cmp word [0x48c21c], 0xd7b2
jne 0x4047ed
cmp dword [0x48c224], 0
jbe 0x4047ed
mov eax, 0x48c218
call dword [0x48c234]
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 0x40484c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48902c], 0
jne 0x404841
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406014
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 0x406244
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406097
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406244
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406097
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406260
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406120
xor eax, eax
push ebp
push 0x406119
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405e50
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 0x4060fe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406280
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4060fe
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 0x406120
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 0x40623a
cmp byte [ebp - 0xd], 0
jne 0x406167
cmp byte [ebp - 0x12], 0
je 0x40623a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406180
dec ebx
cmp byte [ebx], 0x2e
je 0x40618f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40617f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40623a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4061cc
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 0x40623a
cmp byte [ebp - 0xd], 0
je 0x40623a
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 0x40623a
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 0x408870
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4088c2
test eax, edx
je 0x4088c5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408885
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 0x4088ab
add ecx, 4
js 0x40889b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4088a8
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 0x4088d1
test edx, edx
jne 0x408878
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00404dd4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4092da
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4092fb
cmp ebx, 3
je 0x4092fb
cmp ebx, 0x7b
je 0x4092fb
mov eax, esi
call fcn.0040927c
test al, al
jne 0x4092ff
xor eax, eax
jmp 0x409301
mov al, 1
pop esi
pop ebx
ret

Function at 0x40bd88
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 0x40bdc1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404a34
jmp 0x40bdca
mov eax, ebx
mov edx, esi
call fcn.00404998
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c488
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c300
mov eax, dword [0x48af90]
cmp byte [eax], 0
je 0x40c504
mov eax, dword [0x48ad64]
call fcn.00403208
call fcn.00402fbc
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.004094bc
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 0x40c54c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c53a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48ad08]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48e7f4]
call fcn.00405df8
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 0x40cdc4
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 0x40ce9a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004049dc
lea eax, [ebp - 4]
call fcn.00404e2c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404dd4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ce84
mov eax, ebx
call fcn.00402e60
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ce7d
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.00404dd4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ce67
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ceac
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ce67
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 0x40ce84
mov eax, dword [ebp - 0x10]
call fcn.00402e7c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cea1
lea eax, [ebp - 4]
call fcn.00404944
ret

Function at 0x422e98
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4909e8
cmp dword [edi], 0
jne 0x422f14
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4909e4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x489b7c
mov ecx, 2
call fcn.00403050
mov edx, 0x422e70
lea eax, [esi + 5]
call fcn.00422e90
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00422e90
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x422ee9
mov dword [0x4909e4], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4256cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404dd4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x425724
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x48b0d0]
mov dl, 1
mov eax, dword [0x4251d8]
call fcn.0040c648
call fcn.0040438c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004252e0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x426590
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 0x426596
ret