joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b4650
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1034ec97
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x103fbc90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2d8], ecx
mov byte [ebp - 0x2d1], 1
lea eax, [ebp - 0x2d1]
push eax
mov ecx, dword [ebp - 0x2d8]
add ecx, 0x14
push ecx
call fcn.100a8b50
add esp, 8
movzx edx, al
test edx, edx
je 0x100b46ad
jmp 0x100b4858
call fcn.10065830
test eax, eax
je 0x100b46d5
call fcn.10065830
mov dword [ebp - 0x2dc], eax
push 5
mov ecx, dword [ebp - 0x2dc]
call fcn.100783d0
movzx eax, al
test eax, eax
jne 0x100b46da
jmp 0x100b475c
push 0
push 0
push 0x1035cb00
push 0x78
push str.rtc::impl::Init::doInit
push 5
lea ecx, [ebp - 0x140]
call fcn.10070940
mov dword [ebp - 0x2e0], eax
mov ecx, dword [ebp - 0x2e0]
mov dword [ebp - 0x2e4], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2e4]
call fcn.1006e8c0
mov dword [ebp - 0x2e8], eax
push str.Global_initialization
mov ecx, dword [ebp - 0x2e8]
call fcn.1005ec90
mov dword [ebp - 0x2ec], eax
mov edx, dword [ebp - 0x2ec]
push edx
call fcn.10065830
mov ecx, eax
call fcn.100732a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x140]
call fcn.10072330
lea eax, [ebp - 0x2d0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100b480e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.100ae390
add esp, 8
mov dword [ebp - 0x2f0], eax
mov edx, dword [ebp - 0x2f0]
mov dword [ebp - 0x2f4], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x2f4]
push eax
push str.WSAStartup_failed__error
lea ecx, [ebp - 0x28]
push ecx
call fcn.100a52b0
add esp, 0xc
mov dword [ebp - 0x2f8], eax
mov edx, dword [ebp - 0x2f8]
mov dword [ebp - 0x2fc], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2fc]
push eax
lea ecx, [ebp - 0x30c]
call fcn.10048400
push 0x103cffd0
lea ecx, [ebp - 0x30c]
push ecx
call fcn.103171fa
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.1004e8e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.1004e8e0
call fcn.10110010
mov dword [ebp - 0x300], eax
push 4
mov ecx, dword [ebp - 0x300]
call fcn.10110120
call fcn.1010c9c0
mov ecx, eax
call fcn.1010ca90
call fcn.10107a80
call fcn.100c0b50
mov edx, dword [ebp - 0x2d8]
add edx, 0x18
push edx
call fcn.100c0b90
add esp, 4
call fcn.10109e30
call fcn.10112220
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10314cf5
mov esp, ebp
pop ebp
ret
Function at 0x100b4f30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1034ed4d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x103fbc90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10062be0
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10062be0
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.100b51f0
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0x100b4e80
mov edx, dword [ebp - 0x10]
add edx, 4
push edx
push 0
lea ecx, [ebp - 0x14]
call fcn.10073060
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
push 0
call fcn.1032642a
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
je 0x100b4fd1
lea ecx, [ebp - 0x14]
call fcn.1009a840
jmp 0x100b4fe2
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
push 6
call fcn.10301df1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100b5b20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x100e3e20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1035269d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x103fbc90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.10062be0
add esp, 4
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.100e7580
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x100e3060
mov edx, dword [ebp - 0x10]
add edx, 4
push edx
push 0
lea ecx, [ebp - 0x14]
call fcn.100d9cf0
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0
push 0
call fcn.1032642a
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
je 0x100e3ea8
lea ecx, [ebp - 0x14]
call fcn.100d9d00
jmp 0x100e3eb9
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
push 6
call fcn.10301df1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100d9ca0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x10107090
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1035501d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x103fbc90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10062be0
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10062be0
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.10107450
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0x10106fe0
mov edx, dword [ebp - 0x10]
add edx, 4
push edx
push 0
lea ecx, [ebp - 0x14]
call fcn.10073060
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
push 0
call fcn.1032642a
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
je 0x10107131
lea ecx, [ebp - 0x14]
call fcn.1009a840
jmp 0x10107142
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
push 6
call fcn.10301df1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10107760
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x10111670
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10355d3d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x103fbc90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.10062be0
add esp, 4
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.10111910
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x101111c0
mov edx, dword [ebp - 0x10]
add edx, 4
push edx
push 0
lea ecx, [ebp - 0x14]
call fcn.10073060
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0
push 0
call fcn.1032642a
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
je 0x101116f8
lea ecx, [ebp - 0x14]
call fcn.1009a840
jmp 0x10111709
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
push 6
call fcn.10301df1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10107760
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x10126fc0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1012700b
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10126feb
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10127033
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.101270c0
add esp, 0xc
test eax, eax
je 0x1012700b
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x10127027
mov dword [ebp - 8], 0
jmp 0x10127030
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x10127820
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x103fbc90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.10127170
add esp, 4
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x10127847
jmp 0x101278be
push 0x1a
push 8
lea ecx, [ebp - 0xc]
push ecx
push 0x38
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x10127889
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x103e028c
push 0xcf
push 0x103e02b8
push 4
call fcn.10126d90
add esp, 0x14
jmp 0x101278be
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x44]
push eax
push 0x103e02ac
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.1011feb0
add esp, 0x14
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jl 0x101278b7
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp + 0x10]
jb 0x101278b9
jmp 0x101278be
mov eax, dword [ebp - 0x48]
jmp 0x101278d6
push 0x103e02b4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.1011feb0
add esp, 0xc
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10314cf5
mov esp, ebp
pop ebp
ret
Function at 0x10127a30
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
imul eax, dword [ebp + 0x14], 0x88
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
push 0x20
push 0
lea ecx, [ebp - 0x30]
push ecx
call fcn.103170a0
add esp, 0xc
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x24], 0x11
mov dword [ebp - 0x30], 0x400
mov dword [ebp - 8], 0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x10127ab9
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.Address_resolution_failed_for__s:_s
push 0x112
push str.C:dev_work_bt_datachannel_deps_extractlibdatachanneldepslibjuice_src_addr.c
push 3
call fcn.10126d90
add esp, 0x18
or eax, 0xffffffff
jmp 0x10127b3e
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
jmp 0x10127ad1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x10127b31
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 2
je 0x10127ae9
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0x17
jne 0x10127b2f
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 0x10]
je 0x10127b2f
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.10316b20
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x80], ecx
mov edx, dword [ebp + 0x10]
add edx, 0x88
mov dword [ebp + 0x10], edx
jmp 0x10127ac8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x10127b50
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x20
push 0
lea eax, [ebp - 0x24]
push eax
call fcn.103170a0
add esp, 0xc
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x18], 0x11
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0x103e0384
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x10127ba8
xor al, al
jmp 0x10127bb4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x10127ec0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x1f8
push 0
mov eax, dword [ebp + 0x18]
push eax
call fcn.103170a0
add esp, 0xc
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov edi, dword [ebp + 0x18]
add edi, 0x170
mov ecx, 0x22
mov esi, dword [ebp + 0x14]
rep movsd dword es:[edi], dword [esi]
push 0x103e05fc
mov edx, dword [ebp + 0x18]
add edx, 0xc
push edx
call fcn.10328030
add esp, 8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp + 0x18]
movzx ecx, word [eax + 0x170]
push ecx
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
push eax
call fcn.10128980
add esp, 0x10
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 4], eax
push 0x1a
push 0x20
mov edx, dword [ebp + 0x18]
add edx, 0x14f
push edx
push 0x100
mov eax, dword [ebp + 0x18]
add eax, 0x4e
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x80]
push edx
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x10127f91
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.getnameinfo_failed__errno_d
push 0xaa
push 0x103e0738
push 4
call fcn.10126d90
add esp, 0x14
or eax, 0xffffffff
jmp 0x10127f93
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x10127fa0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0x20
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.103170a0
add esp, 0xc
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], 0x11
mov dword [ebp - 0x28], 0x400
cmp dword [ebp + 0xc], 1
je 0x10127fe1
mov ecx, dword [ebp - 0x28]
or ecx, 0xc
mov dword [ebp - 0x28], ecx
mov dword [ebp - 8], 0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x14f
push ecx
mov edx, dword [ebp + 8]
add edx, 0x4e
push edx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x10128046
mov eax, dword [ebp + 8]
add eax, 0x14f
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x4e
push ecx
push str.Failed_to_resolve_address:__s:_s
push 0xbb
push 0x103e0790
push 2
call fcn.10126d90
add esp, 0x18
mov edx, dword [ebp + 8]
mov dword [edx + 0x1f0], 0
or eax, 0xffffffff
jmp 0x101280ad
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x10128057
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x101280a1
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 2
je 0x1012806f
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0x17
jne 0x1012809f
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x1f0], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp + 8]
add eax, 0x170
push eax
call fcn.10316b20
add esp, 0xc
jmp 0x101280a1
jmp 0x1012804e
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1012f9d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1012fa1b
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1012f9fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1012fa43
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.101270c0
add esp, 0xc
test eax, eax
je 0x1012fa1b
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x1012fa37
mov dword [ebp - 8], 0
jmp 0x1012fa40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10132e00
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10132e4b
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10132e2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10132e73
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.101270c0
add esp, 0xc
test eax, eax
je 0x10132e4b
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x10132e67
mov dword [ebp - 8], 0
jmp 0x10132e70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x10132e80
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 2
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
call sub.bcrypt.dll_BCryptGenRandom
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10132ea9
mov dword [ebp - 4], 1
jmp 0x10132eb0
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x10132ebf
mov dword [ebp - 8], 0
jmp 0x10132ec6
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x10132f40
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10132f8b
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10132f6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10132fb3
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.101270c0
add esp, 0xc
test eax, eax
je 0x10132f8b
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x10132fa7
mov dword [ebp - 8], 0
jmp 0x10132fb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10138440
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], 0
mov ecx, dword [ebp + 8]
xor edx, edx
xor eax, eax
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx + 8], 0x6a09e667
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 8], 0xbb67ae85
mov eax, 4
shl eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 8], 0x3c6ef372
mov edx, 4
imul eax, edx, 3
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 8], 0xa54ff53a
mov edx, 4
shl edx, 2
mov eax, dword [ebp + 8]
mov dword [eax + edx + 8], 0x510e527f
mov ecx, 4
imul edx, ecx, 5
mov eax, dword [ebp + 8]
mov dword [eax + edx + 8], 0x9b05688c
mov ecx, 4
imul edx, ecx, 6
mov eax, dword [ebp + 8]
mov dword [eax + edx + 8], 0x1f83d9ab
mov ecx, 4
imul edx, ecx, 7
mov eax, dword [ebp + 8]
mov dword [eax + edx + 8], 0x5be0cd19
pop ebp
ret
Function at 0x101392c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 1], 0
mov dword [ebp - 8], 0
jmp 0x101392e8
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jae 0x1013930f
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
movzx edx, byte [ecx]
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
xor edx, ecx
movzx eax, byte [ebp - 1]
or eax, edx
mov byte [ebp - 1], al
jmp 0x101392df
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x10139320
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 1], 0
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 8]
movzx eax, byte [edx]
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 8]
movzx edx, byte [ecx]
xor eax, edx
movzx ecx, byte [ebp - 1]
or ecx, eax
mov byte [ebp - 1], cl
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 8]
movzx eax, byte [edx]
test eax, eax
je 0x10139374
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 8]
movzx edx, byte [ecx]
test edx, edx
jne 0x10139376
jmp 0x10139381
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x1013933d
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x10139a30
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, 1
test eax, eax
je 0x10139b22
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x80], 0x80
mov edx, dword [ebp + 0x14]
add edx, 0x80
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x10139a96
mov ecx, dword [ebp + 0x14]
add ecx, 0x80
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.10127570
add esp, 8
jmp 0x10139b18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
je 0x10139abd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2744
je 0x10139abd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274d
jne 0x10139b18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x10139ad3
mov dword [ebp - 8], str.ECONNRESET
jmp 0x10139af6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2744
jne 0x10139ae9
mov dword [ebp - 4], str.ENETRESET
jmp 0x10139af0
mov dword [ebp - 4], str.ECONNREFUSED
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
push str.Ignoring__s_returned_by_recvfrom
push 0xd0
push 0x103efae0
push 1
call fcn.10126d90
add esp, 0x14
jmp 0x10139a36
mov eax, dword [ebp - 0xc]
jmp 0x10139b22
mov esp, ebp
pop ebp
ret

Function at 0x10139b30
Capabilities:
Get local ipv4 addresses
Get socket information
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x103fbc90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0x22
mov esi, dword [ebp + 0x14]
lea edi, [ebp - 0x8c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x94], 0x80
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x114]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10139b9c
movzx eax, word [ebp - 0x114]
cmp eax, 0x17
jne 0x10139b9a
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x8c]
push edx
call fcn.10127660
add esp, 8
jmp 0x10139bbc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x103efb34
push 0xe0
push 0x103efbb0
push 3
call fcn.10126d90
add esp, 0x14
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x8c]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10314cf5
mov esp, ebp
pop ebp
ret