joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d29e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407cfb
mov dword [ebp - 0x14], eax
cmp dword [0x453e38], esi
jne 0x40d391
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d31e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d471
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d471
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d471
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x453e38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x453e3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x453e40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x453e48], eax
test eax, eax
je 0x40d38e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x453e44], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d3b6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d3a9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push 4
pop eax
jmp 0x40d473
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push dword [0x453e38]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d3b0
mov eax, dword [0x453e44]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d429
cmp dword [0x453e48], edi
je 0x40d429
push eax
call ebx
push dword [0x453e48]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d429
test eax, eax
je 0x40d429
call ecx
test eax, eax
je 0x40d41e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d41e
test byte [ebp - 8], 1
jne 0x40d429
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d459
mov eax, dword [0x453e3c]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
call eax
mov esi, eax
test esi, esi
je 0x40d456
mov eax, dword [0x453e40]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x453e38]
call ebx
test eax, eax
je 0x40d471
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d473
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040440e
mov esp, ebp
pop ebp
ret
Function at 0x100064f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x100064ff
pop dword [ebp - 0x40]
mov eax, 0x100064ff
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x9f58de32
add dword [ebp - 0x50], 0xaef96719
mov dword [ebp - 0x4c], 0x1d27f95d
add dword [ebp - 0x4c], 0x150b52e8
mov dword [ebp - 0x48], 0x1e04a29c
sub dword [ebp - 0x48], 0xd1b85e6e
mov dword [ebp - 0x44], 0x6153cb34
sub dword [ebp - 0x44], 0x6153cb34
lea eax, [ebp - 0x50]
push eax
mov eax, 0x7839092b
add eax, 0x97c7f6dd
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xf17c36de
sub dword [ebp - 0x50], 0x7d09cd88
mov dword [ebp - 0x4c], 0xe9982e56
add dword [ebp - 0x4c], 0x57d4331f
mov dword [ebp - 0x48], 0x61ea65d9
add dword [ebp - 0x48], 0x1850693
mov dword [ebp - 0x44], 0xcd721e01
add dword [ebp - 0x44], 0x328de1ff
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xd0b58c09
add eax, 0x3f4b7413
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x38150
push 0
call eax
mov ecx, 0x44e2
xor esi, esi
add esi, eax
mov edx, 0x10044600
add edx, dword [ebp - 0x40]
mov ebx, 0xb1b3e046
sub dword [ebp - 0x28], edi
mov edi, dword [edx]
xor dword [ebp - 0x14], 0xc3dfb5ac
sub edi, ebx
add dword [ebp - 0x14], 0x82c3caf4
mov dword [esi], edi
sub dword [ebp - 0x38], 0x3d63efd3
add esi, 0x346252f7
add esi, 0xcb9dad0d
add edx, 0x25c70c5f
sub edx, 0x25c70c5b
loop 0x1000660c
add eax, 0x1065b
mov ebx, eax
add eax, 5
mov ecx, 0xd996a243
sub ecx, 0xc996a243
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Check mutex on windows
Hide graphical window
Inspect load icon resource

Disassembly:
sub esp, 0x9c
push esi
push edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 0xc]
mov esi, dword [esp + 0xa8]
rep stosd dword es:[edi], eax
mov ecx, 6
lea edi, [esp + 0x8c]
rep stosd dword es:[edi], eax
mov ecx, 0x15
lea edi, [esp + 0x34]
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], 6
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x803
push eax
mov dword [esp + 0x30], str.MainWndClass
mov dword [esp + 0x10], 0x401210
mov dword [esp + 0x1c], esi
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
push 0
jne 0x401093
push str.No_puedo_registrar_la_ventana_principal.
push str.C.G.I._RPCCobros
push 0x3ea
push 1
call dword [sym.imp.Btel.dll__ReportBackTpvEvent_20]
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret 0x10
push esi
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0x20000000
push 0
push str.MainWndClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x403294], eax
push 0
jne 0x4010ef
push str.No_puedo_crear_la_ventana_principal.
push str.C.G.I._RPCCobros
push 0x3ea
push 1
call dword [sym.imp.Btel.dll__ReportBackTpvEvent_20]
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret 0x10
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x403294]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [0x403294]
push 0x65
push esi
mov dword [esp + 0x38], 0x58
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], 0x65
mov dword [esp + 0x44], 2
call dword [sym.imp.USER32.dll_LoadIconA]
mov edi, dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x30]
push eax
push 0
call edi
push str.COBROS_MUTEX
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x401191
lea ecx, [esp + 0x30]
push ecx
push 2
call edi
mov edx, dword [0x403294]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
push esi
push str.No_puedo_abrir_el_MUTEX.
push str.C.G.I._RPCCobros
push 0x3ea
push 1
call dword [sym.imp.Btel.dll__ReportBackTpvEvent_20]
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret 0x10
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.00401230
test eax, eax
jne 0x4011d4
lea eax, [esp + 0x30]
push eax
push 2
call edi
mov ecx, dword [0x403294]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret 0x10
lea edx, [esp + 0x30]
push edx
push 2
call edi
mov eax, dword [0x403294]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, dword [esp + 0x88]
add esp, 0x9c
ret 0x10
Function at 0x401230
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x180
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x36]
mov word [esp + 0x34], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x35
xor eax, eax
lea edi, [esp + 0xb6]
mov word [esp + 0xb4], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xb4]
lea ecx, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x14], ebx
mov dword [0x40329c], ebx
mov dword [0x4032a0], ebx
mov dword [0x403298], ebx
call fcn.00401410
add esp, 8
test eax, eax
je 0x401303
cmp dword [esp + 0xc], ebx
je 0x4013f5
lea edx, [esp + 0x10]
push ebx
push edx
lea eax, [esp + 0x3c]
push 0x80
push eax
push 0xfffffffffffffff5
mov word [esp + 0x48], 3
mov dword [esp + 0x4a], 1
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4013f5
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x180
ret
mov eax, dword [esp + 0xca]
mov esi, 1
and eax, 0xffff
sub eax, 8
je 0x401330
dec eax
je 0x401324
mov dword [0x40329c], ebx
jmp 0x40133e
mov word [esp + 0xca], 2
jmp 0x401338
mov word [esp + 0xca], si
mov dword [0x40329c], esi
lea edx, [esp + 0x34]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0xb8]
push eax
push ecx
call fcn.00401580
add esp, 0xc
test eax, eax
jne 0x401396
lea edx, [esp + 0x10]
push ebx
push edx
lea eax, [esp + 0x3c]
push 0x80
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4013f5
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x180
ret
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.004018f0
add esp, 8
test eax, eax
je 0x401401
lea ecx, [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0x3c]
push 0x80
push edx
push 0xfffffffffffffff5
mov word [esp + 0x48], 3
mov dword [esp + 0x4a], esi
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4013f5
mov eax, dword [esp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4013f5
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x180
ret
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x180
ret
Function at 0x401410
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14c
push ebx
push ebp
push esi
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x1c]
push 0x80
push ecx
push 0xfffffffffffffff6
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
call ebx
test eax, eax
je 0x4014e7
mov esi, dword [esp + 0x164]
mov ebp, dword [sym.imp.MSVCRT.dll_sscanf]
mov eax, dword [esp + 0x14]
and eax, 0xffff
dec eax
je 0x4014b2
dec eax
je 0x401489
dec eax
jne 0x4014bf
mov eax, dword [esp + 0x16]
test eax, eax
jne 0x40152f
jmp 0x4014bf
lea edx, [esi + 0x18]
lea eax, [esi + 0x16]
push edx
lea ecx, [esi + 8]
push eax
lea edx, [esi + 6]
push ecx
lea eax, [esi + 4]
push edx
lea ecx, [esi + 0x5c]
push eax
push ecx
lea edx, [esp + 0x30]
push str._lu_hu__hu__hu_hu_lf_n
push edx
call ebp
add esp, 0x20
jmp 0x4014bf
mov ecx, dword [esp + 0x160]
mov eax, dword [esp + 0x16]
mov dword [ecx], eax
cmp word [esp + 0x14], 3
je 0x401571
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x1c]
push 0x80
push eax
push 0xfffffffffffffff6
call edi
push eax
call ebx
test eax, eax
jne 0x401469
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [esp + 0x94]
push esi
push str.Error__lu_al_leer_registro_de_parametros_del_unnamed_pipe
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x94]
push 0
push edx
push str.C.G.I._RPCCobros
push 0x3ea
push 1
call dword [sym.imp.Btel.dll__ReportBackTpvEvent_20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret
push eax
lea eax, [esp + 0x98]
push str.Codigo_de_error___lu__le
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x94]
push 0
push ecx
push str.C.G.I._RPCCobros
push 0x3ea
push 1
call dword [sym.imp.Btel.dll__ReportBackTpvEvent_20]
mov eax, dword [esp + 0x16]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14c
ret
Function at 0x1000179f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x100017ae
pop dword [ebp - 0x1c]
mov eax, 0x100017ae
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xdf297f6b
add dword [ebp - 0x2c], 0x6f28c5e0
mov dword [ebp - 0x28], 0x1f9d2545
sub dword [ebp - 0x28], 0xed69d900
mov dword [ebp - 0x24], 0x7db6361
sub dword [ebp - 0x24], 0xbb8f1f33
mov dword [ebp - 0x20], 0x6fa03aa9
sub dword [ebp - 0x20], 0x6fa03aa9
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x7b48ce70
add eax, 0x94b781d4
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x56e0b452
add dword [ebp - 0x2c], 0x1d91b504
mov dword [ebp - 0x28], 0x6e66e25b
add dword [ebp - 0x28], 0xd3057f1a
mov dword [ebp - 0x24], 0xcb6e7e21
add dword [ebp - 0x24], 0x9800ee4b
mov dword [ebp - 0x20], 0x622c8077
sub dword [ebp - 0x20], 0x622c8077
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x19b5c0e
add eax, 0xe64f442
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3a4d1
push 0
call eax
mov ecx, 0x470dacb
add ecx, 0xfb8f7b0a
mov edx, eax
mov edi, 0xa9f3b705
add edi, 0x660ce0fb
add edi, dword [ebp - 0x1c]
mov esi, 0xf55ed4e3
sub esi, 0xaa11a134
sub dword [ebp - 0xc], esi
mov ebx, dword [edi]
sub dword [ebp - 0xc], edx
xor ebx, esi
sub dword [ebp - 0x18], 0x850bb66f
mov dword [edx], ebx
add dword [ebp - 0x14], ebx
add edx, 4
add edi, 4
loop 0x100018cb
add eax, 0x2dc2eb72
add eax, 0xd23e5eb5
mov ebx, eax
add eax, 0xd80005d7
add eax, 0x27fffa2e
mov ecx, 0xf8a4c4ba
add ecx, 0x175b3b46
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x4029e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402a80
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402a60
xor eax, eax
push ebp
push 0x402a59
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 0x402a9c
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 0x402a60
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x404284
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 0xf003f
push 0
push 0x404420
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404334
xor eax, eax
push ebp
push 0x40432d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
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 0x404316
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404440
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404334
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
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 0x404415
cmp byte [ebp - 0xd], 0
jne 0x404376
cmp byte [ebp - 0x12], 0
je 0x404415
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40438f
dec ebx
cmp byte [ebx], 0x2e
je 0x40439e
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40438e
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404415
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4043cb
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404415
cmp byte [ebp - 0xd], 0
je 0x404415
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404415
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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 0x407148
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 0x407181
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004036ac
jmp 0x40718a
mov eax, ebx
mov edx, esi
call fcn.00403660
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407194
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 0x4071b5
mov al, byte [esp]
jmp 0x4071b7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4105c4
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 0x4105ca
ret

Function at 0x418694
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x114], 0
je 0x4186b0
cmp dword [esi + 4], 0
je 0x4186d7
mov eax, ebx
call fcn.004178c8
test eax, eax
jne 0x4186c9
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4187e7
mov edx, esi
mov eax, ebx
call fcn.00418338
jmp 0x4187e7
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4187e0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00419c94
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004167d0
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00418694
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00419c94
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4187e7
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b77c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004035c8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x41b7dd
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x41b7dd
cmp byte [ebp - 0x102], 0
je 0x41b7dd
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004037f4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41cb6c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x28], 0
je 0x41cbed
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41cb9e
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41cbb0
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x41cbbc
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.0041c9f8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41cbe1
push ebp
mov eax, dword [ebp - 4]
call fcn.0041cadc
pop ecx
mov ebx, eax
cmp bl, 2
je 0x41cbbc
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41e9e4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4326d8
cmp dword [edi], 0
jne 0x41ea60
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4326d4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4316f4
mov ecx, 2
call fcn.004026d0
mov edx, 0x41e9bc
lea eax, [esi + 5]
call fcn.0041e9dc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041e9dc
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 0x41ea35
mov dword [0x4326d4], 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 0x41eb84
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41ebd4]
test si, 4
je 0x41eb98
or bl, 1
test si, 8
je 0x41eba2
or bl, 4
test si, 1
je 0x41ebac
or bl, 8
test si, 2
je 0x41ebb6
or bl, 0x10
test si, 0x10
je 0x41ebc0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41ebcf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret