joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42db98
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ecx + 0x204c]
test esi, esi
push edi
mov edi, dword [ecx + 0x2050]
jne 0x42dbbe
mov esi, 0x46f33c
mov edi, 0x46f34c
push 0x802
push 0xa
push dword [ebp + 8]
call fcn.0042b6f8
add esp, 0xc
mov edx, dword [ebp + 0x10]
add edx, 0x16b4
mov ebx, eax
push edx
call fcn.0042c108
add esp, 4
test eax, eax
je 0x42dbf2
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x46f354
lea ecx, [ebp - 0x60]
push ecx
call fcn.004605d0
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
push dword [edx + 0x3bc]
push 0x46f360
push ecx
call fcn.00460790
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x60]
push edx
push ecx
call fcn.00460190
lea edx, [ebp - 0x60]
mov dword [ebx + 0x30], edx
add esp, 0x1c
push ebx
call sub.COMDLG32.DLL_GetSaveFileNameA
test eax, eax
mov dword [ebp - 0x68], eax
jne 0x42dc56
mov esi, dword [ebp - 0x68]
call sub.COMDLG32.DLL_CommDlgExtendedError
mov esi, eax
test eax, eax
jne 0x42dc4d
mov esi, 0x1b
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebx + 0x1c]
mov ecx, dword [ebp + 0x10]
add ecx, 0x16b4
push ecx
mov dword [ebp - 0x78], ecx
call fcn.004605d0
add esp, 8
mov edx, dword [ebp - 0x78]
push edx
call fcn.0042c158
add esp, 4
test eax, eax
jne 0x42dc8f
push 0x46f364
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.00460190
add esp, 8
push ebx
push dword [ebp + 0x10]
call fcn.0042b94c
add esp, 8
mov edx, dword [ebp + 0x10]
lea ecx, [edx + 0x16b4]
push ecx
mov dword [ebp - 0x74], ecx
call fcn.00460634
add esp, 4
cmp eax, 5
jae 0x42dcc1
pop edi
mov eax, 0x93
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x74]
push edx
call fcn.0042de38
add esp, 4
cmp eax, 0xffffffff
mov dword [ebp - 0x6c], eax
jne 0x42dce1
pop edi
mov eax, 0x94
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
cmp dword [esi + ebx*4], 0
je 0x42dd79
cmp dword [edi + ebx*4], 0
je 0x42dd79
push 0x20
lea ecx, [ebp - 0x60]
push 0x20
push ecx
call fcn.0046071c
push dword [esi + ebx*4]
call fcn.00460634
lea edx, [ebp - 0x60]
push eax
mov dword [ebp - 0x70], eax
push dword [esi + ebx*4]
push edx
call fcn.00460310
lea ecx, [ebp - 0x60]
mov byte [ebp - 0x40], 0
push dword [edi + ebx*4]
push ecx
call fcn.00460190
lea edx, [ebp - 0x60]
push 0x46f36c
push edx
call fcn.00460190
add esp, 0x2c
lea ecx, [ebp - 0x70]
push 0
lea edx, [ebp - 0x60]
push ecx
push edx
call fcn.00460634
add esp, 4
lea ecx, [ebp - 0x60]
push eax
push ecx
mov dword [ebp - 0x64], eax
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
mov dword [ebp - 0x68], eax
je 0x42dd79
mov edx, dword [ebp - 0x70]
cmp edx, dword [ebp - 0x64]
jne 0x42dd79
inc ebx
cmp ebx, 0x21
jb 0x42dce3
mov esi, dword [ebp - 0x68]
test esi, esi
je 0x42dd88
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x64]
je 0x42dd94
pop edi
mov eax, 0x96
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp eax, 1
sbb eax, eax
and eax, 0x98
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f278
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
call fcn.00404980
call fcn.00404960
lea ebx, [eax + 0x19b4]
mov dword [ebp - 0x84], eax
cmp dword [ebp + 0x10], 0
je 0x42f322
push 0x802
push 0xb
push dword [ebp + 8]
call fcn.0042b6f8
add esp, 0xc
mov esi, eax
push ebx
call fcn.0042c108
add esp, 4
test eax, eax
je 0x42f2ce
push eax
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push esi
call sub.COMDLG32.DLL_GetSaveFileNameA
test eax, eax
jne 0x42f2e4
call sub.COMDLG32.DLL_CommDlgExtendedError
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0042c1b8
push dword [esi + 0x1c]
push ebx
call fcn.004605d0
add esp, 0xc
push ebx
call fcn.0042c158
add esp, 4
test eax, eax
jne 0x42f311
push 0x46f414
push ebx
call fcn.00460190
add esp, 8
push esi
push dword [ebp - 0x84]
call fcn.0042b94c
add esp, 8
jmp 0x42f353
cmp byte [ebx], 0
jne 0x42f353
push ebx
push 0x100
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
push 0x46f41c
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0x46f414
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push dword [edi + 0x80]
mov ecx, 0x46f420
lea edx, [ebp - 0x80]
push dword [edi + 0x7c]
push ecx
push edx
call fcn.00460790
lea ecx, [ebp - 0x80]
mov edx, 0x46f434
push ebx
push ecx
push 0x46f428
push edx
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
mov ecx, 0x46f420
lea edx, [ebp - 0x80]
push dword [edi + 0x88]
mov esi, eax
push dword [edi + 0x84]
push ecx
push edx
call fcn.00460790
lea ecx, [ebp - 0x80]
mov edx, 0x46f434
push ebx
push ecx
push 0x46f438
push edx
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
imul eax, esi
mov ecx, 0x46f420
push dword [edi + 0x90]
lea edx, [ebp - 0x80]
mov esi, eax
push dword [edi + 0x8c]
push ecx
push edx
call fcn.00460790
lea ecx, [ebp - 0x80]
mov edx, 0x46f434
push ebx
push ecx
push 0x46f444
push edx
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
imul eax, esi
mov ecx, 0x46f420
push dword [edi + 0x98]
lea edx, [ebp - 0x80]
mov esi, eax
push dword [edi + 0x94]
push ecx
push edx
call fcn.00460790
lea ecx, [ebp - 0x80]
mov edx, 0x46f434
push ebx
push ecx
push 0x46f450
push edx
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
imul eax, esi
mov esi, eax
add esp, 0x40
pop edi
cmp esi, 1
sbb eax, eax
neg eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f438
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
mov eax, dword [ebp + 0x10]
lea ecx, [eax + 0x19b4]
push esi
push ecx
push 0xb
push eax
mov dword [ebp - 0x84], ecx
push dword [ebp + 8]
call fcn.0042ddae
add esp, 0x10
cmp eax, 0x3f1
mov dword [ebp - 0x88], eax
je 0x42f489
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x42f47e
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x84]
cmp byte [edx], 0
jne 0x42f491
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x10]
cmp dword [ebx + 0x688], 0
jle 0x42f4a8
pop esi
mov eax, 0xfffffffb
pop ebx
mov esp, ebp
pop ebp
ret
push edx
lea esi, [ebp - 0x80]
push 0x80
push esi
push 0
push 0x46f428
push 0x46f434
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
test eax, eax
jne 0x42f4d3
pop esi
mov eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x80]
push ecx
call fcn.00462abc
mov edx, dword [ebp + 0x14]
lea ebx, [ebp - 0x80]
fstp qword [edx + 0x7c]
add esp, 8
push dword [ebp - 0x84]
push 0x80
push ebx
push 0
push 0x46f438
push 0x46f434
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
test eax, eax
jne 0x42f517
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea esi, [ebp - 0x80]
push esi
call fcn.00462abc
mov ecx, dword [ebp + 0x14]
fstp qword [ecx + 0x84]
add esp, 8
push dword [ebp - 0x84]
push 0x80
push esi
push 0
push 0x46f444
push 0x46f434
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
test eax, eax
jne 0x42f55b
pop esi
mov eax, 0xfffffffd
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea edx, [ebp - 0x80]
push edx
call fcn.00462abc
mov ebx, dword [ebp + 0x14]
lea esi, [ebp - 0x80]
fstp qword [ebx + 0x8c]
add esp, 8
push dword [ebp - 0x84]
push 0x80
push esi
push 0
push 0x46f450
push 0x46f434
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
test eax, eax
jne 0x42f5a2
pop esi
mov eax, 0xfffffffc
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x80]
push ecx
call fcn.00462abc
mov edx, dword [ebp + 0x14]
xor eax, eax
fstp qword [edx + 0x94]
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f5c8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
mov edx, dword [ebp + 0x10]
lea eax, [edx + 0x1ab4]
push esi
fldz
lea ebx, [edx + 0x828]
mov dword [ebp - 0x84], eax
xor ecx, ecx
mov dword [ebp - 0x8c], ebx
cmp dword [ebp + 8], ecx
fst qword [ebx + 0x48]
fstp qword [ebx + 0x40]
je 0x42f624
push eax
push 0xc
push edx
mov dword [ebp + 0x10], edx
mov dword [ebp - 0x88], ecx
push dword [ebp + 8]
call fcn.0042ddae
mov dword [ebp - 0x88], eax
add esp, 0x10
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x88]
cmp ecx, 0x3f1
je 0x42f6ed
test ecx, ecx
je 0x42f63c
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x84], 0
je 0x42f6ed
cmp dword [edx + 0x688], 0
jle 0x42f65d
pop esi
mov eax, 0xfffffffd
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x84]
lea ecx, [ebp - 0x80]
push 0x80
push ecx
push 0
push 0x46f45c
push 0x46f474
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
test eax, eax
jne 0x42f68d
pop esi
mov eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea edx, [ebp - 0x80]
push edx
call fcn.00462abc
mov esi, dword [ebp - 0x8c]
lea ebx, [ebp - 0x80]
fstp qword [esi + 0x40]
add esp, 8
push dword [ebp - 0x84]
push 0x80
push ebx
push 0
push 0x46f468
push 0x46f474
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
test eax, eax
je 0x42f6e2
push 0
lea ecx, [ebp - 0x80]
push ecx
call fcn.00462abc
mov edx, dword [ebp - 0x8c]
fstp qword [edx + 0x48]
add esp, 8
jmp 0x42f6ed
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f6f8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push esi
add ebx, 0x1ab4
mov esi, dword [ecx + 0x35d4]
cmp dword [ebp + 8], 0
je 0x42f796
push 0x802
push 0xc
push dword [ebp + 8]
call fcn.0042b6f8
add esp, 0xc
mov esi, eax
push ebx
call fcn.0042c108
add esp, 4
test eax, eax
je 0x42f746
push eax
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push esi
call sub.COMDLG32.DLL_GetSaveFileNameA
test eax, eax
jne 0x42f75b
call sub.COMDLG32.DLL_CommDlgExtendedError
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0042c1b8
push dword [esi + 0x1c]
push ebx
call fcn.004605d0
add esp, 0xc
push ebx
call fcn.0042c158
add esp, 4
test eax, eax
jne 0x42f788
push 0x46f4c0
push ebx
call fcn.00460190
add esp, 8
push esi
push dword [ebp + 0x10]
call fcn.0042b94c
add esp, 8
jmp 0x42f7c7
cmp byte [ebx], 0
jne 0x42f7c7
push ebx
push 0x100
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
push 0x46f41c
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0x46f4c0
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov esi, dword [ebp + 0x10]
lea edx, [ebp - 0x80]
push dword [esi + 0x86c]
push dword [esi + 0x868]
push 0x46f420
push edx
call fcn.00460790
add esp, 0x10
lea ecx, [ebp - 0x80]
push ebx
push ecx
push 0x46f478
push 0x46f474
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
test eax, eax
jne 0x42f80b
pop esi
mov eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x86c]
lea edx, [ebp - 0x80]
push dword [esi + 0x868]
push 0x46f420
push edx
call fcn.00460790
add esp, 0x10
lea ecx, [ebp - 0x80]
push ebx
push ecx
push 0x46f484
push 0x46f474
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
test eax, eax
jne 0x42f84c
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0x46f4c8
push 0x46f490
push 0x46f4cc
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
cmp eax, 1
sbb eax, eax
and eax, 0xfffffffd
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432948
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
mov si, word [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x432984
mov eax, esi
and eax, 0xffff
sar eax, 8
mov edx, dword [ebp + 8]
movzx ecx, byte [ebx + edx]
mov edx, esi
and edx, 0xff
xor ecx, edx
inc ebx
xor eax, dword [ecx*2 + 0x4702b4]
mov esi, eax
cmp ebx, edi
jb 0x43295b
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x451338
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
lea eax, [ebp - 0x88]
push esi
push edi
push eax
push 0x472e00
mov dword [ebp - 0x88], 0
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyA]
mov ebx, eax
test eax, eax
jne 0x4513f6
mov dword [ebp - 0x84], 0
xor esi, esi
mov edi, 1
test ebx, ebx
jne 0x4513cf
push 0x80
lea ecx, [ebp - 0x80]
push ecx
push esi
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.DLL_RegEnumKeyA]
mov ebx, eax
test eax, eax
jne 0x4513ca
push edi
lea edx, [ebp - 0x80]
push edx
push dword [ebp - 0x88]
call fcn.0045142f
add esp, 0xc
mov ebx, eax
cmp eax, 0xffffffdc
je 0x4513cf
test ebx, ebx
jne 0x4513ca
inc dword [ebp - 0x84]
inc edi
cmp edi, 0x10
jg 0x4513cf
inc esi
test ebx, ebx
je 0x451384
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
cmp ebx, 0xffffffdc
jne 0x4513e9
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x84]
mov ecx, dword [ebp + 8]
test edx, edx
jne 0x451402
pop edi
mov eax, 0xffffffd5
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ecx + 0x70c]
mov dword [ebx + 0x28], edx
mov esi, dword [ecx + 0x710]
mov dword [esi + 0x28], edx
mov eax, dword [ecx + 0x714]
mov dword [eax + 0x28], edx
mov edi, dword [ecx + 0x718]
xor eax, eax
mov dword [edi + 0x28], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45142f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
push ebx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
push esi
push edi
jle 0x451447
cmp ecx, 0x10
jle 0x451453
pop edi
mov eax, 0xffffec77
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ecx*4 + 0x4783c0]
test ebx, ebx
jne 0x45146a
pop edi
mov eax, 0xffffffdc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x19c]
push edx
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
mov esi, eax
test eax, eax
je 0x451493
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x80
mov esi, 1
lea edi, [ebp - 0x184]
push edi
lea eax, [ebp - 0x80]
lea edx, [ebp - 0x188]
push eax
push edx
push 0
push 0x472e10
mov dword [ebp - 0x184], ecx
mov dword [ebp - 0x188], esi
push dword [ebp - 0x19c]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
test eax, eax
jne 0x45158c
push 0x80
lea ecx, [ebp - 0x180]
lea eax, [ebp - 0x80]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
lea edx, [ebp - 0x198]
push edx
lea ecx, [ebp - 0x180]
push ecx
call dword [sym.imp.ole32.DLL_CLSIDFromString]
test eax, eax
jne 0x45159d
lea esi, [ebp - 0x198]
lea edi, [ebx + 0xf4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebx], 1
lea ecx, [ebx + 0x74]
push edx
mov byte [edx + 0x3f], al
push ecx
call fcn.004605d0
lea esi, [ebp - 0x184]
lea edi, [ebp - 0x80]
push esi
lea eax, [ebp - 0x188]
push edi
push eax
push 0
push 0x472e18
mov dword [ebp - 0x184], 0x80
mov dword [ebp - 0x188], 1
push dword [ebp - 0x19c]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
mov byte [ebp - 0x41], 0
add esp, 8
test eax, eax
jne 0x45159d
push edi
lea edx, [ebx + 0xb4]
push edx
call fcn.004605d0
add esp, 8
jmp 0x45159d
push 0x472e24
lea ecx, [ebx + 0x74]
push ecx
call fcn.004605d0
add esp, 8
push dword [ebp - 0x19c]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45bca0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
test edx, edx
jne 0x45bccd
cmp dword [0x47a048], 0
je 0x45bedb
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp + 8], ecx
test edx, edx
jle 0x45be3f
cmp dword [0x47a048], 0
mov ecx, dword [ebp + 8]
jne 0x45bedb
xor edx, edx
lea ebx, [edx + ecx]
lea esi, [ecx + edx*8]
inc edx
mov byte [ebx + 0x359c], 0
fld qword [0x473550]
cmp edx, 4
fstp qword [esi + 0x35a0]
jb 0x45bcea
mov dword [ebp + 8], ecx
xor edx, edx
lea eax, [ebp - 0x100]
push eax
mov dword [ecx + 0x24c4], edx
push ecx
call fcn.0045bee3
lea ecx, [ebp - 0x100]
push 0
push 0x40000080
push 3
push 0
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [0x47a048], eax
add esp, 8
cmp eax, 0xffffffff
jne 0x45bd62
mov dword [0x47a048], 0
pop esi
mov eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x47a040], 0
jne 0x45bd7e
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov dword [0x47a040], eax
cmp dword [0x47a044], 0
jne 0x45bd9a
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov dword [0x47a044], eax
cmp dword [0x47a04c], 0
jne 0x45bdb6
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov dword [0x47a04c], eax
cmp dword [0x47a040], 0
je 0x45bdd1
cmp dword [0x47a044], 0
je 0x45bdd1
cmp dword [0x47a04c], 0
jne 0x45bddc
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
push 0x14
push 0
push 0x47a054
call fcn.0046071c
push 0x14
push 0
push 0x47a068
call fcn.0046071c
mov ebx, dword [0x47a04c]
mov esi, 0x45c0b0
push 0
push 0
push 0
push esi
push 0
mov dword [0x47a064], ebx
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0
mov dword [0x47a050], eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
push dword [0x47a048]
call dword [sym.imp.KERNEL32.DLL_CancelIo]
add esp, 0x18
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edx, edx
jns 0x45be68
cmp dword [0x47a048], 0
je 0x45be5e
mov dword [ebp + 0xc], edx
push dword [0x47a048]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [ebp + 0xc]
mov dword [0x47a048], 0
cmp edx, 0xffffffff
jge 0x45bedb
cmp dword [0x47a040], 0
je 0x45be82
push dword [0x47a040]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [0x47a044], 0
je 0x45be97
push dword [0x47a040]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [0x47a050], 0
je 0x45beac
push dword [0x47a050]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [0x47a04c], 0
je 0x45bec1
push dword [0x47a04c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor ecx, ecx
mov dword [0x47a044], ecx
mov dword [0x47a040], ecx
mov dword [0x47a04c], ecx
mov dword [0x47a050], ecx
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45c4a4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x10]
push 0
push dword [esi + 0x58]
push 0
push dword [ebp + 8]
push dword [esi + 0x3c0]
push dword [esi + 0x3c4]
push 0
push 0
push 0x80000000
push 0
push 0x473620
push 1
call dword [sym.imp.USER32.DLL_CreateWindowExA]
mov ebx, eax
test eax, eax
je 0x45c526
lea ecx, [ebp - 0x10]
lea edx, [esi + 0x3c8]
push ecx
push edx
push ebx
call fcn.00450d23
push 0
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.USER32.DLL_MoveWindow]
push 0
push ebx
call dword [sym.imp.USER32.DLL_ShowWindow]
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx + reloc.USER32.DLL_CreateWindowExA], ebx
add esp, 0xc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x473640
mov eax, dword [ebp + 0xc]
mov dword [eax + reloc.USER32.DLL_CreateWindowExA], 0
push dword [ebp + 8]
call fcn.00450413
add esp, 8
mov eax, 0xffffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45cf58
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
call fcn.00404980
lea ecx, [ebx + 0x3d0]
mov edi, eax
mov dword [ebp - 0x30], ecx
lea edx, [ebx + 0x3dc]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x2c], edx
lea edx, [ebp - 0x18]
push ecx
push edx
push ebx
call fcn.0045e254
lea ecx, [ebp - 0x28]
push ecx
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_GetClientRect]
add esp, 0xc
mov esi, 3
cmp dword [ebx + 0x24], 0x3d
jle 0x45cfab
mov esi, 4
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x20]
push 1
call dword [sym.imp.USER32.DLL_GetKeyState]
test ax, ax
jns 0x45cfe5
mov edx, dword [edi + 0x32f4]
cmp edx, 4
jne 0x45cfcd
xor ebx, ebx
jmp 0x45cfea
cmp edx, 8
jne 0x45cfd9
mov ebx, 1
jmp 0x45cfea
cmp edx, 0x10
jne 0x45cfe5
mov ebx, 2
jmp 0x45cfea
mov ebx, 0xffffffff
mov dword [ebp - 8], ebx
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.DLL_CreateCompatibleDC]
mov edi, eax
xor ebx, ebx
mov ecx, dword [ebp - 0x14]
add ecx, 2
sub esi, ecx
cmp ebx, dword [ebp - 8]
je 0x45d00b
xor eax, eax
jmp 0x45d010
mov eax, 1
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + edx*4 - 0x30]
push dword [ecx + ebx*4]
push edi
call dword [sym.imp.GDI32.DLL_SelectObject]
push 0xcc0020
push 0
push 0
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push esi
mov dword [ebp - 0xc], eax
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.DLL_BitBlt]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.GDI32.DLL_SelectObject]
inc ebx
cmp ebx, 3
jb 0x45cffa
push edi
call dword [sym.imp.GDI32.DLL_DeleteDC]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4600c4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov edx, dword fs:[0]
push 0xffffffffffffffff
push 0x47373c
push 0x465194
push edx
mov dword fs:[0], esp
sub esp, 8
push eax
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
jmp 0x460112
call fcn.00465410
mov eax, esp
mov dword [0x47a090], eax
call fcn.00465b88
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x47a094], eax
call fcn.00465b6c
call fcn.004653cc
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x47a08c], eax
call fcn.00465bd4
call fcn.00465b58
call fcn.0046586c
call fcn.004654f0
push 0xa
push dword [0x47a08c]
push 0
push dword [0x47a094]
call fcn.00403010
push eax
call fcn.00465444
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword fs:[0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46526c
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x94
mov ecx, 0x20
xor eax, eax
push ebx
xor ebx, ebx
push edi
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov dword [esp + 0x94], eax
test word [esp + 0x96], 0x8000
je 0x4652a6
cmp byte [esp + 0x94], 4
jb 0x4652b0
mov edi, 0x10f
jmp 0x4653b3
push 1
call fcn.00467860
add esp, 4
mov ebx, eax
test eax, eax
je 0x4652ec
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov edi, eax
push 0x4740dc
call fcn.00460634
add esp, 4
lea ecx, [edi + eax + 1]
push ecx
push ebx
call fcn.00467878
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4652f3
xor edi, edi
jmp 0x4653c0
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push ebx
call fcn.00460634
add esp, 4
test eax, eax
mov dword [esp + 0x98], eax
je 0x465338
mov edx, dword [esp + 0x98]
lea ecx, [ebx + edx]
push ecx
push ebx
call fcn.004677f8
mov edi, eax
add esp, 8
cmp byte [edi], 0x5c
je 0x465338
push 0x4740e8
push ebx
call fcn.00460190
add esp, 8
push 0x4740ec
push ebx
call fcn.00460190
push ebx
push 0x80
lea edx, [esp + 0x1c]
push edx
push 0x4740f8
push 0x474100
push 0x474108
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
lea ecx, [esp + 0x14]
mov dword [esp + 0x94], ecx
push 0xa
lea edx, [esp + 0x98]
push edx
push ecx
call fcn.00461efc
mov dword [esp + 0xa4], eax
inc dword [esp + 0xa0]
push 0xa
lea ecx, [esp + 0xa4]
push ecx
push dword [esp + 0xa8]
call fcn.00461efc
mov edx, dword [esp + 0xb0]
mov edi, eax
shl edx, 8
add edi, edx
add esp, 0x20
test ebx, ebx
je 0x4653c0
push ebx
call fcn.004678bc
add esp, 4
mov eax, edi
pop edi
pop ebx
add esp, 0x94
ret