joyce8/EMBER2024-capa huggingface dataset:
Function at 0x547f90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ab2d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00545b90
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x547fe9
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.00542ed0
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.00542ec0
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.00547640
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [fcn.004ad52c]
push 0
lea ecx, [esp + 0x4c]
call fcn.00584ef0
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.00556a90
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.005455f0
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [fcn.004ad094]
mov ecx, ebx
call fcn.00542e40
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x5480b4
push edi
mov ecx, esi
call fcn.00545700
push eax
push ebp
mov ecx, esi
call fcn.005458c0
cmp eax, dword [esp + 0x40]
jg 0x5480b0
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x54808e
mov eax, ebx
jmp 0x5480ba
cmp edi, ebx
jl 0x5480b8
mov eax, ebx
jmp 0x5480ba
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x5480cb
mov dword [esp + 0x30], eax
jmp 0x5480d6
cmp edi, ebx
jl 0x5480d1
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.00542e00
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x54811d
push edi
mov ecx, esi
call fcn.00545620
push eax
push ebx
mov ecx, esi
call fcn.005459f0
cmp eax, dword [esp + 0x44]
jg 0x548115
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x5480ef
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x548127
cmp edi, ebp
jl 0x548121
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x548127
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x548130
mov ecx, eax
jmp 0x548139
cmp edi, ebp
jl 0x548136
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov edx, esi
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.00545610
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.00584f62
mov ecx, dword [esp + 0x5c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
Function at 0x54e070
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ab788
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x54e0a9
inc eax
mov dword [esi + 0x10], eax
jmp 0x54e1bc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x54e0bd
mov eax, 0xffffffc7
jmp 0x54e1be
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x54e0ce
cmp dword [esi + 8], eax
jne 0x54e0bd
cmp dword [esi + 8], eax
jne 0x54e0e7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x54e0e7
mov eax, 0xffffffc7
jmp 0x54e1be
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x54e0fb
push eax
mov ecx, ebx
call fcn.0054d8a0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.0051a6a0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x54e12c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.0051a6c0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0054d010
test eax, eax
mov dword [esp + 0x38], eax
je 0x54e15f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5e28c8
call fcn.0051a8a0
mov eax, dword [esp + 0x38]
jmp 0x54e1be
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0054ded0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x54e1a3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0054def0
mov esi, eax
test esi, esi
jne 0x54e1d3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0054ded0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x54e175
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5e28c8
call fcn.0051a8a0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5e28c8
call fcn.0051a8a0
mov eax, esi
jmp 0x54e1be
Function at 0x5570f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4abdb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [fcn.004ad52c]
push 0
lea ecx, [esp + 0x20]
call fcn.00584ef0
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00556a90
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00584e1e
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.005816e2
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.005816e2
push 1
push 0
push 0
mov ecx, esi
call fcn.0058168a
push 1
push 0
push 1
mov ecx, esi
call fcn.0058168a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00584f62
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x557270
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4abdd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00584ef0
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00556a90
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00584e1e
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [fcn.004ad52c]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x557334
cmp dword [esp + 0x40], 1
jne 0x557332
cmp ecx, eax
jge 0x557334
mov eax, ecx
cmp eax, 0xc8
jge 0x557340
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.005570f0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [fcn.004ad528]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00584f62
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x557ab0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4abe43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0057fb02
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x5e80d8
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x5e5e48
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [fcn.004ad05c]
push eax
mov ecx, edi
call fcn.00585198
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.005867ae
test eax, eax
je 0x557bcc
mov ecx, dword [esp + 0x3c]
call fcn.005851c5
mov ecx, dword [esi + 0x1c]
mov ebp, dword [fcn.004ad54c]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x557b90
push edi
mov ecx, esi
call fcn.00582829
mov ecx, esi
call fcn.00557d30
cmp dword [esp + 0x38], 1
jne 0x557bc5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00582964
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x55a5e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x55a613
push esi
call fcn.0055d6f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x55a60c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x55a699
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x55a682
mov eax, dword [esi + 8]
test eax, eax
je 0x55a637
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x55a67e
cmp eax, 2
je 0x55a682
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x55a62a
cmp eax, 3
je 0x55a65d
cmp eax, 1
jne 0x55a62a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x55a62a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x55a62a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0055a6c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x55a6a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0055a6c0
add esp, 4
pop esi
ret
Function at 0x593771
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.005937f0
jae 0x59377d
xor ecx, ecx
call fcn.005937f0
jae 0x5937a7
xor eax, eax
call fcn.005937f0
jae 0x5937b8
mov al, 0x10
call fcn.005937f0
adc al, al
jae 0x593799
jne 0x5937e5
stosb byte es:[edi], al
jmp 0x59377e
call fcn.005937fc
dec ecx
loop 0x5937c4
mov eax, ebp
call fcn.005937fa
jmp 0x5937e6
lodsb al, byte [esi]
shr eax, 1
je 0x59380c
adc ecx, 2
mov ebp, eax
jmp 0x5937e6
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.005937fa
cmp eax, 0x7d00
jae 0x5937e4
cmp eax, 0x500
jae 0x5937e5
cmp eax, 0x7f
ja 0x5937e6
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x59377e
pop ebp
ret 8

Function at 0x5d6d41
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
lea eax, [edi + 1]
shr eax, 1
push eax
push esi
push 0
call fcn.005d6dce
add esp, 0xc
cmp word [esi], 0x5a4d
movzx ecx, ax
jne 0x5d6dc7
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x5d6dc7
mov dx, word [eax + 0x18]
cmp dx, 0x10b
je 0x5d6d85
cmp dx, 0x20b
jne 0x5d6dc7
mov edx, dword [eax + 0x58]
mov esi, 0xffff
cmp cx, dx
jb 0x5d6d9b
push ebx
movzx ebx, dx
sub ecx, ebx
pop ebx
jmp 0x5d6da0
sub ecx, edx
and ecx, esi
dec ecx
shr edx, 0x10
cmp cx, dx
jb 0x5d6daf
movzx edx, dx
sub ecx, edx
jmp 0x5d6db4
sub ecx, edx
and ecx, esi
dec ecx
mov edx, dword [esp + 0x18]
add ecx, edi
mov dword [edx], ecx
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + 0x58]
mov dword [edx], ecx
jmp 0x5d6dc9
xor eax, eax
pop edi
pop esi
ret 0x10
Function at 0x401451
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push 0x110
call sub.MFC42.DLL_operatornew
test eax, eax
pop ecx
je 0x40146b
mov dword [eax], 0x40658c
jmp 0x40146d
xor eax, eax
mov ecx, dword [esp + 8]
push eax
push 0
push 0x4014e1
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 0x402010
Capabilities:
Delete file

Disassembly:
mov eax, 0x4051d4
call fcn.00404d40
sub esp, 0x418
cmp byte [ebp + 0xc], 0
push ebx
mov dword [ebp - 0x20], ecx
jne 0x402034
call fcn.00401ffe
jmp 0x4021d8
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 0x4021d8
and dword [0x4090e4], 0
test byte [ebx + 0xc], 0x10
jne 0x40219e
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 0x402192
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x4094bc
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 0x4020d7
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 0x4020f6
push dword [ebp - 0x10]
call fcn.004040df
test al, al
pop ecx
je 0x40210b
cmp ebx, dword [0x4094d4]
jle 0x402183
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [0x4090e8], ebx
jge 0x402119
mov dword [0x4090e8], ebx
cmp dword [ebp + 0xc], 0
jge 0x402140
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 0x402140
mov dword [ebp + 0xc], 0xfffe7961
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
mov ecx, 0x409548
push eax
call fcn.00402ef8
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, 0x409530
push eax
mov byte [ebp - 4], 1
call fcn.00401616
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 0x40206f
pop edi
pop esi
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [0x4090e8]
pop ecx
cmp eax, 0xffffffff
je 0x4021b7
push eax
call fcn.00404151
pop ecx
mov ecx, dword [ebp - 0x20]
push 0x409120
call fcn.00401fb3
mov eax, dword [0x40954c]
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [0x409540], eax
call fcn.0040234a
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4021e7
Capabilities:
Copy file
Create process on windows
Move file

Disassembly:
mov eax, 0x4051e8
call fcn.00404d40
cmp byte [ebp + 0xc], 0
push esi
push edi
mov edi, ecx
jne 0x402228
inc dword [0x409564]
cmp dword [0x409564], 0xa
jge 0x402216
call fcn.0040234a
cmp dword [0x409564], 0xa
jne 0x40233a
mov ecx, edi
call fcn.00401ffe
jmp 0x40233a
push str.login
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
je 0x4022c4
push str..old
lea eax, [ebp + 0xc]
push 0x4094c0
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 [0x4094c0]
call esi
push dword [0x4094c0]
push dword [ebp + 0x10]
call esi
test eax, eax
je 0x4022ad
push 5
push dword [0x4094bc]
push dword [ebp + 0xc]
push dword [0x4094c0]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, edi
call fcn.00402eb4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
jmp 0x40233a
push dword [0x4094c0]
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 0x4094bc
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 [0x409540]
inc dword [0x409560]
mov ecx, dword [0x40956c]
mov edx, dword [eax + 8]
cmp edx, ecx
je 0x402314
mov eax, dword [edx]
cmp eax, ecx
je 0x40230c
mov edx, eax
jmp 0x402302
mov dword [0x409540], edx
jmp 0x402333
mov ecx, dword [eax + 4]
cmp eax, dword [ecx + 8]
jne 0x402328
mov eax, ecx
mov dword [0x409540], eax
mov ecx, dword [ecx + 4]
jmp 0x402317
cmp dword [eax + 8], ecx
je 0x402333
mov dword [0x409540], ecx
mov ecx, edi
call fcn.0040234a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4023a6
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4051fc
call fcn.00404d40
mov eax, 0x13e0
call fcn.00404d70
push ebx
push edi
push str.vdgame.exe
lea eax, [ebp - 0x10]
push 0x4094bc
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 0x4024fe
cmp dword [0x409560], eax
jl 0x4024fe
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.0040483f
shl esi, 3
mov ecx, dword [esi + 0x4094e0]
sub ecx, eax
mov eax, dword [esi + 0x4094e4]
sub eax, edx
push eax
push ecx
push dword [0x409558]
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 [0x4094bc]
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 0x4024ef
push 2
mov byte [0x409568], 1
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [0x4094b8]
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 [0x4094b8]
push 5
mov byte [0x409568], 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 [0x4094c8]
lea ecx, [edi + 0xa4]
call fcn.004048d8
mov ecx, edi
call fcn.0040234a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
pop esi
jmp 0x402531
cmp byte [0x409569], bl
je 0x402525
push dword [ebp - 0x10]
call fcn.004040df
test al, al
pop ecx
jne 0x402525
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 0x40407f
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 0x4040bc
and byte [esi], 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test esi, esi
je 0x4040ce
mov byte [esi], 0x5c
jmp 0x4040ab
push ebx
call fcn.004040df
pop ecx
pop edi
test al, al
pop esi
pop ebx
setne al
leave
ret
Function at 0x4040df
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 0x4045ba
Capabilities:
Get common file path
Get disk information

Disassembly:
mov eax, 0x40549f
call fcn.00404d40
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, 0x4094dc
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 0x40467c
push esi
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x40467c
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40467c
push esi
call fcn.004046d8
cmp eax, dword [ebp - 0x18]
pop ecx
jle 0x40467c
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 0x404643
push edi
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
jne 0x4046a0
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.00404a3a
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 0x1000935a
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, 0x1505
jmp 0x1000937b
push eax
call dword [0x100011e8]
imul edi, edi, 0x21
movzx eax, ax
xor edi, eax
inc esi
pop ecx
inc esi
movzx eax, word [esi]
test ax, ax
jne 0x10009369
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x1000938b
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, 0x1505
jmp 0x100093b6
mov ecx, dword [ebp + 0xc]
dec dword [ebp + 0xc]
test ecx, ecx
je 0x100093be
push eax
call dword [0x100011e8]
imul edi, edi, 0x21
movzx eax, ax
xor edi, eax
inc esi
pop ecx
inc esi
movzx eax, word [esi]
test ax, ax
jne 0x1000939a
mov eax, edi
pop edi
pop esi
pop ebp
ret 8