joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f904
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x48f91b
add esp, 0xfffffff0
call fcn.00403730
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004223dc
mov eax, dword [0x4b0678]
cmp word [eax + 2], 0
jne 0x48f943
mov eax, dword [0x4b0678]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00490fdc
mov eax, dword [0x4b0754]
cmp word [eax + 2], 0
jne 0x48f95d
mov eax, dword [0x4b0754]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004911d4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416ea4]
call fcn.0040339c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416ea4]
call fcn.0040339c
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x424a28]
call fcn.0042c4b8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x48fae4
mov eax, dword [0x4b0564]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042c888
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x491784
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4b0564]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d160
test eax, eax
je 0x48fa52
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004091bc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d188
test eax, eax
je 0x48fa66
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404450
mov eax, dword [0x4b0400]
cmp byte [eax], 0
jne 0x48fa9a
mov eax, ebx
call fcn.0048fc0c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00491960
mov eax, ebx
call fcn.00492324
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x48fada
call fcn.00403788
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48fe8c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4b1c18]
cmp dword [eax + 0x30], 0
je 0x48ff36
cmp dword [ebx + 0x94], 0
jne 0x48ff30
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x48fe1c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x48ff30
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x48fef6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x48ff30
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419784
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x48ff05
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x490a98
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x490acd
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004042d0
jmp 0x490ada
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404234
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x491b3c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x491b7d
mov eax, esi
call fcn.00477b88
test al, al
je 0x491b7d
mov eax, dword [ebx + 0x84]
call fcn.00477884
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x491b7d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00477884
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x49283c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x416424]
call fcn.00404b98
xor eax, eax
push ebp
push 0x492980
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4b030c], 0
jne 0x49288f
mov ecx, dword [0x4b0418]
mov dl, 1
mov eax, dword [0x407738]
call fcn.0040c354
call fcn.00403b98
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402d6c
mov eax, ebx
call fcn.00404a48
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x492990
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405c60
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404a58
test eax, eax
jle 0x492927
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x492920
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404468
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404450
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408590
test eax, eax
jne 0x492920
mov ebx, 0x15
jmp 0x49292c
mov ebx, 0x10
jmp 0x49292c
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4b030c]
call fcn.00492794
mov eax, dword [ebp - 8]
call fcn.00492794
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405c78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492987
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404204
lea eax, [ebp - 0x10]
mov edx, dword [0x416424]
call fcn.00404c68
ret
Function at 0x49ad28
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404690
xor eax, eax
push ebp
push 0x49ae57
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x20
call fcn.00402d6c
lea eax, [ebp - 4]
call fcn.004046f8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x3c], 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
push 2
push 1
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x49ae41
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0x2000
mov eax, dword [ebp - 0x18]
call fcn.00402754
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x10]
push ebx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x49ae28
test eax, eax
jne 0x49ae41
mov esi, ebx
mov edi, dword [ebp - 0x14]
dec edi
test edi, edi
jl 0x49ad9b
inc edi
mov edx, dword [0x49ab20]
mov eax, 0xc
call fcn.004050dc
mov ebx, eax
mov eax, ebx
mov edx, dword [esi + 0x14]
call fcn.004043d8
lea eax, [ebx + 4]
mov edx, dword [esi + 0x18]
call fcn.004043d8
lea eax, [ebx + 8]
mov edx, dword [esi + 0x1c]
call fcn.004043d8
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, ebx
call fcn.00419628
add esi, 0x20
dec edi
jne 0x49addf
jmp 0x49ad9b
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x49ae41
mov byte [ebp - 9], 1
mov eax, dword [ebp - 0x10]
call fcn.00402774
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ae5e
lea eax, [ebp - 4]
call fcn.004041e0
ret
Function at 0x49ae68
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x29c], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404690
xor eax, eax
push ebp
push 0x49afba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x198]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor ecx, ecx
push ebp
push 0x49af92
push dword fs:[ecx]
mov dword fs:[ecx], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x298]
mov edx, dword [ebp - 4]
call fcn.00409218
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x49af7b
mov edx, dword [eax + 0xc]
test edx, edx
je 0x49af75
mov ebx, dword [edx]
test ebx, ebx
je 0x49af6f
lea eax, [ebp - 0x29c]
push eax
xor eax, eax
mov al, byte [ebx]
mov dword [ebp - 0x2bc], eax
mov byte [ebp - 0x2b8], 0
xor eax, eax
mov al, byte [ebx + 1]
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 0x2b0], 0
xor eax, eax
mov al, byte [ebx + 2]
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 0x2a8], 0
xor eax, eax
mov al, byte [ebx + 3]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 0x2a0], 0
lea edx, [ebp - 0x2bc]
mov ecx, 3
mov eax, 0x49afd4
call fcn.0040985c
mov edx, dword [ebp - 0x29c]
mov eax, esi
call fcn.00404234
mov byte [ebp - 5], 1
jmp 0x49af7f
mov byte [ebp - 5], 0
jmp 0x49af7f
mov byte [ebp - 5], 0
jmp 0x49af7f
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49af99
call sub.wsock32.dll_WSACleanup
ret

Function at 0x49b2bc
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1d8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49b36e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0x1d4]
push eax
push 2
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x49b355
push 0x40
lea eax, [ebp - 0x44]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x44]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x49b31a
call sub.wsock32.dll_WSACleanup
jmp 0x49b355
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x49b344
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1d8]
call fcn.004043d8
mov edx, dword [ebp - 0x1d8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
je 0x49b350
cmp ebx, 0x14
jl 0x49b321
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b375
lea eax, [ebp - 0x1d8]
call fcn.004041e0
ret
Function at 0x49b37c
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
push ebx
add esp, 0xfffffe0c
mov ebx, eax
lea eax, [esp + 0x64]
push eax
push 2
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x49b3af
push 0x64
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostname
call sub.wsock32.dll_WSACleanup
mov edx, ebx
mov eax, esp
call fcn.0040936c
add esp, 0x1f4
pop ebx
ret

Function at 0x49b3b8
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe5c
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404690
xor eax, eax
push ebp
push 0x49b43b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1a4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp - 4]
call fcn.004046a0
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x10], eax
push 2
push 4
lea eax, [ebp - 0x10]
push eax
call sub.wsock32.dll_gethostbyaddr
mov ebx, eax
test ebx, ebx
je 0x49b41e
mov edx, esi
mov eax, dword [ebx]
call fcn.0040936c
jmp 0x49b425
mov eax, esi
call fcn.004041e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b442
lea eax, [ebp - 4]
call fcn.004041e0
ret

Function at 0x49b528
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe50
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404690
mov eax, dword [ebp - 8]
call fcn.00404690
xor eax, eax
push ebp
push 0x49b62d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov word [ebp - 0x1b0], 2
mov eax, dword [ebp - 8]
call fcn.004089a4
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x1ae], ax
mov eax, dword [ebp - 4]
call fcn.004046a0
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x1ac], eax
xor edx, edx
push ebp
push 0x49b60b
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x1a0]
push eax
xor edx, edx
mov al, 2
call fcn.004070e0
push eax
call sub.wsock32.dll_WSAStartup
test eax, eax
je 0x49b5ba
call fcn.00403c44
jmp 0x49b612
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x49b5d5
call fcn.00403c44
jmp 0x49b612
push 0x10
lea eax, [ebp - 0x1b0]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wsock32.dll_connect
test eax, eax
jne 0x49b5ef
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b612
mov eax, dword [ebp - 0x10]
push eax
call sub.wsock32.dll_closesocket
call sub.wsock32.dll_WSACleanup
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b634
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404204
ret
Function at 0x49b934
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffc0
mov edi, eax
push 0x14
lea eax, [edi + 0x4c]
mov ecx, 1
mov edx, dword [0x49b810]
call fcn.0040559c
add esp, 4
push 0x40
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostname
push esp
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x49b997
push 0
lea eax, [edi + 0x4c]
mov ecx, 1
mov edx, dword [0x49b810]
call fcn.0040559c
add esp, 4
cmp word [edi + 0x42], 0
je 0x49b9d7
mov edx, 0x49b9e8
mov eax, dword [edi + 0x44]
call dword [edi + 0x40]
jmp 0x49b9d7
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x49b9b4
push dword [ebp]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, dword [edi + 0x4c]
lea eax, [eax + ebx*4]
call fcn.004043d8
inc ebx
mov ebp, dword [esi + ebx*4]
test ebp, ebp
je 0x49b9c0
cmp ebx, 0x14
jl 0x49b99e
push ebx
lea eax, [edi + 0x4c]
mov ecx, 1
mov edx, dword [0x49b810]
call fcn.0040559c
add esp, 4
add esp, 0x40
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x49b9fc
Capabilities:
Create raw socket
Create tcp socket
Create udp socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov ebx, eax
lea ebp, [esp + 8]
mov eax, dword [ebx + 0x4c]
call fcn.004053e8
inc eax
je 0x49bb00
mov eax, dword [ebx + 0x4c]
call fcn.004053e8
inc eax
push eax
lea eax, [ebx + 0x48]
mov ecx, 1
mov edx, dword [0x49b7f0]
call fcn.0040559c
add esp, 4
mov eax, dword [ebx + 0x4c]
call fcn.004053e8
mov edi, eax
test edi, edi
jl 0x49bb00
inc edi
xor esi, esi
push 0
push 3
push 2
call sub.wsock32.dll_socket
mov edx, dword [ebx + 0x48]
mov dword [edx + esi*4], eax
mov word [ebp], 2
push esi
call sub.wsock32.dll_htons
mov word [ebp + 2], ax
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + esi*4]
call fcn.004046a0
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp + 4], eax
push 0x10
push ebp
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + esi*4]
push eax
call sub.wsock32.dll_bind
mov edx, eax
mov eax, ebx
call fcn.0049bff4
mov dword [esp], 1
xor eax, eax
mov dword [esp + 4], eax
push 0
push 0
lea eax, [esp + 0xc]
push eax
push 0x2c
lea eax, [esp + 0x28]
push eax
push 4
lea eax, [esp + 0x18]
push eax
push 0x98000001
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + esi*4]
push eax
call dword [ebx + 0x6c]
mov edx, eax
mov eax, ebx
call fcn.0049bff4
push 0x21
lea eax, [esi + 0x4c8]
push eax
mov eax, dword [ebx + 0x34]
push eax
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + esi*4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
mov edx, eax
mov eax, ebx
call fcn.0049bff4
inc esi
dec edi
jne 0x49ba4d
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x49fd24
Capabilities:
Enumerate network shares

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffc0
mov ebp, edx
mov byte [esp], 0
mov eax, dword [ebp]
mov edx, dword [eax]
call dword [edx + 8]
mov dl, 1
mov eax, dword [0x416ea4]
call fcn.0040339c
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
push 0
push 2
push 1
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x49fee5
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0xc], 0x2000
mov eax, dword [esp + 0xc]
call fcn.00402754
mov dword [esp + 4], eax
lea eax, [esp + 0xc]
push eax
mov ebx, dword [esp + 8]
push ebx
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x20]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x49fee5
test eax, eax
jne 0x49fee5
mov edi, ebx
mov eax, dword [esp + 8]
dec eax
test eax, eax
jl 0x49fdd0
inc eax
mov dword [esp + 0x1c], eax
mov edx, edi
mov eax, dword [esp + 0x18]
call fcn.00419628
add edi, 0x20
dec dword [esp + 0x1c]
jne 0x49fdbc
mov eax, dword [esp + 0x14]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x49fee5
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x49fecd
inc eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
call fcn.00419784
mov esi, eax
lea edi, [esp + 0x20]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
push 2
push 1
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x49fee5
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0xc], 0x2000
mov eax, dword [esp + 0xc]
call fcn.00402754
mov dword [esp + 4], eax
lea eax, [esp + 0xc]
push eax
mov ebx, dword [esp + 8]
push ebx
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x20]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x49feb1
test eax, eax
jne 0x49fee5
mov edi, ebx
mov esi, dword [esp + 8]
dec esi
test esi, esi
jl 0x49fe36
inc esi
mov edx, dword [0x49ab20]
mov eax, 0xc
call fcn.004050dc
mov ebx, eax
mov eax, ebx
mov edx, dword [edi + 0x14]
call fcn.004043d8
mov eax, dword [ebp]
mov edx, ebx
call fcn.00419628
add edi, 0x20
dec esi
jne 0x49fe83
jmp 0x49fe36
mov eax, dword [esp + 0x14]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x49fee5
inc dword [esp + 0x10]
dec dword [esp + 0x1c]
jne 0x49fdff
mov byte [esp], 1
mov eax, dword [esp + 4]
call fcn.00402774
mov dl, 1
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
call dword [ecx - 4]
mov al, byte [esp]
add esp, 0x40
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a026c
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404690
xor eax, eax
push ebp
push 0x4a03a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x20
call fcn.00402d6c
lea eax, [ebp - 4]
call fcn.004046f8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
push 1
push 0
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x4a0383
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0x2000
mov eax, dword [ebp - 0x18]
call fcn.00402754
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x10]
push ebx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x4a036a
test eax, eax
jne 0x4a0383
mov esi, ebx
mov edi, dword [ebp - 0x14]
dec edi
test edi, edi
jl 0x4a02d2
inc edi
mov edx, dword [0x49f5f4]
mov eax, 8
call fcn.004050dc
mov ebx, eax
lea edx, [ebp - 0x40]
mov eax, dword [esi + 0x14]
call fcn.0040936c
mov edx, dword [ebp - 0x40]
mov eax, ebx
call fcn.00404234
lea edx, [ebp - 0x44]
mov eax, dword [esi + 0x18]
call fcn.0040936c
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 4]
call fcn.00404234
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, ebx
call fcn.00419628
add esi, 0x20
dec edi
jne 0x4a0316
jmp 0x4a02d2
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x4a0383
mov byte [ebp - 9], 1
mov eax, dword [ebp - 0x10]
call fcn.00402774
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a03ad
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404204
lea eax, [ebp - 4]
call fcn.004041e0
ret
Function at 0x4a05b8
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00404690
xor eax, eax
push ebp
push 0x4a0795
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0x64
mov eax, dword [ebp - 4]
call fcn.004046a0
mov esi, eax
push esi
call sub.wsock32.dll_inet_addr
inc eax
je 0x4a061a
mov edx, 0x4a07b0
mov eax, dword [ebp - 4]
call fcn.0049b528
test al, al
je 0x4a0774
push 0
push 0
push 0
push 0
push 0x4a07b4
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4a0774
push 0
push 0
push 1
push 0x4a07b8
push 0x4a07b8
push 0
push esi
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebx], eax
cmp dword [ebx], 0
jne 0x4a06b7
mov eax, dword [ebp - 8]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x4a06b7
inc edi
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.00419784
mov esi, eax
push 0
push 0x8000000
push 1
mov eax, dword [esi + 4]
call fcn.004046a0
push eax
mov eax, dword [esi]
call fcn.004046a0
push eax
push 0x15
mov eax, dword [ebp - 4]
call fcn.004046a0
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebx], eax
cmp dword [ebx], 0
jne 0x4a06b7
inc dword [ebp - 0x18]
dec edi
jne 0x4a066f
cmp dword [ebx], 0
jne 0x4a06e6
call sub.kernel32.dll_GetLastError
cmp eax, 0x2eee
je 0x4a06da
cmp eax, 0x2eed
je 0x4a06da
cmp eax, 0x2eef
jne 0x4a0774
mov dword [ebp - 0xc], 1
jmp 0x4a0774
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.004046a0
push eax
mov eax, dword [ebx]
push eax
call sub.wininet.dll_FtpGetCurrentDirectoryA
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
call fcn.0040482c
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.004046a0
push eax
mov eax, dword [ebx]
push eax
call sub.wininet.dll_FtpGetCurrentDirectoryA
lea edx, [ebp - 0x15c]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00408600
mov edx, dword [ebp - 0x15c]
mov eax, dword [ebp + 8]
call fcn.00404234
push 0
push 0
lea eax, [ebp - 0x158]
push eax
push 0x4a07bc
mov eax, dword [ebx]
push eax
call sub.wininet.dll_FtpFindFirstFileA
mov ebx, eax
push ebx
call sub.wininet.dll_InternetCloseHandle
test ebx, ebx
jne 0x4a076f
mov dword [ebp - 0xc], 2
jmp 0x4a0774
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a079c
lea eax, [ebp - 0x15c]
call fcn.004041e0
lea eax, [ebp - 4]
call fcn.004041e0
ret