joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4065a0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41e47b
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x2a0], eax
push esi
push edi
mov eax, dword [0x4290b8]
xor eax, esp
push eax
lea eax, [esp + 0x2b0]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2c0]
mov ecx, edi
call fcn.00406370
mov esi, eax
test esi, esi
jge 0x406682
lea ecx, [esp + 0xc]
call fcn.00409260
movzx eax, word [edi]
push eax
lea ecx, [esp + 0xa8]
push str.._c:
push ecx
mov dword [esp + 0x2c4], 0
call fcn.00404200
add esp, 0xc
push 0x80000000
lea edx, [esp + 0xa8]
push edx
lea ecx, [esp + 0x14]
call fcn.00409270
test eax, eax
je 0x406657
lea ecx, [esp + 0xc]
call fcn.004092d0
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.004092a0
test esi, esi
je 0x406657
call fcn.004044b0
jmp 0x40666a
push edi
push 0
push str.UsbStart
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x2b8], 0xffffffff
call fcn.004092f0
test esi, esi
jle 0x4066d5
push esi
lea eax, [esp + 0x18]
push 0x41f7e0
push eax
call fcn.00404220
add esp, 0xc
push edi
push 0x40
lea ecx, [esp + 0x2c]
push ecx
push 0x41f30c
lea edx, [esp + 0x24]
push edx
push str.File
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x24]
lea edx, [eax + 2]
jmp 0x4066c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4066c0
sub eax, edx
sar eax, 1
jne 0x4066d5
xor eax, eax
jmp 0x4066d7
mov eax, esi
mov ecx, dword [esp + 0x2b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x2a0]
xor ecx, esp
call fcn.0040b218
add esp, 0x2b0
ret
Function at 0x406a40
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x234
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [esp + 0x238]
push esi
push edi
xor edi, edi
push edi
push 2
mov dword [esp + 0x10], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x406adf
push 0x22c
lea ecx, [esp + 0x10]
push edi
push ecx
call fcn.0040b920
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push esi
mov dword [esp + 0x14], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x406ad4
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, eax
cmp ebp, dword [esp + 0x18]
je 0x406ac4
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406aa5
jmp 0x406ad3
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
mov edi, 1
pop ebp
test esi, esi
je 0x406adf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x238]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0040b218
add esp, 0x234
ret

Function at 0x406b00
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x238
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x234], eax
mov eax, dword [esp + 0x23c]
push edi
lea ecx, [esp + 8]
push ecx
mov dword [esp + 8], eax
xor edi, edi
call fcn.00406a40
add esp, 4
test eax, eax
je 0x406bd6
push esi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x406bbd
push 0x22c
lea edx, [esp + 0x14]
push edi
push edx
call fcn.0040b920
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x406bb2
push ebp
mov ebp, dword [esp + 0x10]
cmp ebp, dword [esp + 0x1c]
je 0x406b95
lea ecx, [esp + 0x14]
push ecx
push esi
mov dword [esp + 0x1c], 0x22c
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406b76
jmp 0x406bb1
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x38]
push edx
push 0x104
push eax
call fcn.0040b1a9
add esp, 0xc
mov edi, 1
pop ebp
test esi, esi
je 0x406bbd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.0040b218
add esp, 0x238
ret
mov ecx, dword [esp + 0x238]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040b218
add esp, 0x238
ret
Function at 0x406bf0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
mov ebx, dword [esp + 0x424]
push esi
push 0x206
xor esi, esi
lea ecx, [esp + 0x21a]
xor eax, eax
push esi
push ecx
mov word [esp + 0x220], ax
call fcn.0040b920
push 0x206
lea eax, [esp + 0x1e]
xor edx, edx
push esi
push eax
mov word [esp + 0x24], dx
call fcn.0040b920
add esp, 0x18
lea ecx, [esp + 8]
push ecx
push 0x1c
push esi
mov dword [esp + 0x14], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x406d37
mov eax, dword [esp + 8]
push ebp
push edi
lea edx, [esp + 0x21c]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea edx, [esp + 0x21c]
push edx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406cad
push esi
lea eax, [esp + 0x220]
push eax
call edi
test eax, eax
je 0x406d33
push 0x41f934
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x406d33
lea eax, [esp + 0x14]
push eax
call ebp
test eax, eax
jne 0x406ce0
push eax
lea ecx, [esp + 0x18]
push ecx
call edi
test eax, eax
je 0x406d33
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x406d33
push 0x41f930
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.0040b7ff
mov ecx, dword [esp + 0x438]
add esp, 0xc
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0040b218
add esp, 0x418
ret
mov eax, esi
jmp 0x406d1a
mov ecx, dword [esp + 0x41c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0040b218
add esp, 0x418
ret

Function at 0x406ed0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 4]
cmp eax, 5
jbe 0x406f19
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0040b218
add esp, 0x118
ret
jne 0x406f26
mov eax, 1
cmp dword [esp + 8], eax
jae 0x406f28
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0040b218
add esp, 0x118
ret

Function at 0x406f40
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
jne 0x406f78
mov eax, 1
cmp dword [esp + 8], eax
je 0x406f7a
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0040b218
add esp, 0x118
ret
Function at 0x406f90
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
jne 0x406fde
cmp dword [esp + 8], 0
jne 0x406fde
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0040b218
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.0040b218
add esp, 0x118
ret

Function at 0x407000
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 5
jne 0x40704e
cmp dword [esp + 8], 0
jne 0x40704e
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0040b218
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.0040b218
add esp, 0x118
ret

Function at 0x407070
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 5
jne 0x4070a8
mov eax, 1
cmp dword [esp + 8], eax
je 0x4070aa
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0040b218
add esp, 0x118
ret

Function at 0x4070c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
jne 0x40710e
cmp dword [esp + 8], 2
jne 0x40710e
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0040b218
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.0040b218
add esp, 0x118
ret

Function at 0x407130
Capabilities:
Read .ini file

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
mov word [0x5247a0], ax
lea eax, [ecx - 0xb5]
cmp eax, 0x289
ja 0x407816
movzx edx, byte [eax + 0x407aac]
jmp dword [edx*4 + 0x40781c]
mov eax, 0x5247a0
ret
Function at 0x408400
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x808
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x804], eax
push esi
push edi
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0
mov edi, 1
call fcn.004083d0
add esp, 4
mov dword [0x5269b0], eax
call fcn.00409740
cmp dword [0x5269b0], 0
mov esi, eax
je 0x40844c
cmp dword [esp + 8], 0
jne 0x40845e
call fcn.00406db0
test eax, eax
jne 0x40845e
call fcn.004082c0
test eax, eax
jne 0x408462
test esi, esi
je 0x408488
push 0
call fcn.00403330
add esp, 4
call fcn.00409f00
cmp eax, 3
je 0x4084d9
lea ecx, [esp + 8]
push ecx
call fcn.004083d0
add esp, 4
mov dword [0x5269b0], eax
cmp dword [0x5269b0], 0
je 0x4084a9
cmp dword [esp + 8], 0
je 0x4084a9
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x40858f
call fcn.00409560
test eax, eax
je 0x4084f2
call fcn.00406db0
test eax, eax
jne 0x4084f2
push 0x10
call fcn.00403310
push eax
push 0x28b
call fcn.00408000
add esp, 4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.0040b218
add esp, 0x808
ret
lea edx, [esp + 8]
push edx
call fcn.004083d0
add esp, 4
mov dword [0x5269b0], eax
test eax, eax
je 0x40858f
cmp dword [esp + 8], 0
jne 0x40858f
call fcn.004082c0
test eax, eax
jne 0x40853c
push 0x10
call fcn.00403310
push eax
push 0x22c
call fcn.00408000
add esp, 4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40858d
push 0x24c
call fcn.004080f0
add esp, 4
push eax
push 0x22c
call fcn.00408000
add esp, 4
push eax
lea eax, [esp + 0x14]
push str._s_n_n_s
push eax
call fcn.00403ff0
add esp, 0x10
push 0x34
call fcn.00403310
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
je 0x40858d
call fcn.004093b0
test eax, eax
jne 0x40858f
xor edi, edi
mov ecx, dword [esp + 0x80c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0040b218
add esp, 0x808
ret
Function at 0x4085b0
Capabilities:
Read .ini file
Set registry value

Disassembly:
sub esp, 0x434
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x430], eax
mov eax, dword [str.Environment]
mov ecx, dword [0x420f8c]
mov edx, dword [0x420f90]
push ebx
mov dword [esp + 0x14], eax
mov eax, dword [0x420f94]
mov dword [esp + 0x18], ecx
mov ecx, dword [0x420f98]
mov dword [esp + 0x1c], edx
mov edx, dword [0x420f9c]
push esi
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call fcn.00403200
mov ecx, dword [0x420f80]
mov dx, word [0x420f84]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
mov word [esp + 0x20], dx
mov ax, word [eax]
push 0
lea edx, [esp + 0x28]
push edx
push 0x80000001
mov word [esp + 0x28], ax
call ebx
lea eax, [esp + 0x14]
lea ecx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x408650
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x18]
push ecx
push 1
push 0
push str.UsbStart
push edx
call esi
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
call fcn.00403200
movzx ecx, word [eax]
push ecx
lea edx, [esp + 0x238]
push str._c:.cfgSetting.ini
push edx
call fcn.00404200
add esp, 0xc
lea eax, [esp + 0x234]
push eax
push pe_nt_image_headers32
lea ecx, [esp + 0x3c]
push ecx
push 0x41f30c
push str.CG_Parameter
push str.UsbEnter
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0xc]
push edx
push 0xf003f
push 0
lea eax, [esp + 0x28]
push eax
push 0x80000001
call ebx
lea eax, [esp + 0x34]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4086f0
sub eax, ecx
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x38]
push edx
push 1
push 0
push str.CG_Parameter
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call edi
lea edx, [esp + 0x10]
push edx
push 0x1388
push 2
push str.Environment
push 0
push 0x1a
push 0xffff
mov dword [esp + 0x2c], 0
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040b218
add esp, 0x434
ret
Function at 0x408bb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
push ebx
call ebp
push 0
push ebx
call fcn.0040b905
add esp, 8
test eax, eax
jne 0x408be3
push 0x64
call edi
inc esi
cmp esi, 0xa
jl 0x408bc1
pop edi
pop esi
xor eax, eax
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebp
ret

Function at 0x408bf0
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x220]
push ebx
mov ebx, dword [esp + 0x220]
push ebp
push esi
push edi
mov edi, dword [esp + 0x228]
push 0x4238ac
push eax
xor ebp, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x408d08
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0x14], eax
test eax, eax
je 0x408d08
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408d08
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408d08
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408c70
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 - 2], 0x5c
push ebx
push edi
jne 0x408c95
push 0x41f3a0
lea eax, [esp + 0x24]
push eax
jmp 0x408c9f
push str._s_s
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ebx, [esp + 0x18]
mov dword [esp + 0x10], ebp
call fcn.00408bb0
push 0x41f63c
mov edx, ebx
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0040c771
add esp, 0xc
test eax, eax
jne 0x408d08
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push 1
push edx
push esi
call fcn.0040c510
add esp, 0x10
test eax, eax
je 0x408cec
mov ebp, 1
mov eax, dword [esp + 0x10]
push eax
call fcn.0040c332
add esp, 4
test ebp, ebp
jne 0x408d23
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebp
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b218
add esp, 0x214
ret
lea edx, [esp + 0x18]
push edx
mov eax, edx
push eax
call fcn.00401370
add esp, 8
test eax, eax
je 0x408d4a
push 0
lea ecx, [esp + 0x1c]
push ecx
push 5
push 2
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp 0x408d08
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
jmp 0x408d0a
Function at 0x408d60
Capabilities:
Get file version info

Disassembly:
sub esp, 0x1c
push ebp
push esi
push edi
mov edi, eax
lea eax, [esp + 0xc]
push eax
xor ebp, ebp
push edi
mov dword [esp + 0x14], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebp
jne 0x408d88
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
push ebx
push esi
call fcn.0040bc50
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x408da2
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
mov ecx, dword [esp + 0x10]
push ebx
push esi
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push str.StringFileInfo040904b0ProductVersion
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x408e17
mov esi, dword [esp + 0x14]
or eax, 0xffffffff
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
xor edi, edi
lea esp, [esp]
push esi
call fcn.0040bc2a
push 0x2c
push esi
mov dword [esp + edi*4 + 0x28], eax
call fcn.0040ba6e
mov esi, eax
add esp, 0xc
test esi, esi
je 0x408e04
inc edi
add esi, 2
cmp edi, 4
jl 0x408de0
cmp dword [esp + 0x1c], 6
jl 0x408e17
cmp dword [esp + 0x28], 0x12
jl 0x408e17
mov ebp, 1
push ebx
call fcn.0040bc09
add esp, 4
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x1c
ret
Function at 0x408e30
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x664
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x660], eax
push ebx
push ebp
mov ebp, dword [esp + 0x674]
push esi
push edi
mov edi, dword [esp + 0x678]
xor esi, esi
push 0x24c
lea eax, [esp + 0x18]
push esi
push eax
mov dword [esp + 0x1c], esi
call fcn.0040b920
push edi
lea ecx, [esp + 0x478]
push 0x4238ec
push ecx
call fcn.00404200
add esp, 0x18
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408fd0
test byte [esp + 0x10], 0x10
je 0x408f50
mov ecx, 0x4238e8
lea eax, [esp + 0x3c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408eda
test dx, dx
je 0x408ed6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408eda
add eax, 4
add ecx, 4
test dx, dx
jne 0x408eb4
xor eax, eax
jmp 0x408edf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408fb1
mov ecx, 0x4238e0
lea eax, [esp + 0x3c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408f16
test dx, dx
je 0x408f12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408f16
add eax, 4
add ecx, 4
test dx, dx
jne 0x408ef0
xor eax, eax
jmp 0x408f1b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408fb1
lea ecx, [esp + 0x3c]
push ecx
push edi
lea edx, [esp + 0x268]
push str._s_s
push edx
call fcn.00404200
lea eax, [esp + 0x270]
push ebp
push eax
call fcn.00408e30
add esp, 0x18
mov esi, eax
jmp 0x408fb1
lea ecx, [esp + 0x3c]
push 0x4238bc
push ecx
call fcn.0040d3b7
add esp, 8
test eax, eax
jne 0x408fb1
lea edx, [esp + 0x3c]
push edx
push edi
push str._s_s
lea eax, [esp + 0x26c]
push 0x104
push eax
call fcn.0040b5c1
add esp, 0x14
lea eax, [esp + 0x260]
call fcn.00408d60
test eax, eax
je 0x408fb1
lea ecx, [esp + 0x260]
push ecx
push 0x104
push ebp
call fcn.0040b1a9
add esp, 0xc
mov esi, 1
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x408fc9
test esi, esi
je 0x408ea0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x670]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b218
add esp, 0x664
ret
Function at 0x409050
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x664
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x660], eax
push ebx
push ebp
mov ebp, dword [esp + 0x674]
push esi
push edi
mov edi, dword [esp + 0x678]
xor esi, esi
push 0x24c
lea eax, [esp + 0x18]
push esi
push eax
mov dword [esp + 0x1c], esi
call fcn.0040b920
push edi
lea ecx, [esp + 0x478]
push 0x4238ec
push ecx
call fcn.00404200
add esp, 0x18
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4091d9
test byte [esp + 0x10], 0x10
je 0x40916c
mov ecx, 0x4238e8
lea eax, [esp + 0x3c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4090fa
test dx, dx
je 0x4090f6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4090fa
add eax, 4
add ecx, 4
test dx, dx
jne 0x4090d4
xor eax, eax
jmp 0x4090ff
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4091ba
mov ecx, 0x4238e0
lea eax, [esp + 0x3c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409136
test dx, dx
je 0x409132
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409136
add eax, 4
add ecx, 4
test dx, dx
jne 0x409110
xor eax, eax
jmp 0x40913b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4091ba
lea ecx, [esp + 0x3c]
push ecx
push edi
lea edx, [esp + 0x268]
push str._s_s
push edx
call fcn.00404200
lea eax, [esp + 0x270]
push ebp
push eax
call fcn.00409050
add esp, 0x18
mov esi, eax
jmp 0x4091ba
lea ecx, [esp + 0x3c]
push str.UsbSetting.exe
push ecx
call fcn.0040d3b7
add esp, 8
test eax, eax
jne 0x4091ba
lea edx, [esp + 0x3c]
push edx
push edi
push str._s_s
lea eax, [esp + 0x26c]
push 0x104
push eax
call fcn.0040b5c1
lea ecx, [esp + 0x274]
push ecx
push 0x104
push ebp
call fcn.0040b1a9
add esp, 0x20
mov esi, 1
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4091d2
test esi, esi
je 0x4090c0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x670]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b218
add esp, 0x664
ret

Function at 0x409300
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x84
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x80], eax
push esi
xor esi, esi
call fcn.004032c0
push eax
push 0x40
lea eax, [esp + 0xc]
push eax
push 0x41f30c
push str.Language
push str.Locale
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 4]
push 0x42392c
push ecx
call fcn.0040d3b7
add esp, 8
test eax, eax
jne 0x409354
mov esi, 0x409
lea edx, [esp + 4]
push 0x423924
push edx
call fcn.0040d3b7
add esp, 8
test eax, eax
jne 0x40936f
mov esi, 0x804
lea eax, [esp + 4]
push 0x42391c
push eax
call fcn.0040d3b7
add esp, 8
test eax, eax
jne 0x40938a
lea esi, [eax + 0x11]
jmp 0x40938f
test si, si
je 0x409399
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
mov ecx, dword [esp + 0x84]
pop esi
xor ecx, esp
call fcn.0040b218
add esp, 0x84
ret
Function at 0x4093b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x24c
mov eax, dword [0x4290b8]
xor eax, esp
mov dword [esp + 0x248], eax
lea eax, [esp + 0x40]
push eax
call fcn.00403200
push eax
call fcn.00408ff0
add esp, 8
test eax, eax
jne 0x4093f0
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.0040b218
add esp, 0x24c
ret
push esi
push 0x38
xor esi, esi
lea ecx, [esp + 0x10]
push esi
push ecx
call fcn.0040b920
add esp, 0xc
lea eax, [esp + 8]
lea edx, [esp + 0x44]
push eax
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x40
mov dword [esp + 0x18], str.open
mov dword [esp + 0x20], str._update
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x409472
mov ecx, dword [esp + 0x40]
push 0xffffffffffffffff
push ecx
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x40]
lea edx, [esp + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 4]
mov ecx, dword [esp + 0x24c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040b218
add esp, 0x24c
ret

Function at 0x409490
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea eax, [esp + 0xc]
push eax
push ebx
mov dword [esp + 0x14], 0
call edi
lea ecx, [esp + 0xc]
push ecx
mov esi, eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call edi
mov edi, eax
cmp esi, edi
je 0x4094e6
push ebp
mov ebp, dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebx
call ebp
push 1
push edi
push esi
call dword [sym.imp.USER32.dll_AttachThreadInput]
push ebx
call ebp
push 0
push edi
push esi
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret