joyce8/EMBER2024-capa huggingface dataset:
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 [0x4a76e4]
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 0x493d54
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 0x493e83
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 0x493e6d
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 0x493e54
test eax, eax
jne 0x493e6d
mov esi, ebx
mov edi, dword [ebp - 0x14]
dec edi
test edi, edi
jl 0x493dc7
inc edi
mov edx, dword [0x493b74]
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 0x493e0b
jmp 0x493dc7
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x493e6d
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 0x493e8a
lea eax, [ebp - 4]
call fcn.00404584
ret
Function at 0x493e94
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 0x493fe6
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 0x493fbe
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 0x493fa7
mov edx, dword [eax + 0xc]
test edx, edx
je 0x493fa1
mov ebx, dword [edx]
test ebx, ebx
je 0x493f9b
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, 0x494000
call fcn.00409b8c
mov edx, dword [ebp - 0x29c]
mov eax, esi
call fcn.004045d8
mov byte [ebp - 5], 1
jmp 0x493fab
mov byte [ebp - 5], 0
jmp 0x493fab
mov byte [ebp - 5], 0
jmp 0x493fab
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x493fc5
call sub.wsock32.dll_WSACleanup
ret

Function at 0x4942e8
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 0x49439a
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 0x494381
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 0x494346
call sub.wsock32.dll_WSACleanup
jmp 0x494381
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x494370
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 0x49437c
cmp ebx, 0x14
jl 0x49434d
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4943a1
lea eax, [ebp - 0x1d8]
call fcn.00404584
ret
Function at 0x4943a8
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 0x4943db
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 0x4943e4
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 0x494467
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 0x49444a
mov edx, esi
mov eax, dword [ebx]
call fcn.00409610
jmp 0x494451
mov eax, esi
call fcn.00404584
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49446e
lea eax, [ebp - 4]
call fcn.00404584
ret

Function at 0x494810
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 [0x4946ec]
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 0x494873
push 0
lea eax, [edi + 0x4c]
mov ecx, 1
mov edx, dword [0x4946ec]
call fcn.00405c70
add esp, 4
cmp word [edi + 0x42], 0
je 0x4948b3
mov edx, 0x4948c4
mov eax, dword [edi + 0x44]
call dword [edi + 0x40]
jmp 0x4948b3
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x494890
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 0x49489c
cmp ebx, 0x14
jl 0x49487a
push ebx
lea eax, [edi + 0x4c]
mov ecx, 1
mov edx, dword [0x4946ec]
call fcn.00405c70
add esp, 4
add esp, 0x40
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4948d8
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 0x4949dc
mov eax, dword [ebx + 0x4c]
call fcn.00405abc
inc eax
push eax
lea eax, [ebx + 0x48]
mov ecx, 1
mov edx, dword [0x4946cc]
call fcn.00405c70
add esp, 4
mov eax, dword [ebx + 0x4c]
call fcn.00405abc
mov edi, eax
test edi, edi
jl 0x4949dc
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.00494ed0
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.00494ed0
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.00494ed0
inc esi
dec edi
jne 0x494929
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x498170
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 [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 0x498331
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 0x498331
test eax, eax
jne 0x498331
mov edi, ebx
mov eax, dword [esp + 8]
dec eax
test eax, eax
jl 0x49821c
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 0x498208
mov eax, dword [esp + 0x14]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x498331
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x498319
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 0x498331
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 0x4982fd
test eax, eax
jne 0x498331
mov edi, ebx
mov esi, dword [esp + 8]
dec esi
test esi, esi
jl 0x498282
inc esi
mov edx, dword [0x493b74]
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 0x4982cf
jmp 0x498282
mov eax, dword [esp + 0x14]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x498331
inc dword [esp + 0x10]
dec dword [esp + 0x1c]
jne 0x49824b
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 0x4986b0
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 - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404a24
xor eax, eax
push ebp
push 0x4987d9
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 0x4987b6
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 0x49879d
test eax, eax
jne 0x4987b6
mov esi, dword [ebp - 0x10]
dec esi
test esi, esi
jl 0x498718
inc esi
lea edx, [ebp - 0x40]
mov eax, dword [ebx + 0x14]
call fcn.00409610
push dword [ebp - 0x40]
push 0x4987f4
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 0x49875a
jmp 0x498718
mov eax, dword [ebp - 0x18]
push eax
call sub.mpr.dll_WNetCloseEnum
test eax, eax
jne 0x4987b6
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 0x4987e0
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.004045a8
lea eax, [ebp - 4]
call fcn.00404584
ret

Function at 0x498e0c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404a24
xor eax, eax
push ebp
push 0x498e81
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 0x498e88
lea eax, [ebp - 8]
mov edx, 2
call fcn.004045a8
ret
Function at 0x49adf8
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, 0x4a71e8
lea edx, [esp + 0x190]
mov bl, byte [eax]
mov byte [edx], bl
inc edx
inc eax
dec ecx
jne 0x49ae13
cmp byte [esi + 0x48], 0
jne 0x49aed0
push esp
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x49af2f
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov dword [0x4a8dac], eax
cmp dword [0x4a8dac], 0xffffffff
jne 0x49ae62
mov eax, dword [0x4a8dac]
push eax
call sub.wsock32.dll_closesocket
jmp 0x49af2f
mov word [0x4a8db0], 2
xor eax, eax
mov dword [0x4a8db4], eax
push 0x1a6f
call sub.wsock32.dll_htons
mov word [0x4a8db2], ax
push 0x10
push 0x4a8db0
mov eax, dword [0x4a8dac]
push eax
call sub.wsock32.dll_bind
test eax, eax
je 0x49aea1
mov byte [esi + 0x48], 0
jmp 0x49af2f
mov byte [esi + 0x48], 1
push 1
push 0x401
mov eax, dword [esi + 0x44]
push eax
mov eax, dword [0x4a8dac]
push eax
call sub.wsock32.dll_WSAAsyncSelect
push 0x49af38
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4a8da8], eax
mov eax, dword [esi + 0x30]
call fcn.00404a34
push eax
call sub.wsock32.dll_inet_addr
mov dword [0x4a8dc4], eax
mov word [0x4a8dc0], 2
push 0x89
call sub.wsock32.dll_htons
mov word [0x4a8dc2], ax
push 0x10
push 0x4a8dc0
push 0
push 0x32
lea eax, [esp + 0x1a0]
push eax
mov eax, dword [0x4a8dac]
push eax
call sub.wsock32.dll_sendto
cmp eax, 0xffffffff
je 0x49af2f
cmp eax, 0x32
jne 0x49af2f
mov eax, dword [0x4a8da8]
push eax
call sub.kernel32.dll_ResetEvent
add esp, 0x1c4
pop esi
pop ebx
ret

Function at 0x4a3118
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404a24
xor eax, eax
push ebp
push 0x4a31b8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x5e0]
call fcn.00488128
test eax, eax
je 0x4a319d
push 5
push 0
push 0
push 0x4a31cc
mov eax, dword [ebx + 0x5e0]
call fcn.00488128
mov eax, dword [eax + 0x24]
lea edx, [ebp - 0xc]
call fcn.00408b90
push dword [ebp - 0xc]
push 0x4a31d8
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, ebx
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 0x4a31bf
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004045a8
ret
Function at 0x401fa0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40d1d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
mov eax, dword [0x412060]
push ebx
lea ecx, [esp + 4]
mov dword [esp + 0x15c], eax
call fcn.00402ac0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], 0
call fcn.00402ac0
push 0x103
lea eax, [esp + 0x5c]
mov ebx, 1
push eax
mov byte [esp + 0x170], bl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x402048
lea ecx, [esp + 0x10]
push ecx
call fcn.00401000
add esp, 4
mov ecx, eax
mov byte [esp + 0x168], 2
call fcn.00402860
push eax
mov ecx, 0x41288c
call fcn.00402860
push eax
push 0x40e8f0
push 0x41288c
call fcn.00402c90
add esp, 0x10
lea ecx, [esp + 0x10]
jmp 0x402201
mov edx, dword [esp + 0x170]
push 0x5c
push edx
call 0x4056b0
add esp, 8
inc eax
push eax
lea ecx, [esp + 0x14]
call fcn.00402ae0
push 0x40e8e4
lea ecx, [esp + 0x38]
mov byte [esp + 0x16c], 3
call fcn.00402ae0
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x16c], 4
call fcn.00402ae0
lea ecx, [esp + 0x34]
push ecx
push eax
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0x174], 5
call fcn.00402b40
lea ecx, [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0x180], 6
call fcn.00402b40
add esp, 0x18
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x16c], 7
call fcn.00402a30
lea ecx, [esp + 0x40]
mov byte [esp + 0x168], 6
call fcn.00402870
lea ecx, [esp + 0x4c]
mov byte [esp + 0x168], 5
call fcn.00402870
lea ecx, [esp + 0x28]
mov byte [esp + 0x168], 4
call fcn.00402870
lea ecx, [esp + 0x34]
mov byte [esp + 0x168], 3
call fcn.00402870
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], bl
call fcn.00402870
lea ecx, [esp + 4]
call fcn.00402860
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402170
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4021b9
lea ecx, [esp + 4]
call fcn.00402860
push eax
mov ecx, 0x41288c
call fcn.00402860
push eax
push 0x40e8ac
push 0x41288c
call fcn.00402c90
add esp, 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x168], 0
call fcn.00402870
lea ecx, [esp + 4]
mov dword [esp + 0x168], 0xffffffff
call fcn.00402870
mov eax, ebx
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x15c]
pop ebx
call 0x40568b
add esp, 0x168
ret
lea eax, [esp + 0x28]
push eax
call fcn.00401000
add esp, 4
mov ecx, eax
mov byte [esp + 0x168], 8
call fcn.00402860
push eax
lea ecx, [esp + 8]
call fcn.00402860
push eax
mov ecx, 0x41288c
call fcn.00402860
push eax
push 0x40e880
push 0x41288c
call fcn.00402c90
add esp, 0x14
lea ecx, [esp + 0x28]
mov byte [esp + 0x168], bl
call fcn.00402870
lea ecx, [esp + 0x1c]
mov byte [esp + 0x168], 0
call fcn.00402870
lea ecx, [esp + 4]
mov dword [esp + 0x168], 0xffffffff
call fcn.00402870
xor eax, eax
jmp 0x402197
Function at 0x40ab98
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40abd1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004044d8
jmp 0x40abda
mov eax, ebx
mov edx, esi
call fcn.0040443c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40abe4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ac05
mov al, byte [esp]
jmp 0x40ac07
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b28c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b104
mov eax, dword [0x4bc398]
cmp byte [eax], 0
je 0x40b2f4
mov eax, dword [0x4bc174]
call fcn.00402cd0
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408d78
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b33c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b32a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4bc11c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4bd718]
call fcn.00405b88
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40c128
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c18c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404650
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408a70
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c193
lea eax, [ebp - 0xc]
call fcn.004043e8
ret

Function at 0x41defc
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041dd70
dec esi
jne 0x41df1e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret