joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e880
Capabilities:
Check if file exists
Read file on windows

Disassembly:
sub esp, 0x30
push esi
mov esi, dword [esp + 0x38]
test esi, esi
je 0x42e8b6
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x42e8a2
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x42e8b6
push 0x460c5c
push esi
call fcn.00439899
mov esi, eax
add esp, 8
test esi, esi
jne 0x42e8c0
or eax, 0xffffffff
pop esi
add esp, 0x30
ret 8
push ebx
push esi
call fcn.00441e16
lea ecx, [esp + 0xc]
push ecx
push eax
call fcn.004390e5
add esp, 0xc
cmp eax, 0xffffffff
je 0x42e8e2
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jne 0x42e8fd
push 2
push 0
push esi
call fcn.00436010
push esi
call fcn.0043a129
push esi
mov ebx, eax
call fcn.00439ecc
add esp, 0x14
push ebp
push edi
lea ebp, [ebx + 1]
push ebp
call fcn.0043759a
mov edi, eax
add esp, 4
test edi, edi
je 0x42e92d
push ebp
push 0
push edi
call fcn.00435750
push esi
push ebx
push 1
push edi
call fcn.00439eb1
mov ebp, eax
add esp, 0x1c
cmp ebp, ebx
je 0x42e93a
pop edi
pop ebp
pop ebx
or eax, 0xffffffff
pop esi
add esp, 0x30
ret 8
push esi
call fcn.004364b4
mov edx, dword [esp + 0x4c]
add esp, 4
mov dword [edx], edi
pop edi
mov eax, ebp
pop ebp
pop ebx
pop esi
add esp, 0x30
ret 8
Function at 0x42e960
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x324
mov eax, dword [0x471660]
xor eax, esp
mov dword [esp + 0x320], eax
mov eax, dword [esp + 0x330]
push ebp
push esi
mov esi, dword [esp + 0x330]
test esi, esi
push edi
mov edi, dword [esp + 0x338]
mov ebp, ecx
mov dword [esp + 0xc], eax
je 0x42eb58
test edi, edi
je 0x42eb58
push 0x103
lea eax, [esp + 0x22d]
push 0
push eax
mov byte [esp + 0x234], 0
call fcn.00435750
add esp, 0xc
push edi
push esi
push 0x104
lea ecx, [esp + 0x234]
push ecx
mov ecx, ebp
call fcn.0042e720
test eax, eax
je 0x42eb6b
push esi
lea edx, [esp + 0x22c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edi, [esp + 0x228]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x42e9f8
mov ax, word [0x460c68]
mov word [edi], ax
lea edi, [esp + 0x228]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x42ea15
mov cx, word [0x45c834]
mov word [edi], cx
lea edi, [esp + 0x228]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x42ea33
mov dx, word [0x460c64]
mov word [edi], dx
lea edi, [esp + 0x228]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x42ea51
lea eax, [esp + 0x228]
push eax
mov word [edi], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42eb6b
xor eax, eax
lea ecx, [esp + 0x228]
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x220], 0
mov dword [esp + 0x221], eax
mov dword [esp + 0x225], eax
mov byte [esp + 0x229], al
call fcn.00430240
lea edx, [esp + 0x114]
push 0x460c60
push edx
call fcn.00439440
add esp, 8
test eax, eax
lea eax, [esp + 0x21c]
lea edx, [eax + 1]
je 0x42ead8
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42eac7
sub eax, edx
lea edx, [esp + 0x10]
jmp 0x42eaea
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42ead8
sub eax, edx
lea edx, [esp + 0x114]
mov ecx, 9
sub ecx, eax
push ecx
push edx
lea eax, [esp + 0x224]
push eax
call fcn.0043a1a0
mov edi, dword [esp + 0x18]
add esp, 0xc
test edi, edi
je 0x42eb4f
mov esi, dword [esp + 0x340]
test esi, esi
je 0x42eb4f
lea eax, [esp + 0x21c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42eb20
sub eax, edx
cmp eax, esi
jge 0x42eb4a
push eax
lea ecx, [esp + 0x220]
push ecx
push edi
call fcn.004394d0
mov eax, dword [esp + 0x224]
add esp, 0xc
jmp 0x42eb6d
mov word [edi], 0x30
mov eax, dword [esp + 0x218]
jmp 0x42eb6d
test eax, eax
je 0x42eb6b
cmp dword [esp + 0x340], 0
je 0x42eb6b
mov word [eax], 0x30
xor eax, eax
mov ecx, dword [esp + 0x32c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00434fe0
add esp, 0x324
ret 0x10
Function at 0x42eb90
Capabilities:
Delete file

Disassembly:
sub esp, 0x42c
mov eax, dword [0x471660]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x235]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x23c], bl
call fcn.00435750
push 0x103
lea ecx, [esp + 0x39]
push ebx
push ecx
mov byte [esp + 0x40], bl
call fcn.00435750
push 0x103
lea edx, [esp + 0x149]
push ebx
push edx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x150], bl
call fcn.00435750
push 0x103
lea eax, [esp + 0x35d]
push ebx
push eax
mov byte [esp + 0x364], bl
call fcn.00435750
push 0x104
lea edi, [esi + 0x104]
lea ecx, [esp + 0x264]
push edi
push ecx
call fcn.004394d0
push 0x104
lea edx, [esp + 0x68]
push edi
push edx
call fcn.004394d0
mov ebp, dword [sym.imp.SHLWAPI.dll_PathAppendA]
add esp, 0x48
push str.profiles.ini
lea eax, [esp + 0x234]
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x234]
push edx
mov ecx, esi
call fcn.0042e880
test eax, eax
jge 0x42ec7d
mov eax, dword [esp + 0x10]
push eax
call fcn.004356b6
add esp, 4
jmp 0x42edba
mov eax, dword [str..default]
mov ecx, dword [str.Path]
mov dx, word [0x460c8c]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x460c94]
mov word [esp + 0x18], dx
mov dl, byte [0x460c98]
push eax
push edi
mov dword [esp + 0x28], ecx
mov byte [esp + 0x2c], dl
call fcn.00439440
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x42ecd6
push edi
call fcn.004356b6
add esp, 4
jmp 0x42edba
lea eax, [esp + 0x14]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x42ece0
sub eax, edx
lea ecx, [esp + 0x1c]
add esi, eax
push ecx
push esi
call fcn.00439440
add esp, 8
cmp eax, ebx
je 0x42ecc8
lea ecx, [esp + 0x1c]
lea edi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
cmp dl, bl
jne 0x42ed06
sub ecx, edi
push 0x460c84
push esi
mov byte [ecx + eax], bl
call fcn.0043a2d5
add esp, 8
cmp eax, ebx
je 0x42ed40
push eax
lea edx, [esp + 0x2c]
push edx
call ebp
push 0x460c84
push ebx
call fcn.0043a2d5
add esp, 8
cmp eax, ebx
jne 0x42ed26
mov eax, dword [esp + 0x10]
push eax
call fcn.004356b6
add esp, 4
xor eax, eax
nop
mov cl, byte [esp + eax + 0x28]
mov byte [esp + eax + 0x12c], cl
add eax, 1
cmp cl, bl
jne 0x42ed50
xor eax, eax
jmp 0x42ed70
mov cl, byte [esp + eax + 0x28]
mov byte [esp + eax + 0x334], cl
add eax, 1
cmp cl, bl
jne 0x42ed70
push str.compreg.dat
lea ecx, [esp + 0x130]
push ecx
call ebp
push 0x460c6c
lea edx, [esp + 0x338]
push edx
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x12c]
push eax
call esi
lea ecx, [esp + 0x334]
push ecx
call esi
mov ecx, dword [esp + 0x438]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00434fe0
add esp, 0x42c
ret
Function at 0x42f590
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x471660]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
push edi
push 0
push 2
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x42f63d
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x42f63d
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x2c]
push ecx
call fcn.0043a5d5
add esp, 4
mov ecx, 0x4730b8
lea eax, [esp + 0x2c]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42f616
test dx, dx
je 0x42f612
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42f616
add eax, 4
add ecx, 4
test dx, dx
jne 0x42f5f0
xor eax, eax
jmp 0x42f61b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x42f62d
mov edx, dword [esp + 0x10]
push edx
push eax
push 1
call edi
test eax, eax
jne 0x42f656
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x42f5d4
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00434fe0
add esp, 0x230
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00434fe0
add esp, 0x230
ret
Function at 0x42ff60
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.0042f980
mov eax, 0x45
mov edx, 0x58
mov ecx, 0x46
mov word [0x4730be], ax
mov word [0x4730cc], ax
mov word [0x4730c8], ax
mov word [0x4730c4], dx
mov word [0x4730c0], cx
mov word [0x4730bc], 0x52
mov word [0x4730ba], 0x49
mov word [0x4730ca], dx
mov word [0x4730b8], cx
mov word [0x4730c2], 0x4f
mov word [0x4730ce], 0
mov word [0x4730c6], 0x2e
lea eax, [edx - 0x57]
pop esi
ret 8

Function at 0x430120
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push esi
push edi
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x4301a5
push edi
call fcn.00430b21
mov esi, eax
add esp, 4
test esi, esi
je 0x43019c
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x43019c
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x43019c
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
push eax
push esi
call fcn.0042fff0
push esi
call fcn.00435125
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 4

Function at 0x4301b0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
push ebx
mov ebp, ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x430233
push esi
call fcn.00430b21
mov edi, eax
add esp, 4
test edi, edi
je 0x430233
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x43022a
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x461164
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x43022a
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax + 0xa]
push edi
mov dword [ebp + 0x208], ecx
call fcn.00435125
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
push edi
call fcn.00435125
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
Function at 0x4307dd
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x471660]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0043071c
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00435750
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x43082c
cmp dword [ebp - 0x1c], 5
jb 0x430844
jmp 0x430840
cmp dword [ebp - 0x10], 1
jne 0x430844
cmp dword [ebp - 0x1c], 4
ja 0x430840
jne 0x430844
cmp dword [ebp - 0x18], 0
jbe 0x430844
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x46121c
call fcn.00401250
test eax, eax
jge 0x430865
mov byte [0x47412c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00434fe0
add ebp, 0x78
leave
ret

Function at 0x430a9e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4732cc], 0
push esi
jne 0x430a11
call fcn.0043093c
test eax, eax
je 0x430a54
mov eax, dword [0x4732cc]
cmp eax, 1
jne 0x430a32
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x430a54
pop esi
ret
push eax
call dword [0x4732d4]
test eax, eax
jne 0x430a9c
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x430a58
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4732cc]
call dword [0x4732d4]
mov edi, eax
test edi, edi
je 0x430a7f
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x430a9b
lea edi, [esi + 0xff0]
push esi
push dword [0x4732cc]
call dword [0x4732d0]
add esi, 0x10
cmp esi, edi
jb 0x430a85
mov eax, esi
pop edi
pop esi
ret
jmp 0x4309fe
Function at 0x434650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45a433
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x471660]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], esi
push 0x1c
call fcn.00434b65
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x64], ebp
je 0x4346a9
lea edi, [ebx + 0x10]
mov ecx, edi
call fcn.00434630
mov dword [edi + 4], eax
mov dword [edi + 8], ebp
jmp 0x4346ab
xor ebx, ebx
mov dword [ebx], esi
mov dword [ebx + 4], ebp
mov byte [ebx + 0xc], 0
mov dword [ebx + 8], fcn.00434620
mov eax, dword [esi]
push ebx
lea ecx, [eax + 0x10]
mov dword [esp + 0x68], 0xffffffff
call fcn.00432b40
mov eax, dword [esi]
add eax, 0x10
push eax
lea ecx, [esp + 0x4c]
call fcn.00432870
mov edi, dword [esi]
mov ebp, dword [edi + 4]
cmp ebp, dword [edi + 8]
mov dword [esp + 0x64], 1
mov dword [esp + 0x14], edi
jbe 0x4346f8
call fcn.00435254
mov dword [esp + 0x28], ebp
lea esp, [esp]
mov eax, dword [esi]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jbe 0x43471b
call fcn.00435254
mov eax, dword [esp + 0x18]
cmp edi, eax
je 0x434724
call fcn.00435254
cmp ebp, dword [esp + 0x1c]
je 0x4347e1
mov esi, dword [esi]
lea eax, [esp + 0x2c]
push eax
sub esp, 0x10
add esi, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.004325e0
cmp ebp, dword [edi + 8]
mov byte [esp + 0x78], 2
jb 0x434756
call fcn.00435254
mov byte [esp + 0x78], 1
mov ecx, dword [ebp]
call fcn.00432510
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov byte [esp + 0x44], 1
mov edi, dword [ebx + 0x14]
mov edx, dword [edi + 4]
lea esi, [ebx + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push edx
push edi
mov ecx, esi
mov byte [esp + 0x70], 3
call fcn.00432630
push 1
mov ecx, esi
mov ebp, eax
call fcn.00432950
mov ecx, dword [esp + 0x28]
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
mov eax, dword [esp + 0x14]
cmp ecx, dword [eax + 8]
mov byte [esp + 0x44], 0
mov byte [esp + 0x64], 1
jb 0x4347cb
call fcn.00435254
add dword [esp + 0x28], 4
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x28]
jmp 0x434700
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x4c]
call fcn.00432910
lea ecx, [esp + 0x38]
call fcn.004327e0
mov esi, dword [esi]
lea ecx, [esp + 0x48]
mov byte [esi + 0x1c], 1
mov dword [esp + 0x64], 0xffffffff
call fcn.004328b0
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret

Function at 0x434fe0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x471660]
jne 0x434fea
repz ret
jmp fcn.0043df7c
Function at 0x439c15
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 0x439c52
cmp dword [ebp + 0x14], edi
je 0x439c52
cmp ecx, edi
jne 0x439c59
call fcn.00437d57
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00435230
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x439c6d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x439c8e
cmp ebx, 0xffffffff
je 0x439c7d
push ebx
push edi
push ecx
call fcn.00435750
add esp, 0xc
cmp esi, edi
je 0x439c3a
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x439c3a
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x439caa
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x439cb1
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x439da2
test word [esi + 0xc], 0x10c
je 0x439d05
mov eax, dword [esi + 4]
test eax, eax
je 0x439d05
jl 0x439e03
cmp ebx, eax
mov edi, ebx
jb 0x439cd6
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x439daa
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00434828
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 0x439d9a
cmp ebx, dword [ebp - 0xc]
jb 0x439d72
cmp dword [ebp - 0xc], 0
je 0x439d2f
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x439d24
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x439d2b
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x439d3a
mov eax, closesocket
cmp ebx, eax
ja 0x439d3a
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x439dd6
push eax
push dword [ebp - 8]
push esi
call fcn.00441e16
pop ecx
push eax
call fcn.004460cf
add esp, 0xc
test eax, eax
je 0x439e15
cmp eax, 0xffffffff
je 0x439e03
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x439d9a
push esi
call fcn.004459ee
cmp eax, 0xffffffff
pop ecx
je 0x439e07
cmp dword [ebp - 4], 0
je 0x439dd6
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 0x439cb9
mov eax, dword [ebp + 0x14]
jmp 0x439c54
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x439dc1
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00435750
add esp, 0xc
call fcn.00437d57
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x439c4a
cmp dword [ebp + 0xc], 0xffffffff
je 0x439dec
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00435750
add esp, 0xc
call fcn.00437d57
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x439c4a
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x439c54
or dword [esi + 0xc], 0x10
jmp 0x439e07
Function at 0x4434d3
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 + 0x472590]
je 0x4434ee
inc edi
cmp edi, 0x17
jb 0x4434df
cmp edi, 0x17
jae 0x44366e
push ebp
push 3
call fcn.00451343
cmp eax, 1
pop ecx
je 0x44363a
push 3
call fcn.00451343
test eax, eax
pop ecx
jne 0x443522
cmp dword [0x471b00], 1
je 0x44363a
cmp ebx, 0xfc
je 0x44366d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x473a68
push ebp
call fcn.0043d64b
add esp, 0xc
test eax, eax
je 0x443558
push esi
push esi
push esi
push esi
push esi
call fcn.00435134
add esp, 0x14
push 0x104
mov esi, 0x473a81
push esi
push 0
mov byte [0x473b85], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44359c
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0043d64b
add esp, 0xc
test eax, eax
je 0x44359c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00435134
add esp, 0x14
push esi
call fcn.0043a8f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4435e1
push esi
call fcn.0043a8f0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x473d7c
push 0x462444
sub ecx, eax
push ecx
push eax
call fcn.004484e0
add esp, 0x14
test eax, eax
je 0x4435e1
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00435134
add esp, 0x14
jmp 0x4435e3
xor esi, esi
push 0x462440
push ebx
push ebp
call fcn.0044846f
add esp, 0xc
test eax, eax
je 0x443603
push esi
push esi
push esi
push esi
push esi
call fcn.00435134
add esp, 0x14
push dword [edi*8 + 0x472594]
push ebx
push ebp
call fcn.0044846f
add esp, 0xc
test eax, eax
je 0x443625
push esi
push esi
push esi
push esi
push esi
call fcn.00435134
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00451186
add esp, 0xc
jmp 0x44366d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x44366d
cmp ebp, 0xffffffff
je 0x44366d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x472594]
push dword [esi]
call fcn.0043a8f0
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 0x451186
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043d9ae
xor ebx, ebx
cmp dword [0x4740c0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x45125c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45133c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x45133c
push eax
call fcn.0043d940
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4740c0], eax
call esi
push eax
call fcn.0043d940
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4740c4], eax
call esi
push eax
call fcn.0043d940
mov dword [0x4740c8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00438aff
test eax, eax
pop ecx
pop ecx
je 0x45122a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00435134
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x45125c
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043d940
cmp eax, ebx
pop ecx
mov dword [0x4740d0], eax
je 0x45125c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043d940
pop ecx
mov dword [0x4740cc], eax
mov eax, dword [0x4740cc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4512e1
cmp dword [0x4740d0], ecx
je 0x4512e1
push eax
call fcn.0043d9b7
push dword [0x4740d0]
mov esi, eax
call fcn.0043d9b7
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4512e1
cmp edi, ebx
je 0x4512e1
call esi
cmp eax, ebx
je 0x4512ae
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4512ae
test byte [ebp - 0x18], 1
jne 0x4512e1
lea eax, [ebp - 0x10]
push eax
call fcn.00438b36
test eax, eax
pop ecx
je 0x4512c9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00435134
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4512d8
or dword [ebp + 0x10], 0x200000
jmp 0x45131c
or dword [ebp + 0x10], 0x40000
jmp 0x45131c
mov eax, dword [0x4740c4]
cmp eax, dword [ebp - 8]
je 0x45131c
push eax
call fcn.0043d9b7
cmp eax, ebx
pop ecx
je 0x45131c
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x45131c
mov eax, dword [0x4740c8]
cmp eax, dword [ebp - 8]
je 0x45131c
push eax
call fcn.0043d9b7
cmp eax, ebx
pop ecx
je 0x45131c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4740c0]
call fcn.0043d9b7
cmp eax, ebx
pop ecx
je 0x45133c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45133e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret