joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435210
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x61b660]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.0042e40e
pop ecx
cmp eax, esi
je 0x4352fa
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x4352fa
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.00529d40
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x4352fa
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x4352fa
cmp esi, 0x14
jge 0x4352fa
push 0x10
push 0
push edi
call fcn.00530090
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4352e9
call fcn.0052f90e
cmp dword [eax], 0x22
je 0x4352e9
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.0052b405
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x4352bf
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x635a24], 0
jne 0x435385
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x4353ae
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00435120
pop ecx
pop ecx
test eax, eax
jne 0x4353b0
inc edi
cmp edi, esi
jl 0x43538b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052927b
leave
ret 8
Function at 0x437a74
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x437abc
call fcn.004375ed
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x437abc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x437aff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x437ae8
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x437ae8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x437afc
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x43f0fc
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x61b660]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x43f131
xor eax, eax
jmp 0x43f184
lea eax, [ebp - 0x210]
push eax
call fcn.0052b405
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x43f162
push 0x5c4d64
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00530a85
add esp, 0xc
test eax, eax
jne 0x43f12d
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00530a85
add esp, 0xc
test eax, eax
jne 0x43f12d
lea eax, [ebp - 0x210]
push eax
call fcn.0042e494
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0052927b
leave
ret
Function at 0x44db37
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0044d7f6
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x44db81
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0042bcec
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0042bcbd
jmp 0x44db8c
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0043cf77
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x44db92
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.004335f5
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x44dbcf
call fcn.0044d7f6
mov dword [esi + 0xc], 1
jmp 0x44dbd4
call fcn.0044d7f6
cmp dword [esi], 0
je 0x44dc1d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x44dbf5
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0042bcec
jmp 0x44dc07
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.0040ad40
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0042bcbd
jmp 0x44dc41
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x44dc41
push dword [esi]
push dword [ebp + 8]
call fcn.0043cf77
pop esi
pop ebp
ret 0xc

Function at 0x44f227
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0048cdc8
call fcn.0043701e
cmp dword [eax + 0x14], 0
jne 0x44f244
mov ecx, esi
pop esi
jmp fcn.0044ed0e
pop esi
ret

Function at 0x4529ae
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004b16eb
call fcn.0043701e
cmp dword [eax + 0x14], 0
jne 0x4529cb
mov ecx, esi
pop esi
jmp fcn.00452381
pop esi
ret
Function at 0x4917da
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4917f4
call fcn.004375ed
mov esi, dword [eax + 0xc]
push dword [0x63781c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x491812
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x49180a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x49183f
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x49180c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00491708
mov esi, eax
jmp 0x491831

Function at 0x50f07e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x50f096
mov edi, dword [esi + 0xc]
jmp 0x50f0d6
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x50f0af
call fcn.004390f3
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x50f0c4
call fcn.004390f3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x50f0d6
call fcn.004390f3
call fcn.004375ed
cmp dword [eax + 0x3c], 0
je 0x50f0eb
push edi
mov ecx, ebx
call fcn.0050deb2
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0050ef98
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x50f109
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x50f115
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x52927b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x61b660]
jne 0x529285
repz ret
jmp fcn.00532b74

Function at 0x5298a6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x5298cd
call fcn.0052f921
mov dword [eax], esi
call fcn.0052f90e
push 0x16
pop esi
mov dword [eax], esi
call fcn.005340e6
mov eax, esi
jmp 0x529922
test dword [ebp + 0xc], 0xfffffff9
jne 0x5298b3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5298fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0052f934
pop ecx
call fcn.0052f90e
mov eax, dword [eax]
jmp 0x529922
test al, 0x10
jne 0x529920
test al, 1
je 0x529920
test byte [ebp + 0xc], 2
je 0x529920
call fcn.0052f921
mov dword [eax], 5
call fcn.0052f90e
mov dword [eax], 0xd
jmp 0x5298f1
xor eax, eax
pop esi
pop ebp
ret
Function at 0x543a7b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x61b660]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00533952
and dword [ebp - 0x14], 0
cmp dword [0x63a2a0], 0
mov dword [ebp - 0x18], eax
jne 0x543b2e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x543bd6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x543bd6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5e9f18
push ebx
mov dword [0x63a2a0], eax
call edi
push eax
call esi
push 0x5e9f04
push ebx
mov dword [0x63a2a4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x63a2a8], eax
call edi
push eax
call esi
mov dword [0x63a2b0], eax
test eax, eax
je 0x543b2e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x63a2ac], eax
mov eax, dword [0x63a2ac]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x543b87
cmp dword [0x63a2b0], ecx
je 0x543b87
push eax
call esi
push dword [0x63a2b0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x543b87
test ebx, ebx
je 0x543b87
call edi
test eax, eax
je 0x543b7e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x543b7e
test byte [ebp - 8], 1
jne 0x543b87
or dword [ebp + 0x10], 0x200000
jmp 0x543bba
mov eax, dword [0x63a2a4]
cmp eax, dword [ebp - 0x18]
je 0x543bba
push eax
call esi
test eax, eax
je 0x543bba
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x543bba
mov eax, dword [0x63a2a8]
cmp eax, dword [ebp - 0x18]
je 0x543bba
push eax
call esi
test eax, eax
je 0x543bba
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x63a2a0]
call esi
test eax, eax
je 0x543bd6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x543bd8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052927b
leave
ret
Function at 0x56fd40
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x61b660]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x40], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
add eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x40]
jle 0x56fdce
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call fcn.0042f420
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 4], 0
je 0x56fe26
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 4]
call fcn.0042f4ab
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x3c]
sub eax, edx
cmp ecx, eax
jle 0x56fe5b
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0xc]
sub edx, ecx
mov eax, dword [ebp - 0x48]
add edx, dword [eax + 0x88]
mov dword [ebp + 0xc], edx
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 1
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x48]
call fcn.0043376c
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0052927b
mov esp, ebp
pop ebp
ret 8
Function at 0x5714f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593eae
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x61b660]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x218], ecx
mov ecx, dword [ebp - 0x218]
add ecx, 0x30
call fcn.00571290
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x1c], ecx
mov edx, 0x202
mov word [ebp - 0x1a8], dx
lea eax, [ebp - 0x1a4]
push eax
movzx ecx, word [ebp - 0x1a8]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0
je 0x5715d2
xor edx, edx
je 0x571581
push 0x63a8c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
je 0x57158f
mov dword [0x63a8d8], 0x16
xor ecx, ecx
je 0x5715bc
push str.SocketInterface.cpp
call fcn.005291f0
add esp, 4
mov dword [ebp - 0x1c8], eax
mov edx, dword [ebp - 0x1c8]
push edx
push str.SocketInterface.cpp
mov ecx, 0x63a8dc
call fcn.004064c0
xor eax, eax
je 0x5715cd
push 0x5ec894
call fcn.00575290
add esp, 4
jmp 0x5716b8
movzx ecx, word [ebp - 0x1a4]
movzx edx, word [ebp - 0x1a8]
cmp ecx, edx
je 0x571647
xor eax, eax
je 0x5715f3
push 0x63a8c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
je 0x571601
mov dword [0x63a8d8], 0x1c
xor edx, edx
je 0x57162e
push str.SocketInterface.cpp
call fcn.005291f0
add esp, 4
mov dword [ebp - 0x1f0], eax
mov eax, dword [ebp - 0x1f0]
push eax
push str.SocketInterface.cpp
mov ecx, 0x63a8dc
call fcn.004064c0
xor ecx, ecx
je 0x57163f
push str.WinSock_version_not_supported_n
call fcn.00575290
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x5716b8
call fcn.00574c00
call fcn.005755f0
mov edx, dword [ebp - 0x218]
mov dword [edx + 4], 1
mov eax, dword [ebp - 0x218]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x218]
mov dword [ecx + 0x18], 0
mov edx, dword [ebp - 0x218]
mov dword [edx], 0
mov eax, dword [ebp - 0x218]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x218]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 0x218]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 0x218]
mov dword [eax + 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052927b
mov esp, ebp
pop ebp
ret 4
Function at 0x574900
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
add eax, 0x14
push eax
push 0
mov ecx, dword [ebp - 0x38]
push ecx
push 0x572340
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 0x38]
mov dword [edx + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x574997
xor eax, eax
je 0x574949
push 0x63a8c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
je 0x574957
mov dword [0x63a8d8], 0x2b3
xor edx, edx
je 0x57497e
push str.SocketInterface.cpp
call fcn.005291f0
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push str.SocketInterface.cpp
mov ecx, 0x63a8dc
call fcn.004064c0
xor ecx, ecx
je 0x574993
mov edx, dword [ebp - 4]
push edx
push str.Error_is___ld_
call fcn.00575290
add esp, 8
xor al, al
jmp 0x574999
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x575ea0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594468
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x61b660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0x1c], 0x10
jb 0x575ee1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
jmp 0x575ee7
lea ecx, [ebp + 8]
mov dword [ebp - 0x44], ecx
push 0x5a729c
mov edx, dword [ebp - 0x44]
push edx
call fcn.0052a3b8
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x575f95
xor eax, eax
je 0x575f14
push 0x63a8c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
je 0x575f22
mov dword [0x63a8d8], 0xf6
xor edx, edx
je 0x575f49
push str.Assist_Func.cpp
call fcn.005291f0
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
push str.Assist_Func.cpp
mov ecx, 0x63a8dc
call fcn.004064c0
xor ecx, ecx
je 0x575f72
cmp dword [ebp + 0x1c], 0x10
jb 0x575f5b
mov edx, dword [ebp + 8]
mov dword [ebp - 0x48], edx
jmp 0x575f61
lea eax, [ebp + 8]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
push ecx
push 0x5ecd7c
call fcn.00575290
add esp, 8
mov byte [ebp - 0x19], 0
mov dword [ebp - 4], 1
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00406060
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x19]
jmp 0x575fdb
mov edx, dword [ebp - 0x14]
push edx
push 1
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.0052a1d9
add esp, 0x10
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.00529f1b
add esp, 4
mov byte [ebp - 0x1a], 1
mov dword [ebp - 4], 2
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00406060
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x576110
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x24], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x20], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x28], 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x34]
cmp dword [edx + 4], 0xffffffff
jne 0x5761b9
xor eax, eax
je 0x576168
push 0x63a8c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
je 0x576176
mov dword [0x63a8d8], 0x13
xor edx, edx
je 0x57619d
push str.WorkBase.cpp
call fcn.005291f0
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
push str.WorkBase.cpp
mov ecx, 0x63a8dc
call fcn.004064c0
xor ecx, ecx
je 0x5761b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x5ecdac
call fcn.00575290
add esp, 8
xor al, al
jmp 0x5761bb
mov al, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x576750
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x44]
call fcn.00576860
movzx eax, al
test eax, eax
jne 0x5767ce
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x28], 0x63
xor edx, edx
je 0x576781
push 0x63a8c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
je 0x57678f
mov dword [0x63a8d8], 0x38
xor ecx, ecx
je 0x5767b6
push str.SocketDownLoad.cpp
call fcn.005291f0
add esp, 4
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
push str.SocketDownLoad.cpp
mov ecx, 0x63a8dc
call fcn.004064c0
xor eax, eax
je 0x5767c7
push str.ProcessAddress_is_failed__
call fcn.00575290
add esp, 4
xor al, al
jmp 0x576857
push 0x10
mov ecx, dword [ebp - 0x44]
add ecx, 8
push ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x576855
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x28], 1
xor edx, edx
je 0x57680b
push 0x63a8c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
je 0x576819
mov dword [0x63a8d8], 0x40
xor ecx, ecx
je 0x576840
push str.SocketDownLoad.cpp
call fcn.005291f0
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
push edx
push str.SocketDownLoad.cpp
mov ecx, 0x63a8dc
call fcn.004064c0
xor eax, eax
je 0x576851
push 0x5ece74
call fcn.00575290
add esp, 4
xor al, al
jmp 0x576857
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x576f90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x40]
add edx, 0x68
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x576fbe
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x44], edx
jmp 0x576fc4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x57704e
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x28], 4
xor eax, eax
je 0x576ffd
push 0x63a8c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
je 0x57700b
mov dword [0x63a8d8], 0x92
xor edx, edx
je 0x577032
push str.SocketDownLoad.cpp
call fcn.005291f0
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
push str.SocketDownLoad.cpp
mov ecx, 0x63a8dc
call fcn.004064c0
xor ecx, ecx
je 0x57704a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x5ecec0
call fcn.00575290
add esp, 8
xor al, al
jmp 0x577050
mov al, 1
mov esp, ebp
pop ebp
ret