joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408420
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x88
mov eax, dword [0x420050]
xor eax, esp
mov dword [esp + 0x84], eax
push ebp
movzx ebp, word [esp + 0x90]
push esi
push edi
mov edi, ecx
push edi
mov dword [esp + 0x10], edi
call dword [sym.imp.USER32.dll_GetParent]
cmp ebp, 0x7d3
mov esi, eax
jl 0x408652
cmp ebp, 0x7d4
jle 0x40849a
cmp ebp, 0x7d8
jne 0x408652
mov eax, dword [0x42ab95]
push 0
push 0
push edi
push eax
mov dword [0x42abc5], 1
call sub.WSOCK32.dll_WSAAsyncSelect
push str.Transfer_cancelled_by_user
call fcn.00407bc0
add esp, 4
jmp 0x408652
push ebx
push 0x42abad
call fcn.0040c69a
xor ebx, ebx
or eax, 0xffffffff
add esp, 4
cmp dword [0x42abcd], ebx
mov dword [0x42aba9], 0xbb8
mov dword [0x42abc5], ebx
mov dword [0x42abc9], ebx
mov dword [0x42aba5], ebx
mov dword [0x42aba1], ebx
mov dword [0x42ab91], ebx
mov dword [0x42ab8d], ebx
mov dword [0x42ab95], eax
mov dword [0x42ab9d], eax
mov dword [0x42abbd], ebx
jne 0x4084f9
mov dword [0x42abc1], ebx
mov edi, dword [sym.imp.USER32.dll_GetDlgItemTextA]
push 0x100
cmp ebp, 0x7d3
push 0x422a81
setne cl
push 0x7d5
add cl, 1
push esi
mov byte [0x422980], cl
call edi
push 0x100
push 0x422981
push 0x7d6
push esi
call edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x80
lea edx, [esp + 0x18]
push edx
push 0x7dd
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push ebx
push ebx
push 0x7db
push esi
call dword [sym.imp.USER32.dll_GetDlgItemInt]
cmp byte [0x422a81], bl
mov dword [0x42ab89], eax
mov dword [0x42abc9], 0x200
je 0x408638
cmp byte [0x422981], bl
je 0x408638
call fcn.00408230
test eax, eax
je 0x40862a
push ebx
push ebx
push 0xf0
push 0x7df
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
push eax
lea ebx, [esp + 0x18]
call fcn.00407d90
add esp, 4
test eax, eax
je 0x40862a
push 0
push 0x7d4
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
push 0
push 0x7d3
push esi
call edi
push eax
call ebx
push 1
push 0x7d8
push esi
call edi
push eax
call ebx
mov ecx, dword [0x42aba9]
mov edi, dword [esp + 0x10]
xor eax, eax
cmp ebp, 0x7d3
setne al
push 0
push ecx
add eax, 0x659
mov esi, eax
push esi
push edi
call dword [sym.imp.USER32.dll_SetTimer]
mov edx, dword [0x42ab95]
push 1
push esi
push edi
push edx
call sub.WSOCK32.dll_WSAAsyncSelect
jmp 0x408651
mov eax, dword [0x42ab9d]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x408651
mov ecx, dword [esp + 0x10]
push 0x10
push str.Tftpd32
push str.Fields_Host_and_File_should_be_given.
push ecx
call fcn.00403450
add esp, 0x10
pop ebx
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0040c6d6
add esp, 0x88
ret
Function at 0x409000
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x16c
mov eax, dword [0x420050]
xor eax, esp
mov dword [esp + 0x168], eax
push str.explorer.exe
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x61]
push 0x104
push ecx
call fcn.00409a90
push 0x44
lea edx, [esp + 0x1c]
push 0
push edx
call fcn.0040c6f0
add esp, 0x14
lea eax, [esp]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
lea edx, [esp + 0x74]
push edx
push 0
mov dword [esp + 0x38], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0040c6d6
add esp, 0x16c
ret

Function at 0x409090
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x420050]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push ebp
push esi
mov esi, dword [esp + 0x118]
push edi
mov edi, dword [esp + 0x120]
lea eax, [esp + 0x10]
push eax
push 0x104
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call ebp
mov esi, eax
test esi, esi
je 0x4090e6
test edi, edi
je 0x4090e6
mov ecx, dword [esp + 0x124]
push edi
push ecx
call ebx
lea edx, [esp + 0x10]
push edx
call ebp
mov ecx, dword [esp + 0x114]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040c6d6
add esp, 0x108
ret

