joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b308
Capabilities:
Create process on windows
Create process suspended
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404d7c
mov eax, dword [ebp - 8]
call fcn.00404d7c
mov eax, dword [ebp + 8]
call fcn.00404d7c
xor eax, eax
push ebp
push 0x49b4b9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
mov edx, 0x44
call fcn.00407850
mov dword [ebp - 0x4c], 0x44
cmp dword [ebp + 8], 0
jne 0x49b374
lea edx, [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00409774
cmp dword [ebx + 0x204], 0
je 0x49b393
mov eax, dword [ebx + 0x204]
call fcn.00404d8c
push eax
push 0x49b4cc
call sub.kernel32.dll_SetEnvironmentVariableA
cmp dword [ebx + 0x20c], 0
je 0x49b3b2
mov eax, dword [ebx + 0x20c]
call fcn.00404d8c
push eax
push 0x49b4e0
call sub.kernel32.dll_SetEnvironmentVariableA
cmp dword [ebx + 0x208], 0
je 0x49b3d1
mov eax, dword [ebx + 0x208]
call fcn.00404d8c
push eax
push 0x49b4f0
call sub.kernel32.dll_SetEnvironmentVariableA
lea eax, [ebp - 0x50]
call fcn.004098f8
mov eax, dword [ebp - 0x50]
call fcn.00404d8c
push eax
push 0x49b500
call sub.kernel32.dll_SetEnvironmentVariableA
lea eax, [ebx + 4]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp + 8]
call fcn.00404d8c
push eax
push 0
push 0x34
push 0
push 0
push 0
push 0x49b51c
push dword [ebp - 4]
push 0x49b528
push dword [ebp - 8]
lea eax, [ebp - 0x54]
mov edx, 4
call fcn.00404c4c
mov eax, dword [ebp - 0x54]
call fcn.00404d8c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
jne 0x49b489
call sub.kernel32.dll_GetLastError_1
mov esi, eax
push 0x49b534
lea edx, [ebp - 0x5c]
mov eax, esi
call fcn.00492b68
push dword [ebp - 0x5c]
push 0x49b554
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x60]
call fcn.00409258
push dword [ebp - 0x60]
push 0x49b560
lea eax, [ebp - 0x58]
mov edx, 5
call fcn.00404c4c
mov eax, dword [ebp - 0x58]
call fcn.00434390
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b4c0
lea eax, [ebp - 0x60]
mov edx, 5
call fcn.004048f0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048f0
lea eax, [ebp + 8]
call fcn.004048cc
ret

Function at 0x49b668
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
lea eax, [ebx + 0x18]
mov edx, 0xcc
call fcn.00407850
mov dword [ebx + 0x18], 0x10007
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_GetThreadContext
mov eax, ebx
call fcn.0049b564
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
pop ebx
ret
Function at 0x49bad4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x105
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00404b3c
mov eax, ebx
mov dl, 0x5c
call fcn.0049b9cc
add esp, 0x108
pop ebx
ret

Function at 0x49bb64
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d7c
xor eax, eax
push ebp
push 0x49bd2d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.004048cc
mov word [esi], 0
mov word [edi], 0
mov eax, dword [ebp + 0x10]
mov word [eax], 0
mov eax, dword [ebp + 0xc]
mov word [eax], 0
cmp dword [ebp - 4], 0
je 0x49bd0a
mov eax, dword [ebp - 4]
call fcn.00409674
test al, al
je 0x49bd0a
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404d8c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x49bd0a
mov eax, ebx
call fcn.004027cc
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x49bd03
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404d8c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x49bced
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x49bd40
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x49bced
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
call fcn.0040783c
mov word [esi], ax
mov eax, dword [ebp - 0x14]
mov ax, word [eax + 8]
mov word [edi], ax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
call fcn.0040783c
mov edx, dword [ebp + 0x10]
mov word [edx], ax
mov eax, dword [ebp - 0x14]
mov ax, word [eax + 0xc]
mov edx, dword [ebp + 0xc]
mov word [edx], ax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
call fcn.0040783c
movzx eax, ax
lea edx, [ebp - 0x18]
call fcn.0040916c
push dword [ebp - 0x18]
push 0x49bd4c
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 8]
call fcn.0040916c
push dword [ebp - 0x1c]
push 0x49bd4c
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
call fcn.0040783c
movzx eax, ax
lea edx, [ebp - 0x20]
call fcn.0040916c
push dword [ebp - 0x20]
push 0x49bd4c
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0xc]
call fcn.0040916c
push dword [ebp - 0x24]
mov eax, dword [ebp + 8]
mov edx, 7
call fcn.00404c4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bd0a
mov eax, dword [ebp - 0xc]
call fcn.004027ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bd34
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.004048f0
lea eax, [ebp - 4]
call fcn.004048cc
ret
Function at 0x4a5d7c
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d7c
mov eax, dword [ebp - 8]
call fcn.00404d7c
xor eax, eax
push ebp
push 0x4a5e10
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4393f0]
call fcn.00439ca0
mov esi, eax
mov edx, 0x80000001
mov eax, esi
call fcn.004395d0
test bl, bl
jne 0x4a5ddf
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x4a5e28
mov eax, esi
call fcn.00439d34
jmp 0x4a5dee
mov ecx, dword [ebp - 4]
mov edx, 0x4a5e28
mov eax, esi
call fcn.00439dfc
mov eax, esi
call fcn.00403ab8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5e17
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048f0
ret
Function at 0x4ab9c8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4ab9f6
mov eax, ebx
call fcn.004ac47c
cmp dword [ebx + 0x40], 0
je 0x4ab9ef
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4aba67
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4aba59
cmp dword [ebx + 8], 0
je 0x4aba18
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 0x4aba2a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4aba59
cmp dword [ebx + 8], 0
je 0x4aba0b
cmp eax, 3
je 0x4aba3d
dec eax
jne 0x4aba0b
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 0x4aba0b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4aba0b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4aba85
cmp dword [ebx + 0x14], 0xcc
je 0x4aba85
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.004aba90
pop ebx
ret
Function at 0x4c9e9c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4c9ea4
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4ca096
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4ca0ac
mov eax, esi
call fcn.004c7d28
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404920
lea ecx, [ebp - 0x10]
mov edx, 0x4ca0c0
mov eax, esi
call fcn.004c7d28
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404920
lea ecx, [ebp - 0x14]
mov edx, 0x4ca0d8
mov eax, esi
call fcn.004c7d28
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404920
lea ecx, [ebp - 0x18]
mov edx, 0x4ca0f4
mov eax, esi
call fcn.004c7d28
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404920
lea ecx, [ebp - 0x1c]
mov edx, 0x4ca110
mov eax, esi
call fcn.004c7d28
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404920
lea ecx, [ebp - 0x24]
mov edx, 0x4ca128
mov eax, esi
call fcn.004c7d28
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408d9c
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004092e4
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4ca140
mov eax, esi
call fcn.004c7d28
mov eax, dword [ebp - 0x28]
call fcn.004c1800
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4ca150
mov eax, esi
call fcn.004c7d28
mov eax, dword [ebp - 0x2c]
call fcn.004c1800
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4ca168
mov eax, esi
call fcn.004c7d28
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004092e4
inc eax
je 0x4ca039
lea ecx, [ebp - 0x34]
mov edx, 0x4ca168
mov eax, esi
call fcn.004c7d28
mov eax, dword [ebp - 0x34]
call fcn.004092a8
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a8ec
fstp qword [ebp - 0x3c]
wait
call fcn.0040ac50
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4ca054
lea ecx, [ebp - 0x40]
mov edx, 0x4ca168
mov eax, esi
call fcn.004c7d28
mov eax, dword [ebp - 0x40]
call fcn.004c1800
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4ca178
mov eax, esi
call fcn.004c7d28
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404920
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca09d
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004048f0
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004048f0
ret
Function at 0x4d0e28
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4d0e82
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004d0e18
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004c046c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004c006c
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0e89
lea eax, [ebp - 4]
call fcn.004048cc
ret

Function at 0x4d7b3c
Capabilities:
Hide graphical window
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, 0x4d7684
call fcn.00406adc
mov ebx, dword [0x4dab14]
xor eax, eax
push ebp
push 0x4d7c57
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00492ea4
call fcn.004953e8
push 0x4dc4d8
push 0x202
mov eax, dword [0x4dac48]
mov eax, dword [eax]
call eax
lea eax, [ebp - 0x14]
call fcn.004098f8
mov eax, dword [ebp - 0x14]
call fcn.00404d8c
push eax
push 0x4d7c64
call sub.kernel32.dll_SetEnvironmentVariableA
mov eax, dword [ebx]
mov edx, 0x4d7c80
call fcn.0048d5ec
mov ecx, dword [0x4da974]
mov eax, dword [ebx]
mov edx, dword [0x4d4704]
call fcn.0048d9dc
mov ecx, dword [0x4da740]
mov eax, dword [ebx]
mov edx, dword [0x4a46f4]
call fcn.0048d9dc
mov eax, dword [0x4da9d0]
cmp byte [eax], 0
je 0x4d7c01
mov eax, dword [0x4da974]
mov eax, dword [eax]
mov eax, dword [eax + 0x358]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebx]
mov byte [eax + 0x5b], 0
push 0
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov ecx, dword [0x4da5d8]
mov eax, dword [ebx]
mov edx, dword [0x4a52a8]
call fcn.0048d9dc
mov ecx, dword [0x4dad10]
mov eax, dword [ebx]
mov edx, dword [0x4a85fc]
call fcn.0048d9dc
mov ecx, dword [0x4da6ec]
mov eax, dword [ebx]
mov edx, dword [0x4bbfb4]
call fcn.0048d9dc
mov eax, dword [ebx]
call fcn.0048da5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7c5e
lea eax, [ebp - 0x14]
call fcn.004048cc
ret
Function at 0x401220
Capabilities:
Encode data using add xor sub operations

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
neg esi
bswap eax
and eax, 0x50
not edx
neg edi
ror ebx, 0x31
mov edi, 0x28
ror edx, 0x3b
rcl ebx, 0x4f
mov edi, 0x36
inc edi
ror eax, 0x94
add esi, 0x19
mov esi, 0xa6
dec eax
and edi, 0x15
inc eax
and eax, 0x7b
neg esi
imul eax
add ebx, 0xc1
mov edi, 0x61
rcr eax, 0xd2
not edi
inc ebx
not eax
and edx, 0x42
neg edi
imul ebx
rcr ebx, 0xf
inc ebx
rcl edx, 0xe6
rcr edx, 0x88
imul ebx
imul esi
neg edx
sub esi, 0xf6
mov ebx, 0x41
add ebx, 0xb4
ror esi, 0x27
bswap esi
add esi, 0x40
rol esi, 0x25
ror esi, 0x25
rol esi, 0x4f
rol eax, 0xcd
not esi
inc edx
neg edi
neg ebx
xor ecx, ecx
xor edi, edi
and edx, 0xa
not edx
sub edx, 0x3c
inc esi
neg edi
bswap edi
rol eax, 0x63
rcl edx, 0x3d
ror ebx, 0xd5
neg ebx
dec ebx
bswap edx
rcr ebx, 0x60
not edi
mov esi, 0x84
bswap edx
not eax
imul esi
inc eax
or ebx, 0xae
ror edi, 0xe6
inc edx
dec edx
rol esi, 0x92
neg edi
imul edx
imul esi
sbb esi, 0x58
inc edx
sub edx, 0xb4
bswap edi
mov edx, 0xa6
neg eax
mov ebx, 0xd2
not edi
bswap edi
sbb eax, 0x9c
bswap ebx
mov edx, 0x95
inc edi
rcr edi, 0x68
imul esi
sub eax, 0x12
or edi, 0x83
imul edi
inc esi
rol edi, 0xb1
rol ebx, 0x5d
ror eax, 0xc4
rcr edx, 0xc3
mov ecx, dword [ebp + 0xc]
add eax, 0xec
mov eax, 0x17
sbb eax, 0x4c
bswap edi
ror eax, 0x17
neg edx
add eax, 0x34
and ebx, 0xf1
dec esi
bswap eax
sub ebx, 0x35
add eax, 0xf6
dec edx
or edi, 0xa9
dec ebx
rcr eax, 0x30
rcl edx, 0xca
not ebx
rol ebx, 0x51
mov edi, 0x9a
add edi, 0xa6
inc esi
dec esi
rcl edx, 0x1d
not eax
sub edi, 0xd6
bswap ebx
inc esi
bswap esi
neg eax
not edi
ror ebx, 0x3e
not edi
not edi
mov edi, 0xb
not edx
or esi, 0xfd
not ebx
bswap edx
rol eax, 0x97
imul esi
dec edx
neg esi
rcl edi, 0x93
rcr ebx, 0xb
inc eax
dec esi
not edi
add esi, 0x66
dec edx
mov edi, dword [ebp + 8]
mov esi, esi
mov ebx, esi
mov esi, ebx
not byte [edi]
xor esi, ebx
mov ebx, esi
mov ebx, ebx
xor ebx, ebx
mov eax, esi
xor eax, eax
mov ebx, eax
xor ebx, eax
mov eax, eax
add byte [edi], 0x75
mov ebx, eax
xor eax, ebx
xor eax, esi
mov ebx, eax
mov eax, eax
xor eax, eax
xor eax, ebx
xor ebx, ebx
mov esi, ebx
sub byte [edi], 0x25
mov ebx, eax
xor eax, ebx
xor ebx, esi
xor esi, ebx
xor ebx, esi
mov eax, ebx
xor ebx, ebx
mov esi, ebx
xor eax, eax
imul byte [edi]
inc edi
loop 0x4013d2
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401460
Capabilities:
Encode data using xor

Disassembly:
cli
les esp, [ebx - 0x32]
arpl word [edi], di
dec esi
dec edi
dec edi
cld
stc
clc
fisttp dword [edx - 0x26]
dec esp
xchg edi, eax
invalid

Function at 0x40652d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x464fb8]
jne 0x406537
repz ret
jmp fcn.0040879c
Function at 0x40815c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004065ae
and dword [ebp - 4], 0
cmp dword [0x465ee4], 0
mov ebx, eax
jne 0x40820d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4082be
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4082be
push eax
call fcn.0040653c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x465ee4], eax
call esi
push eax
call fcn.0040653c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x465ee8], eax
call esi
push eax
call fcn.0040653c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x465eec], eax
call esi
push eax
call fcn.0040653c
pop ecx
mov dword [0x465ef4], eax
test eax, eax
je 0x40820d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040653c
pop ecx
mov dword [0x465ef0], eax
mov eax, dword [0x465ef0]
cmp eax, ebx
je 0x408265
cmp dword [0x465ef4], ebx
je 0x408265
push eax
call fcn.004065b7
push dword [0x465ef4]
mov esi, eax
call fcn.004065b7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408265
test edi, edi
je 0x408265
call esi
test eax, eax
je 0x40825c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40825c
test byte [ebp - 0xc], 1
jne 0x408265
or dword [ebp + 0x10], 0x200000
jmp 0x40829e
mov eax, dword [0x465ee8]
cmp eax, ebx
je 0x40829e
push eax
call fcn.004065b7
pop ecx
test eax, eax
je 0x40829e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40829e
mov eax, dword [0x465eec]
cmp eax, ebx
je 0x40829e
push eax
call fcn.004065b7
pop ecx
test eax, eax
je 0x40829e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x465ee4]
call fcn.004065b7
pop ecx
test eax, eax
je 0x4082be
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4082c0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4014db
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
xor ebx, ebx
push esi
push ebx
push 2
mov dword [ebp - 0x128], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x401512
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x401516
mov al, 1
jmp 0x401556
push edi
xor edi, edi
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40154a
lea eax, [ebp - 0x104]
push str.vdgame.exe
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x401519
inc edi
cmp edi, 2
jle 0x401519
jmp 0x40154c
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40159d
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push pe_nt_image_headers32
call sub.MFC42.DLL_operatornew
test eax, eax
pop ecx
je 0x4015b7
mov dword [eax], 0x40659c
jmp 0x4015b9
xor eax, eax
mov ecx, dword [esp + 8]
push eax
push 0
push 0x40162d
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 0x402169
Capabilities:
Delete file

Disassembly:
mov eax, 0x40554c
call fcn.004050a0
sub esp, 0x418
cmp byte [ebp + 0xc], 0
push ebx
mov dword [ebp - 0x20], ecx
jne 0x40218d
call fcn.00402157
jmp 0x402331
push 0x409298
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 0x402331
and dword [0x409244], 0
test byte [ebx + 0xc], 0x10
jne 0x4022f7
push esi
mov esi, dword [sym.imp.MSVCRT.dll_strtok]
push edi
mov edi, 0x409294
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 0x4022eb
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x40961c
push eax
call sub.MFC42.DLL_operator_2
xor eax, eax
cmp dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
mov dword [ebp + 0xc], eax
je 0x402230
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 0x40224f
push dword [ebp - 0x10]
call fcn.00404422
test al, al
pop ecx
je 0x402264
cmp ebx, dword [0x409634]
jle 0x4022dc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [0x409248], ebx
jge 0x402272
mov dword [0x409248], ebx
cmp dword [ebp + 0xc], 0
jge 0x402299
inc dword [0x409244]
push str.login
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
je 0x402299
mov dword [ebp + 0xc], 0xfffe7961
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
mov ecx, 0x4096b0
push eax
call fcn.004030cd
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, 0x409698
push eax
mov byte [ebp - 4], 1
call fcn.00401762
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 0x4021c8
pop edi
pop esi
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [0x409248]
pop ecx
cmp eax, 0xffffffff
je 0x402310
push eax
call fcn.00404494
pop ecx
mov ecx, dword [ebp - 0x20]
push 0x409280
call fcn.0040210c
mov eax, dword [0x4096b4]
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [0x4096a8], eax
call fcn.004024c2
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x402340
Capabilities:
Copy file
Create process on windows
Move file

Disassembly:
mov eax, 0x405560
call fcn.004050a0
push ecx
cmp byte [ebp + 0xc], 0
push esi
push edi
mov edi, ecx
jne 0x402382
inc dword [0x4096cc]
cmp dword [0x4096cc], 0xa
jge 0x402370
call fcn.004024c2
cmp dword [0x4096cc], 0xa
jne 0x4024b2
mov ecx, edi
call fcn.00402157
jmp 0x4024b2
push str.login
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
je 0x40241e
push str..old
lea eax, [ebp + 0xc]
push 0x409620
push eax
call sub.MFC42.DLL_operator_2
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
and dword [ebp - 4], 0
push dword [0x409620]
call esi
push dword [0x409620]
push dword [ebp + 0x10]
call esi
test eax, eax
je 0x402407
push 5
push dword [0x40961c]
push dword [ebp + 0xc]
push dword [0x409620]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, edi
call fcn.00403089
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
jmp 0x4024b2
push dword [0x409620]
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 - 0x10]
push 0x40961c
push eax
call sub.MFC42.DLL_operator_2
push 0
push dword [eax]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
inc dword [0x4096c8]
mov esi, str.vdgame.exe
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x40246b
push esi
call fcn.00404325
pop ecx
mov dword [0x409638], eax
mov eax, dword [0x4096a8]
mov ecx, dword [0x4096d4]
mov edx, dword [eax + 8]
cmp edx, ecx
je 0x40248c
mov eax, edx
mov edx, dword [eax]
cmp edx, ecx
jne 0x40247d
mov dword [0x4096a8], eax
jmp 0x4024ab
mov ecx, dword [eax + 4]
cmp eax, dword [ecx + 8]
jne 0x4024a0
mov eax, ecx
mov dword [0x4096a8], eax
mov ecx, dword [ecx + 4]
jmp 0x40248f
cmp dword [eax + 8], ecx
je 0x4024ab
mov dword [0x4096a8], ecx
mov ecx, edi
call fcn.004024c2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc