joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ad50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5749c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push 0x3b8
xor edi, edi
lea eax, [esi + 0x74]
push edi
push eax
call fcn.00500210
push 0x110
lea ecx, [ebp - 0x114]
push edi
push ecx
mov dword [esi + 0x42c], edi
mov dword [esi + 0x430], 1
mov dword [esi + 0x434], 1
mov dword [esi + 0x474], edi
mov dword [esi + 0x478], 1
mov dword [esi + 0x438], edi
mov dword [esi + 0x458], edi
mov dword [esi + 0x470], edi
mov dword [esi + 0x440], edi
mov dword [esi + 0x47c], edi
mov dword [ebp - 0x118], 0x114
call fcn.00500210
add esp, 0x18
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x40ae19
cmp dword [ebp - 0x114], 5
jb 0x40ae19
mov eax, 1
pop edi
mov dword [esi + 0x43c], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff91b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov dword [esi + 0x43c], edi
pop edi
xor ecx, ebp
pop esi
call fcn.004ff91b
mov esp, ebp
pop ebp
ret

Function at 0x41553e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x415585
call fcn.0040f09a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x415585
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4155a1
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041503e
mov esi, eax
test edi, edi
je 0x41559f
test ebx, ebx
je 0x41559f
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41603d
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x51c316
call fcn.00500e1e
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x416062
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4160b4
call fcn.0040c983
push eax
lea ecx, [ebp - 0x10]
call fcn.00401590
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00500588
push eax
call fcn.00401050
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401270
mov eax, esi
call fcn.00500ef6
ret 8
Function at 0x4160da
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5749c8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x41611f
push 0x52de80
push 4
push eax
call fcn.00500457
push eax
call fcn.00401050
add esp, 0x10
jmp 0x416135
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4161b5
push edi
call fcn.00500faf
mov edi, dword [eax]
call fcn.00500faf
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.005002a8
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00500faf
cmp dword [eax], 0
je 0x416189
call fcn.00500faf
push dword [eax]
call fcn.0040c244
pop ecx
jmp 0x416190
call fcn.00500faf
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x4161b5
cmp dword [ebp - 0x234], esi
jae 0x4161b5
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4161b7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ff91b
leave
ret
Function at 0x41665c
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5749c8]
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.00410b79
pop ecx
cmp eax, esi
je 0x416746
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x416746
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.00500210
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 0x416746
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x416746
cmp esi, 0x14
jge 0x416746
push 0x10
push 0
push edi
call fcn.00502ef6
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x416735
call fcn.00500faf
cmp dword [eax], 0x22
je 0x416735
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00500f52
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x41670b
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 [0x5783ec], 0
jne 0x4167d1
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x4167fa
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.004160da
pop ecx
pop ecx
test eax, eax
jne 0x4167fc
inc edi
cmp edi, esi
jl 0x4167d7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ff91b
leave
ret 8

Function at 0x41c1bc
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5749c8]
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 0x41c1f1
xor eax, eax
jmp 0x41c244
lea eax, [ebp - 0x210]
push eax
call fcn.00500f52
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x41c222
push 0x5269fc
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005006f9
add esp, 0xc
test eax, eax
jne 0x41c1ed
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005006f9
add esp, 0xc
test eax, eax
jne 0x41c1ed
lea eax, [ebp - 0x210]
push eax
call fcn.00410b79
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004ff91b
leave
ret
Function at 0x42267b
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.0042231f
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4226c5
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040c884
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040c855
jmp 0x4226d0
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041a0af
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4226d6
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.00415d07
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x422713
call fcn.0042231f
mov dword [esi + 0xc], 1
jmp 0x422718
call fcn.0042231f
cmp dword [esi], 0
je 0x422761
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x422739
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040c884
jmp 0x42274b
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004017b0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040c855
jmp 0x422785
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x422785
push dword [esi]
push dword [ebp + 8]
call fcn.0041a0af
pop esi
pop ebp
ret 0xc

Function at 0x45ac23
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0040f09a
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x45ac5c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0045a860
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x45acba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x45acde
cmp dword [edi + 0x74], 0
jne 0x45acde
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0040f09a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0045ac7b
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x48b08c
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 0x48b0a6
call fcn.0040f09a
mov esi, dword [eax + 0xc]
push dword [0x57a7ac]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x48b0c4
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 0x48b0bc
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x48b0f1
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x48b0be
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0048afba
mov esi, eax
jmp 0x48b0e3

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

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00413ad1
call fcn.0040b0c0
cmp eax, esi
pop esi
jne 0x4dc3d2
mov ecx, 0x578920
jmp fcn.0041cde1
ret

Function at 0x4dfcc5
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 0x4dfcdd
mov edi, dword [esi + 0xc]
jmp 0x4dfd1d
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4dfcf6
call fcn.0041a83f
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4dfd0b
call fcn.0041a83f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4dfd1d
call fcn.0041a83f
call fcn.0040f09a
cmp dword [eax + 0x3c], 0
je 0x4dfd32
push edi
mov ecx, ebx
call fcn.004deb80
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004dfbdf
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4dfd50
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4dfd5c
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 0x4ff91b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5749c8]
jne 0x4ff925
repz ret
jmp fcn.00507cac

Function at 0x510908
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5749c8]
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.0050586b
and dword [ebp - 0x14], 0
cmp dword [0x57ce18], 0
mov dword [ebp - 0x18], eax
jne 0x5109bb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x510a63
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x554168
push ebx
call edi
test eax, eax
je 0x510a63
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x554158
push ebx
mov dword [0x57ce18], eax
call edi
push eax
call esi
push 0x554144
push ebx
mov dword [0x57ce1c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x57ce20], eax
call edi
push eax
call esi
mov dword [0x57ce28], eax
test eax, eax
je 0x5109bb
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x57ce24], eax
mov eax, dword [0x57ce24]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x510a14
cmp dword [0x57ce28], ecx
je 0x510a14
push eax
call esi
push dword [0x57ce28]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x510a14
test ebx, ebx
je 0x510a14
call edi
test eax, eax
je 0x510a0b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x510a0b
test byte [ebp - 8], 1
jne 0x510a14
or dword [ebp + 0x10], 0x200000
jmp 0x510a47
mov eax, dword [0x57ce1c]
cmp eax, dword [ebp - 0x18]
je 0x510a47
push eax
call esi
test eax, eax
je 0x510a47
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x510a47
mov eax, dword [0x57ce20]
cmp eax, dword [ebp - 0x18]
je 0x510a47
push eax
call esi
test eax, eax
je 0x510a47
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x57ce18]
call esi
test eax, eax
je 0x510a63
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x510a65
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ff91b
leave
ret
Function at 0x401000
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x4041c9
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x407018]
xor eax, esp
mov dword [esp + 0x19c], eax
push esi
mov eax, dword [0x407018]
xor eax, esp
push eax
lea eax, [esp + 0x1a8]
mov dword fs:[0], eax
mov esi, 0x4074fc
mov dword [esp + 0xc], 0x4074fc
call fcn.004024d0
xor esi, esi
mov eax, 0x407500
mov dword [esp + 0x1b0], esi
call fcn.004021d0
xor ecx, ecx
mov eax, 0x407530
mov byte [esp + 0x1b0], 1
call fcn.00402550
cmp dword [0x4074ec], esi
jne 0x4010b4
cmp dword [0x4074f0], esi
jne 0x4010b4
lea eax, [esp + 0x14]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
cmp eax, esi
je 0x4010b4
mov ecx, eax
lea eax, [esp + 0x10]
call fcn.00402550
mov ecx, dword [eax]
push 0x405750
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], ecx
call sub.MSVCR90.dll__CxxThrowException
inc dword [0x4074ec]
mov dword [0x407520], esi
mov dword [0x407524], esi
mov dword [0x40752c], esi
mov dword [0x407528], esi
mov dword [0x40750c], 0xffffffff
mov eax, 0x4074fc
mov ecx, dword [esp + 0x1a8]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x19c]
xor ecx, esp
call fcn.0040375c
add esp, 0x1ac
ret

Function at 0x4011c0
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
sub esp, 0x14
mov eax, dword [0x407018]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
mov esi, 0x4074fc
call fcn.00401380
test al, al
je 0x4011e4
mov eax, esi
call fcn.004012f0
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
mov eax, 2
push 0x27dd
mov word [esp + 8], ax
call sub.WSOCK32.dll_htons
push 0
mov word [esp + 0xa], ax
call sub.WSOCK32.dll_htonl
push 0x10
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x14], eax
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x40124f
push esi
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSAGetLastError
push eax
mov esi, 0x4074fc
call fcn.004011a0
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0040375c
add esp, 0x14
ret
push 0xa
push esi
call sub.WSOCK32.dll_listen
cmp eax, 0xffffffff
je 0x401227
mov eax, 0x4074fc
call fcn.00402530
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [0x407510], edx
mov edx, dword [esp + 0x10]
mov dword [0x407514], eax
mov eax, 0x4074fc
mov dword [0x40750c], esi
mov dword [0x407518], ecx
mov dword [0x40751c], edx
call fcn.00402540
push 0x40752c
push 0
push 0x4074fc
push 0x401570
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x407528], eax
test eax, eax
jne 0x4012dd
mov eax, 0x4074fc
call fcn.004012f0
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0040375c
add esp, 0x14
ret
mov ecx, dword [esp + 0x14]
pop esi
xor ecx, esp
mov al, 1
call fcn.0040375c
add esp, 0x14
ret
Function at 0x4013a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40429b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x407018]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push esi
mov eax, dword [0x407018]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor eax, eax
mov word [esp + 0x20], ax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov word [esp + 0x2e], ax
mov eax, edi
mov dword [esp + 0x18], 0x10
call fcn.00402530
mov ecx, dword [edi + 0x10]
mov eax, edi
mov dword [esp + 0x10], ecx
call fcn.00402540
mov esi, edi
call fcn.00401380
test al, al
je 0x40151c
mov eax, edi
call fcn.00402530
mov edx, dword [esp + 0x10]
cmp edx, dword [edi + 0x10]
mov eax, edi
sete bl
call fcn.00402540
test bl, bl
je 0x40155b
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
call sub.WSOCK32.dll_accept
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, 0xffffffff
je 0x40153b
push 0x48
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
xor esi, esi
mov dword [esp + 0x40], esi
cmp eax, esi
je 0x401482
mov ebx, eax
call fcn.00401ab0
mov ebx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0x40], 0xffffffff
mov dword [esi + 0x14], ebx
mov eax, dword [esp + 0x20]
mov dword [esi + 0x18], eax
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x1c], ecx
mov edx, dword [esp + 0x28]
lea ecx, [esi + 0x3c]
push ecx
push 0
push esi
push 0x4021c0
mov dword [esi + 0x20], edx
mov eax, dword [esp + 0x3c]
push 0
push 0
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x38], eax
test eax, eax
jne 0x4014db
mov eax, esi
call fcn.00401da0
push 0x3ea
mov esi, edi
call fcn.004011a0
jmp 0x40150d
mov eax, edi
call fcn.00402530
push esi
lea esi, [edi + 4]
call fcn.00402220
mov esi, dword [edi + 0x24]
mov ebx, dword [edi + 0x28]
mov eax, edi
call fcn.00402540
test esi, esi
je 0x401503
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
test ebx, ebx
je 0x40150d
push edi
call ebx
add esp, 4
mov esi, edi
call fcn.00401380
test al, al
jne 0x40141a
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0040375c
mov esp, ebp
pop ebp
ret
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x401554
call sub.WSOCK32.dll_WSAGetLastError
push eax
mov esi, edi
call fcn.004011a0
mov eax, edi
call fcn.004012f0
mov eax, 1
jmp 0x40151e
Function at 0x401580
Capabilities:
Enumerate network shares

Disassembly:
sub esp, 0x81c
mov eax, dword [0x407018]
xor eax, esp
mov dword [esp + 0x818], eax
mov eax, dword [esp + 0x820]
push edi
push 0x7ff
xor edi, edi
lea ecx, [esp + 0x21]
push edi
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], 0x4000
mov dword [esp + 0x18], 0xffffffff
mov byte [esp + 0x28], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp + 4]
push edx
push edi
push edi
push edi
push 5
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
je 0x4015f7
xor al, al
pop edi
mov ecx, dword [esp + 0x818]
xor ecx, esp
call fcn.0040375c
add esp, 0x81c
ret 4
push ebx
push ebp
push esi
lea ebx, [ebx]
mov eax, dword [esp + 0x1c]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [esp + 0x1c]
push ecx
mov ebx, eax
mov eax, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x20]
push edx
push eax
call sub.MPR.dll_WNetEnumResourceA
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
jne 0x401696
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x40169e
lea ebp, [ebx + 0x14]
mov dword [esp + 0x14], eax
lea ecx, [ecx]
mov ecx, dword [ebp]
test ecx, ecx
je 0x40168a
cmp byte [ecx], 0x5c
jne 0x40168a
cmp byte [ecx + 1], 0x5c
jne 0x40168a
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401657
sub eax, esi
mov esi, eax
cmp esi, 2
jle 0x40167c
lea edx, [esi - 2]
push edx
add ecx, 2
lea eax, [esp + edi + 0x2c]
push ecx
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
lea edi, [edi + esi - 2]
mov esi, dword [esp + 0x20]
mov byte [esp + edi + 0x28], 0xd
inc edi
add ebp, 0x20
sub dword [esp + 0x14], 1
jne 0x401640
jmp 0x40169e
cmp esi, 0x103
jne 0x4016fc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp esi, 0x103
jne 0x401600
mov ecx, dword [esp + 0x10]
push ecx
call sub.MPR.dll_WNetCloseEnum
mov esi, dword [esp + 0x24]
push 0x400
push 0
push esi
call sub.MSVCR90.dll_memset
push 0x400
lea edx, [esp + 0x38]
push edx
push esi
call sub.MSVCR90.dll_memcpy
add esp, 0x18
mov al, 1
mov ecx, dword [esp + 0x828]
pop esi
pop ebp
pop ebx
pop edi
xor ecx, esp
call fcn.0040375c
add esp, 0x81c
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x10]
push eax
call sub.MPR.dll_WNetCloseEnum
xor al, al
jmp 0x4016e1
Function at 0x401720
Capabilities:
Get hostname

Disassembly:
sub esp, 0x204
mov eax, dword [0x407018]
xor eax, esp
mov dword [esp + 0x200], eax
push esi
push 0x1ff
lea eax, [esp + 9]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x10], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x200
lea ecx, [esp + 8]
push ecx
call sub.WSOCK32.dll_gethostname
test eax, eax
je 0x40178b
call sub.WSOCK32.dll_WSAGetLastError
push eax
mov esi, 0x4074fc
call fcn.004011a0
xor al, al
pop esi
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.0040375c
add esp, 0x204
ret
push 0x200
push 0
push esi
call sub.MSVCR90.dll_memset
lea eax, [esp + 0x10]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4017a2
sub eax, edx
inc eax
cmp eax, 0x200
jle 0x4017b8
mov eax, 0x200
push eax
lea edx, [esp + 8]
push edx
push esi
call sub.MSVCR90.dll_memcpy
mov ecx, dword [esp + 0x210]
add esp, 0xc
pop esi
xor ecx, esp
mov al, 1
call fcn.0040375c
add esp, 0x204
ret