Function at 0x409210
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x388
mov eax, dword [0x420050]
xor eax, esp
mov dword [esp + 0x384], eax
push ebx
push edi
lea eax, [esp + 0x178]
push 0x104
push eax
mov byte [esp + 0x180], 0
call fcn.00409a90
add esp, 8
push 0x41ae18
lea ecx, [esp + 0x17c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
je 0x409317
mov edi, dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov ebx, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test byte [esp + 0x28], 0x10
jne 0x4092fb
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x30]
push edx
call edi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
call ebx
push 0x10
lea edx, [esp + 0x16c]
push edx
push 0
lea eax, [esp + 0x24]
push eax
push 1
push 0x800
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
mov ecx, dword [esp + 0x48]
push ecx
lea edx, [esp + 0x16c]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x294]
push str._s_t_s_t_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [ebp + 8]
push edx
lea eax, [esp + 0x2a0]
push eax
call esi
add esp, 0x1c
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409288
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x38c]
pop edi
pop ebx
xor ecx, esp
call fcn.0040c6d6
mov esp, ebp
pop ebp
ret
Function at 0x409730
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x4c8
mov eax, dword [0x420050]
xor eax, esp
mov dword [esp + 0x4c4], eax
push ebx
push ebp
mov ebp, dword [esp + 0x4d8]
push esi
mov esi, dword [esp + 0x4d8]
push edi
mov edi, dword [esp + 0x4e8]
xor ebx, ebx
cmp edi, 0xffffffff
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
je 0x4097bf
lea eax, [esp + 0x1c]
push eax
call fcn.0040c69a
lea ecx, [esp + 0x20]
push ecx
call fcn.0040c676
add esp, 8
push ebp
push eax
call fcn.0040d8ea
add esp, 4
push eax
lea edx, [esp + 0x2c]
push str._24.24s:__s_r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push ebx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [esp + 0x30]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0x18b
push esi
call edi
mov ebx, dword [esp + 0x4e4]
cmp eax, ebx
jle 0x4097fc
lea ebx, [ebx]
push 0
push 0
push 0x182
push esi
call edi
push 0
push 0
push 0x18b
push esi
call edi
cmp eax, ebx
jg 0x4097e0
push ebp
push 0
push 0x180
push esi
call edi
push esi
mov dword [esp + 0x14], eax
xor ebp, ebp
call dword [sym.imp.USER32.dll_GetDC]
push ebp
push ebp
push 0x18b
push esi
mov ebx, eax
call edi
test eax, eax
mov dword [esp + 0x10], eax
jl 0x40987b
lea ecx, [esp + 0x24]
push ecx
add eax, 0xffffffff
push eax
push 0x189
push esi
call edi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
push 1
lea edx, [esp + 0x18]
push edx
push ebx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov eax, dword [esp + 0x14]
cmp eax, ebp
jle 0x40986e
mov ebp, eax
mov eax, dword [esp + 0x10]
sub eax, 1
mov dword [esp + 0x10], eax
jns 0x409828
lea ebp, [ebp + ebp*8]
mov eax, 0x66666667
imul ebp
sar edx, 2
mov eax, edx
push 0
shr eax, 0x1f
add eax, edx
push eax
push 0x194
push esi
call edi
push ebx
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x4d4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040c6d6
add esp, 0x4c8
ret
Function at 0x40a850
Capabilities:
Check mutex on windows
Query environment variable

Disassembly:
sub esp, 0x10c
mov eax, dword [0x420050]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x118]
push ebx
push esi
mov esi, dword [esp + 0x118]
push eax
call fcn.00403250
add esp, 4
push str._Tftpd32__by_Ph._Jounin_MutEx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
test ebx, ebx
je 0x40a8e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40a8e7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Tftpd32_by_Ph._Jounin
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x40a8ce
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40a9d5
push 0x10
push str.Tftpd32
push str.Tftpd32_is_already_running
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40a9d5
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x100
lea eax, [esp + 0x18]
push eax
push str.TFTP_LOG
call edi
test eax, eax
je 0x40a917
lea ecx, [esp + 0x14]
push ecx
call fcn.0040d695
add esp, 4
mov dword [0x41f380], eax
jmp 0x40a921
mov dword [0x41f380], 8
push 0x100
lea edx, [esp + 0x18]
push edx
push str.TFTP_INI
call edi
test eax, eax
push 0x42bf20
je 0x40a942
lea eax, [esp + 0x18]
push eax
jmp 0x40a947
push str.Tftpd32.ini
call fcn.0040a760
add esp, 8
push 0x42c040
push str.Tftpd32.hlp
call fcn.0040a760
add esp, 8
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 8
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push esi
push 0
push 0x409f40
push 0x65
push 0
call fcn.0040beb0
mov edi, dword [sym.imp.USER32.dll_UnregisterClassA]
add esp, 0x14
push esi
push str.TftpAddIpBackGround
call edi
push esi
push str.SyslogBackGround
call edi
push esi
push str.SntpBackGround
call edi
push esi
push str.DhcpBackGround
call edi
push esi
push str.Ttftpd32BackGround
call edi
push esi
push str.Ttftpd32ClientBackGround
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [esp + 0x110]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040c6d6
add esp, 0x10c
ret 0x10
Function at 0x40aac0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x9c
mov eax, dword [0x420050]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xa0]
push esi
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push eax
push ecx
push edx
lea eax, [esp + 0x2c]
push str._d__d__d__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 8]
push edx
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWARETFTPD32
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
neg esi
lea eax, [esp + 0x1c]
sbb esi, esi
push eax
add esi, 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 4]
add eax, 1
push eax
lea ecx, [esp + 0x20]
push ecx
push 1
push 0
push str.LastWindowPos
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
add eax, 1
and esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x9c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040c6d6
add esp, 0x9c
ret
Function at 0x40aba0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa4
mov eax, dword [0x420050]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xa8]
push esi
push edi
lea ecx, [esp + 8]
push ecx
push 0x20019
xor edi, edi
push edi
push str.SOFTWARETFTPD32
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2c]
push eax
push edi
push edi
push str.LastWindowPos
push ecx
mov dword [esp + 0x2c], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x28], 0
lea ecx, [esp + 0x28]
mov byte [esp + 0xa7], 0
mov esi, ecx
je 0x40acdb
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x20]
cmp byte [esi], 0x20
jne 0x40ac7d
mov eax, edi
add edi, 1
cmp eax, 3
mov byte [esi], 0
ja case.default.0x40ac46
jmp dword [eax*4 + 0x40acf8]
push ecx
call fcn.0040d695
mov ebp, eax
jmp 0x40ac77
push ecx
call fcn.0040d695
mov ebx, eax
jmp 0x40ac77
push ecx
call fcn.0040d695
mov dword [esp + 0x2c], eax
jmp 0x40ac77
push ecx
call fcn.0040d695
mov dword [esp + 0x30], eax
add esp, 4
lea ecx, [esi + 1]
add esi, 1
cmp byte [esi], 0
jne 0x40ac34
cmp edi, 4
jne 0x40acd9
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
lea ecx, [ebp + 0x96]
cmp ecx, eax
jge 0x40acd9
push 1
call esi
lea edx, [ebx + 0x96]
cmp edx, eax
jge 0x40acd9
mov ecx, dword [esp + 0x28]
cmp ebp, ecx
jge 0x40acd9
mov eax, dword [esp + 0x2c]
cmp ebx, eax
jge 0x40acd9
test ebp, ebp
jl 0x40acd9
test ebx, ebx
jl 0x40acd9
push 1
sub eax, ebx
push eax
mov eax, dword [esp + 0x1c]
sub ecx, ebp
push ecx
push ebx
push ebp
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
pop ebp
pop ebx
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0x10]
pop edi
pop esi
xor ecx, esp
call fcn.0040c6d6
add esp, 0xa4
ret

Function at 0x40ad10
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.SOFTWARETFTPD32DHCP
push reloc.WSOCK32.dll_bind
call esi
push str.SOFTWARETFTPD32
push reloc.WSOCK32.dll_bind
call esi
neg eax
sbb eax, eax
add eax, 1
pop esi
ret

Function at 0x40bee0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x1ec
mov eax, dword [0x420050]
xor eax, esp
mov dword [esp + 0x1e8], eax
mov ecx, dword [esp + 0x1f8]
mov eax, dword [esp + 0x1f0]
mov dword [esp + 0x14], ecx
push 0x80
lea ecx, [esp + 0x1c]
push ecx
push eax
mov dword [esp + 0xc], 0x1e8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x2b6b7241
mov dword [esp + 0x18], 7
mov dword [esp + 0x1c], 0x806f
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [esp + 0x1f4]
lea edx, [esp]
push edx
push eax
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov ecx, dword [esp + 0x1e8]
xor ecx, esp
call fcn.0040c6d6
add esp, 0x1ec
ret
Function at 0x40c090
Capabilities:
Get graphical window text

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 0
push 0
push 0x18b
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
xor edi, edi
xor esi, esi
test ebx, ebx
jle 0x40c0cd
push 0
push esi
push 0x18a
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
add esi, 1
add edi, eax
cmp esi, ebx
jl 0x40c0b5
lea edi, [edi + ebx*2 + 1]
push edi
mov dword [esp + 0x18], edi
call fcn.0040ca1b
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
jne 0x40c0f6
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
xor edi, edi
test ebx, ebx
mov esi, eax
jle 0x40c146
mov ecx, dword [esp + 0x14]
add eax, ecx
mov dword [esp + 0x14], eax
push 0
push edi
push 0x18a
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
add eax, esi
cmp eax, dword [esp + 0x14]
jae 0x40c142
push esi
push edi
push 0x189
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
add esi, eax
mov byte [esi], 0xd
add esi, 1
mov byte [esi], 0xa
add edi, 1
add esi, 1
cmp edi, ebx
jl 0x40c108
mov eax, dword [esp + 0x10]
push eax
mov byte [esi], 0
call fcn.00403570
mov edx, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
mov dword [esp + 4], edx
jmp fcn.0040e4c3

Function at 0x40c6d6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420050]
jne 0x40c6e0
repz ret
jmp fcn.0040f688
Function at 0x414da4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00411c2a
xor ebx, ebx
cmp dword [0x42bee8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x414e79
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x414de4
xor eax, eax
jmp 0x414f3d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41c084
push edi
call esi
cmp eax, ebx
je 0x414ddd
push eax
call fcn.00411bc7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42bee8], eax
call esi
push eax
call fcn.00411bc7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42beec], eax
call esi
push eax
call fcn.00411bc7
mov dword [0x42bef0], eax
lea eax, [ebp - 8]
push eax
call fcn.004108af
test eax, eax
pop ecx
pop ecx
je 0x414e47
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040e919
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x414e79
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00411bc7
cmp eax, ebx
pop ecx
mov dword [0x42bef8], eax
je 0x414e79
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00411bc7
pop ecx
mov dword [0x42bef4], eax
mov eax, dword [0x42bef4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x414ef2
cmp dword [0x42bef8], esi
je 0x414ef2
push eax
call fcn.00411c33
pop ecx
call eax
cmp eax, ebx
je 0x414ebf
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x42bef8]
call fcn.00411c33
pop ecx
call eax
test eax, eax
je 0x414ebf
test byte [ebp - 0x18], 1
jne 0x414ef2
lea eax, [ebp - 0xc]
push eax
call fcn.004108e6
test eax, eax
pop ecx
je 0x414eda
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040e919
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x414ee9
or dword [ebp + 0x10], 0x200000
jmp 0x414f23
or dword [ebp + 0x10], 0x40000
jmp 0x414f23
mov eax, dword [0x42beec]
cmp eax, esi
je 0x414f23
push eax
call fcn.00411c33
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x414f23
mov eax, dword [0x42bef0]
cmp eax, esi
je 0x414f23
push dword [ebp - 4]
push eax
call fcn.00411c33
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x42bee8]
call fcn.00411c33
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401020
Capabilities:
Delete file
Get common file path
Hide graphical window
Read file on windows
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push section..Shared
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test eax, eax
je 0x40106c
push 0
mov eax, dword [section..rdata]
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
push 6
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
jmp 0x401378
push 0x7f02
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0x200
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
mov eax, 0x80000000
push eax
lea ecx, [ebp - 0x214]
push 3
push esi
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push esi
push esi
push 0x3f0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x10]
push 0xc
push ecx
push edi
mov ebx, 0x3000
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, 0x4031d0
call fcn.00401719
push 4
mov eax, dword [ebp - 0xc]
push ebx
inc eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
mov dword [ebp - 0x14], eax
push ebx
mov dword [0x40321e], eax
mov eax, dword [ebp - 8]
add eax, 5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
mov dword [0x403222], eax
push esi
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0xc]
push dword [0x40321e]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40132d
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
jne 0x40132d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x40101f
mov dword [0x403238], eax
mov dword [0x403234], eax
mov eax, dword [0x403222]
mov ecx, 0x4031d0
add eax, dword [ebp - 8]
add eax, 4
mov dword [0x40322c], eax
mov eax, dword [0x40321e]
add eax, dword [ebp - 0xc]
mov esi, 0xff
mov dword [0x403230], eax
call fcn.0040183b
lea ecx, [ebp - 0x214]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x214]
call fcn.00401000
lea ecx, [ebp - 0x414]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x414]
call fcn.00401000
push 0xffffffffffffffff
lea eax, [ebp - 0x214]
lea eax, [ebp - 0x214]
push eax
push str.Dont_read__s
Function at 0x40c6e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x476beb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046946a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c762
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00466d50
mov eax, dword [eax]
push 0x579200
push eax
call fcn.004597c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004696f5
test bl, bl
je 0x40c762
push 0x579200
lea ecx, [esp + 0xc]
call fcn.00469ad1
push 0x57cd84
lea ecx, [esp + 0xc]
call fcn.00469ad1
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40c79e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004696f5
jmp 0x40c869
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40c822
lea edx, [esp + 0x7c]
push 0x57cd80
push edx
call fcn.004597c4
add esp, 8
test eax, eax
je 0x40c822
lea eax, [esp + 0x7c]
push 0x57cd7c
push eax
call fcn.004597c4
add esp, 8
test eax, eax
je 0x40c822
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40c7b2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004696f5
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40d060
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40d0c2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc