joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411b70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47ff20
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x49b950]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
lea eax, [ebx + 0xc]
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x30], 1
mov dword [esp + 0x48], 0
mov esi, dword [ebx + 0x24]
test esi, esi
je 0x411ca6
call fcn.0045d110
cmp dword [esi], 0xffffffff
je 0x411c32
push 0
push 0
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov dword [esp + 0x14], eax
test eax, eax
je 0x411c32
mov edi, dword [esi]
lea ebx, [eax + 0x18]
push ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x38], 1
mov byte [esp + 0x48], 1
call fcn.0045d110
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x24], 0x3e3
call fcn.0041a5a0
push ebx
mov byte [esp + 0x4c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.0045d110
mov ecx, dword [esi]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
push 1
lea edx, [esi + 4]
call fcn.0041a690
mov dword [esi], 0xffffffff
mov byte [esi + 4], 0
mov edi, dword [esi + 0xc]
add esp, 8
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
test edi, edi
je 0x411c9b
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x411c9b
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x411c9b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x411bc8
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411d20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x505b78]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x411d38
mov edx, dword [eax + 4]
jmp 0x411d3a
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp eax, 0xff
ja 0x411d59
test edx, edx
je 0x411d59
cmp dword [edx], 0
jne 0x411d59
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax]
mov byte [ecx], al
mov dword [edx], ecx
pop ebp
ret
push dword [ebp + 8]
call fcn.0045d2e7
add esp, 4
pop ebp
ret
Function at 0x411d70
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x49b950]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
push 0
je 0x411dc4
mov ecx, dword [edi + 4]
push 0
push ebx
call fcn.00412830
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d289
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x411dec
mov ecx, dword [edi + 4]
push 0x2719
push ebx
call fcn.00412830
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d289
mov esp, ebp
pop ebp
ret 0x18
push ebx
push dword [ebp + 0x14]
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 8], 0
push dword [ebp - 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x411e48
cmp eax, 0x3e5
je 0x411e48
push dword [ebp - 8]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.00412830
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d289
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [edi + 4]
push ebx
call fcn.004128b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d289
mov esp, ebp
pop ebp
ret 0x18

Function at 0x411e70
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x411ea1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 8], esi
call fcn.0045d110
mov dword [esp + 0xc], eax
test esi, esi
jne 0x411ea9
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x48c6d4
lea ecx, [esp + 8]
call fcn.0041a130
int3

Function at 0x411ec0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [0x505b78]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x411f02
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x411f02
mov eax, dword [ecx]
test eax, eax
je 0x411f02
mov dword [ecx], 0
mov dl, byte [eax]
movzx ecx, dl
cmp ecx, ebx
jb 0x411ef9
mov byte [eax + ebx], dl
pop ebx
pop ebp
ret
push eax
call fcn.0045d2e7
add esp, 4
lea eax, [ebx + 1]
push eax
call fcn.0045d298
add esp, 4
mov ecx, eax
cmp ebx, 0xff
ja 0x411f23
movzx eax, bl
mov byte [ecx + ebx], al
mov eax, ecx
pop ebx
pop ebp
ret
xor eax, eax
mov byte [ecx + ebx], al
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x4122c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x49b950]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
cmp dword [ebx], 0x40
mov esi, dword [ebp + 0x10]
push edi
mov edi, edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
jne 0x4122fa
call fcn.0045d110
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx], 0x2745
cmp dword [ebx], 0
jne 0x4123db
test eax, eax
je 0x41236d
test esi, esi
je 0x41236d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
push eax
push 0
push edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
call dword [sym.imp.MSWSOCK.dll_GetAcceptExSockaddrs]
mov edi, dword [ebp - 8]
cmp edi, dword [esi]
jbe 0x41235c
call fcn.0045d110
mov dword [ebx], 0x2726
mov dword [ebx + 4], eax
jmp 0x41236d
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.0045fd70
add esp, 0xc
mov dword [esi], edi
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
cmp esi, 0xffffffff
jne 0x41239a
call fcn.0045d110
mov dword [ebx], 0x2719
mov dword [ebx + 4], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d289
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp - 0x10]
push eax
push 0x700b
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.0045d110
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
test edi, edi
jne 0x4123db
call fcn.0045d110
mov dword [ebx], edi
mov dword [ebx + 4], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d289
mov esp, ebp
pop ebp
ret
Function at 0x415060
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ea7a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x49b950]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.004599cf
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x415106
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], str.bad_locale_name
call fcn.0045da7f
push 0x4928d8
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::runtime_error.0
call fcn.0046044b
push edi
push esi
call fcn.004598ab
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045d289
mov esp, ebp
pop ebp
ret 4

Function at 0x418dd0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x49b950]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp esi, 0xffffffff
jne 0x418e10
call fcn.0045d110
mov dword [edi + 4], eax
mov dword [edi], 0x2719
or eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d289
mov esp, ebp
pop ebp
ret
push 0
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], 1
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x110], 1
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push esi
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.0045d110
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
js 0x418e77
call fcn.0045d110
mov dword [edi], 0
mov dword [edi + 4], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0045d289
mov esp, ebp
pop ebp
ret
Function at 0x418fe0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x49b950]
xor eax, esp
mov dword [esp + 8], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
jne 0x419017
call fcn.0045d110
mov dword [ebx], 0x2719
mov dword [ebx + 4], eax
jmp 0x419050
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
call fcn.0045d110
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
test edi, edi
jne 0x41904c
call fcn.0045d110
mov dword [ebx], edi
mov dword [ebx + 4], eax
mov esi, dword [esp + 0x10]
call fcn.0045d110
cmp dword [ebx + 4], eax
jne 0x419062
cmp dword [ebx], 0x2734
je 0x41907c
call fcn.0045d110
cmp dword [ebx + 4], eax
jne 0x41911c
cmp dword [ebx], 0x2733
jne 0x41911c
mov edx, ebx
mov ecx, esi
call fcn.00418dd0
test eax, eax
js 0x41911c
mov dword [esp + 0xc], 0
cmp esi, 0xffffffff
jne 0x4190ba
call fcn.0045d110
mov dword [ebx], 0x2719
mov dword [ebx + 4], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0045d289
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push 0x1007
push 0xffff
push esi
mov dword [esp + 0x24], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
mov edi, eax
call fcn.0045d110
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
test edi, edi
jne 0x419109
call fcn.0045d110
mov dword [ebx], edi
mov dword [ebx + 4], eax
jmp 0x41910e
cmp edi, 0xffffffff
je 0x41911c
call fcn.0045d110
mov ecx, dword [esp + 0xc]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045d289
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x49b950]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ebx
cmp esi, 0xffffffff
jne 0x419177
call fcn.0045d110
mov dword [edi + 4], eax
mov dword [edi], 0x2719
or eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d289
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebx]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [ebp - 8]
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax], ecx
call fcn.0045d110
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x4191bc
call fcn.0045d110
mov dword [edi], ebx
mov dword [edi + 4], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0045d289
mov esp, ebp
pop ebp
ret
Function at 0x419220
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x49b950]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
push 0
mov esi, edx
mov dword [ebp - 8], edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 1
push 0
push 0
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
call fcn.0045d110
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
cmp edi, 0xffffffff
jne 0x419282
or eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d289
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 8], 0x17
jne 0x4192a0
push 4
lea eax, [ebp - 8]
push eax
push 0x1b
push 0x29
push edi
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_setsockopt]
call fcn.0045d110
mov ecx, dword [ebp - 4]
mov dword [ebx + 4], eax
mov eax, edi
pop edi
pop esi
mov dword [ebx], 0
xor ecx, ebp
pop ebx
call fcn.0045d289
mov esp, ebp
pop ebp
ret

Function at 0x41a4e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x49b950]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0
mov edi, edx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 1
push edi
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call fcn.0045d110
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
cmp eax, 0x40
jne 0x41a543
call fcn.0045d110
mov dword [ebx], 0x2746
jmp 0x41a555
cmp eax, 0x4d2
jne 0x41a558
call fcn.0045d110
mov dword [ebx], 0x274d
mov dword [ebx + 4], eax
test edi, edi
je 0x41a570
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d289
mov esp, ebp
pop ebp
ret
call fcn.0045d110
mov ecx, dword [ebp - 4]
pop edi
mov dword [ebx + 4], eax
mov eax, dword [ebp - 8]
pop esi
mov dword [ebx], 0
xor ecx, ebp
pop ebx
call fcn.0045d289
mov esp, ebp
pop ebp
ret
Function at 0x41a690
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x49b950]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
mov eax, ecx
mov esi, edx
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x41a7ac
cmp byte [ebp + 8], bl
je 0x41a714
test byte [esi], 8
je 0x41a714
xor eax, eax
mov dword [esp + 0x18], eax
call fcn.0045d110
or byte [esi], 8
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ebx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x1c]
push eax
push 0x80
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.0045d110
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x41a716
call fcn.0045d110
jmp 0x41a716
mov ebx, eax
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.0045d110
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
je 0x41a7ac
call fcn.0045d110
cmp dword [edi + 4], eax
jne 0x41a74f
cmp dword [edi], 0x2733
je 0x41a761
call fcn.0045d110
cmp dword [edi + 4], eax
jne 0x41a7a8
cmp dword [edi], 0x4d5
jne 0x41a7a8
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0x8004667e
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [esp + 0x14]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.0045d110
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x41a7ba
call fcn.0045d110
mov dword [edi], 0
mov dword [edi + 4], eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0045d289
mov esp, ebp
pop ebp
ret
Function at 0x478cf3
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00467ac9
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x478d2b
xor eax, eax
jmp 0x478d57
cmp esi, dword [ebp - 4]
je 0x478d54
cmp dword [ebp + 0xc], 0
je 0x478d54
push dword [edi + 0x9c]
call fcn.00478901
push dword [edi + 0x9c]
mov esi, eax
call fcn.00463685
pop ecx
pop ecx
cmp esi, eax
je 0x478d27
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x40d770
Capabilities:
Encode data using xor

Disassembly:
sbb ch, dh
jmp 0x40d77f
cmp ebp, 0xc2a6
je 0x40d789
dec dh
mov cl, cl
sbb eax, 0xf78c112d
xchg esi, edx
neg dh
sub ebx, ebp
push ebx
cmp edi, ecx
pop esi
dec dl
mov bh, bh
push esi
xor eax, 0x782c0d01
pop eax
sbb esi, 0xaac802dc
bswap esi
mov ecx, eax
dec eax
xor ebp, ecx
jae 0x40d7b9
mov al, 0x50
imul ebp, eax, 0x26b8ba0
lea ebx, [0x7d8b3393]
imul esi, eax
xor dh, 0xa0
test ch, al
jne 0x40d7d8
mov ah, 0x22
movzx ebp, cl
sub cl, bh
inc edx
test al, dl
test esi, esi
mov ah, 0x7c
mov edi, esi
lea ebx, [0x4a4]
lea ecx, [0x6767830f]
sub ebx, 0x4a4
add al, 0xae
mov ebx, 0
mov dl, cl
jmp 0x40d802
add ebx, 0x757
xor ebx, 0xbb7
movzx edx, ax
mov edi, ecx
cmp ah, dh
sub ebx, 0x18b
add ebx, 0x18a
dec eax
xchg cl, ah
mov al, al
cmp ebx, 0x56c
jae 0x40d80e
imul edx, ecx
cmp edx, esi
jno 0x40d839
test al, bl
bswap edx
call fcn.0040d8c0
sub edx, ecx
cmp esi, ecx
xor edi, 0xe343
cmp ecx, 0x3fd3
ja 0x40d858
lea ebp, [0xd4ee3400]
bswap ecx
cmp eax, 0x4269
ja 0x40d863
neg eax
xchg ebp, ecx
xchg ah, dl
test al, 0x1a
lea ebx, [0]
lea eax, [0x16f8a4c6]
test bh, dl
lea ebp, [0xdcd31c53]
sub eax, 0xdcd31c53
mov ch, 0x4e
mov edi, 0x4eea7
lea edx, [0x34a2e8e9]
xor edi, 0xd694
adc eax, 0x7d6153a6
sub edi, 0x717
cmp dh, 0xd8
lea esi, [edi]
dec eax
xor esi, 0x4377a
bswap ebp
xadd ebx, esi
sub ebx, 0x665
inc edx
bswap edx
mov al, 0xa5
cmp ebx, 0x5ff
jb 0x40d86e

Function at 0x4120e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x422500
cmp edx, dword [eax]
je 0x412107
add eax, 8
inc ecx
cmp eax, 0x422590
jl 0x4120f8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x422500]
jne 0x412235
mov eax, dword [0x426e28]
cmp eax, 1
je 0x41220f
test eax, eax
jne 0x412138
cmp dword [0x421fb8], 1
je 0x41220f
cmp edx, 0xfc
je 0x412235
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41216f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00411610
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040cc00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4121b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040cc00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41f5e0
push edi
call fcn.004145f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00411610
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00411620
lea eax, [ebp - 0xa0]
push 0x41f5c0
push eax
call fcn.00411620
push dword [esi + 0x422504]
lea eax, [ebp - 0xa0]
push eax
call fcn.00411620
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00414f31
add esp, 0x2c
pop edi
jmp 0x412235
lea eax, [ebp + 8]
lea esi, [esi + 0x422504]
push 0
push eax
push dword [esi]
call fcn.0040cc00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x100026b0
Capabilities:
Terminate process
Terminate thread

Disassembly:
sub esp, 8
mov byte [0x10055c81], 1
cmp dword [0x10055c8c], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esi, ecx
je 0x100026f9
mov eax, dword [0x10055c8c]
push 0x1388
push eax
call ebx
test eax, eax
je 0x100026ef
mov eax, dword [0x10055c8c]
push 0
push eax
call edi
mov dword [0x10055c8c], 0
cmp dword [0x10055c88], 0
je 0x10002727
mov eax, dword [0x10055c88]
push 0x898
push eax
call ebx
test eax, eax
je 0x1000271d
mov eax, dword [0x10055c88]
push 0
push eax
call edi
mov dword [0x10055c88], 0
cmp dword [0x10055c84], 0
je 0x10002755
mov eax, dword [0x10055c84]
push 0xc8
push eax
call ebx
test eax, eax
je 0x1000274b
mov eax, dword [0x10055c84]
push 0
push eax
call edi
mov dword [0x10055c84], 0
mov eax, dword [esi + 0x416c]
test eax, eax
je 0x1000277f
push 0xc8
push eax
call ebx
test eax, eax
je 0x10002775
push 0
push dword [esi + 0x416c]
call edi
mov dword [esi + 0x416c], 0
cmp dword [0x10073dc4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x100027cf
lea eax, [esp + 0xc]
push eax
mov eax, dword [0x10073dc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x100027b3
cmp dword [esp + 0xc], 0x103
jne 0x100027bd
mov eax, dword [0x10073dc4]
push 0
push eax
call ebx
mov eax, dword [0x10073dc4]
push eax
call edi
mov dword [0x10073dc4], 0
cmp dword [0x10055c94], 0
je 0x10002813
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x10055c94]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x100027f7
cmp dword [esp + 0x10], 0x103
jne 0x10002801
mov eax, dword [0x10055c94]
push 0
push eax
call ebx
mov eax, dword [0x10055c94]
push eax
call edi
mov dword [0x10055c94], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x10002824
push eax
call edi
mov dword [esi + 8], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10002835
push eax
call edi
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10002846
push eax
call edi
mov dword [esi + 0x10], 0
cmp dword [0x10055c90], 0
je 0x10002861
mov eax, dword [0x10055c90]
push eax
call edi
mov dword [0x10055c90], 0
lea ecx, [esi + 0x419c]
call fcn.10009470
lea ecx, [esi + 0x4198]
call fcn.10009410
lea ecx, [esi + 0x4180]
call fcn.10009470
lea ecx, [esi + 0x413c]
call fcn.100094a0
lea ecx, [esi + 0x4130]
call fcn.100094a0
lea ecx, [esi + 0x4124]
call fcn.100094a0
lea ecx, [esi + 0x40e0]
call fcn.100094e0
lea ecx, [esi + 0x40d0]
call fcn.10009490
lea ecx, [esi + 0x40a8]
call fcn.10009470
lea ecx, [esi + 0x4090]
call fcn.10009480
lea ecx, [esi + 0x407c]
call fcn.10009480
lea ecx, [esi + 0x60]
call fcn.100094a0
lea ecx, [esi + 0x54]
call fcn.100094a0
lea ecx, [esi + 0x48]
call fcn.100094a0
pop edi
lea ecx, [esi + 0x30]
pop esi
pop ebx
add esp, 8
jmp fcn.10009470