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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x47e558]
cmp byte [eax + 0xc], 0
je 0x445a69
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x445a62
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x47fb90], 0
jne 0x445950
push 0x445a70
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x445a78
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fb90], eax
cmp dword [0x47cc0c], 0
jne 0x445a4b
push 0x445a88
call sub.kernel32.dll_LoadLibraryA
mov dword [0x47cc0c], eax
cmp dword [0x47cc0c], 0
je 0x445a4b
push 0x445a94
mov eax, dword [0x47cc0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fb94], eax
push 0x445aa4
mov eax, dword [0x47cc0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fb98], eax
push 0x445ab8
mov eax, dword [0x47cc0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fb9c], eax
push 0x445ad0
mov eax, dword [0x47cc0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fba0], eax
push 0x445ae8
mov eax, dword [0x47cc0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fba4], eax
push 0x445afc
mov eax, dword [0x47cc0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fba8], eax
push 0x445b14
mov eax, dword [0x47cc0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbac], eax
push 0x445b2c
mov eax, dword [0x47cc0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbb0], eax
push 0x445b48
mov eax, dword [0x47cc0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbb4], eax
push 0x445b54
mov eax, dword [0x47cc0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbb8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445a69
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x449910
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.00404870
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44995f
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.00404ae0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4510a4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4510f4]
test si, 4
je 0x4510b8
or bl, 1
test si, 8
je 0x4510c2
or bl, 4
test si, 1
je 0x4510cc
or bl, 8
test si, 2
je 0x4510d6
or bl, 0x10
test si, 0x10
je 0x4510e0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4510ef
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4510f8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x451130]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451111
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451120
or bl, 4
test esi, 0x20000000
je 0x45112b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4577d8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4577ea
add esp, 0xfffffff0
call fcn.00403e44
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a968
mov eax, dword [0x47e0e4]
mov dword [eax + 4], ebx
mov dword [eax], 0x457b7c
mov eax, dword [0x47e0f0]
mov dword [eax + 4], ebx
mov dword [eax], 0x457b88
mov eax, ebx
call fcn.00457b94
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4129e4]
call fcn.00403af0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4129e4]
call fcn.00403af0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4129e4]
call fcn.00403af0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4129e4]
call fcn.00403af0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4129e4]
call fcn.00403af0
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, 0x453fb0
push eax
push 0
push 0
mov eax, dword [0x47e2c4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c3ec]
call fcn.0041db60
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c3ec]
call fcn.0041db60
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c3ec]
call fcn.0041db60
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00457fb4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457e90
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457e90
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457e90
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x457927
call fcn.00403e9c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x457c74
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 0x457e1f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x457e00
mov dl, 1
mov eax, dword [0x412e00]
call fcn.00403af0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404870
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x457def
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.00445c5c
test al, al
je 0x457de2
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, 0x457e30
lea eax, [ebp - 0x254]
call fcn.00409850
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x457de2
xor eax, eax
push ebp
push 0x457ddb
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 0x457e68
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x457dc4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404ae0
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 0x457dc4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404ae0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457de2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x457ce5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416964
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 0x457e26
lea eax, [ebp - 0x260]
call fcn.00404870
ret

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

Disassembly:
push ecx
mov eax, dword [0x47fbdc]
cmp byte [eax + 0xa5], 0
jne 0x4587c5
cmp dword [0x47fbf4], 0
jne 0x458786
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x458710
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x47fbf4], eax
cmp dword [0x47fbf0], 0
jne 0x4587a1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x47fbf0], eax
cmp dword [0x47fbf8], 0
jne 0x4587c5
push esp
push 0
push 0
push 0x4586b4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x47fbf8], eax
pop edx
ret
Function at 0x4588bc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4588d3
add esp, 0xfffffff0
call fcn.00403e44
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a968
mov eax, dword [0x47e2a8]
cmp word [eax + 2], 0
jne 0x4588fb
mov eax, dword [0x47e2a8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045a024
mov eax, dword [0x47e39c]
cmp word [eax + 2], 0
jne 0x458915
mov eax, dword [0x47e39c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045a21c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4129e4]
call fcn.00403af0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4129e4]
call fcn.00403af0
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 [0x41cecc]
call fcn.004247b8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x458a9c
mov eax, dword [0x47e17c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424b88
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45a7cc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47e17c]
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.0040d414
test eax, eax
je 0x458a0a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409230
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d43c
test eax, eax
je 0x458a1e
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.00404ae0
mov eax, dword [0x47dfd0]
cmp byte [eax], 0
jne 0x458a52
mov eax, ebx
call fcn.00458bc4
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.0045a9a8
mov eax, ebx
call fcn.0045b36c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x458a92
call fcn.00403e9c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458e44
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x47fbdc]
cmp dword [eax + 0x30], 0
je 0x458eee
cmp dword [ebx + 0x94], 0
jne 0x458ee8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x458dd4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x458ee8
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 0x458eae
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x458ee8
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.00414dd4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x458ebd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x459a50
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 0x459a85
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.00404960
jmp 0x459a92
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004048c4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45ab84
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45abc5
mov eax, esi
call fcn.00441224
test al, al
je 0x45abc5
mov eax, dword [ebx + 0x84]
call fcn.00440f20
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45abc5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00440f20
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45e28c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45e2ba
mov eax, ebx
call fcn.0045ed40
cmp dword [ebx + 0x40], 0
je 0x45e2b3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45e32b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45e31d
cmp dword [ebx + 8], 0
je 0x45e2dc
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45e2ee
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45e31d
cmp dword [ebx + 8], 0
je 0x45e2cf
cmp eax, 3
je 0x45e301
dec eax
jne 0x45e2cf
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45e2cf
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45e2cf
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45e349
cmp dword [ebx + 0x14], 0xcc
je 0x45e349
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045e354
pop ebx
ret
Function at 0x476164
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4763c4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4761c7
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00475c7c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040cf8c
cmp al, 1
jne 0x4761c7
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00475f44
test al, al
je 0x476353
cmp dword [ebp - 8], 0
jge 0x4761e5
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00475c7c
mov eax, dword [ebp - 0x210]
call fcn.00404b30
cmp ebx, eax
jge 0x47622f
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00475c7c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x47e538]
and eax, 0xff
bt dword [edx], eax
jae 0x47622f
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x476243
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00476140
cmp ebx, dword [ebp - 8]
je 0x476345
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x47626f
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403d1c
and eax, 0x7f
movzx eax, word [eax*2 + 0x47dfa4]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x476332
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403d1c
and eax, 0x7f
movzx eax, word [eax*2 + 0x47dfa4]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00440f20
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403d1c
and eax, 0x7f
movzx eax, word [eax*2 + 0x47dfa4]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00440f20
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476339
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4763a6
cmp dword [ebp - 8], 0
jge 0x47635e
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00475c7c
mov eax, dword [ebp - 0x218]
call fcn.00404b30
cmp eax, dword [ebp - 8]
jg 0x476398
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00475c7c
mov eax, dword [ebp - 0x21c]
call fcn.00404b30
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00476140
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4763cb
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404894
ret
Function at 0x40324c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40325b
pop dword [ebp - 0x40]
mov eax, 0x9ec9059a
sub eax, 0x9e88d33f
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x40a73eb9
sub dword [ebp - 0x50], 0xf254f96e
mov dword [ebp - 0x4c], 0x3a70d06f
sub dword [ebp - 0x4c], 0x83d842a
mov dword [ebp - 0x48], 0xbd3cc4c7
add dword [ebp - 0x48], 0x8f0f7f67
mov dword [ebp - 0x44], 0x2121bdab
sub dword [ebp - 0x44], 0x2121bdab
lea eax, [ebp - 0x50]
push eax
mov eax, 0x54f3624
sub eax, 0x50eb5ac
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x6fbfc568
add dword [ebp - 0x50], 0x4b2a3ee
mov dword [ebp - 0x4c], 0x342fe1d1
sub dword [ebp - 0x4c], 0xf2c3805c
mov dword [ebp - 0x48], 0x62b84c57
add dword [ebp - 0x48], 0xb72015
mov dword [ebp - 0x44], 0x1905479
sub dword [ebp - 0x44], 0x1905479
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x3c5b7bd1
sub eax, 0x3c1afb55
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x33228
push 0
call eax
mov ecx, 0x1b4b692a
add ecx, 0xe4b4cf40
xor esi, esi
add esi, eax
mov edi, 0x3625c318
sub edi, 0x35e0af18
add edi, dword [ebp - 0x40]
mov edx, 0x79d7950
add edx, 0x278e363c
mov dword [ebp - 0x10], 0xf4a78730
mov ebx, dword [edi]
sub dword [ebp - 0x1c], ecx
sub ebx, edx
xor dword [ebp - 0x18], edi
mov dword [esi], ebx
add esi, 4
add edi, 0x1fc63744
sub edi, 0x1fc63740
loop 0x40337f
add eax, 0xc291d89
sub eax, 0xc28490e
xor ebx, ebx
add ebx, eax
add eax, 0x89b1cb69
add eax, 0x764e349c
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x406a88
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040932c
test esi, esi
jne 0x406abe
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004094b4
jmp 0x406adc
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004069cc
mov edi, eax
test esi, esi
je 0x406adc
cmp dword [ebx], 0
je 0x406adc
dec esi
jmp 0x406ac5
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408098
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0040847c
mov byte [esp], al
cmp byte [esp], 0
jne 0x408222
test edi, edi
je 0x408222
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408162
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40813d
cmp edi, 0xffffffff
je 0x4080fd
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4080fd
mov byte [esp], 0
jmp 0x408222
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40813d
test ebx, ebx
jne 0x40812f
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40812f
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408222
lea eax, [esp + 0xc]
call fcn.00407d78
dec ebp
test ebp, ebp
jg 0x4080e2
cmp edi, 0xffffffff
je 0x408162
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408160
mov byte [esp], 0
jmp 0x408222
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4080a6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408162
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408290
mov edx, eax
mov ebx, dword [0x61d8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4081c6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4081c4
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4081c6
xor edi, edi
cmp byte [esp], 0
je 0x4081ec
mov ebx, dword [esi]
test bl, 1
jne 0x408202
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4081cc
mov byte [esp + 1], 1
jmp 0x408202
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4081ec
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408179
cmp byte [esp], 0
je 0x408222
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x408fc8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x61d05c], 0
je 0x40902f
cmp word [0x61d348], 0xd7b2
jne 0x408ff1
cmp dword [0x61d350], 0
jbe 0x408ff1
mov eax, 0x61d344
call dword [0x61d360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x40905c
call fcn.00409b70
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x614032], 0
jne 0x40904b
push 0
push 0x6149c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4091ec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x614034], 0
je 0x409217
mov edx, edi
mov eax, esi
call dword [0x614034]
mov ebx, eax
jmp 0x409228
mov eax, 8
call fcn.00406708
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x61d05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4091b4
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x409258
mov eax, ebx
call fcn.00406724
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc