joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421160
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2c32
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x62d330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x154], 0
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push 0x60082b
mov dword [ebp - 0x158], esi
mov byte [esi], 0
call fcn.00404be0
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x154], 1
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x18
push str.unknown_OperatingSystem.
mov ecx, esi
mov dword [ebp - 0x150], 0x11c
call fcn.00404be0
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x421326
mov eax, dword [ebp - 0x14c]
sub eax, 4
je 0x4212e1
dec eax
je 0x421284
dec eax
jne 0x421326
mov eax, dword [ebp - 0x148]
sub eax, 0
je 0x421268
dec eax
je 0x42124c
dec eax
jne 0x421326
cmp byte [ebp - 0x36], 1
jne 0x421326
push str.Microsoft_Windows_10
jmp 0x42131f
cmp byte [ebp - 0x36], 1
mov ecx, esi
jne 0x42125e
push str.Microsoft_Windows_7
jmp 0x421321
push str.Microsoft_Windows_Server_2008_R2
jmp 0x421321
cmp byte [ebp - 0x36], 1
mov ecx, esi
jne 0x42127a
push str.Microsoft_Windows_Vista
jmp 0x421321
push str.Microsoft_Windows_Server_2008
jmp 0x421321
mov eax, dword [ebp - 0x148]
sub eax, 0
je 0x4212da
dec eax
je 0x4212d3
dec eax
jne 0x421326
cmp byte [ebp - 0x36], 1
jne 0x4212ad
cmp word [ebp - 0x34], 9
jne 0x4212ad
push str.Microsoft_Windows_XP_Professional_x64_Edition
jmp 0x42131f
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x4212c0
push str.Microsoft_Windows_Server_2003
jmp 0x42131f
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x421326
push str.Microsoft_Windows_Server_2003_R2
jmp 0x42131f
push str.Microsoft_Windows_XP
jmp 0x42131f
push str.Microsoft_Windows_2000
jmp 0x42131f
mov eax, dword [ebp - 0x148]
test eax, eax
je 0x421303
cmp eax, 0xa
je 0x4212fc
cmp eax, 0x5a
jne 0x421326
push str.Microsoft_Windows_Me
jmp 0x42131f
push str.Microsoft_Windows_98
jmp 0x42131f
mov eax, dword [ebp - 0x140]
cmp eax, 2
jne 0x421315
push str.Microsoft_Windows_NT_4.0
jmp 0x42131f
cmp eax, 1
jne 0x421326
push str.Microsoft_Windows_95
mov ecx, esi
call fcn.00405a10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005743e5
mov esp, ebp
pop ebp
ret
Function at 0x4269b0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3150
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x62d330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push 0x5fe3a5
mov byte [esi], 0
call fcn.00404be0
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x5fe3a5
mov byte [ecx], 0
call fcn.00404be0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x40]
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x5fe3a5
mov byte [ecx], 0
call fcn.00404be0
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 2
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x5fe3a5
mov byte [ecx], 0
call fcn.00404be0
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 3
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x5fe3a5
mov byte [ecx], 0
call fcn.00404be0
lea ecx, [esi + 0x88]
mov byte [ebp - 4], 4
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x5fe3a5
mov byte [ecx], 0
call fcn.00404be0
lea ecx, [esi + 0xa0]
mov byte [ebp - 4], 5
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x5fe3a5
mov byte [ecx], 0
call fcn.00404be0
lea ecx, [esi + 0xb8]
mov byte [ebp - 4], 6
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x5fe3a5
mov byte [ecx], 0
call fcn.00404be0
mov word [esi + 0xd0], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4280d0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b32eb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x62d330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 0x234], 0
push eax
push 0x60158c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x230]
call fcn.00422150
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 0x10
mov edx, 0x600917
push 0
cmovae ecx, dword [ebp - 0x230]
call fcn.00405ec0
add esp, 4
test eax, eax
jne 0x428174
cmp dword [ebp - 0x220], eax
setne al
test eax, eax
jne 0x428174
push 1
push 0x60159c
jmp 0x42819f
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x428198
test al, 0x10
jne 0x4281aa
push 1
push 0x6015a0
lea ecx, [ebp - 0x230]
call fcn.00404be0
push 1
push 0
push esi
lea ecx, [ebp - 0x230]
call fcn.00422550
cmp dword [ebp - 0x21c], 0x10
jb 0x4281d1
push dword [ebp - 0x230]
call fcn.0044ea58
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005743e5
mov esp, ebp
pop ebp
ret
Function at 0x428a20
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3480
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x62d330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push 0
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
push esi
mov byte [edi], 0
call fcn.004047b0
push 0xffffffffffffffff
lea ecx, [edi + 0x18]
mov dword [ebp - 4], 0
push 0
lea eax, [esi + 0x18]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004047b0
mov byte [ebp - 4], 1
lea ecx, [edi + 0x40]
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
lea eax, [esi + 0x40]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004047b0
push 0xffffffffffffffff
lea ecx, [edi + 0x58]
mov byte [ebp - 4], 2
push 0
lea eax, [esi + 0x58]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004047b0
push 0xffffffffffffffff
lea ecx, [edi + 0x70]
mov byte [ebp - 4], 3
push 0
lea eax, [esi + 0x70]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004047b0
push 0xffffffffffffffff
lea ecx, [edi + 0x88]
mov byte [ebp - 4], 4
push 0
lea eax, [esi + 0x88]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004047b0
lea ecx, [edi + 0xa0]
mov byte [ebp - 4], 5
push 0xffffffffffffffff
push 0
lea eax, [esi + 0xa0]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
push eax
call fcn.004047b0
push 0xffffffffffffffff
lea ecx, [edi + 0xb8]
mov byte [ebp - 4], 6
push 0
lea eax, [esi + 0xb8]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004047b0
movzx eax, byte [esi + 0xd0]
mov byte [edi + 0xd0], al
movzx eax, byte [esi + 0xd1]
mov byte [edi + 0xd1], al
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x42c610
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x62d330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, edx
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 8]
xor esi, esi
xor bl, bl
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], edx
cmp dword [ecx + 0x10], esi
je 0x42c761
cmp dword [eax + 0x10], esi
je 0x42c761
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.00404570
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x42c761
push edi
push 0x639f74
push eax
call fcn.00575c65
mov edi, eax
add esp, 8
test edi, edi
je 0x42c74e
mov ecx, dword [ebp - 0x18]
push edi
push dword [ebp - 0x20]
push dword [ebp - 0xc]
call fcn.00404570
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x42c738
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x42c738
mov eax, dword [ebp - 0x10]
push 0x639f74
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 0x18], ecx
call fcn.00575c65
mov esi, eax
add esp, 8
test esi, esi
je 0x42c738
mov ecx, dword [ebp - 0x1c]
call fcn.00404570
push eax
push dword [ebp - 0x18]
push str.StringFileInfo_08lx_s
push 0x80
push esi
call fcn.00574cec
add esp, 0x14
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x42c736
mov edx, dword [ebp - 0x14]
cmp byte [edx], bl
jne 0x42c71e
xor ecx, ecx
jmp 0x42c72c
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42c723
sub ecx, ebx
push ecx
mov ecx, dword [ebp - 0x24]
push edx
call fcn.00404be0
mov bl, 1
push edi
call fcn.0044ea58
add esp, 4
test esi, esi
je 0x42c74e
push esi
call fcn.0044ea58
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005743e5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.005743e5
mov esp, ebp
pop ebp
ret

Function at 0x42c7b0
Capabilities:
Create directory

Disassembly:
test ecx, ecx
jne 0x42c7b7
xor eax, eax
ret
push ebx
push edi
push ecx
call fcn.00576037
mov ebx, eax
add esp, 4
mov edi, ebx
lea eax, [edi + 1]
lea esp, [esp]
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x42c7d0
push esi
sub edi, eax
xor esi, esi
test edi, edi
jle 0x42c814
mov al, byte [ebx + esi]
cmp al, 0x5c
je 0x42c7eb
cmp al, 0x2f
jne 0x42c80f
push 0
push ebx
mov byte [ebx + esi], 0
call fcn.00576087
add esp, 8
test eax, eax
je 0x42c80b
push ebx
call fcn.005760e7
add esp, 4
test eax, eax
jne 0x42c83f
mov byte [ebx + esi], 0x2f
inc esi
cmp esi, edi
jl 0x42c7e0
push 0
push ebx
call fcn.00576087
mov esi, eax
add esp, 8
test esi, esi
je 0x42c830
push ebx
call fcn.005760e7
add esp, 4
mov esi, eax
push ebx
call fcn.00574c24
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
ret
pop esi
pop edi
or eax, 0xffffffff
pop ebx
ret
Function at 0x42f010
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3d9f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x62d330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x603268
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.00421350
lea eax, [ebp - 0x14]
mov dword [esi + 0x3c], 0
lea ebx, [edi + 0x10]
mov ecx, esi
push eax
mov dword [esi + 0x38], ebx
call fcn.00404390
push eax
mov dword [ebp - 4], 2
call fcn.004052e0
mov byte [ebp - 4], 1
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x42f0da
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x42f0da
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 0x18]
push 0x20
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x42f0ff
mov eax, dword [esi + 0xc]
mov ecx, esi
or eax, 4
push 0
push eax
call fcn.004042d0
mov dword [ebp - 4], 3
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, ebx
call fcn.00424770
lea eax, [ebx + 4]
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [ebx + 0xc], eax
lea ecx, [ebx + 8]
lea eax, [ebx + 0x14]
mov byte [ebx + 0x4c], 0
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov byte [ebx + 0x45], 0
mov dword [ebx + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov dword [ebx + 0x50], 0
mov eax, dword [0x63d7bc]
mov dword [ebx + 0x48], eax
mov eax, edi
mov dword [ebx + 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42fc10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3e7f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x62d330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x603258
mov dword [edi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.00421350
lea eax, [ebp - 0x14]
mov dword [esi + 0x3c], 0
lea ebx, [edi + 4]
mov ecx, esi
push eax
mov dword [esi + 0x38], ebx
call fcn.00404390
push eax
mov dword [ebp - 4], 2
call fcn.004052e0
mov byte [ebp - 4], 1
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x42fccc
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x42fccc
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 0x18]
push 0x20
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x42fcf1
mov eax, dword [esi + 0xc]
mov ecx, esi
or eax, 4
push 0
push eax
call fcn.004042d0
mov dword [ebp - 4], 3
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, ebx
call fcn.00424770
lea eax, [ebx + 4]
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [ebx + 0xc], eax
lea ecx, [ebx + 8]
lea eax, [ebx + 0x14]
mov byte [ebx + 0x4c], 0
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov byte [ebx + 0x45], 0
mov dword [ebx + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov dword [ebx + 0x50], 0
mov eax, dword [0x63d7bc]
mov dword [ebx + 0x48], eax
mov eax, edi
mov dword [ebx + 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x430160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b06e8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x62d330]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x62d330]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x4302b4
cmp byte [ebx + 0x45], 0
je 0x4302b4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4301c0
xor al, al
jmp 0x4302b6
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x430200
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x430241
dec eax
je 0x430245
sub eax, 2
je 0x43029b
xor bl, bl
jmp 0x43029d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x43027c
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00576dac
add esp, 0x10
cmp esi, eax
jne 0x43023d
cmp byte [ebx + 0x45], 0
je 0x43029b
test esi, esi
jne 0x430200
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.004257f0
jmp 0x430200
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x4302b0
push dword [esp + 0x18]
call fcn.0044ea58
add esp, 4
mov al, bl
jmp 0x4302b6
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005743e5
mov esp, ebp
pop ebp
ret
Function at 0x435f70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b4503
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x62d330]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x84], 0
call fcn.0040c0b0
xor eax, eax
mov dword [ebp - 4], 0
cmp byte [edi + 0x2a], al
push 4
setne al
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push 1
push 6
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x20], 1
test eax, eax
je 0x435ff2
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x18], eax
jmp 0x436000
mov dword [ebp - 0x1c], 0x124f80
mov dword [ebp - 0x18], 0x7d0
push 0
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push 0xc
lea eax, [ebp - 0x80]
push eax
push 0xc
lea eax, [ebp - 0x20]
push eax
push 0x98000004
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x4360e5
mov byte [ebp - 0x74], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0xb4]
call fcn.004057c0
push eax
mov edx, 0x6021cc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x9c]
call fcn.00405a50
mov edi, eax
add esp, 4
lea eax, [ebp - 0x70]
cmp eax, edi
je 0x436096
cmp dword [ebp - 0x5c], 0x10
jb 0x43607b
push dword [ebp - 0x70]
call fcn.0044ea58
add esp, 4
push edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
call fcn.004045a0
cmp dword [ebp - 0x88], 0x10
jb 0x4360ad
push dword [ebp - 0x9c]
call fcn.0044ea58
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0xa0], 0x10
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x8c], 0
mov byte [ebp - 0x9c], 0
jb 0x4360f8
push dword [ebp - 0xb4]
call fcn.0044ea58
add esp, 4
jmp 0x4360f8
push 0
push 0x600b2f
lea ecx, [ebp - 0x70]
mov byte [ebp - 0x74], 1
call fcn.00404be0
lea eax, [ebp - 0x74]
mov ecx, esi
push eax
call fcn.004102a0
cmp dword [ebp - 0x44], 0x10
jb 0x436114
push dword [ebp - 0x58]
call fcn.0044ea58
add esp, 4
cmp dword [ebp - 0x5c], 0x10
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
jb 0x436137
push dword [ebp - 0x70]
call fcn.0044ea58
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005743e5
mov esp, ebp
pop ebp
ret 4
Function at 0x436160
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b4549
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x62d330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0
call fcn.0040c0b0
xor eax, eax
mov dword [ebp - 4], 0
cmp byte [esi + 0x2a], al
push 4
setne al
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 1
push 6
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
push 0x600b69
lea ecx, [edi + 4]
mov byte [edi], 1
call fcn.00404be0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005743e5
mov esp, ebp
pop ebp
ret 4