joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004f770
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1007d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x28], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x1004f86a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1004f863
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x1004f849
call ebx
cmp dword [ebp - 0x14], eax
jne 0x1004f849
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1004f849
mov edx, dword [esi]
test edx, edx
jne 0x1004f812
push 0x200
push edx
push dword [0x1014a2ec]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1004f863
jmp 0x1004f83d
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1004f83d
shl eax, 3
push eax
push edx
push 0
push dword [0x1014a2ec]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1004f863
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1004f7d1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x1004f8c2
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x1004f8c2
xor ecx, ecx
mov dword [ebp - 0x24], ecx
nop dword [eax + eax]
mov eax, dword [esi]
push dword [eax + ecx]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1004f8b3
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x28]
mov ecx, edi
call fcn.1004f600
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x24]
inc ebx
add ecx, 4
mov dword [ebp - 0x24], ecx
cmp ebx, dword [esi + 8]
jb 0x1004f880
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10065cf6
mov esp, ebp
pop ebp
ret

Function at 0x1004f8e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x1004f944
push ebx
xor ebx, ebx
cmp dword [edi + 8], ebx
jbe 0x1004f933
xor ecx, ecx
mov dword [ebp - 4], ecx
push esi
nop word [eax + eax]
mov eax, dword [edi]
push dword [eax + ecx]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x1004f923
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
inc ebx
add ecx, 4
mov dword [ebp - 4], ecx
cmp ebx, dword [edi + 8]
jb 0x1004f900
pop esi
push dword [edi]
push 0
push dword [0x1014a2ec]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1004f950
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1007d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x1014b930]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1004f9b1
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10065cf6
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1004f9d2
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x1004f9f3
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1004f9f3
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x1004f9ed
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1004f9f3
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x14], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.10065cf6
mov esp, ebp
pop ebp
ret
Function at 0x10051620
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x1007d040]
xor eax, esp
mov dword [esp + 0x60], eax
push esi
push 0x40
lea eax, [esp + 0x24]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, 0x20
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x2c]
shr eax, 3
mov edx, 0x3f
and eax, 0x3f
mov dword [esp + 0x18], 0xefcdab89
add ecx, eax
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
sub edx, eax
mov dword [esp + 0x28], 0
add esp, 0xc
mov dword [esp + 0x20], esi
mov byte [ecx], 0x80
inc ecx
cmp edx, 8
jae 0x100516c2
push edx
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
call fcn.10050fa0
push 0x38
lea eax, [esp + 0x30]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
jmp 0x100516d1
lea eax, [edx - 8]
push eax
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x58], eax
lea ecx, [esp + 8]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
call fcn.10050fa0
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0xe]
pop esi
xor ecx, esp
call fcn.10065cf6
mov esp, ebp
pop ebp
ret

Function at 0x10055430
Capabilities:
Hash data using fnv

Disassembly:
mov eax, dword [0x1014b65c]
add ecx, 4
push esi
mov esi, dword [eax + 0x34]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov edx, dword [esi]
mov ecx, esi
push eax
mov edx, dword [edx + 0xc]
call edx
pop esi
mov cl, byte [eax]
test cl, cl
je 0x10055489
movsx ecx, cl
xor ecx, 0x811c9dc5
imul edx, ecx, 0x1000193
lea ecx, [eax + 1]
call fcn.10013fa0
cmp eax, 0x7c4a5426
ja 0x1005548c
je 0x100554ca
cmp eax, 0x19acc50e
je 0x100554ca
cmp eax, 0x43d6266e
je 0x100554ca
cmp eax, 0x4d7aa8c1
je 0x100554ca
xor al, al
ret
cmp eax, 0xc941ff64
ja 0x100554b3
je 0x100554ca
cmp eax, 0x9d08c4c8
ja 0x100554ac
je 0x100554ca
cmp eax, 0x7f11af2d
je 0x100554ca
cmp eax, 0x84ea2fe5
jmp 0x10055487
cmp eax, 0xa7eab73f
jmp 0x10055487
cmp eax, 0xe80bc214
ja 0x100554cd
je 0x100554ca
cmp eax, 0xd614ea2e
je 0x100554ca
cmp eax, 0xe1525a25
jne 0x10055489
mov al, 1
ret
cmp eax, 0xf8573d98
sete al
ret

Function at 0x100554e0
Capabilities:
Hash data using fnv

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 8]
call eax
cmp dword [eax + 0x14], 0xb5
je 0x10055565
mov eax, dword [0x1014b65c]
lea ecx, [edi + 4]
push esi
mov esi, dword [eax + 0x34]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov edx, dword [esi]
mov ecx, esi
push eax
mov edx, dword [edx + 0xc]
call edx
pop esi
mov cl, byte [eax]
test cl, cl
je 0x10055550
movsx ecx, cl
xor ecx, 0x811c9dc5
imul edx, ecx, 0x1000193
lea ecx, [eax + 1]
call fcn.10013fa0
cmp eax, 0x5978b32e
ja 0x10055554
je 0x10055565
cmp eax, 0x1b20e275
je 0x10055565
cmp eax, 0x3cb8abb3
je 0x10055565
cmp eax, 0x4c849f3c
je 0x10055565
xor al, al
pop edi
ret
cmp eax, 0x97113ea7
je 0x10055565
cmp eax, 0xa8d619ea
pop edi
sete al
ret
mov al, 1
pop edi
ret
Function at 0x10064510
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [ebp + 0xc], 1
jne 0x10064543
push 0
push 0
push dword [ebp + 8]
push 0x100644a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10064543
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc
Function at 0x401022
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4a0bf4]
je 0x40103d
inc edi
cmp edi, 0x17
jb 0x40102e
cmp edi, 0x17
jae 0x4011bd
push ebp
push 3
call fcn.0041298e
cmp eax, 1
pop ecx
je 0x401189
push 3
call fcn.0041298e
test eax, eax
pop ecx
jne 0x401071
cmp dword [0x4a0bcc], 1
je 0x401189
cmp ebx, 0xfc
je 0x4011bc
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x49aebc
push ebp
call fcn.0041410f
add esp, 0xc
test eax, eax
je 0x4010a7
push esi
push esi
push esi
push esi
push esi
call fcn.00411175
add esp, 0x14
push 0x104
mov esi, 0x49aed5
push esi
push 0
mov byte [0x49afd9], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4010eb
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041410f
add esp, 0xc
test eax, eax
je 0x4010eb
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00411175
add esp, 0x14
push esi
call fcn.00418070
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x401130
push esi
call fcn.00418070
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x49b1d0
push 0x427a64
sub ecx, eax
push ecx
push eax
call fcn.00416c36
add esp, 0x14
test eax, eax
je 0x401130
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00411175
add esp, 0x14
jmp 0x401132
xor esi, esi
push 0x427a60
push ebx
push ebp
call fcn.00406f92
add esp, 0xc
test eax, eax
je 0x401152
push esi
push esi
push esi
push esi
push esi
call fcn.00411175
add esp, 0x14
push dword [edi*8 + 0x4a0bf8]
push ebx
push ebp
call fcn.00406f92
add esp, 0xc
test eax, eax
je 0x401174
push esi
push esi
push esi
push esi
push esi
call fcn.00411175
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00402c31
add esp, 0xc
jmp 0x4011bc
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4011bc
cmp ebp, 0xffffffff
je 0x4011bc
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4a0bf8]
push dword [esi]
call fcn.00418070
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.kernel32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x402c31
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00414f05
xor ebx, ebx
cmp dword [0x49b1d4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x402d07
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x402de7
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x427af4
push edi
call esi
cmp eax, ebx
je 0x402de7
push eax
call fcn.00414e97
mov dword [esp], 0x427ae4
push edi
mov dword [0x49b1d4], eax
call esi
push eax
call fcn.00414e97
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x49b1d8], eax
call esi
push eax
call fcn.00414e97
mov dword [0x49b1dc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00412fa5
test eax, eax
pop ecx
pop ecx
je 0x402cd5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00411175
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x402d07
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00414e97
cmp eax, ebx
pop ecx
mov dword [0x49b1e4], eax
je 0x402d07
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00414e97
pop ecx
mov dword [0x49b1e0], eax
mov eax, dword [0x49b1e0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x402d8c
cmp dword [0x49b1e4], ecx
je 0x402d8c
push eax
call fcn.00414f0e
push dword [0x49b1e4]
mov esi, eax
call fcn.00414f0e
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x402d8c
cmp edi, ebx
je 0x402d8c
call esi
cmp eax, ebx
je 0x402d59
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x402d59
test byte [ebp - 0x18], 1
jne 0x402d8c
lea eax, [ebp - 0x10]
push eax
call fcn.00412fdc
test eax, eax
pop ecx
je 0x402d74
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00411175
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x402d83
or dword [ebp + 0x10], 0x200000
jmp 0x402dc7
or dword [ebp + 0x10], 0x40000
jmp 0x402dc7
mov eax, dword [0x49b1d8]
cmp eax, dword [ebp - 8]
je 0x402dc7
push eax
call fcn.00414f0e
cmp eax, ebx
pop ecx
je 0x402dc7
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x402dc7
mov eax, dword [0x49b1dc]
cmp eax, dword [ebp - 8]
je 0x402dc7
push eax
call fcn.00414f0e
cmp eax, ebx
pop ecx
je 0x402dc7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49b1d4]
call fcn.00414f0e
cmp eax, ebx
pop ecx
je 0x402de7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x402de9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4141af
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a0bd0]
jne 0x4141b9
repz ret
jmp fcn.004177d1
Function at 0x41ae97
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push dword [0x4a2658]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x4a2228], esi
mov esi, dword [ebp + 0x30]
mov edx, dword [ebp + 4]
mov ecx, eax
add esp, 0x14
jmp 0x41acd2
Function at 0x484010
Capabilities:
Get hostname

Disassembly:
sub esp, 0x414
mov eax, dword [0x48b004]
xor eax, esp
mov dword [esp + 0x410], eax
push ebp
mov ebp, dword [esp + 0x41c]
push edi
cmp ebx, 0x182
jne 0x48404f
push 0
push 0
push 0
push str.hoxozezefazuxerude
push str.tajij
push 0
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
jmp 0x484079
cmp ebx, 0x19f
jne 0x484079
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
xor edi, edi
test ebx, ebx
jle 0x4840f3
push esi
lea esi, [esp + 0x14]
mov dword [esp + 0x10], 5
mov dword [esp + 0x14], 0
call fcn.00484000
mov eax, dword [esp + 0x14]
add eax, 0x46
mov dword [esp + 0x10], eax
sub dword [esp + 0x10], 0x46
movsx eax, byte [edi + ebp]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
xor dword [esp + 0xc], eax
mov cl, byte [esp + 0xc]
mov byte [edi + ebp], cl
cmp ebx, 0xf
jne 0x4840ed
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
inc edi
cmp edi, ebx
jl 0x484080
pop esi
pop edi
pop ebp
cmp ebx, 0x2d
jne 0x48410e
mov dword [0x2b8b218], 0xa62e7790
mov dword [0x2b8b21c], 0xffffffff
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00401006
add esp, 0x414
ret
Function at 0x402a00
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402a3d
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402a5d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004046a4
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402c24
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.00404434
test esi, esi
jne 0x402c5a
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.00404524
jmp 0x402c78
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402ad8
mov edi, eax
test esi, esi
je 0x402c78
cmp dword [ebx], 0
je 0x402c78
dec esi
jmp 0x402c61
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403470
Capabilities:
Query or enumerate registry value

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

Function at 0x404214
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5af04c], 0
je 0x404275
cmp word [0x5af220], 0xd7b2
jne 0x40423d
cmp dword [0x5af228], 0
jbe 0x40423d
mov eax, 0x5af21c
call dword [0x5af238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x5a6070
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 0x40429c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5a6034], 0
jne 0x404291
push 0
push 0x6b6953
push 0x5a6070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4043e8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027ec
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x5af04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4043b0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405ae8
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 0x405d18
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b6b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d18
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b6b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d34
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405bf4
xor eax, eax
push ebp
push 0x405bed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405930
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 0x405bd2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405d54
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405bd2
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 0x405bf4
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 0x405d0e
cmp byte [ebp - 0xd], 0
jne 0x405c3b
cmp byte [ebp - 0x12], 0
je 0x405d0e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405c54
dec ebx
cmp byte [ebx], 0x2e
je 0x405c63
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405c53
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405d0e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405ca0
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 0x405d0e
cmp byte [ebp - 0xd], 0
je 0x405d0e
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 0x405d0e
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