joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d468
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x42d4b4
mov eax, esi
call fcn.004429a4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42d4b4
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x42d4b4
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x42d5f3
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x42d4f4
cmp eax, 0x108
ja 0x42d4f4
mov eax, esi
call fcn.004429a4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42d5ea
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x42d5f3
jmp 0x42d5ea
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x42d5d3
cmp eax, 0x20a
ja 0x42d5d3
test byte [esi + 0x50], 0x80
jne 0x42d526
sub eax, 0x203
je 0x42d523
sub eax, 3
je 0x42d523
sub eax, 3
jne 0x42d526
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x42d53a
dec eax
je 0x42d54f
dec eax
je 0x42d56c
dec eax
je 0x42d54f
jmp 0x42d573
mov ecx, ebx
mov eax, dword [0x44ef3c]
mov eax, dword [eax]
mov edx, esi
call fcn.0044c26c
jmp 0x42d5ea
cmp byte [esi + 0x5d], 1
jne 0x42d565
mov eax, esi
mov si, 0xffed
call fcn.00403674
jmp 0x42d5f3
or word [esi + 0x54], 1
jmp 0x42d5ea
and word [esi + 0x54], 0xfffe
jmp 0x42d5ea
mov eax, dword [0x450aa4]
cmp byte [eax + 0x20], 0
je 0x42d5ea
mov eax, dword [0x450aa4]
cmp dword [eax + 0x1c], 0
je 0x42d5ea
mov eax, dword [ebx]
mov edx, dword [0x450aa4]
cmp eax, dword [edx + 0x1c]
jne 0x42d5ea
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.004428e8
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00403674
jmp 0x42d5f3
cmp eax, 0xb00b
jne 0x42d5ea
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0042bdc4
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430a88
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 + 0x1f8], 0
je 0x430aa4
cmp dword [esi + 4], 0
je 0x430ad1
test byte [ebx + 0x55], 1
jne 0x430ac3
mov eax, ebx
call fcn.0042f694
test eax, eax
jne 0x430ac3
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x430be1
mov edx, esi
mov eax, ebx
call fcn.004305ac
jmp 0x430be1
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
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 0x430bda
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004328f8
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.0042d39c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00430a88
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 + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
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.004328f8
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430be1
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 0x437040
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x44f094]
cmp byte [eax + 0xc], 0
je 0x4371ad
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4371a6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x450af8], 0
jne 0x437094
push 0x4371b4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4371bc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450af8], eax
cmp dword [0x44eaa4], 0
jne 0x43718f
push 0x4371cc
call sub.kernel32.dll_LoadLibraryA
mov dword [0x44eaa4], eax
cmp dword [0x44eaa4], 0
je 0x43718f
push 0x4371d8
mov eax, dword [0x44eaa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450afc], eax
push 0x4371e8
mov eax, dword [0x44eaa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b00], eax
push 0x4371fc
mov eax, dword [0x44eaa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b04], eax
push 0x437214
mov eax, dword [0x44eaa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b08], eax
push 0x43722c
mov eax, dword [0x44eaa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b0c], eax
push 0x437240
mov eax, dword [0x44eaa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b10], eax
push 0x437258
mov eax, dword [0x44eaa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b14], eax
push 0x437270
mov eax, dword [0x44eaa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b18], eax
push 0x43728c
mov eax, dword [0x44eaa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b1c], eax
push 0x437298
mov eax, dword [0x44eaa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x450b20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4371ad
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43b060
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.004041e0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43b0af
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.00404450
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x442858
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4428a8]
test si, 4
je 0x44286c
or bl, 1
test si, 8
je 0x442876
or bl, 4
test si, 1
je 0x442880
or bl, 8
test si, 2
je 0x44288a
or bl, 0x10
test si, 0x10
je 0x442894
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4428a3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4428ac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4428e4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4428c5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4428d4
or bl, 4
test esi, 0x20000000
je 0x4428df
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x448fa8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x448fba
add esp, 0xfffffff0
call fcn.0040378c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419644
mov eax, dword [0x44ed8c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44934c
mov eax, dword [0x44ed98]
mov dword [eax + 4], ebx
mov dword [eax], 0x449358
mov eax, ebx
call fcn.00449364
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41185c]
call fcn.0040343c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41185c]
call fcn.0040343c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41185c]
call fcn.0040343c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41185c]
call fcn.0040343c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41185c]
call fcn.0040343c
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, 0x44577c
push eax
push 0
push 0
mov eax, dword [0x44eec8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b06c]
call fcn.0041c4d4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b06c]
call fcn.0041c4d4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b06c]
call fcn.0041c4d4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004497b4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44967c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44967c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44967c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4490f7
call fcn.004037e4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x449460
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 0x44960b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4495ec
mov dl, 1
mov eax, dword [0x411c78]
call fcn.0040343c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004041e0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4495db
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.004373a0
test al, al
je 0x4495ce
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, 0x44961c
lea eax, [ebp - 0x254]
call fcn.00408c9c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4495ce
xor eax, eax
push ebp
push 0x4495c7
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 0x449654
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4495b0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404450
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 0x4495b0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404450
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4495ce
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4494d1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004157dc
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 0x449612
lea eax, [ebp - 0x260]
call fcn.004041e0
ret

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

Disassembly:
push ecx
mov eax, dword [0x450b44]
cmp byte [eax + 0xa5], 0
jne 0x449fc5
cmp dword [0x450b5c], 0
jne 0x449f86
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x449f10
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x450b5c], eax
cmp dword [0x450b58], 0
jne 0x449fa1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x450b58], eax
cmp dword [0x450b60], 0
jne 0x449fc5
push esp
push 0
push 0
push 0x449eb4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x450b60], eax
pop edx
ret
Function at 0x44a658
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x450b44]
cmp dword [eax + 0x30], 0
je 0x44a702
cmp dword [ebx + 0x94], 0
jne 0x44a6fc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44a5e8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44a6fc
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 0x44a6c2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44a6fc
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.00413bd8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44a6d1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44b260
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 0x44b295
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.004042d0
jmp 0x44b2a2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404234
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44c3b4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44c3f5
mov eax, esi
call fcn.00432b58
test al, al
je 0x44c3f5
mov eax, dword [ebx + 0x84]
call fcn.004328f8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44c3f5
push 0
mov eax, dword [ebx + 0x84]
call fcn.004328f8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x1002de1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
cmp dword [0x100a044], 0
mov eax, dword [0x100a028]
mov dword [ebp - 4], eax
jne 0x1002ecc
push esi
push 0x1002228
push 0x1002220
push dword [ebp + 8]
call fcn.0100504e
test eax, eax
mov esi, 0x104
je 0x1002e44
push esi
lea ecx, [ebp - 0x20c]
push ecx
push 1
push eax
call fcn.01004f68
test eax, eax
je 0x1002e44
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x100a900
jmp 0x1002e65
push esi
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x108]
push eax
push 0x1002210
lea eax, [ebp - 0x310]
push eax
call fcn.0100259f
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x100a058], eax
je 0x1002ea5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10021f8
push eax
call esi
push 0x10021e4
push dword [0x100a058]
mov dword [0x100a044], eax
call esi
mov dword [0x100a040], eax
cmp dword [0x100a044], 0
pop esi
jne 0x1002eb9
mov dword [0x100a044], 0x1002ddc
cmp dword [0x100a040], 0
jne 0x1002ecc
mov dword [0x100a040], 0x1002dd7
mov ecx, dword [ebp - 4]
call fcn.0100515e
leave
ret 4

Function at 0x1002f08
Capabilities:
Query environment variable
Set environment variable
Write file on windows

Disassembly:
push ecx
push ebp
xor ebp, ebp
push ebp
push ebp
push 0x1002244
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x1002fcd
push esi
mov esi, 0x100ab40
push esi
push 0x1002234
push 0x100a900
call fcn.0100259f
push ebp
push 0x4000002
push 1
push ebp
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
cmp edx, 0xffffffff
mov dword [0x100a024], edx
je 0x1002fcc
push ebx
push edi
mov ebx, 0x100a480
xor eax, eax
push ebp
mov ecx, 0x84
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
mov edi, 0x210
push edi
push ebx
push edx
mov dword [0x100a480], 0x6e776453
mov dword [0x100a484], 0x10000
mov dword [0x100a488], 0xc0000013
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1002fb7
cmp dword [esp + 0x10], edi
jne 0x1002fb7
push esi
push 0x1002244
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x1002fca
push dword [0x100a024]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x100a024], 0xffffffff
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret
Function at 0x1002fd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x1002fea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [0x101ac60], 0
jne 0x100303f
lea eax, [ebp - 0x280]
push eax
push 0x200
push esi
call fcn.010026c2
push 0x80
lea eax, [ebp - 0x80]
push eax
push 0x20000003
push dword [0x100a05c]
mov byte [ebp - 0x80], 0
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10010
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x280]
push eax
push dword [0x100a7a4]
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.0100272a
test esi, esi
jne 0x1003049
inc esi
cmp dword [0x100a060], 0
je 0x1003064
push 0x100a8e0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [0x100a060], 0
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100515e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100a028]
jne 0x1005167
ret
jmp 0x100516c
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x100a028]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x101ac68]
test eax, eax
je 0x1005190
call eax
cmp dword [0x101ac6c], 0
je 0x10051d7
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x101ac6c]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.0100515e
add ebp, 0x2a8
leave
ret

Function at 0x10063f8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x1006433
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x1006410
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x100644f
dec esi
je 0x1006448
dec esi
jne 0x1006454
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc
Function at 0x40ac20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x40ac51
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x40ac40
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x412c60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x45b198]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
push 4
push 0x3000
mov dword [ebp - 0x44], 1
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi]
and eax, 0xfffffffc
push eax
push 0
push 0
push ecx
mov dword [ebp + 8], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x34], eax
call fcn.00418de0
mov ebx, edx
mov edi, eax
or eax, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x3c], edi
mov ecx, edi
mov dword [ebp - 0x38], ebx
je 0x412d2b
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push dword [ebp + 8]
push dword [ebp - 0x20]
push ebx
push edi
push dword [ebp - 0x14]
call fcn.00419110
test eax, eax
mov eax, dword [ebp + 8]
je 0x412cff
mov ecx, edi
mov edx, ebx
cmp dword [ebp - 0x18], eax
je 0x412d2b
push 0x4000
push eax
push ebx
push edi
push dword [ebp - 0x14]
call fcn.00418f80
xorps xmm0, xmm0
movlpd qword [ebp - 0x3c], xmm0
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
movlpd qword [ebp - 0x24], xmm0
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x10], ebx
or ecx, edx
mov dword [ebp - 4], 0
je 0x412d8d
cmp dword [esi + 0x18], 0
mov eax, dword [esi + 4]
push 0
push 0
je 0x412d58
push ebx
push edi
push dword [eax + 0xc]
push dword [eax + 8]
push 0
push 0
push dword [esi]
call fcn.00416620
jmp 0x412d69
mov ecx, dword [eax + 8]
push edi
push ecx
push 0
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
test ebx, ebx
je 0x412d8d
push dword [esi + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x412dbd
mov eax, dword [esi + 4]
push ebx
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
or ecx, 0xffffffff
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
mov eax, edi
mov dword [ebp - 4], 1
or eax, ebx
je 0x412e17
push 0x4000
push dword [ebp + 8]
push ebx
push edi
push dword [ebp - 0x14]
call fcn.00418f80
mov edx, dword [ebp - 0x18]
jmp 0x412e19
cmp dword [esi + 0x18], 0
je 0x412df4
cmp dword [esi + 0x10], 0
je 0x412df4
xorps xmm0, xmm0
push ebx
movlpd qword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push 0
push 8
push eax
push ebx
push edi
push dword [esi]
call fcn.004181b0
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
jmp 0x412d96
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x1c]
xor ecx, ecx
jmp 0x412d93
mov edx, ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4