joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428ccc
Capabilities:
Set socket configuration

Disassembly:
push ebx
push edi
push dword [esp + 0x10]
or eax, 0xffffffff
mov word [esi], 2
call fcn.0040fc4b
pop ecx
mov ebx, eax
push ebx
call sub.WSOCK32.dll_inet_addr
push ebx
mov edi, eax
call fcn.0044f951
cmp edi, 0xffffffff
pop ecx
jne 0x428cfc
push 0
push 1
jmp 0x428d20
mov eax, dword [esp + 0x14]
lea ecx, [eax - 1]
cmp ecx, 0xfffe
mov dword [esi + 4], edi
ja 0x428d1c
push eax
call sub.WSOCK32.dll_htons
mov word [esi + 2], ax
mov al, 1
jmp 0x428d2b
push 0
push 2
mov eax, dword [esp + 0x14]
call fcn.0041c783
xor al, al
pop edi
pop ebx
ret 0xc

Function at 0x42999d
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
and dword [ebp - 8], 0
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0x80004002
mov dword [ebp - 4], 0x28
call fcn.0040ff82
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x10]
push eax
mov ebx, 0x20019
push ebx
push 0
push str.interface
mov edi, bind
push edi
call esi
test eax, eax
je 0x4299fb
mov esi, 0x80004002
push dword [ebp - 0x20]
call fcn.0044f951
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x28]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x429ac9
mov eax, dword [ebp - 4]
and word [ebp + eax*2 - 0x78], 0
push str.interface_
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0x1fe
call fcn.0041018f
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x20]
call fcn.00410227
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push dword [ebp - 0x20]
push edi
call esi
test eax, eax
jne 0x429ab4
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x280]
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x429aab
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
and word [ebp + eax*2 - 0x280], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x280]
push eax
call fcn.0044f7b2
test eax, eax
pop ecx
pop ecx
jne 0x429aab
push dword [ebp + 8]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x429ac9
inc dword [ebp - 8]
mov dword [ebp - 4], 0x28
jmp 0x4299fb
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xc]
jmp 0x4299eb
Function at 0x429ada
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.0040ff82
fld1
lea eax, [ebp - 0xc]
fstp qword [ebp - 0x28]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromIID]
mov esi, eax
xor edi, edi
cmp esi, edi
jl 0x429c71
push dword [ebp - 0xc]
call fcn.0040f3a1
mov esi, eax
lea eax, [ebp - 0x20]
mov dword [esp], str.interface_
call fcn.0041018f
push esi
lea eax, [ebp - 0x20]
call fcn.00410227
push str.TypeLib
lea eax, [ebp - 0x20]
call fcn.00410227
push esi
call fcn.0044f951
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 8]
push eax
push 0x20019
push edi
push dword [ebp - 0x20]
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x429c71
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call ebx
mov esi, eax
cmp esi, edi
jne 0x429c68
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x240], di
lea eax, [ebp - 0x240]
push eax
call fcn.0040f3a1
pop ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
push dword [ebp - 0x14]
mov esi, eax
call fcn.0044f951
cmp esi, edi
pop ecx
jl 0x429c68
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push str.Version
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call ebx
test eax, eax
jne 0x429c13
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x240], di
lea eax, [ebp - 0x240]
push eax
call fcn.0045255a
fstp qword [ebp - 0x28]
pop ecx
fld1
lea eax, [ebp - 0x10]
push eax
push edi
sub esp, 0x10
fstp qword [esp + 8]
fld qword [ebp - 0x28]
fstp qword [esp]
call fcn.004544c0
add esp, 0x10
call fcn.00466d06
fld qword [ebp - 0x28]
push eax
call fcn.00466d06
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
cmp esi, edi
jl 0x429c68
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x20]
call fcn.0044f951
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x429c81
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
xor esi, esi
push edi
lea ecx, [ebp - 0x24]
mov edi, eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.0040ff82
lea ecx, [ebp - 0x18]
call fcn.0040ff82
lea ecx, [ebp - 0x30]
call fcn.0040ff82
push str.SOFTWAREClasses_
lea eax, [ebp - 0x24]
call fcn.0041018f
push dword [ebp + 8]
lea eax, [ebp - 0x24]
call fcn.00410227
push str.CLSID
lea eax, [ebp - 0x24]
call fcn.00410227
push 0x46bf80
lea eax, [ebp - 0x18]
call fcn.0041018f
cmp edi, esi
je 0x429d08
cmp word [edi], 0x5c
je 0x429d08
cmp word [edi + 2], 0x5c
je 0x429d08
push 0x470924
lea eax, [ebp - 0x18]
call fcn.0041018f
push edi
lea eax, [ebp - 0x18]
call fcn.00410227
cmp dword [ebp + 0x10], esi
je 0x429d57
push 0x20
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.00451700
add esp, 0xc
lea ebx, [ebp - 0x18]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], esi
call fcn.00410163
push str.IPC_
lea eax, [ebp - 0x30]
call fcn.00410227
mov eax, dword [ebp - 0x30]
push esi
push dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x50]
push eax
call sub.MPR.dll_WNetAddConnection2W
mov edi, eax
cmp edi, esi
jne 0x429df3
lea eax, [ebp - 0xc]
push eax
push reloc.WSOCK32.dll_bind
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov edi, eax
cmp edi, esi
jne 0x429df3
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push dword [ebp - 0x24]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x429dee
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x258]
push eax
push esi
push esi
push esi
push dword [ebp - 8]
mov dword [ebp - 4], 0x1fe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, esi
jne 0x429de9
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov word [ebp + eax*2 - 0x258], si
lea eax, [ebp - 0x258]
push eax
call fcn.0040f3a1
pop ecx
push dword [ebp + 0xc]
mov esi, eax
push esi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push esi
mov edi, eax
call fcn.0044f951
pop ecx
push dword [ebp - 8]
call ebx
push dword [ebp - 0xc]
call ebx
push dword [ebp - 0x30]
call fcn.0044f951
push dword [ebp - 0x18]
call fcn.0044f951
push dword [ebp - 0x24]
call fcn.0044f951
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42f1e7
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.00454dd0
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.0040ff82
lea ecx, [ebp - 0x18]
call fcn.0040ff82
mov esi, dword [ebp + 8]
xor edi, edi
call fcn.00412336
mov esi, eax
movzx eax, word [esi]
xor bl, bl
test ax, ax
je 0x42f315
inc edi
cmp ax, 0x25
jne 0x42f2d4
cmp word [esi + edi*2], ax
jne 0x42f244
push 0x25
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.0041026e
inc edi
jmp 0x42f2dd
push 0x46bf80
lea eax, [ebp - 0x18]
call fcn.0041018f
jmp 0x42f265
test ax, ax
je 0x42f26f
movzx eax, ax
push eax
lea eax, [ebp - 0x18]
call fcn.0041026e
inc edi
movzx eax, word [esi + edi*2]
cmp ax, 0x25
jne 0x42f253
cmp word [esi + edi*2], 0
je 0x42f2ec
and word [ebp - 0x2018], 0
push 0xfff
lea eax, [ebp - 0x2018]
push eax
push dword [ebp - 0x18]
inc edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x42f2ab
lea eax, [ebp - 0x2018]
push eax
lea eax, [ebp - 0xc]
call fcn.00410227
mov bl, 1
jmp 0x42f2dd
push 0x4716f8
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.00410227
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xc]
call fcn.004101eb
push 0x4716f8
lea eax, [ebp - 0xc]
call fcn.00410227
jmp 0x42f2dd
push eax
lea eax, [ebp - 0xc]
call fcn.0041026e
movzx eax, word [esi + edi*2]
test ax, ax
jne 0x42f221
jmp 0x42f306
push 0x4716f8
lea eax, [ebp - 0xc]
mov bl, 1
call fcn.00410227
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0xc]
call fcn.004101eb
test bl, bl
je 0x42f315
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0xc]
call fcn.00412a0c
push dword [ebp - 0x18]
call fcn.0044f951
push dword [ebp - 0xc]
call fcn.0044f951
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x432562
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push str.open
lea esi, [ebp - 0x18]
mov edi, eax
call fcn.0040ffd4
xor ebx, ebx
push 0x3c
lea eax, [ebp - 0x54]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 1
call fcn.00451700
add esp, 0xc
cmp dword [ebp + 0x10], 2
jb 0x4325c3
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
call fcn.00412336
cmp word [eax], bx
je 0x4325c3
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
call fcn.00412336
push eax
call fcn.0040f3a1
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 3
jb 0x4325de
mov eax, dword [edi + 4]
mov esi, dword [eax + 8]
call fcn.00412336
push eax
call fcn.0040f3a1
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], 4
jb 0x43260b
mov eax, dword [edi + 4]
mov esi, dword [eax + 0xc]
call fcn.00412336
cmp word [eax], bx
je 0x43260b
mov eax, dword [edi + 4]
mov esi, dword [eax + 0xc]
call fcn.00412358
mov ebx, eax
lea eax, [ebp - 0x18]
call fcn.00410163
xor ebx, ebx
cmp dword [ebp + 0x10], 5
jb 0x432622
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x10]
call fcn.00412431
movzx eax, ax
mov dword [ebp - 0xc], eax
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00451700
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], 0x40
mov dword [ebp - 0x4c], ebx
mov esi, dword [eax]
add esp, 0xc
call fcn.00412336
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp esi, ebx
mov dword [ebp + 0x10], eax
je 0x43267d
push esi
call fcn.0044f951
pop ecx
cmp edi, ebx
je 0x432688
push edi
call fcn.0044f951
pop ecx
cmp dword [ebp + 0x10], ebx
jne 0x4326a3
mov eax, dword [ebp + 8]
push ebx
push 1
call fcn.0041c783
mov esi, dword [ebp + 0x14]
push ebx
call fcn.00412914
jmp 0x4326ce
cmp byte [ebp + 0xc], bl
je 0x4326b6
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x554], eax
jmp 0x4326ce
mov esi, dword [ebp + 0x14]
push 1
call fcn.00412914
cmp dword [ebp - 0x1c], ebx
je 0x4326ce
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call fcn.0044f951
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x435d52
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push edi
xor ebx, ebx
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push dword [ebp + 8]
mov dword [esp + 0x30], 0xff
call esi
mov edi, 0x103
jmp 0x435e0d
xor eax, eax
cmp byte [0x48a300], bl
je 0x435d9f
mov eax, pe_nt_image_headers32
lea ecx, [esp + 0x14]
push ecx
or eax, 0x20019
push eax
push ebx
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x435e19
push dword [esp + 0x14]
call fcn.00435d52
pop ecx
push dword [esp + 0x14]
mov byte [esp + 0x13], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0xf], bl
je 0x435e19
lea eax, [esp + 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x435e19
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push dword [ebp + 8]
mov dword [esp + 0x30], 0xff
call esi
cmp eax, edi
jne 0x435d90
mov al, 1
jmp 0x435e1b
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43bbdd
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
push 0x44
xor ebx, ebx
push ebx
mov edi, 0x48b8d8
push edi
call fcn.00451700
push 0x10
push ebx
mov esi, 0x48b8c8
push esi
call fcn.00451700
add esp, 0x18
push esi
push edi
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [esp + 0x30]
xor eax, eax
inc eax
push ebx
mov dword [0x48b8d8], 0x44
mov dword [0x48b904], eax
mov word [0x48b908], ax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
pop esi
pop ebx
je 0x43bc40
push dword [0x48b8c8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret 4
Function at 0x4412f6
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
xor esi, esi
cmp word [eax], si
push edi
mov dword [ebp - 0xc], esi
je 0x4413f2
push esi
push esi
push 3
push esi
push esi
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44132d
xor eax, eax
jmp 0x44141e
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 2
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 0xc]
push eax
push 0x467904
push esi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x441326
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0xc]
lea eax, [ebp - 0x30]
push eax
push 0x18
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], esi
mov eax, dword [ebp + 0x10]
jne 0x4413d1
cmp dword [eax], esi
jne 0x4413d1
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
push 0x2000
push dword [eax]
push dword [ecx]
push esi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4413f5
mov dword [ebp - 8], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x48]
cmp eax, esi
je 0x441406
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 8]
push eax
push esi
mov dword [edi + 0x48], eax
mov edi, dword [edi]
push 0x172
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x452cc4
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 0x452d01
cmp dword [ebp + 0x14], edi
je 0x452d01
cmp ecx, edi
jne 0x452d08
call fcn.00455f7c
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00455f1d
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x452d1c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x452d3d
cmp ebx, 0xffffffff
je 0x452d2c
push ebx
push edi
push ecx
call fcn.00451700
add esp, 0xc
cmp esi, edi
je 0x452ce9
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x452ce9
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x452d59
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x452d60
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x452e51
test word [esi + 0xc], 0x10c
je 0x452db4
mov eax, dword [esi + 4]
test eax, eax
je 0x452db4
jl 0x452eb2
cmp ebx, eax
mov edi, ebx
jb 0x452d85
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x452e59
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0045bf54
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 0x452e49
cmp ebx, dword [ebp - 0xc]
jb 0x452e21
cmp dword [ebp - 0xc], 0
je 0x452dde
mov ecx, bind
xor edx, edx
cmp ebx, ecx
jbe 0x452dd3
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x452dda
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x452de9
mov eax, bind
cmp ebx, eax
ja 0x452de9
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x452e85
push eax
push dword [ebp - 8]
push esi
call fcn.00453763
pop ecx
push eax
call fcn.0045be57
add esp, 0xc
test eax, eax
je 0x452ec4
cmp eax, 0xffffffff
je 0x452eb2
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x452e49
push esi
call fcn.0045b776
cmp eax, 0xffffffff
pop ecx
je 0x452eb6
cmp dword [ebp - 4], 0
je 0x452e85
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 0x452d68
mov eax, dword [ebp + 0x14]
jmp 0x452d03
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x452e70
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00451700
add esp, 0xc
call fcn.00455f7c
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x452cf9
cmp dword [ebp + 0xc], 0xffffffff
je 0x452e9b
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00451700
add esp, 0xc
call fcn.00455f7c
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x452cf9
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x452d03
or dword [esi + 0xc], 0x10
jmp 0x452eb6
Function at 0x45628a
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 + 0x476c70]
je 0x4562a5
inc edi
cmp edi, 0x17
jb 0x456296
cmp edi, 0x17
jae 0x456425
push ebp
push 3
call fcn.00461715
cmp eax, 1
pop ecx
je 0x4563f1
push 3
call fcn.00461715
test eax, eax
pop ecx
jne 0x4562d9
cmp dword [0x476388], 1
je 0x4563f1
cmp ebx, 0xfc
je 0x456424
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x478be8
push ebp
call fcn.00461439
add esp, 0xc
test eax, eax
je 0x45630f
push esi
push esi
push esi
push esi
push esi
call fcn.00455e21
add esp, 0x14
push 0x104
mov esi, 0x478c01
push esi
push 0
mov byte [0x478d05], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x456353
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00461439
add esp, 0xc
test eax, eax
je 0x456353
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00455e21
add esp, 0x14
push esi
call fcn.00451ee0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x456398
push esi
call fcn.00451ee0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x478efc
push 0x469714
sub ecx, eax
push ecx
push eax
call fcn.00461386
add esp, 0x14
test eax, eax
je 0x456398
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00455e21
add esp, 0x14
jmp 0x45639a
xor esi, esi
push 0x469710
push ebx
push ebp
call fcn.004612c5
add esp, 0xc
test eax, eax
je 0x4563ba
push esi
push esi
push esi
push esi
push esi
call fcn.00455e21
add esp, 0x14
push dword [edi*8 + 0x476c74]
push ebx
push ebp
call fcn.004612c5
add esp, 0xc
test eax, eax
je 0x4563dc
push esi
push esi
push esi
push esi
push esi
call fcn.00455e21
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00461558
add esp, 0xc
jmp 0x456424
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x456424
cmp ebp, 0xffffffff
je 0x456424
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x476c74]
push dword [esi]
call fcn.00451ee0
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 0x461037
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x476dec]
jne 0x461041
repz ret
jmp fcn.00464809

Function at 0x461558
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00455898
xor ebx, ebx
cmp dword [0x479228], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x46162e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x46170e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46b4c4
push edi
call esi
cmp eax, ebx
je 0x46170e
push eax
call fcn.0045582a
mov dword [esp], 0x46b4b4
push edi
mov dword [0x479228], eax
call esi
push eax
call fcn.0045582a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x47922c], eax
call esi
push eax
call fcn.0045582a
mov dword [0x479230], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0044fa96
test eax, eax
pop ecx
pop ecx
je 0x4615fc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00455e21
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x46162e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0045582a
cmp eax, ebx
pop ecx
mov dword [0x479238], eax
je 0x46162e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045582a
pop ecx
mov dword [0x479234], eax
mov eax, dword [0x479234]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4616b3
cmp dword [0x479238], ecx
je 0x4616b3
push eax
call fcn.004558a1
push dword [0x479238]
mov esi, eax
call fcn.004558a1
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4616b3
cmp edi, ebx
je 0x4616b3
call esi
cmp eax, ebx
je 0x461680
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x461680
test byte [ebp - 0x18], 1
jne 0x4616b3
lea eax, [ebp - 0x10]
push eax
call fcn.0044facd
test eax, eax
pop ecx
je 0x46169b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00455e21
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4616aa
or dword [ebp + 0x10], 0x200000
jmp 0x4616ee
or dword [ebp + 0x10], 0x40000
jmp 0x4616ee
mov eax, dword [0x47922c]
cmp eax, dword [ebp - 8]
je 0x4616ee
push eax
call fcn.004558a1
cmp eax, ebx
pop ecx
je 0x4616ee
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4616ee
mov eax, dword [0x479230]
cmp eax, dword [ebp - 8]
je 0x4616ee
push eax
call fcn.004558a1
cmp eax, ebx
pop ecx
je 0x4616ee
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x479228]
call fcn.004558a1
cmp eax, ebx
pop ecx
je 0x46170e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x461710
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret