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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44ae08]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44ade9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44adf8
or bl, 4
test esi, 0x20000000
je 0x44ae03
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4514cc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4514de
add esp, 0xfffffff0
call fcn.004039c4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d18c
mov eax, dword [0x46d7f4]
mov dword [eax + 4], ebx
mov dword [eax], 0x451870
mov eax, dword [0x46d800]
mov dword [eax + 4], ebx
mov dword [eax], 0x45187c
mov eax, ebx
call fcn.00451888
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4153f0]
call fcn.0040365c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4153f0]
call fcn.0040365c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4153f0]
call fcn.0040365c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4153f0]
call fcn.0040365c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4153f0]
call fcn.0040365c
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, 0x44dca0
push eax
push 0
push 0
mov eax, dword [0x46d95c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ec6c]
call fcn.00420404
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ec6c]
call fcn.00420404
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ec6c]
call fcn.00420404
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00451cd8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451ba0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451ba0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451ba0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45161b
call fcn.00403a1c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x451984
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 0x451b2f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x451b10
mov dl, 1
mov eax, dword [0x41580c]
call fcn.0040365c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404438
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x451aff
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.0043f774
test al, al
je 0x451af2
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, 0x451b40
lea eax, [ebp - 0x254]
call fcn.00409430
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x451af2
xor eax, eax
push ebp
push 0x451aeb
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 0x451b78
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x451ad4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046a8
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 0x451ad4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451af2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4519f5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004192e8
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 0x451b36
lea eax, [ebp - 0x260]
call fcn.00404438
ret

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

Disassembly:
push ecx
mov eax, dword [0x46ebb4]
cmp byte [eax + 0xa5], 0
jne 0x4524e9
cmp dword [0x46ebcc], 0
jne 0x4524aa
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x452434
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46ebcc], eax
cmp dword [0x46ebc8], 0
jne 0x4524c5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46ebc8], eax
cmp dword [0x46ebd0], 0
jne 0x4524e9
push esp
push 0
push 0
push 0x4523d8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x46ebd0], eax
pop edx
ret
Function at 0x452b7c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46ebb4]
cmp dword [eax + 0x30], 0
je 0x452c26
cmp dword [ebx + 0x94], 0
jne 0x452c20
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x452b0c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x452c20
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 0x452be6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x452c20
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.00417758
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x452bf5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x453784
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 0x4537b9
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.00404528
jmp 0x4537c6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040448c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x454978
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4549b9
mov eax, esi
call fcn.0043adf0
test al, al
je 0x4549b9
mov eax, dword [ebx + 0x84]
call fcn.0043ab90
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4549b9
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043ab90
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4580a4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4580d2
mov eax, ebx
call fcn.00458b58
cmp dword [ebx + 0x40], 0
je 0x4580cb
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x458143
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x458135
cmp dword [ebx + 8], 0
je 0x4580f4
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 0x458106
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x458135
cmp dword [ebx + 8], 0
je 0x4580e7
cmp eax, 3
je 0x458119
dec eax
jne 0x4580e7
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 0x4580e7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4580e7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x458161
cmp dword [ebx + 0x14], 0xcc
je 0x458161
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.0045816c
pop ebx
ret
Function at 0x468ad8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x414c38]
call fcn.00404da8
xor eax, eax
push ebp
push 0x468c1c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x46d6d4], 0
jne 0x468b2b
mov ecx, dword [0x46d738]
mov dl, 1
mov eax, dword [0x4076a4]
call fcn.0040bf90
call fcn.00403e2c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.0040309c
mov eax, ebx
call fcn.00404c74
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x468c2c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405de8
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404c84
test eax, eax
jle 0x468bc3
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x468bbc
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004046c0
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004046a8
mov eax, dword [ebp - 0x48]
pop edx
call fcn.0040853c
test eax, eax
jne 0x468bbc
mov ebx, 0x15
jmp 0x468bc8
mov ebx, 0x10
jmp 0x468bc8
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x46d6d4]
call fcn.00468a30
mov eax, dword [ebp - 8]
call fcn.00468a30
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405e00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468c23
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0040445c
lea eax, [ebp - 0x10]
mov edx, dword [0x414c38]
call fcn.00404e78
ret

Function at 0x46b584
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004048e8
xor eax, eax
push ebp
push 0x46b5c7
push dword fs:[eax]
mov dword fs:[eax], esp
push 5
mov eax, dword [ebp - 4]
call fcn.004048f8
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b5ce
lea eax, [ebp - 4]
call fcn.00404438
ret
Function at 0x4a0ba2
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushfd
xchg dword [esp + 8], ebx
lea ebx, reloc.KERNEL32.dll_RtlUnwind
pushfd
mov byte [esp + 2], bl
call fcn.004a0b27

Function at 0x4dc6be
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movzx edx, byte [eax + 1]
not ebx
jmp 0x4dc71c
lea esp, [esp + 4]
push ecx
jmp 0x4dc6e2
call fcn.004a7a4e
mov cl, bh
push si
bts ax, bp
lea esp, [esp + 2]
jmp 0x4dc759
lea eax, [esi + 0x1a]
lea edx, reloc.KERNEL32.dll_RtlUnwind
jmp 0x4dc732
push ebx
jmp 0x4dc48a
pop ecx
mov al, 0xc4
xor ecx, ecx
mov ah, byte [esp]
jmp 0x4dc6f5

Function at 0x561f1b
Capabilities:
Parse pe header

Disassembly:
mov dword [esp], ecx
jmp 0x561f24
mov dword [esp + 0x10], ebp
pushfd
pop word [esp]
mov byte [esp], bh

Function at 0x561f53
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
lea esp, [esp + 3]
mov byte [esp], ah
lea esp, [esp + 1]
mov dword [esp + 8], edi
lea esp, [esp + 8]
jmp 0x561f9c
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x561f86
Function at 0x4013fa
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push 0x110
call sub.MFC42.DLL_operatornew
test eax, eax
pop ecx
je 0x401414
mov dword [eax], 0x406594
jmp 0x401416
xor eax, eax
mov ecx, dword [esp + 8]
push eax
push 0
push 0x40148a
mov dword [eax + 0x108], ecx
mov dword [eax + 0x10c], esi
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
pop esi
ret 4

Function at 0x401fbc
Capabilities:
Delete file

Disassembly:
mov eax, 0x405114
call fcn.00404c90
sub esp, 0x418
cmp byte [ebp + 0xc], 0
push ebx
mov dword [ebp - 0x20], ecx
jne 0x401fe0
call fcn.00401faa
jmp 0x402184
push 0x409138
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
mov dword [ebp - 0x18], ebx
je 0x402184
and dword [0x4090e4], 0
test byte [ebx + 0xc], 0x10
jne 0x40214a
push esi
mov esi, dword [sym.imp.MSVCRT.dll_strtok]
push edi
mov edi, 0x409134
push ebx
lea eax, [ebp - 0x424]
push 0x400
push eax
call dword [sym.imp.MSVCRT.dll_fgets]
lea eax, [ebp - 0x424]
push edi
push eax
call esi
push edi
push 0
mov dword [ebp + 0x10], eax
call esi
push edi
push 0
mov dword [ebp - 0x1c], eax
call esi
add esp, 0x24
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], eax
je 0x40213e
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x4094ac
push eax
call sub.MFC42.DLL_operator_1
xor eax, eax
cmp dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
mov dword [ebp + 0xc], eax
je 0x402083
push dword [ebp - 0x24]
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov dword [ebp + 0xc], eax
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll_atoi]
cmp dword [ebp + 0xc], 0
pop ecx
mov ebx, eax
jge 0x4020a2
push dword [ebp - 0x10]
call fcn.0040410c
test al, al
pop ecx
je 0x4020b7
cmp ebx, dword [0x4094c4]
jle 0x40212f
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [0x4090e8], ebx
jge 0x4020c5
mov dword [0x4090e8], ebx
cmp dword [ebp + 0xc], 0
jge 0x4020ec
inc dword [0x4090e4]
push str.login
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
je 0x4020ec
mov dword [ebp + 0xc], 0xfffe7961
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
mov ecx, 0x409540
push eax
call fcn.00402f25
mov ecx, eax
call sub.MFC42.DLL_CString::operator_1
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x14]
mov ecx, 0x409528
push eax
mov byte [ebp - 4], 1
call fcn.004015bf
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov dword [eax], ebx
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ebx, dword [ebp - 0x18]
test byte [ebx + 0xc], 0x10
je 0x40201b
pop edi
pop esi
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [0x4090e8]
pop ecx
cmp eax, 0xffffffff
je 0x402163
push eax
call fcn.0040417e
pop ecx
mov ecx, dword [ebp - 0x20]
push 0x409120
call fcn.00401f5f
mov eax, dword [0x409544]
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [0x409538], eax
call fcn.004022f6
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x402193
Capabilities:
Copy file
Create process on windows
Move file

Disassembly:
mov eax, 0x405128
call fcn.00404c90
cmp byte [ebp + 0xc], 0
push esi
push edi
mov edi, ecx
jne 0x4021d4
inc dword [0x40955c]
cmp dword [0x40955c], 0xa
jge 0x4021c2
call fcn.004022f6
cmp dword [0x40955c], 0xa
jne 0x4022e6
mov ecx, edi
call fcn.00401faa
jmp 0x4022e6
push str.login
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
je 0x402270
push str..old
lea eax, [ebp + 0xc]
push 0x4094b0
push eax
call sub.MFC42.DLL_operator_1
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
and dword [ebp - 4], 0
push dword [0x4094b0]
call esi
push dword [0x4094b0]
push dword [ebp + 0x10]
call esi
test eax, eax
je 0x402259
push 5
push dword [0x4094ac]
push dword [ebp + 0xc]
push dword [0x4094b0]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, edi
call fcn.00402ee1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
jmp 0x4022e6
push dword [0x4094b0]
push dword [ebp + 0xc]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
push dword [ebp + 8]
lea eax, [ebp + 8]
push 0x4094ac
push eax
call sub.MFC42.DLL_operator_1
push 0
push dword [eax]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x409538]
inc dword [0x409558]
mov ecx, dword [0x409564]
mov edx, dword [eax + 8]
cmp edx, ecx
je 0x4022c0
mov eax, dword [edx]
cmp eax, ecx
je 0x4022b8
mov edx, eax
jmp 0x4022ae
mov dword [0x409538], edx
jmp 0x4022df
mov ecx, dword [eax + 4]
cmp eax, dword [ecx + 8]
jne 0x4022d4
mov eax, ecx
mov dword [0x409538], eax
mov ecx, dword [ecx + 4]
jmp 0x4022c3
cmp dword [eax + 8], ecx
je 0x4022df
mov dword [0x409538], ecx
mov ecx, edi
call fcn.004022f6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x402352
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x40513c
call fcn.00404c90
mov eax, 0x13e0
call fcn.00404cc0
push ebx
push edi
push str.vdgame.exe
lea eax, [ebp - 0x10]
push 0x4094ac
mov edi, ecx
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [0x4090e4]
xor ebx, ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], ebx
je 0x4024aa
cmp dword [0x409558], eax
jl 0x4024aa
push esi
push 0x44
pop esi
lea eax, [ebp - 0x64]
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x64], esi
push ebx
push ebx
push 0x147
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
call fcn.0040477b
shl esi, 3
mov ecx, dword [esi + 0x4094d8]
sub ecx, eax
mov eax, dword [esi + 0x4094dc]
sub eax, edx
push eax
push ecx
push dword [0x409550]
lea eax, [ebp - 0x13ec]
push str._s_width_d_height_d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x13ec]
push dword [0x4094ac]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40249b
push 2
mov byte [0x409560], 1
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [0x4094a8]
push ebx
call sub.MFC42.DLL_CWnd::ShowWindow
push ebx
mov ecx, edi
call sub.MFC42.DLL_CWnd::ShowWindow
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x20]
call esi
mov ecx, dword [0x4094a8]
push 5
mov byte [0x409560], bl
call sub.MFC42.DLL_CWnd::ShowWindow
push 5
mov ecx, edi
call sub.MFC42.DLL_CWnd::ShowWindow
push ebx
push ebx
push ebx
push ebx
push dword [0x4094b8]
lea ecx, [edi + 0xa4]
call fcn.00404814
mov ecx, edi
call fcn.004022f6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
pop esi
jmp 0x4024dd
cmp byte [0x409561], bl
je 0x4024d1
push dword [ebp - 0x10]
call fcn.0040410c
test al, al
pop ecx
jne 0x4024d1
push ebx
push 0x409178
push 0x409158
mov ecx, edi
call sub.MFC42.DLL_CWnd::MessageBoxA
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4040ac
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
push 0x5c
push ebx
call edi
mov esi, eax
lea eax, [ebp - 0x104]
push ebx
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x10
inc esi
push 0x5c
push esi
call edi
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x4040e9
and byte [esi], 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test esi, esi
je 0x4040fb
mov byte [esi], 0x5c
jmp 0x4040d8
push ebx
call fcn.0040410c
pop ecx
pop edi
test al, al
pop esi
pop ebx
setne al
leave
ret
Function at 0x40410c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret
Function at 0x4044f6
Capabilities:
Get common file path
Get disk information

Disassembly:
mov eax, 0x4053eb
call fcn.00404c90
sub esp, 0x118
and dword [ebp - 0x20], 0
push ebx
push esi
mov esi, 0x104
push edi
lea eax, [ebp - 0x124]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
and byte [ebp - 0x121], 0
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
or dword [ebp - 0x18], 0xffffffff
push 1
pop ebx
mov edi, 0x4094cc
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_1
push esi
lea eax, [ebp - 0x124]
push 0
push eax
mov byte [ebp - 4], 2
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea esi, [ebp - 0x124]
mov dword [ebp - 0x1c], 0xa
cmp byte [esi], 0
je 0x4045b8
push esi
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x4045b8
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x4045b8
push esi
call fcn.00404614
cmp eax, dword [ebp - 0x18]
pop ecx
jle 0x4045b8
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], eax
call sub.MFC42.DLL_CString::operator_1
add esi, 4
dec dword [ebp - 0x1c]
jne 0x40457f
push edi
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
jne 0x4045dc
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00404970
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x10002030
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10002057
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push 0
push 0x10001e60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x4075ec
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40b558
mov eax, esi
mov edx, 8
test al, 1
je 0x407608
shr eax, 1
xor eax, 0xedb88320
jmp 0x40760a
shr eax, 1
dec edx
jne 0x4075fb
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4075f4
pop esi
ret

Function at 0x407637
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40b554], 0
jne 0x407643
call fcn.004075ec
push 1
push 0x40b554
call fcn.00404398
mov eax, edi
test esi, esi
je 0x40766e
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40b558]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x407649
mov eax, ebx
pop edi
pop esi
pop ebx
ret