joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001d57b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1003e830]
jne 0x1001d585
repz ret
jmp fcn.10021c6d

Function at 0x1002119f
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 0x100211d0
call fcn.100235f9
mov dword [eax], esi
call fcn.100235e6
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.1002357e
add esp, 0x14
push 0x16
pop eax
jmp 0x10021225
test dword [ebp + 0xc], 0xfffffff9
jne 0x100211ac
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100211fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1002360c
pop ecx
call fcn.100235e6
mov eax, dword [eax]
jmp 0x10021225
test al, 0x10
jne 0x10021223
test al, 1
je 0x10021223
test byte [ebp + 0xc], 2
je 0x10021223
call fcn.100235f9
mov dword [eax], 5
call fcn.100235e6
mov dword [eax], 0xd
jmp 0x100211f4
xor eax, eax
pop esi
pop ebp
ret

Function at 0x1002c058
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.10022a02
and dword [ebp - 4], 0
cmp dword [0x101ea3f8], 0
mov ebx, eax
jne 0x1002c109
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1002c1ba
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1003b25c
push edi
call esi
test eax, eax
je 0x1002c1ba
push eax
call fcn.10022990
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101ea3f8], eax
call esi
push eax
call fcn.10022990
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101ea3fc], eax
call esi
push eax
call fcn.10022990
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x101ea400], eax
call esi
push eax
call fcn.10022990
pop ecx
mov dword [0x101ea408], eax
test eax, eax
je 0x1002c109
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10022990
pop ecx
mov dword [0x101ea404], eax
mov eax, dword [0x101ea404]
cmp eax, ebx
je 0x1002c161
cmp dword [0x101ea408], ebx
je 0x1002c161
push eax
call fcn.10022a0b
push dword [0x101ea408]
mov esi, eax
call fcn.10022a0b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1002c161
test edi, edi
je 0x1002c161
call esi
test eax, eax
je 0x1002c158
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1002c158
test byte [ebp - 0xc], 1
jne 0x1002c161
or dword [ebp + 0x10], 0x200000
jmp 0x1002c19a
mov eax, dword [0x101ea3fc]
cmp eax, ebx
je 0x1002c19a
push eax
call fcn.10022a0b
pop ecx
test eax, eax
je 0x1002c19a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1002c19a
mov eax, dword [0x101ea400]
cmp eax, ebx
je 0x1002c19a
push eax
call fcn.10022a0b
pop ecx
test eax, eax
je 0x1002c19a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101ea3f8]
call fcn.10022a0b
pop ecx
test eax, eax
je 0x1002c1ba
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1002c1bc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407c70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x407c94
xor eax, eax
jmp 0x407d14
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x407cab
xor eax, eax
jmp 0x407d14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x407cf7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x407cf7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x407cce
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x407d03
xor eax, eax
jmp 0x407d14
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x407d11
xor eax, eax
jmp 0x407d14
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40d2a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 4]
call fcn.0040e840
test eax, eax
jne 0x40d2d6
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
call eax
xor eax, eax
jmp 0x40d366
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x1ac], 0
je 0x40d2ea
mov ecx, dword [ebp - 4]
call fcn.0040d370
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 4]
mov dword [edx + 0x198], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 0
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
push 0x40d940
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1ac], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x1ac], 0
jne 0x40d342
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
call eax
xor eax, eax
jmp 0x40d366
push 2
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1ac]
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
call eax
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40d370
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x1ac], 0
jne 0x40d3a7
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0x10]
call edx
mov eax, 1
jmp 0x40d48d
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1a8], 0
jne 0x40d3c7
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
call eax
xor eax, eax
jmp 0x40d48d
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2c], 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1a8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x40d3f9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
call eax
xor eax, eax
jmp 0x40d48d
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x1ac], 0
je 0x40d47b
push 0x1388
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1ac]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40d45e
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1ac]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1ac]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1ac], 0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
call eax
xor eax, eax
jmp 0x40d48d
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1ac]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax + 0x1ac], 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
call eax
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40dd50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x2c], 0
je 0x40dd77
mov ecx, dword [ebp - 4]
call fcn.0040de10
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x40dda5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
call eax
xor eax, eax
jmp 0x40de09
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24], 0
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 0x40e130
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2c], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x2c], 0
jne 0x40dde8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
call eax
xor eax, eax
jmp 0x40de09
push 2
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
call eax
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x411c0a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00416031
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x411c41
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00411c62
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41947c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x4194c1
call fcn.00416031
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4194c1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4194dd
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041f667
mov ebx, eax
test edi, edi
je 0x4194db
test esi, esi
je 0x4194db
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x427692
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0041db94
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4276ce
call fcn.004278b1
mov dword [esi + 0xc], 1
jmp 0x4276d3
call fcn.004278b1
cmp dword [esi], 0
je 0x42771c
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4276f6
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00410278
jmp 0x427707
push 0xff
mov ecx, esi
call fcn.004077c0
push pe_nt_image_headers32
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004104a9
jmp 0x427740
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x427740
push dword [esi]
push dword [ebp - 4]
call fcn.0041edbd
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x427806
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004278b1
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x42784e
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00410278
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004104a9
jmp 0x427859
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041edbd
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4cbef5
Capabilities:
Get file system object information

Disassembly:
push 0x4c8
mov eax, 0x54e597
call fcn.0052eff4
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.0040ffe8
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x5558b0
call fcn.00413772
cmp eax, 0xffffffff
jne 0x4cbfa9
push 0
push 0x555bfc
lea ecx, [ebp - 0x4d0]
call fcn.00413772
cmp eax, 0xffffffff
jne 0x4cbfa9
push 0
push 0x556b2c
lea ecx, [ebp - 0x4d0]
call fcn.00413772
cmp eax, 0xffffffff
jne 0x4cbfa9
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.0040ffe8
pop ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0x4d4], edi
xor ecx, ecx
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x218]
push eax
push 0x104
push ecx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4cbf85
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [edi - 0x10]
mov ebx, eax
call fcn.00407930
jmp 0x4cbfd8
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.004104d5
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.00407930
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4cbfcf
mov ebx, dword [ebp - 0x4cc]
jmp 0x4cbfd8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.00407930
mov eax, ebx
call fcn.0052efa3
ret
Function at 0x53e26d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5a62c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00532ec0
mov dword [ebp - 0x14], eax
cmp dword [0x5c524c], esi
jne 0x53e360
push 0x800
push esi
push 0x585f40
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x53e2ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x53e440
push esi
push esi
push 0x585f40
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x53e440
push 0x585f58
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x53e440
push eax
call ebx
push 0x585f64
push edi
mov dword [0x5c524c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x585f74
push edi
mov dword [0x5c5250], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5c5254], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5c525c], eax
test eax, eax
je 0x53e35d
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5c5258], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x53e385
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x53e378
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x53e39a
push 4
pop eax
jmp 0x53e442
cmp dword [ebp - 0x14], esi
je 0x53e39a
push dword [0x5c524c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x53e37f
mov eax, dword [0x5c5258]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x53e3f8
cmp dword [0x5c525c], edi
je 0x53e3f8
push eax
call ebx
push dword [0x5c525c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x53e3f8
test eax, eax
je 0x53e3f8
call ecx
test eax, eax
je 0x53e3ed
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x53e3ed
test byte [ebp - 8], 1
jne 0x53e3f8
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x53e428
mov eax, dword [0x5c5250]
cmp eax, edi
je 0x53e425
push eax
call ebx
test eax, eax
je 0x53e425
call eax
mov esi, eax
test esi, esi
je 0x53e425
mov eax, dword [0x5c5254]
cmp eax, edi
je 0x53e425
push eax
call ebx
test eax, eax
je 0x53e425
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5c524c]
call ebx
test eax, eax
je 0x53e440
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x53e442
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052bc7c
mov esp, ebp
pop ebp
ret
Function at 0x4017e0
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x45bd40
push 0x439ec0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x153c
call fcn.00439e90
mov eax, dword [0x45f478]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1530], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1528], eax
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x1534], esi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1520]
push eax
call fcn.0040d3c0
push ebx
call fcn.004064e0
add esp, 8
test al, al
jne 0x40188f
push 0xe0000003
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Format_of_remote_connections_address_is_non_UNC.
lea eax, [ebp - 0x1420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push 0
push 0
push 0x60000001
call dword [sym.imp.KERNEL32.dll_RaiseException]
test edi, edi
jne 0x4018be
push 0xe0000003
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Address_of_resulted_info_buffer_is_NULL.
lea eax, [ebp - 0x1420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push edi
push edi
push 0x60000001
call dword [sym.imp.KERNEL32.dll_RaiseException]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + ebx - 1], 0x5c
jne 0x4018d8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [eax + ebx - 1], 0
xorps xmm0, xmm0
movq qword [ebp - 0x1554], xmm0
movq qword [ebp - 0x154c], xmm0
movq qword [ebp - 0x1544], xmm0
movq qword [ebp - 0x153c], xmm0
mov dword [ebp - 0x1550], 0
mov dword [ebp - 0x1544], 0
mov dword [ebp - 0x1540], ebx
mov dword [ebp - 0x1538], 0
push 0
push dword [ebp - 0x1530]
push dword [ebp - 0x1528]
lea eax, [ebp - 0x1554]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov dword [ebp - 0x1528], eax
test eax, eax
je 0x4019a0
mov byte [esi], 0
mov byte [ebp - 0x101c], 0
push 0xfff
push 0
lea eax, [ebp - 0x101b]
push eax
call fcn.0043a6b0
lea eax, [ebp - 0x101c]
push eax
push dword [ebp - 0x1528]
call fcn.0040c5d0
add esp, 0x14
push str.NO_SESSION_4_Network_UNC_Location_
push edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call esi
push ebx
push edi
call esi
push 0x44ac70
push edi
call esi
lea eax, [ebp - 0x101c]
push eax
push edi
call esi
mov al, 1
jmp 0x401a51
mov byte [esi], 1
push str.Connected_to_Network_UNC_Location_
push edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call esi
push ebx
push edi
call esi
push 0x44ac9c
push edi
call esi
mov al, 1
jmp 0x401a51
mov byte [ebp - 0x1521], al
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00439a01
mov esp, ebp
pop ebp
ret
Function at 0x401da0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x45bca0
push 0x439ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x51c
mov eax, dword [0x45f478]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x528], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x520]
push eax
call fcn.0040d3c0
add esp, 4
mov eax, dword [ebp - 0x528]
mov byte [eax], 0
mov eax, dword [ebp + 0x10]
imul eax, eax, 0x3e8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x401e49
push 0xe000000d
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.WaitForSingleObject__
lea eax, [ebp - 0x520]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call esi
push str.Failure_of_initialise_waiting_responces_from_thread
jmp 0x401f31
cmp eax, 0x102
jne 0x401eed
mov eax, dword [ebp - 0x528]
mov byte [eax], 1
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x401e93
push 0xe000000d
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.TerminateThread__
lea eax, [ebp - 0x520]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call esi
push str.Failure_on_thread_termination_after_expiration_timeout_on_waiting_responces_from_thread
jmp 0x401f31
cmp byte [ebp + 0x14], 0
je 0x401ea0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xe000000f
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.WaitForSingleObject__
lea eax, [ebp - 0x520]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call esi
push str.Timeout_expired:_waiting_responces_from_thread
lea eax, [ebp - 0x420]
push eax
call esi
push edi
lea eax, [ebp - 0x420]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call esi
push str.___no_data_returns_and_thread_successfully_goes_to_termination.
lea eax, [ebp - 0x420]
push eax
call esi
jmp 0x401f48
test eax, eax
jne 0x401f75
mov dword [ebp - 0x528], eax
lea eax, [ebp - 0x528]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x401f60
push 0xe000000d
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.GetExitCodeThread__
lea eax, [ebp - 0x520]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call esi
push str.Failure_of_retrieving_thread_completion_result
lea eax, [ebp - 0x420]
push eax
call esi
push edi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0
push 0
push 0x60000001
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [ebp - 0x528]
mov dword [ebx], eax
cmp byte [ebp + 0x14], 0
je 0x401f75
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x402000
mov byte [ebp - 0x521], al
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00439a01
mov esp, ebp
pop ebp
ret
Function at 0x402670
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x45f478]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0
lea eax, [ebp - 0x108]
push eax
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x114], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x4026db
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439a01
mov esp, ebp
pop ebp
ret
jne 0x4026f1
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439a01
mov esp, ebp
pop ebp
ret
push 2
push 1
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [ebp - 4]
dec eax
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.00439a01
mov esp, ebp
pop ebp
ret