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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x463837
add esp, 0xfffffff0
call fcn.00403af8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f1e4
mov eax, dword [0x4a7488]
cmp word [eax + 2], 0
jne 0x46385f
mov eax, dword [0x4a7488]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00464e54
mov eax, dword [0x4a753c]
cmp word [eax + 2], 0
jne 0x463879
mov eax, dword [0x4a753c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046504c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x414388]
call fcn.00403764
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x414388]
call fcn.00403764
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], 0x80000018
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 [0x421784]
call fcn.004291a4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x463a00
mov eax, dword [0x4a7394]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00429574
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4655cc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4a7394]
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.0040d25c
test eax, eax
je 0x46396e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409454
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d284
test eax, eax
je 0x463982
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.004047ec
mov eax, dword [0x4a7248]
cmp byte [eax], 0
jne 0x4639b6
mov eax, ebx
call fcn.00463b28
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.004657a8
mov eax, ebx
call fcn.004660e8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4639f6
call fcn.00403b50
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470e48
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.00404a34
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x470ea0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a76dc]
mov dl, 1
mov eax, dword [0x47093c]
call fcn.0040c5c4
call fcn.00403f60
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00470a74
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 0x47b200
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 0x47b2d8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a8d10], 0
jne 0x47b2bc
lea eax, [ebp - 4]
mov edx, 0x47b2f0
call fcn.0040461c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404a34
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x47b2bc
mov eax, ebx
call fcn.0040279c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47b2b5
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 0x47b29f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x47b300
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47b29f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4a8d10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b2bc
mov eax, dword [ebp - 0xc]
call fcn.004027bc
ret
mov ebx, dword [0x4a8d10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b2df
lea eax, [ebp - 4]
call fcn.00404584
ret

Function at 0x48dce0
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4a8d34], 0
jne 0x48dd03
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x48dc54
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4a8d34], eax
ret
Function at 0x495950
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, 0x4a71b8
lea edx, [esp + 0x190]
mov bl, byte [eax]
mov byte [edx], bl
inc edx
inc eax
dec ecx
jne 0x49596b
cmp byte [esi + 0x48], 0
jne 0x495a28
push esp
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x495a87
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov dword [0x4a8d64], eax
cmp dword [0x4a8d64], 0xffffffff
jne 0x4959ba
mov eax, dword [0x4a8d64]
push eax
call sub.wsock32.dll_closesocket
jmp 0x495a87
mov word [0x4a8d68], 2
xor eax, eax
mov dword [0x4a8d6c], eax
push 0x1a6f
call sub.wsock32.dll_htons
mov word [0x4a8d6a], ax
push 0x10
push 0x4a8d68
mov eax, dword [0x4a8d64]
push eax
call sub.wsock32.dll_bind
test eax, eax
je 0x4959f9
mov byte [esi + 0x48], 0
jmp 0x495a87
mov byte [esi + 0x48], 1
push 1
push 0x401
mov eax, dword [esi + 0x44]
push eax
mov eax, dword [0x4a8d64]
push eax
call sub.wsock32.dll_WSAAsyncSelect
push 0x495a90
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4a8d60], eax
mov eax, dword [esi + 0x30]
call fcn.00404a34
push eax
call sub.wsock32.dll_inet_addr
mov dword [0x4a8d7c], eax
mov word [0x4a8d78], 2
push 0x89
call sub.wsock32.dll_htons
mov word [0x4a8d7a], ax
push 0x10
push 0x4a8d78
push 0
push 0x32
lea eax, [esp + 0x1a0]
push eax
mov eax, dword [0x4a8d64]
push eax
call sub.wsock32.dll_sendto
cmp eax, 0xffffffff
je 0x495a87
cmp eax, 0x32
jne 0x495a87
mov eax, dword [0x4a8d60]
push eax
call sub.kernel32.dll_ResetEvent
add esp, 0x1c4
pop esi
pop ebx
ret

Function at 0x496b70
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 [0x496a4c]
call fcn.00405c70
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 0x496bd3
push 0
lea eax, [edi + 0x4c]
mov ecx, 1
mov edx, dword [0x496a4c]
call fcn.00405c70
add esp, 4
cmp word [edi + 0x42], 0
je 0x496c13
mov edx, 0x496c24
mov eax, dword [edi + 0x44]
call dword [edi + 0x40]
jmp 0x496c13
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x496bf0
push dword [ebp]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, dword [edi + 0x4c]
lea eax, [eax + ebx*4]
call fcn.00404774
inc ebx
mov ebp, dword [esi + ebx*4]
test ebp, ebp
je 0x496bfc
cmp ebx, 0x14
jl 0x496bda
push ebx
lea eax, [edi + 0x4c]
mov ecx, 1
mov edx, dword [0x496a4c]
call fcn.00405c70
add esp, 4
add esp, 0x40
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x496c38
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.00405abc
inc eax
je 0x496d3c
mov eax, dword [ebx + 0x4c]
call fcn.00405abc
inc eax
push eax
lea eax, [ebx + 0x48]
mov ecx, 1
mov edx, dword [0x496a2c]
call fcn.00405c70
add esp, 4
mov eax, dword [ebx + 0x4c]
call fcn.00405abc
mov edi, eax
test edi, edi
jl 0x496d3c
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.00404a34
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.00497230
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.00497230
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.00497230
inc esi
dec edi
jne 0x496c89
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x499fc8
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a24
xor eax, eax
push ebp
push 0x49a03d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040461c
push 0x4401
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404a34
push eax
call sub.shell32.dll_SHGetFileInfoA
mov ebx, dword [ebp - 0x164]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a044
lea eax, [ebp - 8]
mov edx, 2
call fcn.004045a8
ret
Function at 0x49a04c
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 0x49a0fe
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 0x49a0e5
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 0x49a0aa
call sub.wsock32.dll_WSACleanup
jmp 0x49a0e5
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x49a0d4
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x1d8]
call fcn.00404774
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 0x49a0e0
cmp ebx, 0x14
jl 0x49a0b1
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a105
lea eax, [ebp - 0x1d8]
call fcn.00404584
ret

Function at 0x49a10c
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 0x49a13f
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.00409610
add esp, 0x1f4
pop ebx
ret

Function at 0x49a5a4
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.00404a24
xor eax, eax
push ebp
push 0x49a627
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.00404a34
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 0x49a60a
mov edx, esi
mov eax, dword [ebx]
call fcn.00409610
jmp 0x49a611
mov eax, esi
call fcn.00404584
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a62e
lea eax, [ebp - 4]
call fcn.00404584
ret
Function at 0x49a634
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.00404a24
xor eax, eax
push ebp
push 0x49a786
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 0x49a75e
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.004094b0
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x49a747
mov edx, dword [eax + 0xc]
test edx, edx
je 0x49a741
mov ebx, dword [edx]
test ebx, ebx
je 0x49a73b
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, 0x49a7a0
call fcn.00409b8c
mov edx, dword [ebp - 0x29c]
mov eax, esi
call fcn.004045d8
mov byte [ebp - 5], 1
jmp 0x49a74b
mov byte [ebp - 5], 0
jmp 0x49a74b
mov byte [ebp - 5], 0
jmp 0x49a74b
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a765
call sub.wsock32.dll_WSACleanup
ret
Function at 0x49a7ac
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.00404a24
xor eax, eax
push ebp
push 0x49a8d5
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.00403034
lea eax, [ebp - 4]
call fcn.00404a8c
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 0x49a8b2
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x2000
mov eax, dword [ebp - 0x14]
call fcn.0040279c
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 0x49a899
test eax, eax
jne 0x49a8b2
mov esi, dword [ebp - 0x10]
dec esi
test esi, esi
jl 0x49a814
inc esi
lea edx, [ebp - 0x40]
mov eax, dword [ebx + 0x14]
call fcn.00409610
push dword [ebp - 0x40]
push 0x49a8f0
lea edx, [ebp - 0x44]
mov eax, dword [ebx + 0x18]
call fcn.00409610
push dword [ebp - 0x44]
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.004048fc
mov edx, dword [ebp - 0x3c]
mov eax, dword [edi]
mov ecx, dword [eax]
call dword [ecx + 0x38]
add ebx, 0x20
dec esi
jne 0x49a856
jmp 0x49a814
mov eax, dword [ebp - 0x18]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x49a8b2
mov byte [ebp - 5], 1
mov eax, dword [ebp - 0xc]
call fcn.004027bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a8dc
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.004045a8
lea eax, [ebp - 4]
call fcn.00404584
ret
Function at 0x49a8f4
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.00404a24
xor eax, eax
push ebp
push 0x49aa23
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.00403034
lea eax, [ebp - 4]
call fcn.00404a8c
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 0x49aa0d
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0x2000
mov eax, dword [ebp - 0x18]
call fcn.0040279c
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 0x49a9f4
test eax, eax
jne 0x49aa0d
mov esi, ebx
mov edi, dword [ebp - 0x14]
dec edi
test edi, edi
jl 0x49a967
inc edi
mov edx, dword [0x499f88]
mov eax, 0xc
call fcn.004054a8
mov ebx, eax
mov eax, ebx
mov edx, dword [esi + 0x14]
call fcn.00404774
lea eax, [ebx + 4]
mov edx, dword [esi + 0x18]
call fcn.00404774
lea eax, [ebx + 8]
mov edx, dword [esi + 0x1c]
call fcn.00404774
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, ebx
call fcn.00416aec
add esi, 0x20
dec edi
jne 0x49a9ab
jmp 0x49a967
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x49aa0d
mov byte [ebp - 9], 1
mov eax, dword [ebp - 0x10]
call fcn.004027bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49aa2a
lea eax, [ebp - 4]
call fcn.00404584
ret
Function at 0x49aa34
Capabilities:
Enumerate network shares

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffc0
mov ebp, eax
mov byte [esp], 0
mov eax, dword [ebp]
mov edx, dword [eax]
call dword [edx + 8]
mov dl, 1
mov eax, dword [0x414388]
call fcn.00403764
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 0x49abf5
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0xc], 0x2000
mov eax, dword [esp + 0xc]
call fcn.0040279c
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 0x49abf5
test eax, eax
jne 0x49abf5
mov edi, ebx
mov eax, dword [esp + 8]
dec eax
test eax, eax
jl 0x49aae0
inc eax
mov dword [esp + 0x1c], eax
mov edx, edi
mov eax, dword [esp + 0x18]
call fcn.00416aec
add edi, 0x20
dec dword [esp + 0x1c]
jne 0x49aacc
mov eax, dword [esp + 0x14]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x49abf5
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x49abdd
inc eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
call fcn.00416c48
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 0x49abf5
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0xc], 0x2000
mov eax, dword [esp + 0xc]
call fcn.0040279c
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 0x49abc1
test eax, eax
jne 0x49abf5
mov edi, ebx
mov esi, dword [esp + 8]
dec esi
test esi, esi
jl 0x49ab46
inc esi
mov edx, dword [0x499f88]
mov eax, 0xc
call fcn.004054a8
mov ebx, eax
mov eax, ebx
mov edx, dword [edi + 0x14]
call fcn.00404774
mov eax, dword [ebp]
mov edx, ebx
call fcn.00416aec
add edi, 0x20
dec esi
jne 0x49ab93
jmp 0x49ab46
mov eax, dword [esp + 0x14]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x49abf5
inc dword [esp + 0x10]
dec dword [esp + 0x1c]
jne 0x49ab0f
mov byte [esp], 1
mov eax, dword [esp + 4]
call fcn.004027bc
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 0x4a2854
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a24
xor eax, eax
push ebp
push 0x4a28fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4a8db4]
mov eax, dword [eax + 0x5fc]
call fcn.00488128
test eax, eax
je 0x4a28e3
push 5
push 0
push 0
push 0x4a2914
mov eax, dword [0x4a8db4]
mov eax, dword [eax + 0x5fc]
call fcn.00488128
mov eax, dword [eax + 0x24]
lea edx, [ebp - 0xc]
call fcn.00408b90
push dword [ebp - 0xc]
push 0x4a2920
push dword [ebp - 4]
lea eax, [ebp - 8]
mov edx, 4
call fcn.004048fc
mov eax, dword [ebp - 8]
call fcn.00404a34
push eax
push 0
mov eax, dword [0x4a8db4]
call fcn.0044b54c
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2905
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004045a8
ret
Function at 0x402a08
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402a45
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402a65
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404e00
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402bcc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404b90
test esi, esi
jne 0x402c02
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404c80
jmp 0x402c20
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402ae0
mov edi, eax
test esi, esi
je 0x402c20
cmp dword [ebx], 0
je 0x402c20
dec esi
jmp 0x402c09
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403240
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x403256
sub ecx, 2
jne 0x403278
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x40327f
cmp edx, dword [ebx + 8]
je 0x403289
mov eax, 0x64
jmp 0x403284
mov eax, 0x67
jmp 0x403284
call sub.kernel32.dll_GetLastError
call fcn.004029a8
pop ebx
ret

Function at 0x403b70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4d7020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403c08
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403be8
xor eax, eax
push ebp
push 0x403be1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403c24
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403be8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4d7020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4d7020], ax
mov esp, ebp
pop ebp
ret
Function at 0x4049f4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4da04c], 0
je 0x404a55
cmp word [0x4da220], 0xd7b2
jne 0x404a1d
cmp dword [0x4da228], 0
jbe 0x404a1d
mov eax, 0x4da21c
call dword [0x4da238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4d7090
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404a7c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d7030], 0
jne 0x404a71
push 0
push 0x4d7088
push 0x4d7090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret