joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e590
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490219
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4bcad4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 5
push edi
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
cmp eax, ebx
je 0x40e62f
mov edx, dword [ebp - 0x10]
cmp edx, ebx
je 0x40e62f
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40e600
sub eax, edi
push eax
push edx
mov ecx, esi
call fcn.00401602
mov edx, dword [ebp - 0x10]
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.UBASE::OsSessionUserName
push str.__s__WTSQuerySessionInformationA_failed__SessionId:_d_LastError:_d
call fcn.0041bf30
add esp, 0x10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490262
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4bcad4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x118], ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x11c], esi
mov byte [esi], bl
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x118], 1
mov byte [ebp - 0x114], bl
call fcn.00477750
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40e717
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40e6f1
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
mov ecx, esi
call fcn.00403571
push 9
push str.System32
mov ecx, esi
call fcn.00403571
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004751f1
mov esp, ebp
pop ebp
ret
Function at 0x40e740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490262
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4bcad4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x118], ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x11c], esi
mov byte [esi], bl
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x118], 1
mov byte [ebp - 0x114], bl
call fcn.00477750
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40e7f7
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40e7d1
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
mov ecx, esi
call fcn.00403571
push 9
push str.SysWOW64
mov ecx, esi
call fcn.00403571
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004751f1
mov esp, ebp
pop ebp
ret
Function at 0x412660
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
xor eax, eax
push 0x40
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x10], 0
call fcn.00477750
mov cx, word [ebp + 0xc]
mov word [ebp - 0x24], cx
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x54], 0x44
test ecx, ecx
jne 0x4126a7
lea ecx, [ebp - 0x10]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x4126b2
mov eax, dword [eax]
push ecx
lea edx, [ebp - 0x54]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4126d6
xor al, al
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4126e7
push eax
call esi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4126f1
push eax
call esi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x412990
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490b4b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4bcad4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
push 0
lea edx, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov byte [ecx], 0
call fcn.00401332
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
push 0
lea eax, [edi + 0x30]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov dword [ebp - 4], 0
mov byte [ecx], 0
call fcn.00401332
mov ecx, dword [edi + 0x4c]
mov dword [esi + 0x4c], ecx
mov dx, word [edi + 0x50]
mov word [esi + 0x50], dx
mov eax, dword [edi + 0x54]
mov dword [esi + 0x54], eax
mov ecx, dword [edi + 0x58]
mov dword [esi + 0x58], ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x412a60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4bcad4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
push edi
mov edi, dword [esi]
cmp edi, ecx
je 0x412aa0
mov eax, ecx
sub eax, ecx
sar eax, 2
lea ebx, [eax*4]
push ebx
push ecx
push edi
call fcn.004756f0
add esp, 0xc
add ebx, edi
mov dword [esi + 4], ebx
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x130], ebx
cmp ebx, 0xffffffff
jne 0x412ae4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateToolhelp32Snapshot_failed__LastError:_d
push str.UBASE::PsEnumProcessId
push 2
call fcn.0041c000
add esp, 0x10
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004751f1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x12c]
push eax
push ebx
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x412bed
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x124]
cmp ecx, eax
jae 0x412b77
mov edx, dword [esi]
cmp edx, ecx
ja 0x412b77
mov edi, ecx
mov ecx, dword [esi + 8]
sub edi, edx
sar edi, 2
cmp eax, ecx
jne 0x412b67
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x412be3
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x412b67
mov edx, ecx
shr edx, 1
mov ebx, 0x3fffffff
sub ebx, edx
cmp ebx, ecx
jae 0x412b51
xor ecx, ecx
jmp 0x412b53
add ecx, edx
cmp ecx, eax
jae 0x412b59
mov ecx, eax
push ecx
mov ecx, esi
call fcn.0041c520
mov ebx, dword [ebp - 0x130]
mov eax, dword [esi + 4]
test eax, eax
je 0x412bc8
mov edx, dword [esi]
mov ecx, dword [edx + edi*4]
mov dword [eax], ecx
jmp 0x412bc8
mov ecx, dword [esi + 8]
cmp eax, ecx
jne 0x412bb9
mov edx, dword [esi]
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x412be3
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x412bb9
mov edx, ecx
shr edx, 1
mov edi, 0x3fffffff
sub edi, edx
cmp edi, ecx
jae 0x412ba9
xor ecx, ecx
jmp 0x412bab
add ecx, edx
cmp ecx, eax
jae 0x412bb1
mov ecx, eax
push ecx
mov ecx, esi
call fcn.0041c520
mov eax, dword [esi + 4]
test eax, eax
je 0x412bc8
mov edx, dword [ebp - 0x124]
mov dword [eax], edx
add dword [esi + 4], 4
lea eax, [ebp - 0x12c]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x412b03
jmp 0x412c08
push str.vector_T__too_long
call fcn.0047456d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Process32First_failed__LastError:_d
push str.UBASE::PsEnumProcessId
push 2
call fcn.0041c000
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi]
xor eax, eax
cmp ecx, dword [esi + 4]
mov ecx, dword [ebp - 4]
pop edi
setne al
pop esi
xor ecx, ebp
pop ebx
call fcn.004751f1
mov esp, ebp
pop ebp
ret
Function at 0x412d80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490b7b
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x4bcad4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov esi, dword [eax]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x13c], eax
cmp esi, ecx
je 0x412de7
mov eax, ecx
sub eax, ecx
sar eax, 2
lea ebx, [eax*4]
push ebx
push ecx
push esi
call fcn.004756f0
mov eax, dword [ebp - 0x13c]
add esp, 0xc
add ebx, esi
mov dword [eax + 4], ebx
xor ebx, ebx
cmp dword [edi + 0x10], ebx
jne 0x412e09
push str.WildCard_is_empty
push str.UBASE::PsFastFindProcessByName
push 2
call fcn.0041c000
add esp, 0xc
xor al, al
jmp 0x412f30
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x140], esi
cmp esi, 0xffffffff
jne 0x412e40
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateToolhelp32Snapshot_failed__LastError:_d
push str.UBASE::PsFastFindProcessByName
push 2
call fcn.0041c000
add esp, 0x10
xor al, al
jmp 0x412f30
lea ecx, [ebp - 0x138]
push ecx
push esi
mov dword [ebp - 0x138], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x412efe
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x144], esp
push 0xffffffffffffffff
push ebx
mov esi, 0xf
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push edi
mov byte [ecx], bl
call fcn.00401332
sub esp, 0x1c
mov ecx, esp
mov dword [ecx + 0x14], esi
lea eax, [ebp - 0x114]
mov dword [ecx + 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x148], esp
mov byte [ecx], bl
lea esi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x412ea0
sub eax, esi
push eax
lea edx, [ebp - 0x114]
push edx
call fcn.00401602
mov dword [ebp - 4], 0xffffffff
call fcn.00410cd0
add esp, 0x38
cmp al, bl
je 0x412edb
mov ecx, dword [ebp - 0x13c]
lea eax, [ebp - 0x130]
push eax
call fcn.0041c630
mov edx, dword [ebp - 0x140]
lea ecx, [ebp - 0x138]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x412e5f
mov esi, dword [ebp - 0x140]
jmp 0x412f19
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Process32First_failed__LastError:_d
push str.UBASE::PsFastFindProcessByName
push 2
call fcn.0041c000
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax]
xor edx, edx
cmp ecx, dword [eax + 4]
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004751f1
mov esp, ebp
pop ebp
ret
Function at 0x414930
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x41493e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x414952
test al, 0x10
je 0x414952
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x414960
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x14], 0x10
push edi
jb 0x414972
mov eax, dword [ebx]
jmp 0x414974
mov eax, ebx
lea ecx, [ebp + 8]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x4149a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.UBASE::GetResourceVersionInfo
push str.__s__GetFileVersionInfoSizeA_return_size0__LastError:_d
call fcn.0041bf30
add esp, 0xc
pop edi
xor al, al
pop ebx
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x10]
mov ecx, esi
cmp edi, eax
ja 0x4149ba
push 0xffffffffffffffff
push edi
call fcn.00401677
jmp 0x4149c6
mov edx, edi
push 0
sub edx, eax
push edx
call fcn.004012d2
cmp dword [esi + 0x14], 0x10
jb 0x4149d0
mov eax, dword [esi]
jmp 0x4149d2
mov eax, esi
push edi
push 0
push eax
call fcn.00477750
mov eax, 0x10
add esp, 0xc
cmp dword [esi + 0x14], eax
jb 0x4149ea
mov esi, dword [esi]
cmp dword [ebx + 0x14], eax
jb 0x4149f3
mov eax, dword [ebx]
jmp 0x4149f5
mov eax, ebx
push esi
push edi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
pop esi
test eax, eax
jne 0x414a23
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.UBASE::GetResourceVersionInfo
push str.__s__GetFileVersionInfoA_failed__LastError:_d
call fcn.0041bf30
add esp, 0xc
pop edi
xor al, al
pop ebx
pop ebp
ret
pop edi
mov al, 1
pop ebx
pop ebp
ret
Function at 0x414a30
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4bcad4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov edi, 0x10
mov byte [ebp - 0x11], 0
cmp dword [esi + 0x14], edi
jb 0x414a70
mov eax, dword [esi]
jmp 0x414a72
mov eax, esi
push 0
push 0
push 3
push 0
push 3
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
jne 0x414ac9
cmp dword [esi + 0x14], edi
jb 0x414a99
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.CreateFileA__s_failed__LastError__d
push str.UBASE::FsReadFileData
push 2
call fcn.0041c000
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x414c1e
test edi, edi
jne 0x414b07
cmp dword [esi + 0x14], 0x10
jb 0x414ae9
mov esi, dword [esi]
push esi
push str._s_FileSize_is_0
push str.UBASE::FsReadFileData
push 1
call fcn.0041c000
add esp, 0x10
mov byte [ebp - 0x11], 1
jmp 0x414c02
push 0x4bf581
push edi
call fcn.00479d17
mov ebx, eax
add esp, 8
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x414bff
mov ecx, dword [ebp + 8]
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414bd2
mov eax, dword [ebp - 0x1c]
cmp eax, edi
jne 0x414bb1
mov ecx, dword [ebp + 0xc]
push edi
push ebx
mov dword [ebp - 4], 0
call fcn.00401602
mov byte [ebp - 0x11], 1
jmp 0x414bf6
cmp dword [esi + 0x14], 0x10
jb 0x414bb9
mov esi, dword [esi]
push eax
push edi
push esi
push str.ReadFile__s_failed__ExpectedSize:_d_ActualSize:_d
push str.UBASE::FsReadFileData
push 2
call fcn.0041c000
add esp, 0x18
jmp 0x414bf6
cmp dword [esi + 0x14], 0x10
jb 0x414bda
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.ReadFile__s_failed__LastError__d
push str.UBASE::FsReadFileData
push 2
call fcn.0041c000
add esp, 0x14
push ebx
call fcn.004778a6
add esp, 4
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 0x10
jb 0x414c26
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.GetFileSize__s_failed__LastError:_d
push str.UBASE::FsReadFileData
push 2
call fcn.0041c000
add esp, 0x14
jmp 0x414c02
Function at 0x4164e0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4bcad4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
push 0x288
mov dword [ebp - 0x4c], eax
xor bl, bl
call fcn.00477e48
mov edi, eax
add esp, 4
mov dword [ebp - 0x48], 0x288
test edi, edi
jne 0x416526
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004751f1
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x48]
push ecx
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x416548
push edi
call fcn.00477a8f
mov edx, dword [ebp - 0x48]
push edx
call fcn.00477e48
add esp, 8
mov edi, eax
push esi
lea eax, [ebp - 0x48]
push eax
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4165f8
mov esi, edi
test edi, edi
je 0x416605
mov eax, 6
lea ebx, [ebx]
cmp dword [esi + 0x1a0], eax
je 0x416580
mov esi, dword [esi]
test esi, esi
jne 0x416570
jmp 0x4165f8
push 0x3f
lea ecx, [ebp - 0x43]
push 0
push ecx
mov byte [ebp - 0x44], 0
call fcn.00477750
movzx edx, byte [esi + 0x199]
movzx eax, byte [esi + 0x198]
movzx ecx, byte [esi + 0x197]
push edx
movzx edx, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push ecx
movzx ecx, byte [esi + 0x194]
push edx
push eax
push ecx
lea edx, [ebp - 0x44]
push str._02X__02X__02X__02X__02X__02X
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x44]
add esp, 0x2c
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4165e0
mov ecx, dword [ebp - 0x4c]
sub eax, edx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00401602
mov bl, 1
test edi, edi
je 0x416605
push edi
call fcn.00477a8f
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
pop edi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004751f1
mov esp, ebp
pop ebp
ret

Function at 0x416620
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004164e0

Function at 0x419300
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push 2
push 0
push ebx
mov dword [ebp - 4], ecx
call fcn.0047adb2
add esp, 0xc
test eax, eax
je 0x419328
mov eax, 0xfffffffd
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
push ebx
call fcn.0047acc3
mov edi, eax
add esp, 4
test edi, edi
jns 0x419345
pop edi
mov eax, 0xfffffffd
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push edi
call fcn.004745ea
mov esi, eax
add esp, 4
test esi, esi
jne 0x419361
lea eax, [esi - 2]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push ebx
call fcn.0047adb2
push ebx
push edi
push 1
push esi
call fcn.0047ab12
add esp, 0x1c
cmp eax, edi
je 0x419393
push esi
call fcn.004778a6
add esp, 4
pop esi
pop edi
mov eax, 0xfffffffd
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
push eax
push esi
call fcn.004191e0
push esi
mov edi, eax
call fcn.004778a6
add esp, 4
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41a020
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4916c0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4bcad4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
push str.SWWanXCom
push ebx
push 4
mov dword [ebp - 4], ebx
mov byte [ebp - 0x49], bl
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
cmp esi, ebx
je 0x41a09e
push 0x32000
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
jne 0x41a171
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
push 3
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push 0x499eb0
mov byte [ecx], bl
call fcn.00401602
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00419e40
add esp, 0x20
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.0040127b
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], esi
jb 0x41a0f0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004777ca
add esp, 4
push 1
push 0x4ad624
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00401602
mov edi, dword [ebp - 0x54]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
push ecx
push edi
mov byte [ebp - 4], 6
call fcn.00411100
add esp, 0xc
cmp dword [ebp - 0x18], esi
jb 0x41a135
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004777ca
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x34], esi
jb 0x41a153
mov eax, dword [ebp - 0x48]
push eax
call fcn.004777ca
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004751f1
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea ecx, [edi + 0x1b0]
push ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004050f5
cmp dword [ebp - 0x1c], ebx
je 0x41a1a6
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x48]
call fcn.0040127b
mov byte [ebp - 0x49], 1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], esi
jb 0x41a1cd
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004777ca
add esp, 4
cmp byte [ebp - 0x49], bl
jne 0x41a0f0
jmp 0x41a0a3
Function at 0x41a1e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491711
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4bcad4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x30], eax
mov edx, 0xf
mov dword [esi + 0x14], edx
mov dword [esi + 0x10], eax
mov dword [ebp - 0x34], esi
mov byte [esi], al
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x38], esp
push 6
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x10], eax
push str.CityId
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], 1
mov byte [ecx], al
call fcn.00401602
lea eax, [ebp - 0x2c]
push eax
call fcn.00419e40
add esp, 0x20
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.0040127b
cmp dword [ebp - 0x18], 0x10
jb 0x41a274
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004777ca
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004751f1
mov esp, ebp
pop ebp
ret