joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b580
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push 3
xorps xmm0, xmm0
push esi
push eax
movdqu xmmword [ebp - 0x2c], xmm0
movdqu xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call fcn.00457f07
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x44b689
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x44b5e9
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.00455160
push esi
lea eax, [ebp - 0x234]
push 0x104
push eax
call fcn.00455c19
add esp, 0x18
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, eax
test ecx, ecx
jle 0x44b689
movzx eax, word [ebp + ecx*2 - 0x236]
cmp eax, 0x5c
je 0x44b636
cmp eax, 0x2f
jne 0x44b640
xor eax, eax
mov word [ebp + ecx*2 - 0x236], ax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x44b689
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x44b671
lea eax, [ebp - 0x234]
push eax
call fcn.0044b580
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00453c72
mov esp, ebp
pop ebp
ret

Function at 0x44b6a0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x44b727
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp + 8]
neg eax
push 0
sbb eax, eax
push 0
and eax, 2
push 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x18]
neg eax
sbb esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
Function at 0x44b740
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x634]
push edi
push eax
call fcn.00430700
mov edi, eax
mov esi, 0x559224
add esp, 4
cmp edi, esi
je 0x44b7aa
cmp dword [0x559238], 8
jb 0x44b786
push dword [0x559224]
call fcn.00406890
add esp, 4
xor eax, eax
mov dword [0x559238], 7
push edi
mov ecx, esi
mov dword [0x559234], 0
mov word [0x559224], ax
call fcn.0041b9d0
cmp dword [ebp - 0x620], 8
jb 0x44b7c1
push dword [ebp - 0x634]
call fcn.00406890
add esp, 4
mov ecx, 0x55923c
cmp ecx, 0x559224
je 0x44b7dc
push 0xffffffffffffffff
push 0
push 0x559224
call fcn.004196d0
push 1
push 0x523dbc
mov ecx, esi
call fcn.0041c070
push 0x13
push str.SoftwareInpaintMAX
mov ecx, esi
call fcn.0041c070
cmp dword [0x559238], 8
cmovae esi, dword [0x559224]
sub esp, 0x18
mov edx, esp
xor eax, eax
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
cmp word [esi], ax
jne 0x44b827
xor ecx, ecx
jmp 0x44b83f
mov ecx, esi
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44b830
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.004197f0
push SysReAllocStringLen
call fcn.00419c70
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00455160
add esp, 0x28
lea eax, [ebp - 0x414]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x414], 0
jne 0x44b891
xor ecx, ecx
jmp 0x44b8af
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44b8a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x414]
mov ecx, 0x5591dc
push eax
call fcn.004197f0
push 1
push 0x523dbc
mov ecx, 0x5591dc
call fcn.0041c070
push 0xa
push 0x524afc
mov ecx, 0x5591dc
call fcn.0041c070
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00455160
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x208
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0x524afc
lea eax, [ebp - 0x20c]
push eax
push 0x524af0
push eax
call fcn.00421970
add esp, 0x10
cmp word [ebp - 0x20c], 0
jne 0x44b938
xor ecx, ecx
jmp 0x44b950
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44b941
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, 0x55920c
push eax
call fcn.004197f0
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.00455160
add esp, 0xc
lea eax, [ebp - 0x61c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x44b9a6
lea eax, [eax*2 - 2]
cmp eax, 0x208
jae 0x44b9f1
xor ecx, ecx
mov word [ebp + eax - 0x61c], cx
cmp word [ebp - 0x61c], 0
jne 0x44b9b4
xor ecx, ecx
jmp 0x44b9cf
lea ecx, [ebp - 0x61c]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44b9c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x61c]
mov ecx, 0x5591f4
push eax
call fcn.004197f0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00453c72
mov esp, ebp
pop ebp
ret
call fcn.004559ce
int3
Function at 0x44bb40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b7c6
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x270], edi
test esi, esi
je 0x44bbb0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44bbb0
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x44bbb7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x44bcf3
lea eax, [ebp - 0x248]
push esi
push eax
call fcn.00455584
add esp, 8
test eax, eax
jne 0x44bbde
lea eax, [ebp - 0x264]
mov ecx, edi
push eax
call fcn.0044cfc0
jmp 0x44bcd2
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x264]
call fcn.00433b30
add esp, 8
test eax, eax
je 0x44bcba
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x274]
mov dword [ebp - 0x274], 0x5c
push eax
lea ecx, [ebp - 0x28]
call fcn.00429080
cmp eax, 0xffffffff
je 0x44bcba
inc eax
lea ecx, [ebp - 0x28]
push eax
push 0
call fcn.00419910
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0042c340
mov edi, eax
add esp, 8
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x44bc88
cmp dword [ebp - 0x14], 8
jb 0x44bc6b
push dword [ebp - 0x28]
call fcn.00406890
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0041b9d0
cmp dword [ebp - 0x2c], 8
jb 0x44bc99
push dword [ebp - 0x40]
call fcn.00406890
add esp, 4
push esi
lea ecx, [ebp - 0x28]
call fcn.00428e50
mov edi, dword [ebp - 0x270]
test eax, eax
jne 0x44bcba
lea eax, [ebp - 0x264]
mov ecx, edi
push eax
call fcn.0044cfc0
cmp dword [ebp - 0x14], 8
mov dword [ebp - 4], 0xffffffff
jb 0x44bcd2
push dword [ebp - 0x28]
call fcn.00406890
add esp, 4
lea eax, [ebp - 0x26c]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x44bbb7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
Function at 0x44bd10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b7f6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x559410]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 8]
call fcn.0044bb40
mov edi, dword [ebp - 0x18]
add esp, 8
cmp edi, dword [ebp - 0x14]
je 0x44bdaa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, dword [edi]
cmp eax, ecx
je 0x44bdaa
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x44bdaa
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, eax
neg esi
push ebx
sbb esi, esi
and esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x44bdac
xor esi, esi
test edi, edi
je 0x44bdb9
push edi
call fcn.00406890
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44ca30
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x210], 0
call fcn.00455160
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x20c], ax
jne 0x44caa2
xor ecx, ecx
jmp 0x44cabf
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
jmp 0x44cab0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44cab0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004197f0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00453c72
mov esp, ebp
pop ebp
ret
Function at 0x44e020
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x44e02e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x44e103
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x528440]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x528440]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x528440]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x528440]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x528440]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x528440]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x528440]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x528440]
dec edi
jne 0x44e046
pop edi
test esi, esi
je 0x44e122
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x528440]
dec esi
jne 0x44e107
not eax
pop esi
pop ebp
ret
Function at 0x450020
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movsx eax, al
mov ecx, dword [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x528440]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edx + 8]
inc ecx
mov dword [edx + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x528440]
mov dword [edx + 8], eax
pop ebp
ret

Function at 0x450090
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov dl, byte [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 8]
mov ecx, esi
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
mov ecx, dword [edi]
shr eax, 8
xor dl, al
movsx eax, dl
xor eax, ecx
shr ecx, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x528440]
xor eax, ecx
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, esi
shr esi, 8
and eax, 0xff
xor esi, dword [eax*4 + 0x528440]
mov al, dl
mov dword [edi + 8], esi
pop edi
pop esi
pop ebp
ret

Function at 0x450420
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
je 0x45045e
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x450452
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop edi
pop esi
div ebx
pop ebx
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x45046f
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.004540d0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x450830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x18
push edi
mov edi, dword [ebp + 8]
cmp byte [edi], 0
je 0x450866
cmp byte [edi + 1], 0
je 0x45085e
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x45086c
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
cmp byte [edi], 0
je 0x45088b
cmp byte [edi + 1], 0
je 0x450887
push 1
push 0
push 0
push dword [edi + 4]
call ecx
sub eax, dword [edi + 0xc]
jmp 0x45088e
xor eax, eax
jmp 0x45088e
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, 0xffff
mov dword [ebp - 4], eax
cmp eax, ebx
push esi
cmovb ebx, eax
push 0x404
mov dword [ebp - 0x18], ebx
call fcn.004552ce
mov esi, eax
add esp, 4
test esi, esi
jne 0x4508bd
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp + 8], 0xffffffff
cmp ebx, eax
jbe 0x4509b8
mov ecx, dword [ebp - 4]
add eax, 0x400
cmp eax, ebx
mov edx, eax
mov eax, 0x404
cmova edx, ebx
mov ebx, dword [ebp - 4]
sub ecx, edx
mov dword [ebp - 0x14], edx
sub ebx, ecx
mov dword [ebp - 0x10], ecx
cmp ebx, 0x404
cmova ebx, eax
cmp byte [edi], 0
je 0x45091f
cmp byte [edi + 1], 0
je 0x4509b8
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x450922
mov dword [edi + 0x1c], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 8], ebx
je 0x45094a
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x450945
mov byte [edi + 8], 1
mov eax, dword [ebp - 0xc]
jmp 0x450973
mov edx, dword [edi + 0x1c]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
jbe 0x45095d
mov ecx, dword [edi + 0x18]
sub ecx, edx
mov dword [ebp - 8], ecx
push ecx
mov ecx, dword [edi + 0x14]
add ecx, edx
push ecx
push esi
call fcn.004540d0
mov eax, dword [ebp - 8]
add esp, 0xc
add dword [edi + 0x1c], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x4509b8
lea eax, [ebx - 3]
test eax, eax
js 0x4509a3
dec eax
cmp byte [eax + esi], 0x50
jne 0x45099f
cmp byte [eax + esi + 1], 0x4b
jne 0x45099f
cmp byte [eax + esi + 2], 5
jne 0x45099f
cmp byte [eax + esi + 3], 6
je 0x4509cb
test eax, eax
jns 0x450983
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4509b8
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
cmp eax, ebx
jb 0x4508d1
push esi
call fcn.00455296
mov eax, dword [ebp + 8]
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
add eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
jmp 0x4509a6
Function at 0x451980
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x451a4d
cmp dword [esi + 4], 0xffffffff
jne 0x451a4d
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4519b1
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x4519e8
cmp eax, 0x2f
je 0x4519e8
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4519d5
mov eax, dword [0x523dbc]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x451a0e
push edi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x451a0e
pop edi
mov eax, 0x2000000
pop esi
pop ebp
ret 0xc
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004501c0
add esp, 0x10
test eax, eax
jne 0x451a2e
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebp
ret 0xc
push eax
call fcn.00450ac0
add esp, 4
mov dword [esi], eax
xor ecx, ecx
mov edx, 0x200
test eax, eax
cmove ecx, edx
pop edi
mov eax, ecx
pop esi
pop ebp
ret 0xc
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x4526c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4526f4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4526f4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x4527dc
push edi
mov edi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x452711
cmp ax, 0x5c
jne 0x452713
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x452705
cmp edi, ebx
je 0x45275f
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.004540d0
add esp, 0xc
cmp edi, 0x208
jae 0x4527ec
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.004526c0
add esp, 8
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x452784
lea ecx, [ebp - 0x20c]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x452774
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x452786
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4527a0
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x4527dc
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00453c72
mov esp, ebp
pop ebp
ret
call fcn.004559ce
int3
Function at 0x473e25
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0045a121
mov dword [ebp - 0x14], eax
cmp dword [0x56465c], esi
jne 0x473f18
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x473ea5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x473ff8
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x473ff8
push 0x52f9e0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x473ff8
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x56465c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x564660], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x564664], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x56466c], eax
test eax, eax
je 0x473f15
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x564668], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x473f3d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x473f30
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x473f52
push 4
pop eax
jmp 0x473ffa
cmp dword [ebp - 0x14], esi
je 0x473f52
push dword [0x56465c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x473f37
mov eax, dword [0x564668]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x473fb0
cmp dword [0x56466c], edi
je 0x473fb0
push eax
call ebx
push dword [0x56466c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x473fb0
test eax, eax
je 0x473fb0
call ecx
test eax, eax
je 0x473fa5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x473fa5
test byte [ebp - 8], 1
jne 0x473fb0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x473fe0
mov eax, dword [0x564660]
cmp eax, edi
je 0x473fdd
push eax
call ebx
test eax, eax
je 0x473fdd
call eax
mov esi, eax
test esi, esi
je 0x473fdd
mov eax, dword [0x564664]
cmp eax, edi
je 0x473fdd
push eax
call ebx
test eax, eax
je 0x473fdd
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x56465c]
call ebx
test eax, eax
je 0x473ff8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x473ffa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00453c72
mov esp, ebp
pop ebp
ret
Function at 0x477d1f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x477d51
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8

Function at 0x479c6b
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x479c8e
or esi, 1
push 1
call edi
test ax, ax
jns 0x479c9a
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x479ca6
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x479cb2
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret