joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4689d0
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 [0x4138b8]
call fcn.00404f4c
xor eax, eax
push ebp
push 0x468b14
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x49ff40], 0
jne 0x468a23
mov ecx, dword [0x4a0260]
mov dl, 1
mov eax, dword [0x407bd4]
call fcn.0040c45c
call fcn.00403f00
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402ff0
mov eax, ebx
call fcn.00404d9c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x468b24
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.004063e8
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404dac
test eax, eax
jle 0x468abb
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 0x468ab4
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004047a4
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.0040478c
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408a68
test eax, eax
jne 0x468ab4
mov ebx, 0x15
jmp 0x468ac0
mov ebx, 0x10
jmp 0x468ac0
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 [0x49ff40]
call fcn.00468928
mov eax, dword [ebp - 8]
call fcn.00468928
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406400
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468b1b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404548
lea eax, [ebp - 0x10]
mov edx, dword [0x4138b8]
call fcn.0040501c
ret

Function at 0x470d10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00470974
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004049d4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x470d6e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a04a8]
mov dl, 1
mov eax, dword [0x47086c]
call fcn.0040c498
call fcn.00403f00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x470d78
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004049d4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x470dd0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a06e4]
mov dl, 1
mov eax, dword [0x47086c]
call fcn.0040c498
call fcn.00403f00
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004709a4
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x479b3c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x479c14
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a1d10], 0
jne 0x479bf8
lea eax, [ebp - 4]
mov edx, 0x479c2c
call fcn.004045bc
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004049d4
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x479bf8
mov eax, ebx
call fcn.00402794
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x479bf1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x479bdb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x479c3c
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x479bdb
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4a1d10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479bf8
mov eax, dword [ebp - 0xc]
call fcn.004027b4
ret
mov ebx, dword [0x4a1d10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479c1b
lea eax, [ebp - 4]
call fcn.00404524
ret

Function at 0x487a20
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4a1d34], 0
jne 0x487a43
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x487994
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4a1d34], eax
ret
Function at 0x4919a0
Capabilities:
Create udp socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
push ebx
push esi
add esp, 0xfffffe3c
mov esi, eax
mov ecx, 0x32
mov eax, 0x4a01a0
lea edx, [esp + 0x190]
mov bl, byte [eax]
mov byte [edx], bl
inc edx
inc eax
dec ecx
jne 0x4919bb
cmp byte [esi + 0x48], 0
jne 0x491a78
push esp
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x491ad7
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov dword [0x4a1da0], eax
cmp dword [0x4a1da0], 0xffffffff
jne 0x491a0a
mov eax, dword [0x4a1da0]
push eax
call sub.wsock32.dll_closesocket
jmp 0x491ad7
mov word [0x4a1da4], 2
xor eax, eax
mov dword [0x4a1da8], eax
push 0x1a6f
call sub.wsock32.dll_htons
mov word [0x4a1da6], ax
push 0x10
push 0x4a1da4
mov eax, dword [0x4a1da0]
push eax
call sub.wsock32.dll_bind
test eax, eax
je 0x491a49
mov byte [esi + 0x48], 0
jmp 0x491ad7
mov byte [esi + 0x48], 1
push 1
push 0x401
mov eax, dword [esi + 0x44]
push eax
mov eax, dword [0x4a1da0]
push eax
call sub.wsock32.dll_WSAAsyncSelect
push 0x491ae0
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4a1d9c], eax
mov eax, dword [esi + 0x30]
call fcn.004049d4
push eax
call sub.wsock32.dll_inet_addr
mov dword [0x4a1db8], eax
mov word [0x4a1db4], 2
push 0x89
call sub.wsock32.dll_htons
mov word [0x4a1db6], ax
push 0x10
push 0x4a1db4
push 0
push 0x32
lea eax, [esp + 0x1a0]
push eax
mov eax, dword [0x4a1da0]
push eax
call sub.wsock32.dll_sendto
cmp eax, 0xffffffff
je 0x491ad7
cmp eax, 0x32
jne 0x491ad7
mov eax, dword [0x4a1d9c]
push eax
call sub.kernel32.dll_ResetEvent
add esp, 0x1c4
pop esi
pop ebx
ret

Function at 0x49643c
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 [0x496234]
call fcn.00405c10
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 0x49649f
push 0
lea eax, [edi + 0x4c]
mov ecx, 1
mov edx, dword [0x496234]
call fcn.00405c10
add esp, 4
cmp word [edi + 0x42], 0
je 0x4964df
mov edx, 0x4964f0
mov eax, dword [edi + 0x44]
call dword [edi + 0x40]
jmp 0x4964df
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x4964bc
push dword [ebp]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, dword [edi + 0x4c]
lea eax, [eax + ebx*4]
call fcn.00404714
inc ebx
mov ebp, dword [esi + ebx*4]
test ebp, ebp
je 0x4964c8
cmp ebx, 0x14
jl 0x4964a6
push ebx
lea eax, [edi + 0x4c]
mov ecx, 1
mov edx, dword [0x496234]
call fcn.00405c10
add esp, 4
add esp, 0x40
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x496504
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.00405a5c
inc eax
je 0x496608
mov eax, dword [ebx + 0x4c]
call fcn.00405a5c
inc eax
push eax
lea eax, [ebx + 0x48]
mov ecx, 1
mov edx, dword [0x496214]
call fcn.00405c10
add esp, 4
mov eax, dword [ebx + 0x4c]
call fcn.00405a5c
mov edi, eax
test edi, edi
jl 0x496608
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.004049d4
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.00496b04
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.00496b04
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.00496b04
inc esi
dec edi
jne 0x496555
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x498c64
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 0x498d0b
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
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
je 0x498cf2
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x498ce1
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1d8]
call fcn.00404714
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 0x498ced
cmp ebx, 0x14
jl 0x498cbe
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498d12
lea eax, [ebp - 0x1d8]
call fcn.00404524
ret

Function at 0x498d1c
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
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.00409558
add esp, 0x1f4
pop ebx
ret
Function at 0x499194
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.004049c4
xor eax, eax
push ebp
push 0x499217
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.004049d4
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 0x4991fa
mov edx, esi
mov eax, dword [ebx]
call fcn.00409558
jmp 0x499201
mov eax, esi
call fcn.00404524
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49921e
lea eax, [ebp - 4]
call fcn.00404524
ret

Function at 0x499224
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.004049c4
xor eax, eax
push ebp
push 0x499376
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 0x49934e
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.004093f8
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x499337
mov edx, dword [eax + 0xc]
test edx, edx
je 0x499331
mov ebx, dword [edx]
test ebx, ebx
je 0x49932b
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, 0x499390
call fcn.00409ad4
mov edx, dword [ebp - 0x29c]
mov eax, esi
call fcn.00404578
mov byte [ebp - 5], 1
jmp 0x49933b
mov byte [ebp - 5], 0
jmp 0x49933b
mov byte [ebp - 5], 0
jmp 0x49933b
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499355
call sub.wsock32.dll_WSACleanup
ret
Function at 0x49939c
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049c4
xor eax, eax
push ebp
push 0x4994c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x20
call fcn.00402ff0
lea eax, [ebp - 4]
call fcn.00404a2c
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push eax
push 1
push 0
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x4994a2
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x2000
mov eax, dword [ebp - 0x14]
call fcn.00402794
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0xc]
push ebx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x499489
test eax, eax
jne 0x4994a2
mov esi, dword [ebp - 0x10]
dec esi
test esi, esi
jl 0x499404
inc esi
lea edx, [ebp - 0x40]
mov eax, dword [ebx + 0x14]
call fcn.00409558
push dword [ebp - 0x40]
push 0x4994e0
lea edx, [ebp - 0x44]
mov eax, dword [ebx + 0x18]
call fcn.00409558
push dword [ebp - 0x44]
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.0040489c
mov edx, dword [ebp - 0x3c]
mov eax, dword [edi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
add ebx, 0x20
dec esi
jne 0x499446
jmp 0x499404
mov eax, dword [ebp - 0x18]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x4994a2
mov byte [ebp - 5], 1
mov eax, dword [ebp - 0xc]
call fcn.004027b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4994cc
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00404548
lea eax, [ebp - 4]
call fcn.00404524
ret
Function at 0x4994e4
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049c4
xor eax, eax
push ebp
push 0x4995ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x20
call fcn.00402ff0
lea eax, [ebp - 4]
call fcn.00404a2c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x38], 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push eax
push 2
push 1
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x4995d1
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x2000
mov eax, dword [ebp - 0x14]
call fcn.00402794
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0xc]
push ebx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x4995b8
test eax, eax
jne 0x4995d1
mov esi, ebx
mov ebx, dword [ebp - 0x10]
dec ebx
test ebx, ebx
jl 0x499557
inc ebx
lea eax, [ebp - 0x3c]
mov edx, dword [esi + 0x14]
call fcn.00404714
mov edx, dword [ebp - 0x3c]
mov eax, dword [edi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
add esi, 0x20
dec ebx
jne 0x49959b
jmp 0x499557
mov eax, dword [ebp - 0x18]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x4995d1
mov byte [ebp - 5], 1
mov eax, dword [ebp - 0xc]
call fcn.004027b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4995f6
lea eax, [ebp - 0x3c]
call fcn.00404524
lea eax, [ebp - 4]
call fcn.00404524
ret
Function at 0x499600
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4997b4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x44]
mov dl, 1
mov eax, dword [0x41425c]
call fcn.00403704
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 2
push 1
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x49979e
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x10], 0x2000
mov eax, dword [ebp - 0x10]
call fcn.00402794
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov esi, dword [ebp - 8]
push esi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x49979e
test eax, eax
jne 0x49979e
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x4996b2
inc eax
mov dword [ebp - 0x20], eax
mov edx, esi
mov eax, dword [ebp - 0x1c]
call fcn.0041698c
add esi, 0x20
dec dword [ebp - 0x20]
jne 0x4996a0
mov eax, dword [ebp - 0x18]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x49979e
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x49978a
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
call fcn.00416ae8
mov esi, eax
lea edi, [ebp - 0x40]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
push eax
push 2
push 1
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x49979e
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x10], 0x2000
mov eax, dword [ebp - 0x10]
call fcn.00402794
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov esi, dword [ebp - 8]
push esi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0x103
je 0x499771
test eax, eax
jne 0x49979e
mov edi, dword [ebp - 0xc]
dec edi
test edi, edi
jl 0x49970f
inc edi
lea eax, [ebp - 0x44]
mov edx, dword [esi + 0x14]
call fcn.00404714
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
add esi, 0x20
dec edi
jne 0x499751
jmp 0x49970f
mov eax, dword [ebp - 0x18]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x49979e
inc dword [ebp - 0x14]
dec dword [ebp - 0x20]
jne 0x4996dd
mov bl, 1
mov eax, dword [ebp - 8]
call fcn.004027b4
mov dl, 1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx - 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4997bb
lea eax, [ebp - 0x44]
call fcn.00404524
ret
Function at 0x410000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x440059]
shl eax, 2
mov dword [0x44005d], eax
push edi
push ecx
xor eax, eax
mov edi, 0x44843c
mov ecx, 0x448bf0
cmp ecx, edi
jbe 0x410024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
mov edx, dword fs:[4]
mov eax, dword [edx - 8]
mov dword [0x440061], eax
mov eax, dword [edx - 4]
mov dword [0x440065], eax
sub edx, 4
mov dword [0x4487a8], edx
sub edx, 4
cmp edx, esp
jae 0x41004e
mov esp, edx
push 0
call fcn.0042c13f
pop ecx
push 0x44002c
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x44006a], eax
push 0
jmp fcn.0042fbe4
Function at 0x414757
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff70
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [0x44843c]
mov eax, dword [eax + 0x20]
push eax
mov eax, dword [ebx + 0x2c]
push dword [eax + 0x10]
call sub.USER32.dll_SetWindowTextA
mov dword [ebp - 0xc], 0x5fb
push 0xa
push dword [ebp - 0xc]
mov eax, dword [ebx]
mov eax, dword [eax + 0x68]
push dword [eax + 0xc]
call sub.KERNEL32.dll_FindResourceA
mov edi, eax
test edi, edi
jne 0x4147a3
mov esi, 3
jmp 0x4148cd
mov esi, edi
push esi
mov eax, dword [ebx]
mov eax, dword [eax + 0x68]
push dword [eax + 0xc]
call sub.KERNEL32.dll_LoadResource
mov dword [ebp - 4], eax
push dword [ebp - 4]
call sub.KERNEL32.dll_LockResource
mov dword [ebp - 8], eax
push dword [0x4420d8]
mov eax, dword [0x44843c]
push dword [eax + 0x24]
lea eax, [ebp - 0x90]
push eax
call fcn.0042d37c
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebx + 0x2c]
push dword [eax + 0x10]
call sub.USER32.dll_SetWindowTextA
mov ax, word [ebp + 0xc]
push eax
mov esi, edi
push esi
mov eax, dword [ebx]
mov eax, dword [eax + 0x68]
push dword [eax + 0xc]
call sub.KERNEL32.dll_SizeofResource
push eax
push dword [ebp - 8]
push ebx
call fcn.004152f8
add esp, 0x10
mov esi, eax
test esi, esi
jne 0x414877
cmp dword [0x440310], 0
je 0x414877
push dword [0x4420d8]
mov eax, dword [0x44843c]
push dword [eax + 0x1b0]
lea eax, [ebp - 0x90]
push eax
call fcn.0042d37c
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebx + 0x2c]
push dword [eax + 0x10]
call sub.USER32.dll_SetWindowTextA
mov ax, word [ebp + 0xc]
push eax
mov esi, edi
push esi
mov eax, dword [ebx]
mov eax, dword [eax + 0x68]
push dword [eax + 0xc]
call sub.KERNEL32.dll_SizeofResource
push eax
push dword [ebp - 8]
push ebx
call fcn.004153e9
add esp, 0x10
mov esi, eax
cmp dword [0x448462], 2
jne 0x4148c5
cmp dword [0x448462], 2
jne 0x4148c5
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0x90020
push dword [0x441fd0]
call sub.KERNEL32.dll_DeviceIoControl
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0x9001c
push dword [0x441fd0]
call sub.KERNEL32.dll_DeviceIoControl
push dword [ebp - 4]
call sub.KERNEL32.dll_FreeResource
cmp dword [0x441fd0], 0
je 0x414904
cmp dword [0x441fd0], 0xffffffff
je 0x414904
push dword [0x441fd0]
call sub.KERNEL32.dll_CloseHandle
push 0x9001c
push dword [0x441fd0]
call fcn.00417b2c
add esp, 8
xor eax, eax
mov dword [0x441fd0], eax
push esi
push ebx
call fcn.00414917
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret