joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4185f0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 8
push esi
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x4186ef
lea eax, [esp + 4]
push eax
push 0x4837ec
push 1
push esi
push 0x4837fc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4186e9
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41864b
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x1c]
push ecx
call eax
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x418660
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x3c]
call eax
mov ecx, dword [esp + 0x20]
test cx, cx
je 0x418676
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x34]
call eax
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x41868b
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x24]
call eax
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4186a0
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x2c]
call eax
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x48380c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x4186dd
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, 1
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x418780
Capabilities:
Create process on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
lea edx, [eax + 2]
jmp 0x418790
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418790
sub eax, edx
sar eax, 1
je 0x4187c3
push 1
push 0
push 0
push esi
push 0x4808d4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x4187c3
push esi
call fcn.00417e60
add esp, 4
pop esi
pop ecx
ret
Function at 0x418d00
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x479c50
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x49a670]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [esp + 0x5c]
xor esi, esi
mov eax, edx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], esi
mov word [esp + 0x30], si
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x418d44
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x34]
call fcn.00401850
mov edx, dword [esp + 0x58]
mov eax, edx
mov dword [esp + 0x50], esi
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], esi
mov word [esp + 0x14], si
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x418d80
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00401850
mov eax, dword [ebx + 0x20]
mov eax, dword [eax + 8]
lea edx, [esp + 0x2c]
lea ecx, [ebx + 0x20]
push edx
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x58], 1
call eax
mov edi, 8
cmp dword [esp + 0x28], edi
jb 0x418dcc
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0042397c
add esp, 4
cmp dword [esp + 0x44], edi
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], esi
mov word [esp + 0x14], si
jb 0x418df0
mov edx, dword [esp + 0x30]
push edx
call fcn.0042397c
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x44
ret 8
Function at 0x419fd0
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov byte [esi + 0x68], al
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov eax, dword [esp + 8]
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
cmp dword [eax + 0x18], 0x10
mov ecx, dword [eax + 0x14]
jb 0x41a018
mov eax, dword [eax + 4]
push ecx
push eax
mov ecx, esi
call fcn.00419db0
mov eax, esi
pop esi
ret 4
push ecx
add eax, 4
push eax
mov ecx, esi
call fcn.00419db0
mov eax, esi
pop esi
ret 4

Function at 0x41a3e0
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x30
push esi
push edi
push 0
push 0x41a380
push 0
push 0
mov dword [0x49c288], 0
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x18]
push ecx
push eax
call edi
lea edx, [esp + 0x28]
push edx
push esi
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [0x49c288]
sub eax, dword [esp + 8]
cmp ecx, 1
jle 0x41a472
test ecx, ecx
jle 0x41a472
mov edx, 0x49c0f0
mov esi, ecx
mov ecx, dword [edx]
cmp ecx, eax
jle 0x41a46a
mov eax, ecx
add edx, 0x10
sub esi, 1
jne 0x41a462
pop edi
pop esi
add esp, 0x30
ret

Function at 0x41a4f0
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x30
push esi
push edi
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 8]
push ecx
push eax
call edi
lea edx, [esp + 0x28]
push edx
push esi
call edi
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x30
ret

Function at 0x41a540
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x30
push esi
push edi
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 8]
push ecx
push eax
call edi
lea edx, [esp + 0x28]
push edx
push esi
call edi
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x30
ret
Function at 0x41a590
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x30
push esi
push edi
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x18]
push ecx
push eax
call edi
lea edx, [esp + 0x28]
push edx
push esi
call edi
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x30
ret

Function at 0x41a8c0
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x63c
mov eax, dword [0x49a670]
xor eax, esp
mov dword [esp + 0x638], eax
push esi
xor eax, eax
push edi
mov edi, dword [esp + 0x648]
xor esi, esi
push 0x206
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov word [esp + 0x2a], ax
lea eax, [esp + 0x2e]
push esi
push eax
mov word [esp + 0x20], si
mov word [esp + 0x34], si
call fcn.0042cac0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 3
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00431837
push 0x206
lea ecx, [esp + 0x44a]
push esi
push ecx
mov word [esp + 0x450], si
call fcn.0042cac0
push 0x206
lea edx, [esp + 0x24e]
push esi
push edx
mov word [esp + 0x254], si
call fcn.0042cac0
add esp, 0x24
push 0x104
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push 0x104
lea ecx, [esp + 0x450]
push ecx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x41a9c6
mov eax, dword [esp + 8]
push eax
push str._08X
push edi
call fcn.0042cb6a
add esp, 0xc
jmp 0x41a9df
mov eax, 0x47fe24
mov edx, edi
sub edx, eax
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x41a9d0
mov ecx, dword [esp + 0x640]
pop edi
pop esi
xor ecx, esp
call fcn.0042caa2
add esp, 0x63c
ret 4
Function at 0x41b0a0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x49a670]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
push edi
xor esi, esi
push 0x206
lea eax, [esp + 0xe]
push esi
push eax
mov edi, ecx
mov word [esp + 0x14], si
call fcn.0042cac0
push 0x206
lea ecx, [esp + 0x222]
push esi
push ecx
mov word [esp + 0x228], si
call fcn.0042cac0
add esp, 0x18
push esi
push 0x2b
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 8]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, si
jne 0x41b103
mov ecx, dword [str._shiqiang_]
mov edx, dword [0x483248]
mov dword [eax], ecx
mov ecx, dword [0x48324c]
mov dword [eax + 4], edx
mov edx, dword [0x483250]
mov dword [eax + 8], ecx
mov ecx, dword [0x483254]
mov dword [eax + 0xc], edx
mov dx, word [0x483258]
mov dword [eax + 0x10], ecx
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov word [eax + 0x14], dx
lea eax, [esp + 0xc]
push eax
call ebx
test eax, eax
jne 0x41b164
push esi
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
jmp 0x41b170
movzx ecx, word [esp + eax + 0xc]
mov word [esp + eax + 0x214], cx
add eax, 2
cmp cx, si
jne 0x41b170
lea eax, [esp + 0x214]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
cmp cx, si
jne 0x41b190
mov edx, dword [str.wnsoft.ini]
mov ecx, dword [0x483230]
mov dword [eax], edx
mov edx, dword [0x483234]
mov dword [eax + 4], ecx
mov ecx, dword [0x483238]
mov dword [eax + 8], edx
mov edx, dword [0x48323c]
mov dword [eax + 0xc], ecx
mov cx, word [0x483240]
mov dword [eax + 0x10], edx
lea edx, [esp + 0xc]
push edx
mov word [eax + 0x14], cx
call ebx
test eax, eax
pop ebx
je 0x41b252
mov ecx, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [esp + 0x210]
push eax
push ecx
push str.OnlyIdentifier1
push str.Globals
call esi
mov eax, dword [edi]
lea edx, [esp + 0x210]
push edx
add eax, 0x208
push eax
push str.OnlyIdentifier2
push str.Globals
call esi
mov edx, dword [edi]
lea ecx, [esp + 0x210]
push ecx
add edx, 0x410
push edx
push str.OnlyIdentifier3
push str.Globals
call esi
mov ecx, dword [edi]
lea eax, [esp + 0x210]
push eax
add ecx, 0x618
push ecx
push str.OnlyIdentifier4
push str.Globals
call esi
mov ecx, dword [esp + 0x418]
pop edi
pop esi
xor ecx, esp
call fcn.0042caa2
add esp, 0x414
ret
Function at 0x41b270
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.software
push reloc.WS2_32.dll_bind
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41b34e
mov edx, dword [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
push str.ShiQiang
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41b34e
mov eax, dword [esi]
mov ecx, dword [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x104
push eax
push 1
push 0
push str.OnlyIdentifier1
push ecx
call edi
mov edx, dword [esi]
mov eax, dword [esp + 8]
push 0x104
add edx, 0x208
push edx
push 1
push 0
push str.OnlyIdentifier2
push eax
call edi
mov ecx, dword [esi]
mov edx, dword [esp + 8]
push 0x104
add ecx, 0x410
push ecx
push 1
push 0
push str.OnlyIdentifier3
push edx
call edi
mov eax, dword [esi]
mov ecx, dword [esp + 8]
push 0x104
add eax, 0x618
push eax
push 1
push 0
push str.OnlyIdentifier4
push ecx
call edi
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
pop edi
pop esi
add esp, 8
ret

Function at 0x4227d0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x47ae6b
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x49a670]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
push 0x54
call fcn.00423951
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x1c], 0
je 0x422819
mov ecx, eax
call fcn.00422270
jmp 0x42281b
xor eax, eax
mov edi, dword [esp + 0x24]
mov ecx, edi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esi + 0x78], eax
lea ebp, [ecx + 1]
nop
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x422830
sub ecx, ebp
push ecx
push edi
lea ecx, [eax + 8]
call fcn.00403f20
mov eax, dword [esi + 0x78]
mov dword [eax + 4], 0
mov ecx, dword [esi + 0x78]
push 9
push str.GET_test1
add ecx, 0x34
call fcn.00403f20
lea ecx, [esi + 0x14]
push ecx
push 0
push esi
push 0x422620
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x18], eax
je 0x42288c
cmp eax, 0xffffffff
je 0x42288c
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4
Function at 0x422920
Capabilities:
Get common file path
Get file version info

Disassembly:
sub esp, 0x214
mov eax, dword [0x49a670]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
xor ebx, ebx
push 0x206
lea eax, [esp + 0x12]
push ebx
push eax
mov word [esp + 0x18], bx
call fcn.0042cac0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push ebx
push ebx
push 0x25
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x422a14
push 0x47f7f8
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x422a14
push edi
push ebx
lea eax, [esp + 0x14]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
jbe 0x4229fb
push esi
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebx
je 0x4229e1
push esi
push edi
push ebx
lea ecx, [esp + 0x20]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4229da
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push 0x47fe18
push esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4229da
mov ecx, dword [esp + 0xc]
mov ebx, dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0042caa2
add esp, 0x214
ret
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0042caa2
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0042caa2
add esp, 0x214
ret

Function at 0x422a30
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x2bc
mov eax, dword [0x49a670]
xor eax, esp
mov dword [esp + 0x2b8], eax
push ebx
lea eax, [esp + 4]
push eax
push 0
push 0
push ecx
push 0
xor bl, bl
mov dword [esp + 0x18], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x422abd
push 0x2b0
push eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x14], eax
call fcn.0042cac0
mov ecx, dword [esp + 0x10]
add esp, 0xc
push 0x208
push 0x2b4
lea eax, [esp + 0x10]
push eax
push 0
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
setne bl
test bl, bl
je 0x422ab2
push 0x208
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.SHELL32.dll_ILFree]
mov ecx, dword [esp + 0x2bc]
mov al, bl
pop ebx
xor ecx, esp
call fcn.0042caa2
add esp, 0x2bc
ret
Function at 0x42caa2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49a670]
jne 0x42caac
repz ret
jmp fcn.004344f6
Function at 0x42e854
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x42e891
cmp dword [ebp + 0x14], edi
je 0x42e891
cmp ecx, edi
jne 0x42e898
call fcn.004320cd
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0042df43
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x42e8ac
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x42e8cd
cmp ebx, 0xffffffff
je 0x42e8bc
push ebx
push edi
push ecx
call fcn.0042cac0
add esp, 0xc
cmp esi, edi
je 0x42e879
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x42e879
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x42e8e9
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x42e8f0
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x42e9e1
test word [esi + 0xc], 0x10c
je 0x42e944
mov eax, dword [esi + 4]
test eax, eax
je 0x42e944
jl 0x42ea42
cmp ebx, eax
mov edi, ebx
jb 0x42e915
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x42e9e9
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042d462
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x42e9d9
cmp ebx, dword [ebp - 0xc]
jb 0x42e9b1
cmp dword [ebp - 0xc], 0
je 0x42e96e
mov ecx, accept
xor edx, edx
cmp ebx, ecx
jbe 0x42e963
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x42e96a
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x42e979
mov eax, accept
cmp ebx, eax
ja 0x42e979
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x42ea15
push eax
push dword [ebp - 8]
push esi
call fcn.0043b7bf
pop ecx
push eax
call fcn.0043c0d3
add esp, 0xc
test eax, eax
je 0x42ea54
cmp eax, 0xffffffff
je 0x42ea42
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x42e9d9
push esi
call fcn.0043b9f2
cmp eax, 0xffffffff
pop ecx
je 0x42ea46
cmp dword [ebp - 4], 0
je 0x42ea15
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x42e8f8
mov eax, dword [ebp + 0x14]
jmp 0x42e893
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x42ea00
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0042cac0
add esp, 0xc
call fcn.004320cd
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x42e889
cmp dword [ebp + 0xc], 0xffffffff
je 0x42ea2b
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0042cac0
add esp, 0xc
call fcn.004320cd
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x42e889
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x42e893
or dword [esi + 0xc], 0x10
jmp 0x42ea46
Function at 0x43a261
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x49b188]
je 0x43a27c
inc edi
cmp edi, 0x17
jb 0x43a26d
cmp edi, 0x17
jae 0x43a3fc
push ebp
push 3
call fcn.00443682
cmp eax, 1
pop ecx
je 0x43a3c8
push 3
call fcn.00443682
test eax, eax
pop ecx
jne 0x43a2b0
cmp dword [0x49a700], 1
je 0x43a3c8
cmp ebx, 0xfc
je 0x43a3fb
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x49e680
push ebp
call fcn.00437555
add esp, 0xc
test eax, eax
je 0x43a2e6
push esi
push esi
push esi
push esi
push esi
call fcn.0042de47
add esp, 0x14
push 0x104
mov esi, 0x49e699
push esi
push 0
mov byte [0x49e79d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43a32a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00437555
add esp, 0xc
test eax, eax
je 0x43a32a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042de47
add esp, 0x14
push esi
call fcn.004375c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43a36f
push esi
call fcn.004375c0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x49e994
push 0x4851a4
sub ecx, eax
push ecx
push eax
call fcn.0043edb7
add esp, 0x14
test eax, eax
je 0x43a36f
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042de47
add esp, 0x14
jmp 0x43a371
xor esi, esi
push 0x4851a0
push ebx
push ebp
call fcn.0043ed46
add esp, 0xc
test eax, eax
je 0x43a391
push esi
push esi
push esi
push esi
push esi
call fcn.0042de47
add esp, 0x14
push dword [edi*8 + 0x49b18c]
push ebx
push ebp
call fcn.0043ed46
add esp, 0xc
test eax, eax
je 0x43a3b3
push esi
push esi
push esi
push esi
push esi
call fcn.0042de47
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004434c5
add esp, 0xc
jmp 0x43a3fb
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x43a3fb
cmp ebp, 0xffffffff
je 0x43a3fb
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x49b18c]
push dword [esi]
call fcn.004375c0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4434c5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00436b8d
xor ebx, ebx
cmp dword [0x49ee38], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x44359b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44367b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x44367b
push eax
call fcn.00436b1f
mov dword [esp], 0x486b6c
push edi
mov dword [0x49ee38], eax
call esi
push eax
call fcn.00436b1f
mov dword [esp], 0x486b58
push edi
mov dword [0x49ee3c], eax
call esi
push eax
call fcn.00436b1f
mov dword [0x49ee40], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00434283
test eax, eax
pop ecx
pop ecx
je 0x443569
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042de47
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x44359b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00436b1f
cmp eax, ebx
pop ecx
mov dword [0x49ee48], eax
je 0x44359b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00436b1f
pop ecx
mov dword [0x49ee44], eax
mov eax, dword [0x49ee44]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x443620
cmp dword [0x49ee48], ecx
je 0x443620
push eax
call fcn.00436b96
push dword [0x49ee48]
mov esi, eax
call fcn.00436b96
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x443620
cmp edi, ebx
je 0x443620
call esi
cmp eax, ebx
je 0x4435ed
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4435ed
test byte [ebp - 0x18], 1
jne 0x443620
lea eax, [ebp - 0x10]
push eax
call fcn.004342ba
test eax, eax
pop ecx
je 0x443608
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042de47
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x443617
or dword [ebp + 0x10], 0x200000
jmp 0x44365b
or dword [ebp + 0x10], 0x40000
jmp 0x44365b
mov eax, dword [0x49ee3c]
cmp eax, dword [ebp - 8]
je 0x44365b
push eax
call fcn.00436b96
cmp eax, ebx
pop ecx
je 0x44365b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44365b
mov eax, dword [0x49ee40]
cmp eax, dword [ebp - 8]
je 0x44365b
push eax
call fcn.00436b96
cmp eax, ebx
pop ecx
je 0x44365b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49ee38]
call fcn.00436b96
cmp eax, ebx
pop ecx
je 0x44367b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44367d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret