joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014fc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esi + 0x2c]
push edi
lea esp, [esp]
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea edx, [ecx + ebp - 0x106]
cmp eax, edx
mov dword [esp + 0xc], edi
jb 0x10015050
mov eax, dword [esi + 0x38]
push ebp
lea ecx, [eax + ebp]
push ecx
push eax
call fcn.10022400
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebp
sub dword [esi + 0x6c], ebp
add esp, 0xc
sub dword [esi + 0x5c], ebp
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x1001501f
sub eax, ebp
jmp 0x10015021
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x10015010
mov ecx, dword [esi + 0x40]
mov edx, ebp
lea ecx, [ecx + ebp*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x10015040
sub eax, ebp
jmp 0x10015042
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x10015031
add edi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x10015182
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [esp + 0xc]
mov ebx, eax
cmp ebx, ecx
mov dword [esp + 0x10], edx
jbe 0x10015078
mov ebx, ecx
test ebx, ebx
je 0x100150cc
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x1001509a
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.100163c0
jmp 0x100150b3
cmp eax, 2
jne 0x100150ba
mov ecx, dword [edi]
test ecx, ecx
mov eax, dword [edi + 0x30]
jne 0x100150ac
xor eax, eax
jmp 0x100150b7
mov edx, ebx
call fcn.10014090
mov edx, dword [esp + 0x10]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.10022400
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x100150f6
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x1001510a
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x10014fd0
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x10015182
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x10015151
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x10015131
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.1001f410
add esp, 0xc
add ebx, edi
pop edi
pop ebp
mov dword [esi + 0x16c0], ebx
pop ebx
add esp, 8
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x10015182
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x1001516b
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call fcn.1001f410
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x1001829e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10035400]
jne 0x100182a8
repz ret
jmp fcn.1001b08d

Function at 0x1001d262
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 + 0x10035540]
je 0x1001d27d
inc edi
cmp edi, 0x17
jb 0x1001d26e
cmp edi, 0x17
jae 0x1001d3fd
push ebp
push 3
call fcn.10024426
cmp eax, 1
pop ecx
je 0x1001d3c9
push 3
call fcn.10024426
test eax, eax
pop ecx
jne 0x1001d2b1
cmp dword [0x10050f30], 1
je 0x1001d3c9
cmp ebx, 0xfc
je 0x1001d3fc
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10051410
push ebp
call fcn.1001ac74
add esp, 0xc
test eax, eax
je 0x1001d2e7
push esi
push esi
push esi
push esi
push esi
call fcn.1001bd30
add esp, 0x14
push 0x104
mov esi, 0x10051429
push esi
push 0
mov byte [0x1005152d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1001d32b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1001ac74
add esp, 0xc
test eax, eax
je 0x1001d32b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1001bd30
add esp, 0x14
push esi
call fcn.100209c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1001d370
push esi
call fcn.100209c0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10051724
push 0x1002aa4c
sub ecx, eax
push ecx
push eax
call fcn.10018534
add esp, 0x14
test eax, eax
je 0x1001d370
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1001bd30
add esp, 0x14
jmp 0x1001d372
xor esi, esi
push 0x1002aa48
push ebx
push ebp
call fcn.1001a74e
add esp, 0xc
test eax, eax
je 0x1001d392
push esi
push esi
push esi
push esi
push esi
call fcn.1001bd30
add esp, 0x14
push dword [edi*8 + 0x10035544]
push ebx
push ebp
call fcn.1001a74e
add esp, 0xc
test eax, eax
je 0x1001d3b4
push esi
push esi
push esi
push esi
push esi
call fcn.1001bd30
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10024269
add esp, 0xc
jmp 0x1001d3fc
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1001d3fc
cmp ebp, 0xffffffff
je 0x1001d3fc
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x10035544]
push dword [esi]
call fcn.100209c0
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 0x10024269
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1001d5b2
xor ebx, ebx
cmp dword [0x10051984], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1002433f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1002441f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1002441f
push eax
call fcn.1001d544
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10051984], eax
call esi
push eax
call fcn.1001d544
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10051988], eax
call esi
push eax
call fcn.1001d544
mov dword [0x1005198c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1001d00f
test eax, eax
pop ecx
pop ecx
je 0x1002430d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001bd30
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1002433f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1001d544
cmp eax, ebx
pop ecx
mov dword [0x10051994], eax
je 0x1002433f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1001d544
pop ecx
mov dword [0x10051990], eax
mov eax, dword [0x10051990]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x100243c4
cmp dword [0x10051994], ecx
je 0x100243c4
push eax
call fcn.1001d5bb
push dword [0x10051994]
mov esi, eax
call fcn.1001d5bb
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x100243c4
cmp edi, ebx
je 0x100243c4
call esi
cmp eax, ebx
je 0x10024391
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10024391
test byte [ebp - 0x18], 1
jne 0x100243c4
lea eax, [ebp - 0x10]
push eax
call fcn.1001d046
test eax, eax
pop ecx
je 0x100243ac
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001bd30
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x100243bb
or dword [ebp + 0x10], 0x200000
jmp 0x100243ff
or dword [ebp + 0x10], 0x40000
jmp 0x100243ff
mov eax, dword [0x10051988]
cmp eax, dword [ebp - 8]
je 0x100243ff
push eax
call fcn.1001d5bb
cmp eax, ebx
pop ecx
je 0x100243ff
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100243ff
mov eax, dword [0x1005198c]
cmp eax, dword [ebp - 8]
je 0x100243ff
push eax
call fcn.1001d5bb
cmp eax, ebx
pop ecx
je 0x100243ff
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10051984]
call fcn.1001d5bb
cmp eax, ebx
pop ecx
je 0x1002441f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10024421
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x2a33e632
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x2a33e641
pop dword [ebp - 0x30]
mov eax, 0x8f8987be
add eax, 0x9aaa5e83
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x29b7fac9
sub dword [ebp - 0x40], 0xdb65b57e
mov dword [ebp - 0x3c], 0x4c5aa1af
add dword [ebp - 0x3c], 0xe5d8aa96
mov dword [ebp - 0x38], 0x60bd5bd8
add dword [ebp - 0x38], 0xeb8ee856
mov dword [ebp - 0x34], 0x51201d82
add dword [ebp - 0x34], 0xaedfe27e
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x65dfc5b1
sub dword [ebp - 0x40], 0xf16d5c5b
mov dword [ebp - 0x3c], 0x2859070a
add dword [ebp - 0x3c], 0x19135a6b
mov dword [ebp - 0x38], 0x7d645331
add dword [ebp - 0x38], 0xe60b193b
mov dword [ebp - 0x34], 0x82d12581
sub dword [ebp - 0x34], 0x82d12581
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x6b1c03ce
sub eax, 0x40e68342
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x4eb30
push 0
call eax
mov ecx, 0x5898
mov ebx, eax
mov edi, 0xd003a615
sub edi, 0xa5cbb015
add edi, dword [ebp - 0x30]
mov edx, 0x3724ef1e
add dword [ebp - 0x20], 0xa9cfbb20
mov esi, dword [edi]
add dword [ebp - 0x14], 0x200e4812
add esi, edx
xor dword [ebp - 0x20], ebx
mov dword [ebx], esi
add ebx, 4
add edi, 0x470874f1
add edi, 0xb8f78b13
loop 0x2a33e752
add eax, 0x15533
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x49db9997
add ecx, 0xe0546669
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x402d04
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 0x402d41
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 0x402d61
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404f14
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402ec8
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.00404cac
test esi, esi
jne 0x402efe
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.00404d9c
jmp 0x402f1c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402ddc
mov edi, eax
test esi, esi
je 0x402f1c
cmp dword [ebx], 0
je 0x402f1c
dec esi
jmp 0x402f05
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403cf0
Capabilities:
Query or enumerate registry value

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

Function at 0x404a8c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x69904c], 0
je 0x404aed
cmp word [0x699220], 0xd7b2
jne 0x404ab5
cmp dword [0x699228], 0
jbe 0x404ab5
mov eax, 0x69921c
call dword [0x699238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x691060
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 0x404b14
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x691020], 0
jne 0x404b09
push 0
push 0x691080
push 0x691060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404c60
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.00402a88
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x69904d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404c28
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406a78
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 0x406ca8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406afb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406ca8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406afb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406cc4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406b84
xor eax, eax
push ebp
push 0x406b7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004068c0
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 0x406b62
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406ce4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406b62
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 0x406b84
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 0x406c9e
cmp byte [ebp - 0xd], 0
jne 0x406bcb
cmp byte [ebp - 0x12], 0
je 0x406c9e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406be4
dec ebx
cmp byte [ebx], 0x2e
je 0x406bf3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406be3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406c9e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406c30
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 0x406c9e
cmp byte [ebp - 0xd], 0
je 0x406c9e
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 0x406c9e
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 0x40b3b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405178
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40b3c9
test al, 0x10
jne 0x40b3cd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40e57c
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 0x40e5b5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404d9c
jmp 0x40e5be
mov eax, ebx
mov edx, esi
call fcn.00404d00
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e5c8
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 0x40e5e9
mov al, byte [esp]
jmp 0x40e5eb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40fb64
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40fbc8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404f14
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040afc8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fbcf
lea eax, [ebp - 0xc]
call fcn.00404cac
ret

Function at 0x429b84
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00429a08
dec esi
jne 0x429ba6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x42acd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x69bca0
cmp dword [edi], 0
jne 0x42ad4c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x69bc9c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x691d7c
mov ecx, 2
call fcn.00402d9c
mov edx, 0x42aca8
lea eax, [esi + 5]
call fcn.0042acc8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042acc8
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 0x42ad21
mov dword [0x69bc9c], 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 0x42d7f4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42d95d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404d44
mov eax, dword [ebp - 0x10]
call fcn.0042d444
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x42d846
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00405218
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0042dec8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42d91b
xor eax, eax
push ebp
push 0x42d914
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0042d5f0
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0042d98c
test al, al
je 0x42d8f2
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404d9c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x42d8f2
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00405178
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x42d8ec
mov eax, dword [ebp - 0x14]
call fcn.00405178
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404e9c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0042d7f4
dec ebx
cmp ebx, 0xffffffff
jne 0x42d8a5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d91b
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0042d5f0
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00405178
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0042d5dc
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d964
lea eax, [ebp - 0x3c]
call fcn.00404cac
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404cd0
ret

Function at 0x42d98c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.0040359c
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x698550]
cmp byte [edx + 0xc], 0
je 0x42d9f0
mov edx, dword [0x69853c]
cmp dword [edx], 2
jne 0x42d9f0
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret