joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59c420
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x5d5346
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x63d0b0]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xac], ebx
call fcn.005c1710
cmp dword [0x6728bc], ebx
je 0x59c490
lea ecx, [esp + 8]
mov dword [esp + 0xa8], 0xffffffff
call fcn.005bf27b
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
add esp, 0xa4
ret
mov edx, dword [0x63d0b0]
push ebp
push edi
mov edi, 1
mov dword [0x6728bc], edi
mov dword [esp + 0x40], edx
cmp esi, ebx
mov byte [esp + 0xb0], 1
jne 0x59c4b9
mov dword [esp + 0x20], ebx
jmp 0x59c4c0
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, esi
call fcn.005c39c7
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], 5
mov dword [esp + 0x34], edx
call fcn.005bf3b4
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x1c], edx
jne 0x59c51e
mov dword [esp + 0x14], ebx
jmp 0x59c525
mov ebp, dword [eax + 0x1c]
mov dword [esp + 0x14], ebp
cmp ecx, 0xd
jne 0x59c53f
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x59c539
cmp eax, 2
jne 0x59c53f
mov dword [esp + 0x18], edi
jmp 0x59c543
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x59c551
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.005c0d46
mov edi, eax
cmp edi, ebx
jne 0x59c561
xor eax, eax
jmp 0x59c564
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x59c58c
mov ecx, esi
call fcn.005c39c7
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
je 0x59c5a4
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
mov dword [0x6728bc], 0
test eax, eax
je 0x59c5cd
mov esi, dword [esp + 0x14]
push esi
call ebx
test eax, eax
je 0x59c5cd
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 0
call fcn.005bf27b
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.005bf27b
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x59e4d0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5d5538
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.005c61b8
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.0059e410
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.005c60e6
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x59e597
cmp dword [esp + 0x40], 1
jne 0x59e595
cmp ecx, eax
jge 0x59e597
mov eax, ecx
cmp eax, 0x12c
jge 0x59e5a3
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.0059e5f0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.005c622a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x5a2890
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x5d5a26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x63d0b0]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.005c1710
mov edx, dword [0x63d0b0]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x5a28ea
mov dword [esp + 0x1c], ebx
jmp 0x5a28f1
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.005c39c7
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.005bf3b4
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x5a2942
mov dword [esp + 0x14], ebx
jmp 0x5a2949
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x5a2964
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x5a295e
cmp eax, 2
jne 0x5a2964
mov dword [esp + 0x18], edi
jmp 0x5a2968
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x5a2976
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.005c0d46
mov edi, eax
cmp edi, ebx
jne 0x5a2986
xor eax, eax
jmp 0x5a2989
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x5a29b1
mov ecx, esi
call fcn.005c39c7
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x5a29cd
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5a29ec
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x5a29ec
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.005bf27b
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.005bf27b
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x5c1710
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5c1748
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005bf722
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005bf6fa
jmp 0x5c1754
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5c3093
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5c30d5
call fcn.005c9967
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5c30d5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5c30cc
xor eax, eax
jmp 0x5c30dd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005c30e3
pop edi
pop esi
pop ebx
ret 4

Function at 0x5c9e97
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5c9ec5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5c9ee3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005c9dfd
jmp 0x5c9ee3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5c9ee3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005c9dfd
test edi, edi
mov eax, edi
jne 0x5c9ecd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5ccbf2
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x5ccc1a
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x5ccc2b
push 2
call edi
test ax, ax
jge 0x5ccc2b
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.005c0d46
cmp dword [esi + 0x30], ebx
jne 0x5ccd05
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.005c0d46
cmp eax, dword [esp + 0x34]
jne 0x5ccd05
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x5ccca1
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x5ccce6
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x5ccd05
cmp eax, 0x205
je 0x5ccd05
cmp eax, 0x201
je 0x5ccd05
cmp eax, 0x204
je 0x5ccd05
cmp eax, ebx
jne 0x5ccccc
cmp dword [esp + 0x1c], 0x1b
je 0x5ccd05
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x683bc8]
jbe 0x5cccfb
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x5ccc5e
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x100197d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0xd
push 0x400
mov dword [0x100a7e4], 0x1005f83
mov dword [0x100a7ec], 0xc
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp word [ebp - 4], 0x31
jne 0x10019d1
mov eax, 0x3e8
mov dword [0x100a7d0], eax
mov dword [0x100a7d8], eax
mov dword [0x100a7b0], 0xa006
mov eax, 0x2ee
jmp 0x10019ef
mov eax, 0x9c4
mov dword [0x100a7d0], eax
mov dword [0x100a7d8], eax
mov dword [0x100a7b0], 0xa00a
mov eax, 0x7d0
mov dword [0x100a7cc], eax
mov dword [0x100a7d4], eax
leave
ret

Function at 0x1001d93
Capabilities:
Open clipboard

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push ebx
push esi
push edi
push dword [0x1009810]
call dword [sym.imp.USER32.dll_GetMenu]
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xb0
push dword [0x1009818]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0xc]
mov esi, dword [sym.imp.USER32.dll_GetSubMenu]
xor eax, eax
cmp ecx, dword [ebp - 0x10]
sete al
push eax
push 0x300
push 1
push ebx
mov dword [ebp - 4], eax
call esi
mov edi, dword [sym.imp.USER32.dll_EnableMenuItem]
push eax
call edi
push dword [ebp - 4]
push 0x301
push 1
push ebx
call esi
push eax
call edi
push dword [ebp - 4]
push 0x303
push 1
push ebx
call esi
push eax
call edi
push 0
push 0x19
push 1
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 1
jne 0x1001e36
cmp dword [ebp - 4], eax
jne 0x1001e36
push 0
push 0x19
push eax
push ebx
call esi
push eax
call edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1001e54
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
cmp dword [ebp - 8], eax
sete al
push eax
push 0x302
push 1
push ebx
call esi
push eax
call edi
push 0
push 0
push 0xe
push dword [0x1009818]
mov dword [ebp - 4], 1
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x1001e8b
and dword [ebp - 4], 0
push dword [ebp - 4]
push 0x15
push 1
push ebx
call esi
push eax
call edi
push dword [ebp - 4]
push 0x16
push 1
push ebx
call esi
push eax
call edi
xor eax, eax
cmp dword [0x1009830], eax
setne al
push eax
push 0x18
push 1
push ebx
call esi
push eax
call edi
push 0
push 0
push 0xc6
push dword [0x1009818]
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
test eax, eax
sete cl
push ecx
push 0x10
push 1
push ebx
call esi
push eax
call edi
mov eax, dword [0x1009830]
neg eax
sbb eax, eax
and eax, 8
push eax
push 0x20
push 2
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_CheckMenuItem]
push eax
call edi
mov eax, dword [0x1009820]
neg eax
sbb eax, eax
and eax, 8
push eax
push 0x1b
push 3
push ebx
call esi
push eax
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1002956
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x10013e8
push 0x29
mov edi, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], eax
je 0x100298b
push 1
push 1
call eax
push dword [ebp + 0x14]
push edi
call fcn.01001c08
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01004585
test eax, eax
jne 0x10029ac
mov dword [ebp - 0x18], esi
jmp 0x1002a5c
push ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x1001d3c
push esi
mov eax, 0x800b
push eax
push eax
call dword [sym.imp.USER32.dll_SetWinEventHook]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
mov ebx, eax
jmp 0x1002a32
cmp dword [ebp - 0x1c], 0x50
jne 0x10029ec
push esi
push esi
push 0x8001
push dword [0x1009810]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [0x100981c]
cmp eax, esi
je 0x1002a04
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x1002a32
lea eax, [ebp - 0x20]
push eax
push dword [0x100a9d8]
push dword [0x1009810]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x1002a32
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
lea eax, [ebp - 0x20]
push esi
push eax
call edi
test eax, eax
jne 0x10029d3
call fcn.01001949
push dword [0x100ae8c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp ebx, esi
je 0x1002a5b
push ebx
call dword [sym.imp.USER32.dll_UnhookWinEvent]
pop ebx
cmp dword [ebp - 4], esi
je 0x1002a67
push esi
push 1
call dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
leave
ret 0x10
Function at 0x1002a75
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c8
mov eax, dword [0x10095ec]
and word [ebp - 0x104], 0
push esi
mov esi, dword [ebp + 8]
push edi
push 0x3f
mov dword [ebp - 4], eax
pop ecx
push dword [0x1009028]
xor eax, eax
lea edi, [ebp - 0x102]
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1002ace
push dword [0x1009028]
lea eax, [ebp - 0x370]
push 0x136
push eax
call fcn.01002429
jmp 0x1002b34
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x7c8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1002b0c
lea eax, [ebp - 0x79c]
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x578]
push eax
call fcn.01002429
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1002b1f
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x578]
push eax
call fcn.01002429
push esi
lea eax, [ebp - 0x370]
push eax
lea eax, [ebp - 0x578]
push eax
call dword [sym.imp.comdlg32.dll_GetFileTitleW]
push 1
push 1
push dword [0x10090b0]
lea eax, [ebp - 0x104]
push 0x7f
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
mov eax, dword [0x1009814]
add esp, 0x14
test eax, eax
pop edi
pop esi
je 0x1002b70
lea ecx, [ebp - 0x104]
push ecx
push 1
push 0x40b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [0x100902c]
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x370]
push eax
push dword [0x1009810]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
call fcn.01007167
leave
ret 4

Function at 0x10039ad
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 4
je 0x10039f1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10039f1
cmp dword [ebp - 4], 4
je 0x10039f6
mov eax, dword [ebp + 0x10]
jmp 0x10039f9
mov eax, dword [ebp - 8]
leave
ret 0xc

Function at 0x1003a02
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x18]
add esi, esi
cmp dword [ebp + 8], 0
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp + 0x18], esi
je 0x1003a3b
lea eax, [ebp + 0x18]
push eax
push edi
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003a3b
cmp dword [ebp + 8], 1
je 0x1003a4e
mov ecx, esi
mov esi, dword [ebp + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x1004b85
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jbe 0x1004baf
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
movzx dx, byte [eax + 1]
xor ebx, ebx
mov bh, byte [eax]
xor edx, ebx
mov word [ecx], dx
inc ecx
inc ecx
inc eax
inc eax
dec esi
jne 0x1004b99
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x1004bb9
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
jne 0x1004bd1
xor eax, eax
inc eax
jmp 0x1004c5f
cmp dword [ebp + 0xc], 0xfde9
mov dword [ebp - 4], ebx
je 0x1004be3
lea eax, [ebp - 0xc]
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push dword [ebp - 4]
push ebx
push ebx
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
mov edi, eax
cmp edi, ebx
je 0x1004c20
lea eax, [edi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x1004c24
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1004c5d
push dword [ebp - 4]
push ebx
push edi
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
mov esi, eax
cmp esi, ebx
je 0x1004c52
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x1007167
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10095ec]
jne 0x1007178
test ecx, 0xffff0000
jne 0x1007178
ret
jmp fcn.01007182

Function at 0x1007267
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x100186c
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10072bf
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x10018a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10072b2
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10072c1
xor eax, eax
pop esi
leave
ret 4
Function at 0x10073a5
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10018b0
call fcn.01007594
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x1000000], 0x5a4d
jne 0x10073f8
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x10073f8
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1007410
cmp ecx, 0x20b
je 0x10073fd
mov dword [ebp - 0x1c], ebx
jmp 0x1007424
cmp dword [eax + 0x84], 0xe
jbe 0x10073f8
xor ecx, ecx
cmp dword [eax + 0xf8], ebx
jmp 0x100741e
cmp dword [eax + 0x74], 0xe
jbe 0x10073f8
xor ecx, ecx
cmp dword [eax + 0xe8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x100ae9c], edi
mov dword [0x100aea0], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1009db8]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1009db4]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100aea4], eax
call fcn.01007620
cmp dword [0x10095f0], ebx
jne 0x1007481
push fcn.01007620
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01007609
push 0x1001354
push 0x1001350
call sub.msvcrt.dll__initterm
mov eax, dword [0x1009db0]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1009dac]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x100134c
push 0x1001344
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x100750c
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x10074ec
cmp cl, 0x22
jne 0x10074dd
cmp byte [eax], 0x22
jne 0x10074f5
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x1007500
cmp cl, 0x20
jbe 0x10074f1
test byte [ebp - 0x54], 1
je 0x1007517
movzx ecx, word [ebp - 0x50]
jmp 0x100751a
cmp byte [eax], 0x20
jbe 0x10074f5
inc eax
mov dword [ebp - 0x20], eax
jmp 0x100750c
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.01002956
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1007538
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x1007574
mov eax, esi
jmp 0x1007588
call fcn.010075cf
ret
Function at 0x40e447
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40e456
pop dword [ebp - 0x40]
mov eax, 0x70d010eb
add eax, 0x8f70d36b
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x3f152
push 0
mov eax, 0x41557204
add eax, 0xbeece014
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0xc5db766
sub ecx, 0xc5d6a3a
xor ebx, ebx
add ebx, eax
mov esi, 0x359e0da4
sub esi, 0x355ab9a4
add esi, dword [ebp - 0x40]
mov edx, 0x15193724
mov dword [ebp - 8], 0x1e192c23
mov edi, dword [esi]
xor dword [ebp - 0x24], eax
xor edi, edx
sub dword [ebp - 0x18], 0x9627add2
mov dword [ebx], edi
xor dword [ebp - 0x3c], esi
add ebx, 4
add esi, 0xe8d0f935
sub esi, 0xe8d0f931
loop 0x40e4b1
add eax, 0x12783
mov ebx, eax
add eax, 0xfdeb4653
add eax, 0x214b9b2
mov ecx, 0x57ca2849
add ecx, 0xa875d7b7
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x408947
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
and esi, esi
call fcn.00408966
xor dword [eax], ecx
mov edi, esi
inc eax
add esi, 0xacddab6f
cmp eax, ebx
jne fcn.00408947
ret