joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002a5a0
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060d18
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1007f45c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0x34]
call fcn.1003def0
test eax, eax
jne 0x1002a5da
xor ebx, ebx
jmp 0x1002a5e4
lea ecx, [esi + 0x34]
call fcn.1003def0
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 0x34]
call fcn.1000bb80
push 0
push 0
push 3
push 0
push 0
push ebx
push dword [eax]
push dword [esi + 0x4c]
call dword [sym.imp.wininet.dll_InternetConnectW]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov dword [esi + 0x50], eax
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002a626
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
cmp dword [esi + 0x50], 0
jne 0x1002a669
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
call edi
cmp eax, 0x3e5
je 0x1002a669
push 0x10063700
lea ecx, [ebp - 0x14]
call fcn.1000bb80
push eax
mov dword [ebp - 4], 0
call edi
push eax
lea ecx, [ebp - 0x24]
call fcn.1000bb80
push 0x1007469c
lea eax, [ebp - 0x24]
push eax
call fcn.1000bb80
push 2
mov ecx, esi
call fcn.1000bb80
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 0x1002a7d0
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005f9d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1007f45c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebx + 0x18]
sub esi, dword [ebx + 0x14]
mov eax, dword [ebp + 8]
add eax, esi
cmp eax, 0xa00000
jle 0x1002a827
push 0xcaa10025
lea ecx, [ebp - 0x18]
call fcn.1000bb80
push 0x100731f4
lea eax, [ebp - 0x18]
push eax
call fcn.1000bb80
push eax
lea ecx, [ebx + 0x14]
call fcn.1000bb80
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x44]
push ecx
push dword [ebp + 8]
add eax, esi
push eax
push dword [ebx + 0x54]
call dword [sym.imp.wininet.dll_InternetReadFile]
test eax, eax
jne 0x1002a889
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1002a889
push 0x10063700
lea ecx, [ebp + 8]
call fcn.1000bb80
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000bb80
push 0x1007469c
lea eax, [ebp - 0x28]
push eax
call fcn.1000bb80
mov eax, dword [ebx + 0x44]
add eax, esi
push eax
lea ecx, [ebx + 0x14]
call fcn.1000bb80
push 0xa
mov ecx, ebx
call fcn.1000bb80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1002aa70
Capabilities:
Query remote server for available data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005fa38
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push edi
mov eax, dword [0x1007f45c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push dword [edi + 0x54]
mov dword [ebp - 0x10], 0
call dword [sym.imp.wininet.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x1002aaf3
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1002aaf3
push 0x10063700
lea ecx, [ebp - 0x14]
call fcn.1000bb80
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.1000bb80
push 0x1007469c
lea eax, [ebp - 0x30]
push eax
call fcn.1000bb80
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x1002ab25
mov ecx, dword [edi + 0x18]
sub ecx, dword [edi + 0x14]
add ecx, edx
cmp ecx, 0xa00000
jbe 0x1002ab25
push 0xcaa10025
lea ecx, [ebp - 0x20]
call fcn.1000bb80
push 0x100731f4
lea eax, [ebp - 0x20]
push eax
call fcn.1000bb80
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10032d30
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x34]
call fcn.1003dee0
movzx edi, al
neg edi
sbb edi, edi
push 0xd
mov ecx, esi
and edi, 0x800000
call fcn.1000bb80
cmp dword [esi + 0x48], 0
je 0x10032dcc
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 0x34]
call fcn.1000bb80
push edi
push 0
push 0
push 0
push dword [eax]
push dword [esi + 0x10]
push dword [esi + 0x48]
call dword [sym.imp.winhttp.dll_WinHttpOpenRequest]
mov edx, dword [ebp - 4]
add edx, 0xfffffff0
mov dword [esi + 0x4c], eax
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10032da0
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
cmp dword [esi + 0x4c], 0
jne 0x10032dc3
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000bb80
push 0x10073814
lea eax, [ebp - 0x10]
push eax
call fcn.1000bb80
push 0xe
mov ecx, esi
call fcn.1000bb80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10032de0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061948
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x1007f45c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x44], 0
je 0x10032e29
push 0xcaa10023
lea ecx, [ebp - 0x1c]
call fcn.1000bb80
push 0x10073144
lea eax, [ebp - 0x1c]
push eax
call fcn.1000bb80
movzx eax, byte [esi + 0x41]
neg eax
sbb eax, eax
and eax, 0x10000000
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.winhttp.dll_WinHttpOpen]
mov dword [esi + 0x44], eax
test eax, eax
jne 0x10032e7e
push 0x10063700
lea ecx, [ebp - 0x10]
call fcn.1000bb80
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000bb80
push 0x1007469c
lea eax, [ebp - 0x2c]
push eax
call fcn.1000bb80
push 1
mov ecx, esi
call fcn.1000bb80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10032ea0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060c88
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x1007f45c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x1c], eax
mov edi, dword [eax + 0x18]
sub edi, dword [eax + 0x14]
mov edx, dword [ebp + 8]
lea ebx, [eax + 0x14]
add edx, edi
mov dword [ebp - 0x18], edi
cmp edx, 0xa00000
jle 0x10032f01
push 0xcaa10025
lea ecx, [ebp - 0x28]
call fcn.1000bb80
push 0x100731f4
lea eax, [ebp - 0x28]
push eax
call fcn.1000bb80
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov esi, ecx
sub esi, eax
mov byte [ebp - 0x10], 0
cmp edx, esi
jbe 0x10032f25
sub eax, ecx
lea esi, [ebp - 0x10]
push esi
add eax, edx
push eax
push ecx
mov ecx, ebx
call fcn.1000bb80
jmp 0x10032f46
jae 0x10032f46
lea esi, [edx + eax]
cmp esi, ecx
je 0x10032f46
mov edi, ecx
sub edi, ecx
push edi
push ecx
push esi
call fcn.1000bb80
lea eax, [edi + esi]
mov edi, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebx + 4], eax
mov eax, dword [ebx]
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 0x4c]
mov dword [ebp - 0x14], 0
call dword [sym.imp.winhttp.dll_WinHttpReadData]
test eax, eax
jne 0x10032f9b
push 0x10063700
lea ecx, [ebp + 8]
call fcn.1000bb80
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x38]
call fcn.1000bb80
push 0x1007469c
lea eax, [ebp - 0x38]
push eax
call fcn.1000bb80
mov eax, dword [ebp - 0x14]
add eax, edi
push eax
mov ecx, ebx
call fcn.1000bb80
push 0xa
mov ecx, esi
call fcn.1000bb80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10033280
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060d59
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x1007f45c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1007f3e4]
mov ecx, 0x1007f3e4
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
mov dword [ebp - 0x14], 1
push dword [edi + 0x4c]
call dword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10033389
mov eax, dword [ebp - 0x10]
cmp eax, 0xa00000
jbe 0x1003332c
push 0xcaa10025
lea ecx, [ebp - 0x20]
call fcn.1000bb80
push 0x100731f4
lea eax, [ebp - 0x20]
push eax
call fcn.1000bb80
shr eax, 1
dec eax
push eax
mov ecx, esi
call fcn.1000bb80
push 0
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [edi + 0x4c]
call dword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
mov ecx, dword [esi]
mov edi, eax
test ecx, ecx
je 0x10033367
push dword [ecx - 8]
push ecx
call fcn.1000bb80
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x1003339e
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x1003339e
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
test edi, edi
jne 0x10033389
push 0x10063700
mov ecx, esi
call fcn.1000bb80
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 0xc
push 0x80070057
call fcn.1000bb80
int3

Function at 0x10045816
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10080cd4], 0
push esi
push edi
jne 0x1004578c
call fcn.100456f8
test eax, eax
je 0x100457d1
mov eax, dword [0x10080cd4]
cmp eax, 1
jne 0x100457ad
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x100457d1
jmp 0x10045813
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x10045813
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x100457d5
xor eax, eax
jmp 0x10045813
mov eax, dword [esi]
push dword [0x10080cd4]
call edi
mov edi, eax
test edi, edi
je 0x100457f7
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x10045813
lea edi, [esi + 0xff0]
push esi
push dword [0x10080cd4]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x100457fd
mov eax, esi
pop edi
pop esi
ret
jmp 0x10045778

Function at 0x10045bb2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1007f45c]
jne 0x10045bbc
repz ret
jmp fcn.100490d1
Function at 0x404840
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov edi, edx
mov ebx, ecx
push str.ANDROID_PRODUCT_OUT
call sub.msvcrt.dll_getenv
add esp, 4
test eax, eax
je 0x40499a
cmp byte [eax], 0
mov esi, eax
je 0x40499a
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
push esi
call sub.msvcrt.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x4049a4
mov ecx, eax
cmp eax, 0xb
mov dword [esp + 0x14], edi
jae 0x4048b5
mov eax, ecx
lea edi, [esp + 1]
add al, cl
test ecx, ecx
mov byte [esp], al
jne 0x4048e2
jmp 0x4048f1
mov dword [esp + 0x10], ebx
mov ebx, ecx
add ebx, 0x10
and ebx, 0xfffffff0
push ebx
mov edi, ecx
call fcn.00493b40
mov ecx, edi
add esp, 4
or ebx, 1
mov dword [esp + 8], eax
mov edi, eax
mov dword [esp], ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 4], ecx
push ecx
push esi
push edi
mov esi, ecx
call sub.msvcrt.dll_memcpy
mov ecx, esi
add esp, 0xc
mov byte [edi + ecx], 0
mov ecx, esp
push 0x51b04e
call fcn.004ee250
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x18], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
movzx eax, byte [edx]
test al, 1
je 0x40493b
mov ecx, dword [edx + 8]
mov eax, dword [edx + 4]
mov edx, ecx
jmp 0x40493e
inc edx
shr eax, 1
lea ecx, [esp + 0x18]
push eax
push edx
call fcn.004ee270
mov ecx, dword [eax + 8]
mov dword [ebx + 8], ecx
movsd xmm0, qword [eax]
movsd qword [ebx], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
test byte [esp + 0x18], 1
je 0x40497e
push dword [esp + 0x20]
call fcn.00493cf0
add esp, 4
test byte [esp], 1
je 0x404990
push dword [esp + 8]
call fcn.00493cf0
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push str.ANDROID_PRODUCT_OUT_not_set
call fcn.0040dca0
mov ecx, esp
call fcn.004d7ad0
nop dword [eax + eax]
push edi
push esi
sub esp, 0xc
mov edx, dword [esp + 0x18]
mov ecx, esp
call fcn.00404840
test byte [esp], 1
jne 0x4049d9
lea eax, [esp + 1]
push 0
push eax
call sub.msvcrt.dll__open
add esp, 8
mov esi, eax
jmp 0x4049f3
mov edi, dword [esp + 8]
push 0
push edi
call sub.msvcrt.dll__open
add esp, 8
mov esi, eax
push edi
call fcn.00493cf0
add esp, 4
mov eax, esi
add esp, 0xc
pop esi
pop edi
ret 4
Function at 0x409b90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov ecx, dword [0x53e04c]
mov byte [esp + 4], 0x14
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov word [esp + 0xd], 0x746e
mov dword [esp + 9], 0x756f632d
mov dword [esp + 5], 0x746f6c73
mov byte [esp + 0xf], 0
lea eax, [esp + 0x10]
lea edx, [esp + 4]
push 0
push eax
push edx
call fcn.0040e5a0
test eax, eax
je 0x409c15
test byte [esp + 4], 1
je 0x409c0a
push dword [esp + 0xc]
call fcn.00493cf0
add esp, 4
xor esi, esi
test byte [esp + 0x10], 1
jne 0x409c64
jmp 0x409c70
test byte [esp + 0x10], 1
je 0x409c22
mov eax, dword [esp + 0x18]
jmp 0x409c26
lea eax, [esp + 0x11]
lea ecx, [esp + 0x1c]
push 0x7fffffff
push 0x80000000
push ecx
push eax
call fcn.004d2450
add esp, 0x10
test byte [esp + 4], 1
mov ebx, eax
je 0x409c53
push dword [esp + 0xc]
call fcn.00493cf0
add esp, 4
xor esi, esi
test bl, bl
je 0x409c5d
mov esi, dword [esp + 0x1c]
test byte [esp + 0x10], 1
je 0x409c70
push dword [esp + 0x18]
call fcn.00493cf0
add esp, 4
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret
Function at 0x40dec0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov dword [esp + 0x10], 0
mov dword [esp], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x10], 8
mov dword [esp + 0x11], 0x746f6f62
mov byte [esp + 0x15], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov byte [esp], 0xe
mov dword [esp + 4], 0x676e6974
mov dword [esp + 1], 0x746f6f42
mov byte [esp + 8], 0
mov esi, ecx
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x40df95
mov eax, dword [ecx]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edx, esp
push edx
call dword [eax + 0x18]
lea eax, [esp + 0x10]
mov ecx, esi
push 0
push edi
push ebx
push eax
call fcn.0040e600
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x40df95
mov edi, eax
mov eax, dword [ecx]
lea edx, [esp + 0x20]
push edx
call dword [eax + 0x18]
test byte [esp], 1
je 0x40df76
push dword [esp + 8]
call fcn.00493cf0
add esp, 4
test byte [esp + 0x10], 1
je 0x40df89
push dword [esp + 0x18]
call fcn.00493cf0
add esp, 4
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.00506440
nop word [eax + eax]

