joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c0848
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4c08b3
cmp byte [ebx + 0xd3], 0
jne 0x4c08b3
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406a2c
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4c08a0
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4c08c0
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406c84
jmp 0x4c08c0
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406c84
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4c2088
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4c20f6
mov eax, esi
call fcn.0047d768
test al, al
je 0x4c20f6
mov eax, dword [ebx + 0x84]
call fcn.0047d3bc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4c20f6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4c20ea
push 0
mov eax, dword [ebx + 0x84]
call fcn.0047d3bc
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00474338
jmp 0x4c20f6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004c1ec0
pop esi
pop ebx
ret

Function at 0x4c3198
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
xor ecx, ecx
mov edx, 0x10
call fcn.00404888
push ebx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4c31e6
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
mov edx, ebx
mov eax, esi
call fcn.004c3144
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4c31f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
xor ecx, ecx
mov edx, 0x10
call fcn.00404888
push ebx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4c323b
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3e5
sete al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c3244
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
xor ecx, ecx
mov edx, 0x10
call fcn.00404888
push ebx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.kernel32.dll_ReadFile
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4c3292
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
mov edx, ebx
mov eax, esi
call fcn.004c3144
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c38ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.004068c4
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, edi
call fcn.00407268
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4c39b9
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00407268
mov esi, eax
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4c39b0
mov edx, dword [ebp - 0x10]
inc edx
mov eax, ebx
call fcn.004073cc
mov eax, dword [ebx]
call fcn.00407268
mov cx, 0x20
mov edx, dword [ebp - 0x10]
call fcn.00404888
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x4c398d
mov eax, ebx
call fcn.004068c4
jmp 0x4c39b0
shr dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 1
jne 0x4c39a6
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
cmp word [eax + edx*2 - 4], 0
jne 0x4c39a6
dec dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.004073cc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1004d2c
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1006084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1004e14
push 0x80000000
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1004e01
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.KERNEL32.dll_RegQueryValueExA]
test eax, eax
jne 0x1004df0
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x1004dda
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x1004df0
push eax
push edi
push dword [ebp - 0x110]
call fcn.01004cc4
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x1004e03
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100148d
leave
ret 4

Function at 0x101b262
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
pushal
call fcn.0101b26e

Function at 0x101b8e7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
call fcn.0101b8fa

Function at 0x101b961
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
pushal
mov dword [ebp - 4], 0
call fcn.0101b974

Function at 0x101f262
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
pushal
call fcn.0101f26e

Function at 0x101f8e7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
call fcn.0101f8fa

Function at 0x101f961
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
pushal
mov dword [ebp - 4], 0
call fcn.0101f974
Function at 0x100010f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100040b8
push 0x10002348
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x100074b4], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x100074b0], ecx
shl ecx, 8
add ecx, edx
mov dword [0x100074ac], ecx
shr eax, 0x10
mov dword [0x100074a8], eax
call fcn.10002210
test eax, eax
jne 0x1000115a
push 0x1c
call fcn.100012c0
add esp, 4
mov dword [ebp - 4], 0
call fcn.10002010
call fcn.10002000
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10007994], eax
call fcn.100019c0
mov dword [0x10007490], eax
test eax, eax
je 0x1000118d
mov eax, dword [0x10007994]
test eax, eax
jne 0x10001197
push 0xffffffffffffffff
call fcn.10001320
add esp, 4
call fcn.10001710
call fcn.10001620
call fcn.100012f0
mov esi, dword [0x10007994]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x10001276
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x100011de
test al, al
je 0x100011de
and eax, 0xff
push eax
call fcn.100015c0
add esp, 4
test eax, eax
je 0x100011b8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x100011b8
cmp byte [esi], 0x22
jne 0x100011e7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x100011f7
cmp al, 0x20
ja 0x100011f7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x100011e7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x10001218
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x1000121d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.10001320
jmp 0x1000125b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x100011e7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x10001276

Function at 0x100012c0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x10007498], 1
jne 0x100012ce
call fcn.10002420
mov eax, dword [esp + 4]
push eax
call fcn.10002460
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10001360
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x100074e4]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x1000137f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x100074e0], 1
mov byte [0x100074dc], bl
jne 0x100013d9
mov ecx, dword [0x1000798c]
test ecx, ecx
je 0x100013c7
mov esi, dword [0x10007988]
sub esi, 4
cmp esi, ecx
jb 0x100013c7
mov eax, dword [esi]
test eax, eax
je 0x100013c0
call eax
mov ecx, dword [0x1000798c]
sub esi, 4
cmp esi, ecx
jae 0x100013b2
push 0x10005014
push 0x10005010
call fcn.10001410
add esp, 8
push 0x1000501c
push 0x10005018
call fcn.10001410
add esp, 8
test ebx, ebx
jne 0x10001400
push ebp
mov dword [0x100074e4], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x100019c0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x100075f8]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x10001a02
call edi
mov esi, eax
test esi, esi
je 0x100019ec
mov eax, 1
jmp 0x100019fd
call ebp
mov ebx, eax
test ebx, ebx
je 0x10001b0f
mov eax, 2
mov dword [0x100075f8], eax
cmp eax, 1
jne 0x10001aa2
test esi, esi
jne 0x10001a1b
call edi
mov esi, eax
test esi, esi
je 0x10001b0f
cmp word [esi], 0
mov eax, esi
je 0x10001a35
add eax, 2
cmp word [eax], 0
jne 0x10001a23
add eax, 2
cmp word [eax], 0
jne 0x10001a23
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x10001a94
push edi
call fcn.10002690
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10001a94
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x10001a86
push ebx
call fcn.10002640
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x10001b0f
test ebx, ebx
jne 0x10001ab3
call ebp
mov ebx, eax
test ebx, ebx
je 0x10001b0f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x10001acb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10001abb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10001abb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.10002690
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x10001aed
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x10002460
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x100051c8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x10002484
add eax, 8
inc ebp
cmp eax, 0x10005258
jb 0x10002475
cmp ecx, dword [ebp*8 + 0x100051c8]
jne 0x1000262b
mov eax, dword [0x10007498]
cmp eax, 1
je 0x100025ed
test eax, eax
jne 0x100024b0
cmp dword [0x10005024], 1
je 0x100025ed
cmp ecx, 0xfc
je 0x1000262b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100024eb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x10002534
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x10004398
add ebx, ecx
push ebx
call fcn.10003290
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10004378
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x100051cc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.10003200
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x10007880]
test eax, eax
je 0x100025fe
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x10002608
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x100051cc]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x40b7b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x101
push 0
push str.SoftwareAMDWDST
push reloc.WS2_32.dll_bind
call dword [0x45106c]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push str.EnableUnverifiedTimings
push eax
mov dword [ebp - 4], 4
call dword [0x451070]
cmp dword [ebp - 4], 0
jbe 0x40b805
cmp dword [ebp - 0xc], 0
je 0x40b805
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40d780
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x477d80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x7e
mov esi, ecx
push eax
lea ecx, [ebp - 0x82]
push ecx
mov edi, 7
mov word [ebp - 0x84], ax
call fcn.004351c0
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x84]
add esp, 0xc
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40d7c2
push esi
lea edx, [ebp - 0x84]
push 0x40d670
mov dword [str.8109ed04_8cad_4acd_bbba_22d7b2d8d27d], edx
mov dword [0x47980c], 0
call dword [0x4512bc]
mov eax, dword [0x47980c]
test eax, eax
je 0x40d81a
mov ecx, dword [ebp + 0x10]
push ecx
push eax
mov ecx, esi
call fcn.0040d6b0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434af6
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00434af6
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40ec50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e2db
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x477d80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea eax, [esi + 0x10]
push eax
call dword [0x4510a8]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push edi
push ecx
mov dword [esi + 0x38], eax
add eax, 4
push str.CWDSTCommandQueue::CWDSTCommandQueue_owner_p__size_d__n
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [esi + 0x3c], ecx
call fcn.0040a9b0
xor ecx, ecx
mov eax, edi
mov edx, 0x20
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043523a
add esp, 0x14
cmp eax, ebx
je 0x40ecde
lea edx, [edi - 1]
mov ecx, eax
cmp edx, ebx
jl 0x40ece0
mov dword [ecx], ebx
mov dword [ecx + 0x18], ebx
add ecx, 0x20
dec edx
jns 0x40ecd1
jmp 0x40ece0
xor eax, eax
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, edi
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov byte [esi + 0x34], bl
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x413720
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e4db
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x477d80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0044d516
push 4
mov dword [ebp - 4], 0
call fcn.00434d1a
mov edi, eax
add esp, 4
test edi, edi
je 0x4137a0
call fcn.0044d0f7
mov dword [edi], eax
call fcn.0044ceb6
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0044cdeb
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x413796
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0044ce13
jmp 0x4137a2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x428eb0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x477d80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, 2
push eax
mov word [ebp - 0x14], cx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [ebp + 0xc]
push edx
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi]
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [ebp - 4]
cmp eax, 0xffffffff
setne al
xor ecx, ebp
pop esi
call fcn.00434af6
mov esp, ebp
pop ebp
ret 8

Function at 0x428fb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx]
sub esp, 0x2c
cmp ecx, 0xffffffff
jne 0x428fc6
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 4], eax
xor eax, eax
push eax
mov dword [ebp - 8], edx
push eax
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x10]
mov dword [ebp - 0x24], edx
lea edx, [ebp + 8]
push edx
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp + 8], eax
lea eax, [ebp - 0x2c]
push eax
push ecx
mov dword [ebp - 0x20], 2
call dword [sym.imp.WS2_32.dll_WSASendMsg]
cmp eax, 0xffffffff
je 0x428fbd
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x429040
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x477d80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi]
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x208], eax
mov eax, dword [ebp + 8]
mov ecx, 1
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x20c], ecx
lea edx, [ebp - 0x20c]
test eax, eax
jle 0x4290a1
imul eax, eax, 0x3e8
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
jmp 0x4290a3
push 0
push edx
push 0
lea eax, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x4290c9
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434af6
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi]
lea ecx, [ebp - 0x108]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 2
xor ecx, ebp
dec eax
pop esi
call fcn.00434af6
mov esp, ebp
pop ebp
ret 4

Function at 0x429100
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x477d80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi]
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x208], eax
mov eax, dword [ebp + 8]
mov ecx, 1
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x20c], ecx
lea edx, [ebp - 0x20c]
test eax, eax
jle 0x429161
imul eax, eax, 0x3e8
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
jmp 0x429163
push 0
push edx
lea eax, [ebp - 0x108]
push eax
push 0
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x429189
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434af6
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi]
lea ecx, [ebp - 0x108]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 2
xor ecx, ebp
dec eax
pop esi
call fcn.00434af6
mov esp, ebp
pop ebp
ret 4

Function at 0x4291c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x477d80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
push eax
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x429208
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434af6
mov esp, ebp
pop ebp
ret 8
push edi
push esi
lea ecx, [ebp - 0x10]
push ecx
push 2
call sub.WS2_32.dll_inet_ntop
mov ecx, dword [ebp - 4]
test eax, eax
setne al
pop edi
xor ecx, ebp
pop esi
call fcn.00434af6
mov esp, ebp
pop ebp
ret 8