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

Disassembly:
sub esp, 0x88
mov eax, dword [0x41f050]
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 0x40861c
cmp ebp, 0x7d4
jle 0x40846a
cmp ebp, 0x7d8
jne 0x40861c
mov eax, dword [0x429b95]
push 0
push 0
push edi
push eax
mov dword [0x429bc5], 1
call sub.WSOCK32.dll_WSAAsyncSelect
push str.Transfer_cancelled_by_user
call fcn.00407b90
add esp, 4
jmp 0x40861c
push ebx
push 0x429bad
call fcn.0040c66a
xor ebx, ebx
or eax, 0xffffffff
add esp, 4
cmp dword [0x429bcd], ebx
mov dword [0x429ba9], 0xbb8
mov dword [0x429bc5], ebx
mov dword [0x429bc9], ebx
mov dword [0x429ba5], ebx
mov dword [0x429ba1], ebx
mov dword [0x429b91], ebx
mov dword [0x429b8d], ebx
mov dword [0x429b95], eax
mov dword [0x429b9d], eax
jne 0x4084c3
mov dword [0x429bc1], ebx
mov edi, dword [sym.imp.USER32.dll_GetDlgItemTextA]
push 0x100
cmp ebp, 0x7d3
push 0x421a81
setne cl
push 0x7d5
add cl, 1
push esi
mov byte [0x421980], cl
call edi
push 0x100
push 0x421981
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 [0x421a81], bl
mov dword [0x429b89], eax
mov dword [0x429bc9], 0x200
je 0x408602
cmp byte [0x421981], bl
je 0x408602
call fcn.00408200
test eax, eax
je 0x4085f4
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.00407d60
add esp, 4
test eax, eax
je 0x4085f4
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 [0x429ba9]
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 [0x429b95]
push 1
push esi
push edi
push edx
call sub.WSOCK32.dll_WSAAsyncSelect
jmp 0x40861b
mov eax, dword [0x429b9d]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40861b
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.0040c6a6
add esp, 0x88
ret
Function at 0x408fd0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x16c
mov eax, dword [0x41f050]
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.00409a60
push 0x44
lea edx, [esp + 0x1c]
push 0
push edx
call fcn.0040c6c0
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.0040c6a6
add esp, 0x16c
ret

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

Disassembly:
sub esp, 0x108
mov eax, dword [0x41f050]
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 0x4090b6
test edi, edi
je 0x4090b6
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.0040c6a6
add esp, 0x108
ret

Function at 0x4091e0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x388
mov eax, dword [0x41f050]
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.00409a60
add esp, 8
push 0x41ab50
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 0x4092e7
mov edi, dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov ebx, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test byte [esp + 0x28], 0x10
jne 0x4092cb
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 0x409258
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.0040c6a6
mov esp, ebp
pop ebp
ret
Function at 0x409700
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x4c8
mov eax, dword [0x41f050]
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 0x40978f
lea eax, [esp + 0x1c]
push eax
call fcn.0040c66a
lea ecx, [esp + 0x20]
push ecx
call fcn.0040c646
add esp, 8
push ebp
push eax
call fcn.0040d8ba
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 0x4097cc
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 0x4097b0
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 0x40984b
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 0x40983e
mov ebp, eax
mov eax, dword [esp + 0x10]
sub eax, 1
mov dword [esp + 0x10], eax
jns 0x4097f8
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.0040c6a6
add esp, 0x4c8
ret
Function at 0x40a820
Capabilities:
Check mutex on windows
Query environment variable

Disassembly:
sub esp, 0x10c
mov eax, dword [0x41f050]
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 0x40a8b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40a8b7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x41ae78
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x40a89e
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40a9a5
push 0x10
push str.Tftpd32
push str.Tftpd32_is_already_running
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40a9a5
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 0x40a8e7
lea ecx, [esp + 0x14]
push ecx
call fcn.0040d665
add esp, 4
mov dword [0x41e380], eax
jmp 0x40a8f1
mov dword [0x41e380], 8
push 0x100
lea edx, [esp + 0x18]
push edx
push str.TFTP_INI
call edi
test eax, eax
push 0x42af20
je 0x40a912
lea eax, [esp + 0x18]
push eax
jmp 0x40a917
push str.Tftpd32.ini
call fcn.0040a730
add esp, 8
push 0x42b040
push str.Tftpd32.hlp
call fcn.0040a730
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 0x409f10
push 0x65
push 0
call fcn.0040be80
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.0040c6a6
add esp, 0x10c
ret 0x10
Function at 0x40aa90
Capabilities:
Set registry value

Disassembly:
sub esp, 0x9c
mov eax, dword [0x41f050]
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.0040c6a6
add esp, 0x9c
ret
Function at 0x40ab70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa4
mov eax, dword [0x41f050]
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 0x40acab
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x20]
cmp byte [esi], 0x20
jne 0x40ac4d
mov eax, edi
add edi, 1
cmp eax, 3
mov byte [esi], 0
ja case.default.0x40ac16
jmp dword [eax*4 + 0x40acc8]
push ecx
call fcn.0040d665
mov ebp, eax
jmp 0x40ac47
push ecx
call fcn.0040d665
mov ebx, eax
jmp 0x40ac47
push ecx
call fcn.0040d665
mov dword [esp + 0x2c], eax
jmp 0x40ac47
push ecx
call fcn.0040d665
mov dword [esp + 0x30], eax
add esp, 4
lea ecx, [esi + 1]
add esi, 1
cmp byte [esi], 0
jne 0x40ac04
cmp edi, 4
jne 0x40aca9
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
lea ecx, [ebp + 0x96]
cmp ecx, eax
jge 0x40aca9
push 1
call esi
lea edx, [ebx + 0x96]
cmp edx, eax
jge 0x40aca9
mov ecx, dword [esp + 0x28]
cmp ebp, ecx
jge 0x40aca9
mov eax, dword [esp + 0x2c]
cmp ebx, eax
jge 0x40aca9
test ebp, ebp
jl 0x40aca9
test ebx, ebx
jl 0x40aca9
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.0040c6a6
add esp, 0xa4
ret

Function at 0x40ace0
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 0x40beb0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x1ec
mov eax, dword [0x41f050]
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.0040c6a6
add esp, 0x1ec
ret
Function at 0x40c060
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 0x40c09d
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 0x40c085
lea edi, [edi + ebx*2 + 1]
push edi
mov dword [esp + 0x18], edi
call fcn.0040c9eb
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
jne 0x40c0c6
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 0x40c116
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 0x40c112
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 0x40c0d8
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.0040e493

Function at 0x40c6a6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f050]
jne 0x40c6b0
repz ret
jmp fcn.0040f658
Function at 0x414d74
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00411bfa
xor ebx, ebx
cmp dword [0x42aee8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x414e49
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x414db4
xor eax, eax
jmp 0x414f0d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41bdbc
push edi
call esi
cmp eax, ebx
je 0x414dad
push eax
call fcn.00411b97
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42aee8], eax
call esi
push eax
call fcn.00411b97
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42aeec], eax
call esi
push eax
call fcn.00411b97
mov dword [0x42aef0], eax
lea eax, [ebp - 8]
push eax
call fcn.0041087f
test eax, eax
pop ecx
pop ecx
je 0x414e17
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040e8e9
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x414e49
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00411b97
cmp eax, ebx
pop ecx
mov dword [0x42aef8], eax
je 0x414e49
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00411b97
pop ecx
mov dword [0x42aef4], eax
mov eax, dword [0x42aef4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x414ec2
cmp dword [0x42aef8], esi
je 0x414ec2
push eax
call fcn.00411c03
pop ecx
call eax
cmp eax, ebx
je 0x414e8f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x42aef8]
call fcn.00411c03
pop ecx
call eax
test eax, eax
je 0x414e8f
test byte [ebp - 0x18], 1
jne 0x414ec2
lea eax, [ebp - 0xc]
push eax
call fcn.004108b6
test eax, eax
pop ecx
je 0x414eaa
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040e8e9
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x414eb9
or dword [ebp + 0x10], 0x200000
jmp 0x414ef3
or dword [ebp + 0x10], 0x40000
jmp 0x414ef3
mov eax, dword [0x42aeec]
cmp eax, esi
je 0x414ef3
push eax
call fcn.00411c03
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x414ef3
mov eax, dword [0x42aef0]
cmp eax, esi
je 0x414ef3
push dword [ebp - 4]
push eax
call fcn.00411c03
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 [0x42aee8]
call fcn.00411c03
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43a6d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2f000]
push edi
jmp 0x43a6ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43a6f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43a6e0
mov eax, 1
add ebx, ebx
jne 0x43a703
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43a6f8
jne 0x43a714
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43a6f8
xor ecx, ecx
sub eax, 3
jb 0x43a728
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43a79a
mov ebp, eax
add ebx, ebx
jne 0x43a733
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43a740
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43a764
inc ecx
add ebx, ebx
jne 0x43a750
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43a745
jne 0x43a761
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43a745
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43a784
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43a775
jmp 0x43a6e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43a784
add edi, ecx
jmp 0x43a6e6
pop esi
mov edi, esi
mov ecx, 0x6d0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43a7a2
cmp byte [edi], 0x11
jne 0x43a7a2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x43a7a7
lea edi, [esi + 0x38000]
mov eax, dword [edi]
or eax, eax
je 0x43a81f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x51a50]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x51b18]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43a7d4
mov ecx, edi
jns 0x43a803
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x51b1c]
or eax, eax
je 0x43a819
mov dword [ebx], eax
add ebx, 4
jmp 0x43a7f1
call dword [esi + 0x51b2c]
mov ebp, dword [esi + 0x51b20]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x43a853
sub esp, 0xffffff80
jmp 0x40a7b1
Function at 0x407229
Capabilities:
Check mutex on windows

Disassembly:
push 4
mov eax, 0x5698f1
call fcn.005110bc
push str.xundupdf_screencapture
lea ecx, [ebp - 0x10]
call fcn.0040941c
and dword [ebp - 4], 0
mov eax, dword [0x5dd2c8]
cmp dword [eax - 0xc], 0
jle 0x40725d
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040826d
push dword [ebp - 0x10]
xor esi, esi
inc esi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x40727d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40727f
xor esi, esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00409cc2
mov eax, esi
call fcn.00511085
ret
Function at 0x40c1bd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x569bed
call fcn.0051115e
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40c23a
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40c23a
call fcn.0040a70e
mov esi, eax
jmp 0x40c311
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40c25d
call fcn.0040a70e
jmp 0x40c304
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x40c253
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x40c28d
mov esi, 0x8007000e
jmp 0x40c306
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040a6e0
jmp 0x40c2b3
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x40c286
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x40c253
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040c081
mov esi, eax
test edi, edi
je 0x40c311
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40c32a
lea ecx, [ebp - 0x418]
call fcn.0040a681
mov eax, esi
call fcn.005110ab
ret 0x10