Function at 0x40e840
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov dword [esp + 0x14], 0
mov byte [esp + 0xc], 0xc
mov dword [esp], 0
mov word [esp + 0x11], 0x746f
mov dword [esp + 0xd], 0x6f626572
mov byte [esp + 0x13], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov byte [esp], 0x12
mov dword [esp + 5], 0x6e69746f
mov dword [esp + 1], 0x6f626552
mov word [esp + 9], 0x67
mov esi, ecx
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x40e90e
mov eax, dword [ecx]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edx, esp
push edx
call dword [eax + 0x18]
lea eax, [esp + 0xc]
mov ecx, esi
push 0
push edi
push ebx
push eax
call fcn.0040e600
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x40e90e
mov edi, eax
mov eax, dword [ecx]
lea edx, [esp + 0x18]
push edx
call dword [eax + 0x18]
test byte [esp], 1
je 0x40e8ef
push dword [esp + 8]
call fcn.00493cf0
add esp, 4
test byte [esp + 0xc], 1
je 0x40e902
push dword [esp + 0x14]
call fcn.00493cf0
add esp, 4
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.00506440
nop word cs:[eax + eax]
nop dword [eax]

Function at 0x414130
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [ebp + 8]
lea ecx, [esp + 4]
mov dword [esp + 4], pe_nt_image_headers32
lea edx, [esp + 8]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
jne 0x414172
movzx eax, word [esp + 0xa]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov esp, ebp
pop ebp
ret
Function at 0x4142a0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov esi, 0xffffffff
call fcn.00414380
test al, al
je 0x41436f
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esp + 0xc], 0
lea edi, [esp + 0x30]
movaps xmmword [esp + 0x10], xmm0
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x18], eax
push ecx
push 0x51dfc4
push 0x10
push edi
call fcn.004d17d0
add esp, 0x10
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push edi
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
mov eax, dword [esp + 0xc]
jne 0x414344
test eax, eax
je 0x414344
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp eax, 0xffffffff
mov eax, dword [esp + 0xc]
je 0x414356
push dword [eax + 0x10]
push dword [eax + 0x18]
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x414359
push dword [esp + 0xc]
jmp 0x41434e
mov esi, 0xffffffff
test eax, eax
je 0x41436f
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x41436f
push eax
jmp 0x414364
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov esi, 0xffffffff
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret

Function at 0x414380
Capabilities:
Initialize winsock library

Disassembly:
cmp byte [0x53e6e8], 0
mov al, 1
je 0x41438c
ret
sub esp, 0x190
mov eax, esp
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
sete al
sete byte [0x53e6e8]
add esp, 0x190
ret
Function at 0x41d8f0
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x41d92d
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
xor ebp, ebp
nop word cs:[eax + eax]
mov eax, esi
sub eax, ebp
push eax
push edi
push ebx
call sub.msvcrt.dll__read
add esp, 0xc
test eax, eax
js 0x41d931
je 0x41d93f
add ebp, eax
add edi, eax
cmp ebp, esi
jb 0x41d910
xor eax, eax
jmp 0x41d944
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, eax
xor eax, eax
sub eax, dword [ecx]
jmp 0x41d944
mov eax, 0xffffffea
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x41dd40
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x1c]
push ebx
call sub.msvcrt.dll_malloc
add esp, 4
test eax, eax
je 0x41dda8
mov edi, dword [esp + 0x20]
mov esi, eax
push 0
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push edi
call fcn.004c2f70
add esp, 0x10
test edx, edx
js 0x41dd9f
test ebx, ebx
mov dword [esp], esi
je 0x41ddc4
mov esi, dword [esp]
xor ebp, ebp
nop
mov eax, ebx
sub eax, ebp
push eax
push esi
push edi
call sub.msvcrt.dll__read
add esp, 0xc
test eax, eax
js 0x41ddb4
je 0x41dddb
add ebp, eax
add esi, eax
cmp ebp, ebx
jb 0x41dd80
jmp 0x41ddc4
push esi
call fcn.004d1090
add esp, 4
call dword [sym.imp.msvcrt.dll__errno]
xor edi, edi
sub edi, dword [eax]
jmp 0x41ddeb
call dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [eax]
test edi, edi
jle 0x41ddc4
neg edi
jmp 0x41dde0
mov eax, dword [esp + 0x18]
mov esi, dword [esp]
mov ecx, dword [eax + 0x14]
push esi
push ebx
push eax
call dword [ecx]
add esp, 0xc
mov edi, eax
push esi
jmp 0x41dde3
mov edi, 0xffffffea
push dword [esp]
call fcn.004d1090
add esp, 4
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x41e520
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
push esi
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
not eax
test ecx, ecx
je 0x41e556
mov edx, dword [esp + 0x10]
nop word cs:[eax + eax]
nop
movzx esi, byte [edx]
movzx edi, al
shr eax, 8
inc edx
xor edi, esi
xor eax, dword [edi*4 + 0x51fc74]
dec ecx
jne 0x41e540
not eax
pop esi
pop edi
ret
Function at 0x41ec70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x238
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test byte [esi], 1
jne 0x41ec91
mov word [esi], 0
jmp 0x41ec9e
mov eax, dword [esi + 8]
mov byte [eax], 0
mov dword [esi + 4], 0
mov eax, esp
push eax
push edi
call dword [sym.imp.msvcrt.dll__fstati64]
add esp, 8
cmp eax, 0xffffffff
je 0x41ecc8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp eax, 1
sbb ecx, 0
jl 0x41ecc8
mov ecx, esi
push eax
call fcn.004ef1f0
lea ebx, [esp + 0x34]
jmp 0x41ecd9
mov ecx, esi
push eax
push ebx
call fcn.004ee270
push 0x200
push ebx
push edi
call sub.msvcrt.dll__read
add esp, 0xc
cmp eax, 0xffffffff
je 0x41ed00
test eax, eax
jg 0x41ecd0
jmp 0x41ed0f
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x41ecd9
xor eax, eax
jmp 0x41ed12
sete al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x41ef50
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov ebp, dword [sym.imp.msvcrt.dll__errno]
test esi, esi
je 0x41efac
nop word [eax + eax]
push esi
push edi
push ebx
call sub.msvcrt.dll__read
add esp, 0xc
cmp eax, 0xffffffff
jne 0x41ef90
call ebp
cmp dword [eax], 4
je 0x41ef70
jmp 0x41efa5
mov ecx, eax
add edi, eax
xor eax, eax
test ecx, ecx
mov edx, ecx
cmovle edx, eax
sub esi, edx
test ecx, ecx
jg 0x41ef66
jmp 0x41efa7
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
mov al, 1
jmp 0x41efa7

Function at 0x41efb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov ecx, dword [ebp + 0x10]
mov al, 1
test ecx, ecx
mov dword [esp + 8], ecx
je 0x41f077
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 4], eax
mov dword [esp], ecx
nop word cs:[eax + eax]
nop dword [eax]
mov eax, dword [esp]
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], eax
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__get_osfhandle]
add esp, 4
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x10]
push ecx
push dword [esp + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f060
mov eax, dword [esp + 0xc]
mov ebx, esi
cmp eax, 0xffffffff
je 0x41f06a
test eax, eax
jle 0x41f075
mov ecx, eax
add edi, eax
mov esi, ebx
sar ecx, 0x1f
add dword [esp], eax
adc dword [esp + 4], ecx
sub dword [esp + 8], eax
jne 0x41eff0
jmp 0x41f07f
mov ebx, esi
call esi
mov dword [eax], 5
call ebx
cmp dword [eax], 4
je 0x41eff0
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov al, 1
jmp 0x41f077