joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458a90
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x634]
push edi
push eax
call fcn.004339f0
add esp, 4
mov ecx, 0x57b234
push eax
call fcn.00428380
mov edx, dword [ebp - 0x620]
cmp edx, 8
jb 0x458aff
mov ecx, dword [ebp - 0x634]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x458af5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x458d07
push edx
push ecx
call fcn.00460b61
add esp, 8
cmp dword [0x57b248], 8
mov eax, 0x57b234
push dword [0x57b244]
cmovae eax, dword [0x57b234]
mov ecx, 0x57b24c
push eax
call fcn.00416d80
push 1
push 0x53ed58
mov ecx, 0x57b234
call fcn.00419c70
push 0x11
push str.Softwarekangnote
mov ecx, 0x57b234
call fcn.00419c70
cmp dword [0x57b248], 8
mov edx, 0x57b234
cmovae edx, dword [0x57b234]
sub esp, 0x18
mov esi, esp
mov ecx, edx
xor eax, eax
mov dword [esi + 0x10], 0
lea edi, [ecx + 2]
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458b75
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00416d80
push SysReAllocStringLen
call fcn.00416f10
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.004ed350
add esp, 0x28
lea eax, [ebp - 0x61c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x61c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458bd0
sub ecx, edx
lea eax, [ebp - 0x61c]
sar ecx, 1
push ecx
push eax
mov ecx, 0x57b1ec
call fcn.00416d80
push 1
push 0x53ed58
mov ecx, 0x57b1ec
call fcn.00419c70
push 8
push str.kangnote
mov ecx, 0x57b1ec
call fcn.00419c70
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004ed350
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x208
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.kangnote
lea eax, [ebp - 0x20c]
push eax
push 0x53fa1c
push eax
call fcn.00420180
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458c63
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, 0x57b21c
call fcn.00416d80
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004ed350
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x458cc8
lea eax, [eax*2 - 2]
cmp eax, 0x208
jae 0x458d02
xor ecx, ecx
mov word [ebp + eax - 0x414], cx
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458cd1
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
mov ecx, 0x57b204
call fcn.00416d80
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
call fcn.0046100c
call fcn.004f639a
int3
Function at 0x4592d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53632d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x57b270]
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.00458f20
mov esi, dword [ebp - 0x18]
add esp, 8
cmp esi, dword [ebp - 0x14]
je 0x459368
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, dword [esi]
cmp eax, ecx
je 0x459368
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x459368
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
neg eax
push ebx
sbb edi, edi
and edi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45936a
xor edi, edi
test esi, esi
je 0x45939a
mov ecx, dword [ebp - 0x10]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x459390
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4593ae
push ecx
push esi
call fcn.00460b61
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004f639a
int3

Function at 0x45a4a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x45a4ae
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x45a56d
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5432f0]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5432f0]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5432f0]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5432f0]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5432f0]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5432f0]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5432f0]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5432f0]
sub edi, 1
jne 0x45a4c6
pop edi
test esi, esi
je 0x45a58b
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5432f0]
sub esi, 1
jne 0x45a571
not eax
pop esi
pop ebp
ret
Function at 0x45cc70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, esi
imul ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x45ccae
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45cca2
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp + 8]
call fcn.004ec850
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x45ce90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 1
cmp byte [esi], 0
je 0x45cec4
push 0
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xb]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45cebf
mov byte [esi + 8], 1
mov edi, dword [ebp - 4]
jmp 0x45cef0
mov ecx, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x45ced6
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp + 0xb]
push eax
call fcn.004ec850
add esp, 0xc
lea eax, [ebx + edi]
mov dword [esi + 0x1c], eax
pop ebx
cmp edi, 1
jne 0x45cf06
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0xb]
mov dword [eax], ecx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x45cefe
cmp byte [esi + 8], 0
je 0x45cefe
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45ded0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x45e08b
cmp dword [edi + 0x18], 0
je 0x45e08b
cmp dword [edi + 0x7c], 0
je 0x45defb
push edi
call fcn.0045d250
add esp, 4
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push edi
call fcn.0045dcf0
add esp, 0x10
test eax, eax
je 0x45df1e
mov eax, 0xffffff99
pop edi
mov esp, ebp
pop ebp
ret
push esi
push 0x84
call fcn.004fe758
mov esi, eax
add esp, 4
test esi, esi
je 0x45df61
push 0x4000
call fcn.004fe758
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 4]
mov dword [esi], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], 0
test eax, eax
jne 0x45df6c
push esi
call fcn.004fe73d
add esp, 4
pop esi
mov eax, 0xffffff98
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x54], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x40], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], 0
test ecx, ecx
je 0x45dfc8
lea eax, [esi + 4]
mov dword [esi + 0x24], 0
push eax
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.0045c800
add esp, 4
test eax, eax
jne 0x45dfc8
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov cl, byte [edi + 0x30]
mov dword [esi + 0x58], eax
and cl, 1
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x30]
shr eax, 3
mov byte [esi + 0x6c], cl
test al, 1
je 0x45dfec
mov al, byte [edi + 0x39]
jmp 0x45dfef
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov edx, 0xc
xor eax, eax
mov dword [esi + 0x70], 0x12345678
test cl, cl
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmovne eax, edx
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x7c], eax
test edx, edx
je 0x45e06d
mov al, byte [edx]
test al, al
je 0x45e06d
mov ecx, dword [esi + 0x70]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
mov eax, dword [eax*4 + 0x5432f0]
xor eax, ecx
mov ecx, dword [esi + 0x78]
mov dword [esi + 0x70], eax
movzx eax, al
add eax, dword [esi + 0x74]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x74], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5432f0]
mov dword [esi + 0x78], ecx
add edx, 1
jne 0x45e020
mov eax, dword [ebp - 8]
add eax, 0x1e
mov dword [edi + 0x7c], esi
add eax, dword [edi + 0x78]
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 8], 0
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0xffffff9a
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x45e4c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 8], ebx
cmp dword [ebx], 0
jne 0x45e66c
cmp dword [ebx + 4], 0xffffffff
jne 0x45e66c
push edi
lea edi, [ebx + 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 0x45e4f7
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x45e533
cmp eax, 0x2f
je 0x45e533
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x45e520
mov eax, dword [0x53ed58]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
push esi
cmp edi, 1
jne 0x45e55e
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x45e579
pop esi
pop edi
mov eax, 0x2000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
je 0x45e576
cmp edi, 3
je 0x45e576
pop esi
pop edi
mov eax, 0x10000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
xor ebx, ebx
xor al, al
mov byte [ebp - 1], al
mov byte [ebp + 0x13], bl
cmp edi, 1
je 0x45e5bf
cmp edi, 2
jne 0x45e5db
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x45e5b9
pop esi
pop edi
mov eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp + 0x13], 1
jmp 0x45e5c5
mov ebx, esi
mov byte [ebp + 0x13], 0
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 1], al
push 0x20
call fcn.00460b31
add esp, 4
mov esi, eax
cmp edi, 1
je 0x45e616
cmp edi, 2
je 0x45e616
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov word [esi], 0x100
mov byte [esi + 0x10], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], 0
jmp 0x45e647
mov al, byte [ebp + 0x13]
mov byte [esi + 0x10], al
mov al, byte [ebp - 1]
mov byte [esi], 1
mov byte [esi + 1], al
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test al, al
je 0x45e647
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
push esi
call fcn.0045d2d0
mov ecx, dword [ebp - 8]
add esp, 4
mov edx, 0x200
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
pop esi
cmove ecx, edx
pop edi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x1000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45f410
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x57b270]
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 0x45f444
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45f444
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x45f53c
push edi
mov edi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x45f463
cmp dx, 0x5c
jne 0x45f465
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x45f457
cmp edi, ebx
je 0x45f4b3
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.004ec850
add esp, 0xc
cmp edi, 0x208
jae 0x45f54c
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.0045f410
add esp, 8
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x45f4e0
lea ecx, [ebp - 0x20c]
sub ecx, esi
nop dword [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x45f4d0
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x45f4e2
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x45f500
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 0x45f53c
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.00460b6f
mov esp, ebp
pop ebp
ret
call fcn.0046100c
int3
Function at 0x463509
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ebx, ecx
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindow]
push 1
push dword [ebx + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push 7
pop ecx
push dword [ebx + 4]
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_IsWindow]
mov edi, dword [sym.imp.USER32.dll_SetFocus]
jmp 0x4635b8
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4635bc
cmp dword [ebp - 0x1c], 0x10
jne 0x463587
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebx + 4]
jne 0x463587
mov eax, dword [ebp - 0x18]
push 1
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call edi
lea eax, [ebp - 0x20]
push eax
call fcn.0046700d
pop ecx
test al, al
jne 0x4635a9
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x1c], 0x12
je 0x4635bc
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x463554
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call edi
cmp dword [ebp - 0x1c], 0x12
pop edi
pop esi
pop ebx
jne 0x4635da
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x4635df
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 0x463611
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 0x4647bd
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 0x4647e0
or esi, 1
push 1
call edi
test ax, ax
jns 0x4647ec
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x4647f8
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x464804
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x466041
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0x18c]
call fcn.0046290f
mov edi, dword [ebp + 8]
test eax, eax
jle 0x466097
push ebx
lea ecx, [esi + 0x18c]
mov byte [ebp + 0xb], 0
call fcn.004624a2
lea ecx, [ebp + 0xb]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push edi
call dword [edx]
cmp byte [ebp + 0xb], 0
jne 0x4660f5
lea ecx, [esi + 0x18c]
inc ebx
call fcn.0046290f
cmp ebx, eax
jl 0x466060
sub edi, 0x100
je 0x46615b
sub edi, 4
je 0x4660f9
dec edi
sub edi, 1
jne 0x466152
push dword [ebp + 0xc]
and dword [ebp + 8], edi
call fcn.004fedc0
pop ecx
mov ecx, dword [esi + 0x10c]
lea edx, [ebp + 8]
push reloc.OLEAUT32.dll_VariantCopyInd
mov word [ebp + 8], ax
push edx
mov eax, dword [ecx]
push 0x4671e3
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x466152
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xf0]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x466154
cmp dword [esi + 0x110], 0
je 0x466152
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
and dword [ebp - 0x1c], 0
mov word [ebp - 0xc], ax
mov eax, dword [esi + 0x120]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x124]
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x10], eax
call fcn.004647bd
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x110]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x466152
mov ecx, dword [esi + 0x110]
test ecx, ecx
je 0x4661b4
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x4661b4
mov ecx, dword [esi + 0x110]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x4661b4
mov ecx, dword [esi + 0x110]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.004ed72f
pop ecx
pop ecx
test eax, eax
je 0x4661b4
mov ecx, dword [esi + 0x110]
call fcn.0046c8f2
test al, al
jne 0x466152
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.00466c1a
jmp 0x4660f5
Function at 0x4669c2
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [ebp + 8]
cmp eax, dword [edi]
je 0x4669e9
cmp esi, dword [edi + 0x110]
je 0x4669e9
push dword [edi]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0x110]
cmp esi, eax
je 0x466acd
test eax, eax
je 0x466a4f
and dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x110]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push str.killfocus
push dword [edi + 0x110]
call fcn.004667a6
and dword [edi + 0x110], 0
test esi, esi
je 0x466acd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, edi
jne 0x466acd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc8]
test al, al
je 0x466acd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd4]
test al, al
je 0x466acd
and dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [edi + 0x110], esi
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x110]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push str.setfocus
push dword [edi + 0x110]
call fcn.004667a6
pop edi
pop esi
leave
ret 4
Function at 0x46dc12
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x4d4], edi
je 0x46dc7c
cmp dword [ebp + 8], 0x100
jne 0x46dc6b
cmp word [ebp + 0xc], 0xd
jne 0x46dc6b
cmp byte [esi + 0x4da], 0
je 0x46dc52
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x46dc6b
cmp byte [esi + 0x4db], 0
jne 0x46dc6b
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x46dc67
push edi
push edi
push edi
push str.return
push esi
call fcn.004667a6
xor eax, eax
jmp 0x46dc7f
mov eax, dword [esi + 0x4d4]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x474e75
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x474f2f
movzx eax, word [esi]
test ax, ax
je 0x474f2f
push edi
mov edi, esi
mov ecx, esi
mov edx, eax
cmp dx, 0x2f
je 0x474eb7
cmp dx, 0x5c
jne 0x474eb9
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x474eab
cmp edi, esi
je 0x474f02
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.00502248
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x474f3d
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00474e75
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00507963
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.005078f2
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00460b6f
leave
ret
call fcn.0046100c
int3

Function at 0x4755a3
Capabilities:
Get common file path

Disassembly:
push 8
mov eax, 0x536e48
call fcn.00461a8c
mov ebx, ecx
lea esi, [ebx + 0x340]
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
cmp dword [ebx], 0
jne 0x475639
cmp dword [ebx + 4], 0xffffffff
jne 0x475639
lea edi, [ebx + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x53ed58
push edi
call fcn.005078f2
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
jne 0x47560a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x47560a
mov edi, 0x2000000
jmp 0x47563e
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00477bc9
add esp, 0x10
test eax, eax
jne 0x475628
mov edi, dword [ebp - 0x10]
jmp 0x47563e
push eax
call fcn.004782e8
mov edi, dword [0x5850c0]
pop ecx
mov dword [ebx], eax
jmp 0x47563e
mov edi, 0x1000000
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
call fcn.00461a55
ret 0xc