joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442e5c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x475ddc]
cmp byte [eax + 0xc], 0
je 0x442fc9
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x442fc2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x476b9c], 0
jne 0x442eb0
push 0x442fd0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x442fd8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476b9c], eax
cmp dword [0x474bb4], 0
jne 0x442fab
push 0x442fe8
call sub.kernel32.dll_LoadLibraryA
mov dword [0x474bb4], eax
cmp dword [0x474bb4], 0
je 0x442fab
push 0x442ff4
mov eax, dword [0x474bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476ba0], eax
push 0x443004
mov eax, dword [0x474bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476ba4], eax
push 0x443018
mov eax, dword [0x474bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476ba8], eax
push 0x443030
mov eax, dword [0x474bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476bac], eax
push 0x443048
mov eax, dword [0x474bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476bb0], eax
push 0x44305c
mov eax, dword [0x474bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476bb4], eax
push 0x443074
mov eax, dword [0x474bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476bb8], eax
push 0x44308c
mov eax, dword [0x474bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476bbc], eax
push 0x4430a8
mov eax, dword [0x474bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476bc0], eax
push 0x4430b4
mov eax, dword [0x474bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476bc4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442fc9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x446e70
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.00403efc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x446ebf
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040416c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44e5fc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44e64c]
test si, 4
je 0x44e610
or bl, 1
test si, 8
je 0x44e61a
or bl, 4
test si, 1
je 0x44e624
or bl, 8
test si, 2
je 0x44e62e
or bl, 0x10
test si, 0x10
je 0x44e638
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44e647
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44e650
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44e688]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44e669
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44e678
or bl, 4
test esi, 0x20000000
je 0x44e683
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x454d30
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x454d42
add esp, 0xfffffff0
call fcn.0040344c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041aed8
mov eax, dword [0x475858]
mov dword [eax + 4], ebx
mov dword [eax], 0x4550d4
mov eax, dword [0x475868]
mov dword [eax + 4], ebx
mov dword [eax], 0x4550e0
mov eax, ebx
call fcn.004550ec
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411c94]
call fcn.004030f8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411c94]
call fcn.004030f8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411c94]
call fcn.004030f8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411c94]
call fcn.004030f8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411c94]
call fcn.004030f8
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x451508
push eax
push 0
push 0
mov eax, dword [0x475ab4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c954]
call fcn.0041e0c8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c954]
call fcn.0041e0c8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c954]
call fcn.0041e0c8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045550c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4553e8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4553e8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4553e8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x454e7f
call fcn.004034a4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4551cc
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x455377
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x455358
mov dl, 1
mov eax, dword [0x4122f8]
call fcn.004030f8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403efc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x455347
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004431bc
test al, al
je 0x45533a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x455388
lea eax, [ebp - 0x254]
call fcn.00408e80
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45533a
xor eax, eax
push ebp
push 0x455333
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4553c0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45531c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040416c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45531c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040416c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45533a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45523d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416a20
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45537e
lea eax, [ebp - 0x260]
call fcn.00403efc
ret

Function at 0x455cac
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x476be8]
cmp byte [eax + 0xa5], 0
jne 0x455d1d
cmp dword [0x476c00], 0
jne 0x455cde
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x455c68
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x476c00], eax
cmp dword [0x476bfc], 0
jne 0x455cf9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x476bfc], eax
cmp dword [0x476c04], 0
jne 0x455d1d
push esp
push 0
push 0
push 0x455c0c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x476c04], eax
pop edx
ret
Function at 0x455e14
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x455e2b
add esp, 0xfffffff0
call fcn.0040344c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041aed8
mov eax, dword [0x475a8c]
cmp word [eax + 2], 0
jne 0x455e53
mov eax, dword [0x475a8c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457504
mov eax, dword [0x475bc4]
cmp word [eax + 2], 0
jne 0x455e6d
mov eax, dword [0x475bc4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004576fc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411c94]
call fcn.004030f8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411c94]
call fcn.004030f8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41d434]
call fcn.004247e8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x455ff4
mov eax, dword [0x475918]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424bb8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x457c9c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x475918]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c698
test eax, eax
je 0x455f62
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408860
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c6c0
test eax, eax
je 0x455f76
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040416c
mov eax, dword [0x4756f0]
cmp byte [eax], 0
jne 0x455faa
mov eax, ebx
call fcn.0045611c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00457e78
mov eax, ebx
call fcn.0045883c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x455fea
call fcn.004034a4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45639c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x476be8]
cmp dword [eax + 0x30], 0
je 0x456446
cmp dword [ebx + 0x94], 0
jne 0x456440
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45632c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x456440
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x456406
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x456440
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041434c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x456415
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x456fa8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x456fdd
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403fec
jmp 0x456fea
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f50
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x458054
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x458095
mov eax, esi
call fcn.0043e7a4
test al, al
je 0x458095
mov eax, dword [ebx + 0x84]
call fcn.0043e4a0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x458095
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043e4a0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x46657c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x466584
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x466776
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x46678c
mov eax, esi
call fcn.00464408
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00403f50
lea ecx, [ebp - 0x10]
mov edx, 0x4667a0
mov eax, esi
call fcn.00464408
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00403f50
lea ecx, [ebp - 0x14]
mov edx, 0x4667b8
mov eax, esi
call fcn.00464408
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00403f50
lea ecx, [ebp - 0x18]
mov edx, 0x4667d4
mov eax, esi
call fcn.00464408
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00403f50
lea ecx, [ebp - 0x1c]
mov edx, 0x4667f0
mov eax, esi
call fcn.00464408
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00403f50
lea ecx, [ebp - 0x24]
mov edx, 0x466808
mov eax, esi
call fcn.00464408
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00407ef8
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004082d8
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x466820
mov eax, esi
call fcn.00464408
mov eax, dword [ebp - 0x28]
call fcn.0045ded8
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x466830
mov eax, esi
call fcn.00464408
mov eax, dword [ebp - 0x2c]
call fcn.0045ded8
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x466848
mov eax, esi
call fcn.00464408
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004082d8
inc eax
je 0x466719
lea ecx, [ebp - 0x34]
mov edx, 0x466848
mov eax, esi
call fcn.00464408
mov eax, dword [ebp - 0x34]
call fcn.0040829c
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.004097d0
fstp qword [ebp - 0x3c]
wait
call fcn.00409b34
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x466734
lea ecx, [ebp - 0x40]
mov edx, 0x466848
mov eax, esi
call fcn.00464408
mov eax, dword [ebp - 0x40]
call fcn.0045ded8
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x466858
mov eax, esi
call fcn.00464408
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00403f50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46677d
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00403f20
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00403f20
ret
Function at 0x46d508
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x46d562
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0046d4f8
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0045cb44
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0045c744
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d569
lea eax, [ebp - 4]
call fcn.00403efc
ret

Function at 0x4723f8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47246d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
push ebx
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.0040416c
mov eax, dword [ebp - 0x10c]
mov ecx, 1
xor edx, edx
call fcn.0040441c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472474
lea eax, [ebp - 0x10c]
call fcn.00403efc
ret
Function at 0x10011796
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x100117a5
pop dword [ebp - 0x18]
mov eax, 0xaf14ae74
sub eax, 0x9f1396cf
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x5a770
push 0
mov eax, 0xa1f1b248
add eax, 0x6e0e5edc
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x4af8
xor ebx, ebx
add ebx, eax
mov esi, 0x8d8f24a3
add esi, 0x827ae75d
add esi, dword [ebp - 0x18]
mov edi, 0xba7ef61c
sub edi, 0x993282db
mov dword [ebp - 0x14], 0x23fc08a0
mov edx, dword [esi]
sub dword [ebp - 0x10], 0x29b91360
sub edx, edi
xor dword [ebp - 0x14], edi
mov dword [ebx], edx
add dword [ebp - 0xc], eax
add ebx, 4
add esi, 0x124b95b3
add esi, 0xedb46a51
loop 0x10011800
add eax, 0xbf9e7c40
sub eax, 0xbf9d5d8d
mov ebx, eax
add eax, 0xf4b04601
add eax, 0xb4fba04
mov ecx, 0x644950a
add ecx, 0x9bb6af6
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x1004605f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100870c0]
jne 0x10046069
repz ret
jmp fcn.1004ef8a
Function at 0x1004eda7
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 + 0x10087268]
je 0x1004edc2
inc edi
cmp edi, 0x17
jb 0x1004edb3
cmp edi, 0x17
jae 0x1004ef42
push ebp
push 3
call fcn.10055799
cmp eax, 1
pop ecx
je 0x1004ef0e
push 3
call fcn.10055799
test eax, eax
pop ecx
jne 0x1004edf6
cmp dword [0x1008894c], 1
je 0x1004ef0e
cmp ebx, 0xfc
je 0x1004ef41
push 0x1000ae6c
mov ebx, 0x314
push ebx
mov ebp, 0x10088b00
push ebp
call fcn.1004bc25
add esp, 0xc
test eax, eax
je 0x1004ee2c
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
push 0x104
mov esi, 0x10088b19
push esi
push 0
mov byte [0x10088c1d], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1004ee70
push 0x1000ae54
push 0x2fb
push esi
call fcn.1004bc25
add esp, 0xc
test eax, eax
je 0x1004ee70
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1004fb11
add esp, 0x14
push esi
call fcn.10055430
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1004eeb5
push esi
call fcn.10055430
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10088e14
push 0x1000a540
sub ecx, eax
push ecx
push eax
call fcn.10011796
add esp, 0x14
test eax, eax
je 0x1004eeb5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
jmp 0x1004eeb7
xor esi, esi
push 0x1000ae50
push ebx
push ebp
call fcn.1004bbb4
add esp, 0xc
test eax, eax
je 0x1004eed7
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
push dword [edi*8 + 0x1008726c]
push ebx
push ebp
call fcn.1004bbb4
add esp, 0xc
test eax, eax
je 0x1004eef9
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
push 0x12010
push 0x1000ae28
push ebp
call fcn.10011796
add esp, 0xc
jmp 0x1004ef41
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1004ef41
cmp ebp, 0xffffffff
je 0x1004ef41
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1008726c]
push dword [esi]
call fcn.10055430
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 0x1001d810
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d9b44
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov edx, ecx
mov dword [ebp - 0x10], edx
mov dword [edx], 0xffffffff
mov dword [edx + 0x18], 0xf
mov dword [edx + 0x14], 0
mov byte [edx + 4], 0
mov dword [ebp - 4], 0
mov dword [edx + 0x30], 0xf
mov dword [edx + 0x2c], 0
mov byte [edx + 0x1c], 0
mov byte [ebp - 4], 1
lea ecx, [edx + 0x38]
lea eax, [ecx + 0x20]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov byte [eax], 0
mov byte [ebp - 4], 3
mov al, byte [ebp + 8]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 6
mov dword [ecx + 0xc], 0
mov byte [ecx + 0x10], al
mov dword [ecx + 0x14], 0x201
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x18], 0
mov byte [ebp - 4], 4
mov dword [edx + 0x60], 0xffffffff
mov dword [edx + 0x64], connect
mov dword [edx + 0x68], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x10022410
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x10022441
lea esp, [esp]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10022430
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x1002a830
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dae32
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.100b0cc1
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1002a8e4
lea eax, [ebp + 8]
mov dword [ebp + 8], str.bad_locale_name
push eax
lea ecx, [ebp - 0x1c]
call fcn.100b4b38
mov byte [ebp - 4], 7
mov dword [ebp - 0x1c], vtable.std::runtime_error.0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x1c]
push 0x1013bcf0
push eax
call fcn.100bb0eb
push eax
push esi
call fcn.100b0b94
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4