joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004c9b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x1004c9db
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1004d200
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x1004c9fd
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x1004c9ff
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x1004ca9e
jg 0x1004ca1c
test esi, esi
je 0x1004ca9e
test ecx, ecx
jl 0x1004ca69
jg 0x1004ca26
test eax, eax
je 0x1004ca69
cmp ebx, ecx
jg 0x1004ca3a
jl 0x1004ca30
cmp esi, eax
jae 0x1004ca3a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.100cd1c0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x1004ca70
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x1004ca9e
jg 0x1004ca7a
test esi, esi
je 0x1004ca9e
cmp dword [edi + 0x4c], 0
je 0x1004ca9e
mov ecx, edi
call fcn.1004dde0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.100d9f3e
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1004ce00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1013306c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1004ce30
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10070d87
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1004ce6c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1004ce6c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10070d87
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x1004cf53
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1004ce94
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1004cec7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.100d6316
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10070d87
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x1004cf53
cmp eax, 1
jle 0x1004cf26
cmp eax, 3
jne 0x1004cf53
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.100d6316
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10070d87
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1004cf43
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100de0d3
add esp, 0x10
cmp edi, eax
jne 0x1004cf53
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x1004ce57
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10070d87
mov esp, ebp
pop ebp
ret 4
Function at 0x1004de10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1013306c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x1004deb1
cmp byte [esi + 0x3d], 0
je 0x1004deb1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1004de67
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1004de79
sub eax, 1
je 0x1004de7d
sub eax, 2
je 0x1004deb1
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10070d87
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1004de9a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.100de0d3
add esp, 0x10
cmp edi, eax
jne 0x1004de67
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10070d87
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.10070d87
mov esp, ebp
pop ebp
ret

Function at 0x1004e0c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f7fd0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1013306c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10071051
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1005a1db
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x10], ecx
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x34], esi
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov ecx, edi
mov eax, dword [edi + 0x20]
push 0
push 0
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
call fcn.1004ded0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x100545f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fc157
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x1013306c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x10137b70]
test eax, eax
jne 0x100546d1
push 0x10137b78
mov dword [ebp - 0x10], 0x10137b78
call fcn.1005ae7d
add esp, 4
test eax, eax
je 0x10054644
push eax
call fcn.1005aa49
add esp, 4
mov dword [ebp - 4], 0
mov esi, dword [0x10137b70]
test esi, esi
jne 0x100546ae
push 1
call fcn.10071051
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
call fcn.100546f0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
mov dword [0x10137b28], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x10137b1c
push 0
push esi
push 0x100541e0
push 0
push 0
call fcn.100de62d
add esp, 0x18
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x10137b70], esi
push 0x10137b78
mov dword [ebp - 4], 2
call fcn.1005aea2
add esp, 4
test eax, eax
je 0x100546cf
push eax
call fcn.1005aa49
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10054820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x5c
mov eax, dword [0x1013306c]
xor eax, esp
mov dword [esp + 0x58], eax
push esi
push 9
push str.EnableLog
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0xf
mov byte [esp + 0x20], 0
call fcn.10004c40
mov esi, dword [0x10133b20]
lea eax, [esp + 0xc]
push eax
push 0x20119
push 0
push str.SOFTWAREASUSARMOURY_CRATE_Diagnosis
xorps xmm0, xmm0
mov dword [esp + 0x50], 0
push reloc.OLEAUT32.dll_SysReAllocString
movaps xmmword [esp + 0x44], xmm0
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100548c6
cmp dword [esp + 0x2c], 0x10
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
push ecx
push 0
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push 0
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
cmove esi, dword [esp + 0x14]
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], vtable.dali::RegReader.0
call fcn.1000fa00
mov edx, dword [esp + 0x2c]
cmp edx, 0x10
jb 0x10054909
mov ecx, dword [esp + 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100548ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005491b
push edx
push ecx
call fcn.100713c7
add esp, 8
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.10070d87
mov esp, ebp
pop ebp
ret
call fcn.100d4798
int3
Function at 0x10054b90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fc253
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x15c
mov eax, dword [0x1013306c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x164], esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x160]
mov dword [ebp - 0x16c], esi
mov dword [ebp - 0x168], 0
push 7
push str.LogPath
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0xf
mov byte [ebp - 0x160], 0
call fcn.10004c40
push 0x10133c30
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 1
call fcn.10004880
xorps xmm0, xmm0
mov dword [ebp - 0x138], 0
movups xmmword [ebp - 0x148], xmm0
mov dword [ebp - method.dali::RegReader.virtual_0], vtable.dali::RegReader.0
mov byte [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0
mov byte [ebp - 4], 3
mov ecx, esi
push 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push 0x1011bac0
mov byte [esi], 0
call fcn.10004c40
lea eax, [ebp - 0x164]
mov dword [ebp - 0x168], 1
push eax
push 0x20119
push 0
push str.SOFTWAREASUSARMOURY_CRATE_Diagnosis
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x134], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10054d17
cmp dword [ebp - 0x14c], 0x10
lea ecx, [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x118]
push ecx
push 0
lea eax, [ebp - 0x160]
cmovae eax, dword [ebp - 0x160]
push 0
push eax
push dword [ebp - 0x164]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10054d17
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10054d05
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
jmp 0x10054d35
lea eax, [ebp - 0x130]
cmp esi, eax
je 0x10054d3d
cmp dword [ebp - 0x11c], 0x10
push dword [ebp - 0x120]
cmovae eax, dword [ebp - 0x130]
push eax
mov ecx, esi
call fcn.10004c40
lea ecx, [ebp - 0x148]
mov dword [ebp - method.dali::RegReader.virtual_0], vtable.dali::RegReader.0
call fcn.1000fa00
mov edx, dword [ebp - 0x11c]
cmp edx, 0x10
jb 0x10054d88
mov ecx, dword [ebp - 0x130]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10054d7e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10054ddd
push edx
push ecx
call fcn.100713c7
add esp, 8
mov edx, dword [ebp - 0x14c]
cmp edx, 0x10
jb 0x10054dbe
mov ecx, dword [ebp - 0x160]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10054db4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10054de2
push edx
push ecx
call fcn.100713c7
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10070d87
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.100d4798
call fcn.100d4798
int3
Function at 0x10055340
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1013306c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10133b20]
mov edx, dword [ebp + 8]
push esi
test eax, eax
jle 0x100553d5
cmp eax, 3
jl 0x100553d5
mov ecx, edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10055380
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.10004c40
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x100553d5
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100553cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100553e6
push edx
push ecx
call fcn.100713c7
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10070d87
mov esp, ebp
pop ebp
ret 8
call fcn.100d4798
int3

Function at 0x100553f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x1013306c]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [0x10133b20]
mov edx, dword [ebp + 8]
push esi
test eax, eax
jle 0x100554a7
cmp eax, dword [ebp + 0xc]
jl 0x100554a7
mov ecx, edx
mov dword [esp + 0x14], 0
xor eax, eax
mov dword [esp + 0x18], 7
mov word [esp + 4], ax
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10055440
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0xc]
call fcn.10004ac0
cmp dword [esp + 0x18], 8
lea eax, [esp + 4]
cmovae eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [esp + 0x18]
cmp edx, 8
jb 0x100554a7
mov ecx, dword [esp + 4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005549d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100554b9
push edx
push ecx
call fcn.100713c7
add esp, 8
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.10070d87
mov esp, ebp
pop ebp
ret 8
call fcn.100d4798
int3
Function at 0x10057a90
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0
lea esi, [edi + 4]
jne 0x10057b05
cmp dword [0x10133cd4], 0x10
mov eax, 0x10133cc0
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cmovae eax, dword [0x10133cc0]
push 0
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push eax
push esi
call ebx
test eax, eax
jne 0x10057b05
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x10057bb0
cmp dword [0x10133cd4], 0x10
mov eax, 0x10133cc0
push 8
cmovae eax, dword [0x10133cc0]
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push eax
push esi
call ebx
test eax, eax
je 0x10057bb0
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jne 0x10057b28
push ebx
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10057bb0
mov eax, dword [edi + 8]
add edi, 8
test eax, eax
je 0x10057b3f
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [edi], 0
mov edx, dword [0x10133cbc]
mov ecx, 0x10133ca8
cmp edx, 0x10
cmovae ecx, dword [0x10133ca8]
lea eax, [ecx + 1]
mov dword [ebp - 4], eax
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10057b60
sub ecx, dword [ebp - 4]
mov eax, 0x10133ca8
push 0
cmp edx, 0x10
push ecx
cmovae eax, dword [0x10133ca8]
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x10057bb0
push edi
push 0x800000
push dword [ebx]
push 0x6801
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x10057bb0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10072840
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x1013306c]
xor eax, esp
mov dword [esp + 0x190], eax
mov eax, dword [0x10136e04]
mov ecx, eax
inc eax
mov dword [0x10136e04], eax
test ecx, ecx
je 0x1007287c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.10070d87
add esp, 0x194
ret
cmp byte [esp + 0x19c], 0
je 0x100728b8
mov dword [fcn.100dd437], 0x100dd437
mov dword [fcn.100dd41a], 0x100dd41a
mov dword [fcn.100dfd51], 0x100dfd51
mov dword [0x101330b4], 0x100f7b2c
mov dword [fcn.100df61d], 0x100df61d
push ebx
call fcn.1007efa0
test eax, eax
je 0x100728fa
mov ebx, dword [esp + 0x19c]
test bl, 2
ret
invalid
je 0x1007291d
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x100728fa
mov eax, dword [esp + 4]
cmp al, 2
jne 0x10072915
shr eax, 8
cmp al, 2
jne 0x10072915
call fcn.1007db90
test eax, eax
je 0x1007291d
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.10070d87
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x100728fa
call sym.ArmouryAIOSDK.dll_timerCallback
test eax, eax
jne 0x100728fa
call fcn.1007bcb0
mov eax, dword [0x10136f1c]
test bl, 4
mov ecx, 1
mov dword [0x10136e08], ebx
cmovne eax, ecx
mov dword [0x10136f1c], eax
call fcn.100878d0
mov ecx, dword [esp + 0x194]
xor eax, eax
pop ebx
xor ecx, esp
call fcn.10070d87
add esp, 0x194
ret
Function at 0x1007a400
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x1013306c]
xor eax, esp
mov dword [esp + 0x14], eax
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x1007a4da
lea eax, [esp + 4]
push eax
push edi
push 2
call fcn.10094020
add esp, 0xc
test eax, eax
jne 0x1007a4da
lea eax, [esp + 8]
push eax
push edi
push 0x17
call fcn.10094020
add esp, 0xc
test eax, eax
jne 0x1007a4da
push ebx
push ebp
push esi
mov esi, edi
xor ebx, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1007a455
sub esi, ecx
push esi
push 0x2e
push edi
call fcn.10093ff0
add esp, 0xc
test eax, eax
je 0x1007a489
sub eax, edi
push eax
push 0x2e
push edi
call fcn.10093ff0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1007a48b
inc ebx
mov ecx, edi
sub ecx, ebx
add esi, ecx
test ebx, ebx
cmovne edi, ebx
xor ecx, ecx
xor ebp, ebp
mov ebx, 0x1505
lea eax, [esi + edi]
cmp edi, eax
cmova esi, ecx
test esi, esi
je 0x1007a4c4
mov al, byte [edi]
push eax
call fcn.100879a0
movsx ecx, al
lea edi, [edi + 1]
mov eax, ebx
inc ebp
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp ebp, esi
jb 0x1007a4a3
pop esi
pop ebp
movzx eax, bl
pop ebx
pop edi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10070d87
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop edi
xor ecx, esp
call fcn.10070d87
add esp, 0x18
ret

Function at 0x1007bcb0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [0x101330bc]
cmp eax, 0xffffffff
jne 0x1007bcf2
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x1007bcd8
xor eax, eax
test eax, eax
mov dword [0x101330bc], eax
setg al
ret
push eax
push 0
mov dword [0x101330bc], 1
call fcn.10085c30
mov eax, dword [0x101330bc]
add esp, 8
test eax, eax
setg al
ret

Function at 0x1007bd00
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2d0], 2
jne 0x1007bd55
mov eax, dword [0x101330bc]
cmp eax, 0xffffffff
jne 0x1007bd4f
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x1007bd35
xor eax, eax
test eax, eax
mov dword [0x101330bc], eax
setg al
ret
push eax
push 0
mov dword [0x101330bc], 1
call fcn.10085c30
mov eax, dword [0x101330bc]
add esp, 8
test eax, eax
setg al
ret
mov al, 1
ret
Function at 0x10085110
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x608], 0
je 0x10085154
push esi
push 1
push edi
call fcn.10076160
push dword [edi + 0x594]
mov eax, dword [edi + 0x608]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.10076160
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x1008518d
push dword [edi + 0x590]
lea eax, [eax + eax*2]
push 1
add eax, 0x10105a08
push 2
push eax
call fcn.100de0d3
push dword [edi + 0x590]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.100de0d3
add esp, 0x20
xor eax, eax
pop edi
ret

Function at 0x10085860
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, 0x1cc
mov ecx, dword [edi + 0x1ac]
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1a8]
mov ebp, dword [eax + edi]
mov eax, 0x1dc
cmove esi, eax
mov eax, dword [edi + 0x2c8]
add esi, edi
mov ebx, dword [esi + 4]
sub ebx, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x10085938
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1bc]
cmp dword [eax + edi], 0x100854b0
jne 0x10085938
cmp dword [esi], 0
je 0x100858c8
test ebx, ebx
je 0x10085938
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.10084cd0
add esp, 0x14
cmp eax, 0xffffffff
je 0x10085938
test al, 1
je 0x10085938
mov ecx, dword [esi]
test ecx, ecx
jne 0x10085918
mov eax, dword [edi]
mov eax, dword [eax + 0x900]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x101330a8]
mov ebx, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x10085931
mov eax, dword [esi + 8]
push 0
push ebx
add eax, ecx
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10085938
add dword [esi + 8], eax
jmp 0x10085938
mov dword [esi + 4], 0
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100859a1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x10085972
mov ecx, dword [esp + 0x24]
lea eax, [ebx + 0x52]
pop edi
pop esi
pop ebp
mov dword [ecx], 0
pop ebx
ret
push esi
push edi
call fcn.100abd70
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.100851a0
mov eax, dword [edi]
add esp, 0x14
mov ecx, dword [esp + 0x24]
pop edi
mov dword [eax + 0xd34], esi
mov eax, 0x37
pop esi
pop ebp
mov dword [ecx], ebx
pop ebx
ret
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
pop ebp
mov dword [ecx], ebx
pop ebx
ret
Function at 0x10085cf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x1ec], 0
je 0x10085d0d
push eax
call fcn.1007e730
add esp, 4
test eax, eax
jne 0x10085d2c
xor al, al
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x10085d0a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x10085d0a
mov al, 1
ret