joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002ac70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a90ee
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1021afe8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x38]
mov dword [ebp - 4], 0
push dword [0x1022cabc]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002ace0
mov eax, dword [eax + 4]
test eax, eax
je 0x1002ace0
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1002ace0
mov dword [eax + 8], 0
mov al, byte [ecx]
cmp al, 0xe
jb 0x1002acd7
mov byte [ecx + 0x38], al
jmp 0x1002acf0
push ecx
call fcn.1003100b
add esp, 4
push 0x39
call fcn.10030fd4
mov ecx, eax
add esp, 4
mov byte [ecx + 0x38], 0xe
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0
test ecx, ecx
je 0x1002ad58
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
movq xmm0, qword [ebp + 0xc]
movq qword [ecx + 8], xmm0
mov eax, dword [ebp + 0x14]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp + 0x24]
mov dword [ecx + 0x20], eax
movq xmm0, qword [ebp + 0x28]
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 0
movq qword [ecx + 0x24], xmm0
mov eax, dword [ebp + 0x30]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp + 0x34]
mov dword [ecx + 0x30], eax
mov dword [ecx], 0x1002afc0
jmp 0x1002ad5a
xor ecx, ecx
mov dword [edi], ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
call fcn.1002af00
mov dword [ebp - 4], 1
mov esi, dword [ebp + 0x24]
test esi, esi
je 0x1002ad9a
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1002ad9a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1002ad9a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
Function at 0x1002adb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a90ee
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1021afe8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x38]
mov dword [ebp - 4], 0
push dword [0x1022cabc]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002ae20
mov eax, dword [eax + 4]
test eax, eax
je 0x1002ae20
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1002ae20
mov dword [eax + 8], 0
mov al, byte [ecx]
cmp al, 0xe
jb 0x1002ae17
mov byte [ecx + 0x38], al
jmp 0x1002ae30
push ecx
call fcn.1003100b
add esp, 4
push 0x39
call fcn.10030fd4
mov ecx, eax
add esp, 4
mov byte [ecx + 0x38], 0xe
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0
test ecx, ecx
je 0x1002ae98
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
movq xmm0, qword [ebp + 0xc]
movq qword [ecx + 8], xmm0
mov eax, dword [ebp + 0x14]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp + 0x24]
mov dword [ecx + 0x20], eax
movq xmm0, qword [ebp + 0x28]
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 0
movq qword [ecx + 0x24], xmm0
mov eax, dword [ebp + 0x30]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp + 0x34]
mov dword [ecx + 0x30], eax
mov dword [ecx], 0x1002b0c0
jmp 0x1002ae9a
xor ecx, ecx
mov dword [edi], ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
call fcn.1002af00
mov dword [ebp - 4], 1
mov esi, dword [ebp + 0x24]
test esi, esi
je 0x1002aeda
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1002aeda
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1002aeda
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
Function at 0x1002af00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a70e6
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x1021afe8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x1002af64
mov dword [ebp - 4], 0
mov esi, dword [esi + 0x20]
test esi, esi
je 0x1002af5d
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1002af5d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1002af5d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x1002afa2
push dword [0x1022cabc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002af92
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1002af92
cmp dword [ecx + 8], 0
jne 0x1002af92
mov al, byte [esi + 0x38]
mov byte [esi], al
mov dword [ecx + 8], esi
jmp 0x1002af9b
push esi
call fcn.1003100b
add esp, 4
mov dword [edi + 4], 0
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 0x1002e440
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a791e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1021afe8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x34]
mov dword [ebp - 4], 0
push dword [0x1022cabc]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002e4b0
mov eax, dword [eax + 4]
test eax, eax
je 0x1002e4b0
mov esi, dword [eax + 8]
test esi, esi
je 0x1002e4b0
mov dword [eax + 8], 0
mov al, byte [esi]
cmp al, 0xd
jb 0x1002e4a7
mov byte [esi + 0x34], al
jmp 0x1002e4c0
push esi
call fcn.1003100b
add esp, 4
push 0x35
call fcn.10030fd4
mov esi, eax
add esp, 4
mov byte [esi + 0x34], 0xd
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
test esi, esi
je 0x1002e510
mov eax, dword [ebp + 8]
lea ecx, [esi + 8]
mov dword [esi + 4], eax
lea eax, [ebp + 0xc]
push eax
call fcn.10027c10
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x20], eax
movq xmm0, qword [ebp + 0x28]
movq qword [esi + 0x24], xmm0
mov eax, dword [ebp + 0x30]
mov dword [esi + 0x2c], eax
mov dword [esi], 0x1002e670
jmp 0x1002e512
xor esi, esi
lea ecx, [ebp - 0x18]
mov dword [edi], esi
mov dword [ebp - 0x14], 0
call fcn.1002e580
mov dword [ebp - 4], 1
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1002e552
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1002e552
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1002e552
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x1002e580
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a70e6
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x1021afe8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x1002e5e4
mov dword [ebp - 4], 0
mov esi, dword [esi + 0xc]
test esi, esi
je 0x1002e5dd
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1002e5dd
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1002e5dd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x1002e622
push dword [0x1022cabc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002e612
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1002e612
cmp dword [ecx + 8], 0
jne 0x1002e612
mov al, byte [esi + 0x34]
mov byte [esi], al
mov dword [ecx + 8], esi
jmp 0x1002e61b
push esi
call fcn.1003100b
add esp, 4
mov dword [edi + 4], 0
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 0x1002e950
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push dword [0x1022cabc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002e992
mov eax, dword [eax + 4]
test eax, eax
je 0x1002e992
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1002e992
mov dword [eax + 8], 0
mov al, byte [ecx]
cmp al, 0xd
jb 0x1002e989
mov byte [ecx + 0x34], al
jmp 0x1002e9a2
push ecx
call fcn.1003100b
add esp, 4
push 0x35
call fcn.10030fd4
mov ecx, eax
add esp, 4
mov byte [ecx + 0x34], 0xd
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x1002e9ff
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
movq xmm0, qword [ebp + 0xc]
movq qword [ecx + 8], xmm0
mov eax, dword [ebp + 0x14]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [ecx + 0x1c], eax
movq xmm0, qword [ebp + 0x24]
movq qword [ecx + 0x20], xmm0
mov eax, dword [ebp + 0x2c]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp + 0x30]
mov dword [ecx + 0x2c], eax
mov eax, esi
mov dword [ecx], 0x1002eb30
mov dword [esi], ecx
mov dword [ebp - 0xc], 0
pop esi
mov esp, ebp
pop ebp
ret 0x30
xor ecx, ecx
mov eax, esi
mov dword [esi], ecx
mov dword [ebp - 0xc], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x30
Function at 0x1002ea10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push dword [0x1022cabc]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002ea52
mov eax, dword [eax + 4]
test eax, eax
je 0x1002ea52
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1002ea52
mov dword [eax + 8], 0
mov al, byte [ecx]
cmp al, 0xd
jb 0x1002ea49
mov byte [ecx + 0x34], al
jmp 0x1002ea62
push ecx
call fcn.1003100b
add esp, 4
push 0x35
call fcn.10030fd4
mov ecx, eax
add esp, 4
mov byte [ecx + 0x34], 0xd
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x1002eabf
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
movq xmm0, qword [ebp + 0xc]
movq qword [ecx + 8], xmm0
mov eax, dword [ebp + 0x14]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [ecx + 0x1c], eax
movq xmm0, qword [ebp + 0x24]
movq qword [ecx + 0x20], xmm0
mov eax, dword [ebp + 0x2c]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp + 0x30]
mov dword [ecx + 0x2c], eax
mov eax, esi
mov dword [ecx], 0x1002ec60
mov dword [esi], ecx
mov dword [ebp - 0xc], 0
pop esi
mov esp, ebp
pop ebp
ret 0x30
xor ecx, ecx
mov eax, esi
mov dword [esi], ecx
mov dword [ebp - 0xc], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x30

Function at 0x1002efb0
Capabilities:
Reference google public dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1021afe8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
mov dword [ebp - 0x20], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x1c], esi
mov eax, 2
movq qword [ebp - 0x12], xmm0
push str.8.8.8.8
mov dword [ebp - 0xa], esi
mov word [ebp - 6], si
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x5a
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetBestInterfaceEx]
test eax, eax
jne 0x1002f07e
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x1002f07e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1002f07e
push eax
call fcn.10173696
mov edi, eax
add esp, 4
test edi, edi
je 0x1002f07e
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x1002f075
mov ecx, dword [ebp - 0x1c]
mov eax, edi
cmp dword [eax + 0x19c], ecx
je 0x1002f058
mov eax, dword [eax]
test eax, eax
jne 0x1002f048
jmp 0x1002f075
push 0x104
push dword [ebp - 0x20]
add eax, 8
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, 1
push edi
call fcn.1016f9b7
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1016700d
mov esp, ebp
pop ebp
ret
Function at 0x1002f2b0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1021afe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x101f526c
push str.kernel32.dll
mov esi, ecx
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push str..PhysicalDrive0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1002f38d
push edi
push 0x828
call fcn.10031010
mov edi, eax
add esp, 4
test edi, edi
je 0x1002f38c
push 0x828
push 0
push edi
call fcn.1016ca40
add esp, 0xc
lea eax, [ebp - 0x14]
push 0
push eax
push 0x826
push edi
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push ebx
call dword [ebp - 0x18]
test eax, eax
je 0x1002f381
cmp dword [ebp - 0x14], 0
jbe 0x1002f381
mov eax, dword [edi + 0x10]
test eax, eax
je 0x1002f381
cmp eax, 0xffffffff
je 0x1002f381
lea ecx, [eax + edi]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi], al
lea esi, [esi + 1]
test al, al
jne 0x1002f373
push 0x28
push edi
call fcn.101675c6
add esp, 8
pop edi
test ebx, ebx
je 0x1002f39d
cmp ebx, 0xffffffff
je 0x1002f39d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1016700d
mov esp, ebp
pop ebp
ret
Function at 0x1002f490
Capabilities:
Get hostname
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a9720
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x1021afe8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0x114
lea eax, [ebp - 0x170]
push 0
push eax
call fcn.1016ca40
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0x178]
mov dword [ebp - 0x178], 0xf
push eax
lea eax, [esi + 0x7e]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0x40
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.1016ca40
add esp, 0xc
mov dword [ebp - 0x58], 0x40
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x1002f531
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
shrd ecx, eax, 0x14
shr eax, 0x14
mov word [esi + 0x28], cx
lea eax, [ebp - 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x188]
push 0x114
mov word [esi + 0x2a], ax
lea eax, [ebp - 0x170]
push 0
push eax
call fcn.1016ca40
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add esp, 0xc
mov dword [ebp - 0x170], 0x114
push str.RtlGetVersion
push str.ntdll.dll
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
test eax, eax
je 0x1002f591
lea ecx, [ebp - 0x170]
push ecx
call eax
mov eax, dword [ebp - 0x16c]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x168]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x164]
mov dword [esi + 0x34], eax
call fcn.10005fa0
lea ecx, [esi + 0xab]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
call fcn.1002f2b0
call fcn.1002f090
mov dword [esi + 0x4c], edx
lea ecx, [esi + 0x60]
lea edx, [esi + 0x38]
mov dword [esi + 0x48], eax
call fcn.1002f3b0
call fcn.1002edc0
test eax, eax
je 0x1002f5e5
or dword [esi + 0x50], 1
call fcn.1002ee60
test eax, eax
je 0x1002f5f2
or dword [esi + 0x50], 0x20
push 0x101f527c
push str.kernel32.dll
call edi
push eax
call ebx
test eax, eax
je 0x1002f60f
call eax
test eax, eax
je 0x1002f60f
or dword [esi + 0x50], 0x40
push str.IsWow64Process
push str.kernel32.dll
mov dword [ebp - 0x174], 0
call edi
push eax
call ebx
mov edi, eax
test edi, edi
je 0x1002f63e
lea eax, [ebp - 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [ebp - 0x174], 0
je 0x1002f64e
or dword [esi + 0x50], 0x800
call fcn.1002ef30
test al, al
je 0x1002f65e
or dword [esi + 0x50], 0x8000
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1016700d
mov esp, ebp
pop ebp
ret
Function at 0x1002f690
Capabilities:
List tcp connections and listeners

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetExtendedTcpTable]
lea eax, [ebp - 8]
push 0
push 5
push 2
push 1
push eax
push 0
mov word [ebp - 2], cx
mov dword [ebp - 8], 0
call esi
cmp eax, 0x7a
je 0x1002f6c4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 8]
call fcn.10031010
mov edi, eax
add esp, 4
test edi, edi
je 0x1002f6f2
push 0
push 5
push 2
push 1
lea eax, [ebp - 8]
push eax
push edi
call esi
test eax, eax
je 0x1002f6fa
push edi
call fcn.1003100b
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor esi, esi
push ebx
cmp dword [edi], esi
jbe 0x1002f71c
lea ebx, [edi + 0xc]
movzx eax, word [ebx]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
cmp ax, word [ebp - 2]
je 0x1002f72e
inc esi
add ebx, 0x18
cmp esi, dword [edi]
jb 0x1002f704
push edi
call fcn.1003100b
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi + esi*2]
mov esi, dword [edi + eax*8 + 0x18]
push edi
call fcn.1003100b
add esp, 4
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10030050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
lea eax, [ebp - 4]
push eax
push fcn.10030050
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
push 0x101f5360
push 0x1391
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10030086
pop esi
mov esp, ebp
pop ebp
ret
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0xc]
mov edi, eax
mov edx, dword [ecx]
mov dword [ecx], edi
cmp edx, edi
jae 0x100300a6
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x100300c2
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x100300cb
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 8]
push eax
push edi
call fcn.1016cf70
mov ecx, dword [0x1022b308]
lea eax, [edi + 0x8bfe]
add esp, 0xc
mov dword [ebp - 8], eax
xor esi, esi
test ecx, 0xfffffffc
jbe 0x1003012d
mov edi, eax
mov eax, 0x2040811
mov ecx, esi
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 6
imul eax, eax, 0x7f
sub ecx, eax
mov eax, dword [ecx*4 + 0x1022acfc]
sub dword [edi + esi*4], eax
inc esi
mov ecx, dword [0x1022b308]
mov eax, ecx
shr eax, 2
cmp esi, eax
jl 0x100300f4
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 8]
push ecx
push eax
push edi
call fcn.1016cf70
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10030240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
sub ecx, edx
cmp ecx, 4
ja 0x1003025c
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
movsx eax, byte [edx + 2]
push ebx
movzx ebx, al
movsx eax, byte [edx + 3]
shl eax, 8
or ebx, eax
movsx eax, byte [edx + 1]
movzx eax, al
shl ebx, 8
or ebx, eax
movsx eax, byte [edx]
movzx eax, al
shl ebx, 8
push edi
or ebx, eax
xor edi, edi
lea eax, [ecx - 4]
push eax
lea ecx, [ebp - 0xc]
call fcn.10030820
mov eax, dword [esi + 4]
lea ecx, [edi + 4]
sub eax, dword [esi]
cmp eax, ecx
jbe 0x100302bc
mov edx, dword [ebp - 0xc]
mov eax, dword [esi]
mov al, byte [eax + ecx]
xor al, 0xb8
mov byte [edx + ecx - 4], al
inc ecx
movzx eax, al
xor edi, eax
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmp ecx, eax
jb 0x100302a2
cmp edi, ebx
je 0x100302d3
lea ecx, [ebp - 0xc]
xor bl, bl
call fcn.1000d970
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
cmp esi, eax
je 0x10030307
mov ecx, esi
call fcn.1000d970
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc]
mov bl, 1
call fcn.1000d970
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret