joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462580
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4625b3
push esi
call fcn.004708c0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4625ac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x462639
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x462622
mov eax, dword [esi + 8]
test eax, eax
je 0x4625d7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46261e
cmp eax, 2
je 0x462622
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4625ca
cmp eax, 3
je 0x4625fd
cmp eax, 1
jne 0x4625ca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4625ca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4625ca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00462660
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x462648
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00462660
add esp, 4
pop esi
ret

Function at 0x462ed0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x462ef1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x462ef1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x462ef1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x47e670
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x4ca4dc]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x47e683
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x47e6c4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x4ca584]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x47e6f6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x47e6fa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x47e6eb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x47e718
mov bl, byte [esp + ecx + 0x4c]
jmp 0x47e71c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x47e70d
xor ecx, ecx
mov eax, 0x4ca4ec
xor ebx, ebx
mov bl, byte [ecx + 0x4ca594]
cmp byte [esp + ebx + 0x14], 0
je 0x47e747
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x4ca5ac]
cmp byte [esp + ebx + 0x14], 0
je 0x47e75e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x47e72e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x47e6b7
lea edx, [esp + 0x84]
push edx
call fcn.0047e7a0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4858c0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0c18
push 0x489ae4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.00487a50
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x485a70
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x485ab1
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x485b1e
cmp dword [esp + 0x1c], 2
jne 0x485b1e
cmp dword [esp + 0x10], 5
jne 0x485b1e
cmp dword [esp + 0x14], 1
jne 0x485b1e
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x485b08
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x485af9
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x485b01
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
test eax, eax
je 0x485b1e
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret

Function at 0x499872
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4998aa
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004978ff
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004978d7
jmp 0x4998b6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49af67
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49afa9
call fcn.004a0a17
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49afa9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49afa0
xor eax, eax
jmp 0x49afb1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049afb7
pop edi
pop esi
pop ebx
ret 4
Function at 0x4a0f47
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a0f75
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a0f93
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a0ead
jmp 0x4a0f93
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a0f93
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a0ead
test edi, edi
mov eax, edi
jne 0x4a0f7d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001040
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2bc
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2b8], eax
push ebx
mov eax, ecx
mov dword [esp + 4], eax
push esi
push edi
test eax, eax
je 0x100011be
xorps xmm0, xmm0
lea edx, [esp + 0x14]
movdqu xmmword [eax], xmm0
lea ecx, [esp + 0x10]
movdqu xmmword [eax + 0x10], xmm0
call fcn.10001000
push dword [esp + 0x10]
lea eax, [esp + 0x2a8]
push dword [esp + 0x18]
push str._X_X
push eax
call fcn.100011e0
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [esp + 0x20]
add esp, 0x10
xor ebx, ebx
mov dword [esp + 0x10], ebx
push eax
lea eax, [esp + 0x1c]
push eax
call edi
cmp eax, 0x6f
jne 0x10001105
push dword [esp + 0x10]
call fcn.1000459e
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100010d8
lea edi, [eax + 3]
jmp 0x10001190
lea eax, [esp + 0x10]
mov esi, ebx
push eax
push ebx
call edi
test eax, eax
je 0x10001111
mov edi, 4
mov esi, dword [esp + 0xc]
test ebx, ebx
je 0x10001194
push ebx
call fcn.10004566
add esp, 4
jmp 0x10001194
test eax, eax
jne 0x1000118b
lea esi, [esp + 0x18]
mov edi, 6
test esi, esi
je 0x100010eb
lea ebx, [ebx]
lea eax, [esi + 0x10c]
push str.Virtual
push eax
call fcn.10004630
add esp, 8
test eax, eax
je 0x10001140
mov esi, dword [esi]
test esi, esi
jne 0x10001120
jmp 0x100010eb
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
mov esi, dword [esp + 0x20]
push eax
push str._02X_02X_02X_02X_02X_02X
push 0x20
push esi
call fcn.10004917
add esp, 0x24
xor edi, edi
jmp 0x100010ef
mov edi, 5
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x2a4]
push eax
push 0x20
push esi
call fcn.10004933
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2b8]
xor ecx, esp
call fcn.10004557
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c4]
mov eax, 0x57
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10004557
mov esp, ebp
pop ebp
ret
Function at 0x10001330
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10014728
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov ebx, ecx
xor edi, edi
mov byte [ebp - 0x20], 0
push str.kernel32.dll
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x100013ae
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64DisableWow64FsRedirection
push eax
call esi
mov dword [ebp - 0x28], eax
test eax, eax
je 0x100013a9
push str.Wow64RevertWow64FsRedirection
push dword [ebp - 0x2c]
call esi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edi
jmp 0x100013b1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], 0
test eax, eax
je 0x100013d3
lea ecx, [ebp - 0x30]
push ecx
call eax
movzx ecx, byte [ebp - 0x20]
test eax, eax
mov edx, 1
cmovne ecx, edx
mov byte [ebp - 0x20], cl
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10001404
cmp byte [ebp - 0x20], 0
je 0x10001404
push dword [ebp - 0x30]
call eax
mov byte [ebp - 0x20], 0
cmp esi, 0xffffffff
jne 0x1000143e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1000142a
cmp byte [ebp - 0x20], 0
je 0x1000142a
push dword [ebp - 0x30]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1000147e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 0xffffffff
mov edi, eax
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x100014d0
cmp byte [ebp - 0x20], 0
je 0x100014d0
push dword [ebp - 0x30]
call ecx
jmp 0x100014cc
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0
push eax
push ebx
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100014a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100014b3
cmp dword [ebp - 0x10], ebx
je 0x100014ac
mov edi, 0x1d
jmp 0x100014b3
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100014d0
cmp byte [ebp - 0x20], 0
je 0x100014d0
push dword [ebp - 0x30]
call eax
mov byte [ebp - 0x20], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100014f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x3ff
lea eax, [ebp - 0x493]
mov byte [ebp - 0x494], 0
push 0
push eax
mov esi, edx
mov ebx, ecx
call fcn.1000c590
push 0x7e
lea eax, [ebp - 0x92]
push 0
push eax
call fcn.1000c590
add esp, 0x18
mov dword [ebp - 0xa], 0
xor eax, eax
mov word [ebp - 6], 0
xorps xmm0, xmm0
mov dword [ebp - 0x94], 0x660063
movq qword [ebp - 0x12], xmm0
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x14], 0x410044
push eax
push esi
mov dword [ebp - 0x10], 0x410054
mov dword [ebp - 0x90], 0x30
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x498], eax
test eax, eax
jne 0x100015a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004557
mov esp, ebp
pop ebp
ret
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x100015cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004557
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x49c], eax
test eax, eax
jne 0x100015fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004557
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x498]
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, 0x400
cmp eax, esi
cmovb esi, eax
lea eax, [ebp - 0x494]
push esi
push dword [ebp - 0x49c]
push eax
call fcn.10005890
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
lea eax, [ebp - 0x494]
push eax
push ebx
call fcn.10003e50
add esp, 0xc
test eax, eax
jne 0x10001696
lea ecx, [ebx + 8]
call fcn.10001040
mov esi, eax
call fcn.10003dd0
mov dword [ebx + 0x58], eax
xor ecx, ecx
cmp cx, word [ebx + 0x9c]
lea eax, [ebx + 0x9c]
jne 0x1000167a
push str.gmboxdrv
push 0x20
push eax
call fcn.10004f6e
add esp, 0xc
add ebx, 0x5c
xor eax, eax
cmp ax, word [ebx]
jne 0x10001694
push str.gmboxdrv
push 0x20
push ebx
call fcn.10004f6e
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004557
mov esp, ebp
pop ebp
ret
Function at 0x10001c40
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push closesocket
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x10001cd3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push str.SecureProtocols
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x10001cd3
cmp dword [ebp - 0xc], 4
je 0x10001cb2
mov esi, 0x3f2
jmp 0x10001cd3
or dword [ebp - 4], 0x800
lea eax, [ebp - 4]
push 4
push eax
push 4
push 0
push str.SecureProtocols
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x10001ce1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10001df0
Capabilities:
Create udp socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b4
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1b0], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [esp + 0x10], eax
mov esi, edx
lea eax, [esp + 0x28]
mov edi, ecx
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [esp + 0x14], eax
test eax, eax
je 0x10001e4b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.10004557
mov esp, ebp
pop ebp
ret
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x10001e6d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x10001f05
mov eax, 2
push esi
mov word [esp + 0x1c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x10]
xor esi, esi
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x1c], edi
xor edi, edi
mov word [esp + 0x1a], ax
test ecx, ecx
je 0x10001ee7
test ebx, ebx
je 0x10001ef7
lea ebx, [ebx]
push 0x10
lea eax, [esp + 0x1c]
push eax
push 0
mov eax, ebx
sub eax, esi
push eax
lea eax, [esi + ecx]
push eax
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x10001ee1
add esi, eax
cmp esi, ebx
jae 0x10001ee7
mov ecx, dword [esp + 0x10]
inc edi
cmp edi, 0xa
jb 0x10001ea0
mov edi, dword [esp + 0x14]
cmp esi, ebx
mov eax, 0x58
cmovne edi, eax
jmp 0x10001efb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [esp + 0x14]
cmp esi, ebx
mov eax, 0x58
cmovne edi, eax
jmp 0x10001efb
mov edi, dword [esp + 0x14]
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1bc]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10004557
mov esp, ebp
pop ebp
ret
Function at 0x10001f30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, edx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x1000208b
test ax, ax
je 0x1000208b
push esi
mov esi, dword [ebp + 8]
mov edx, esi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10001f58
sub edx, ecx
jne 0x10001f6b
lea eax, [edx + 0x57]
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [edx + 0x20]
cmp eax, 0x400
jbe 0x10001f7f
mov eax, 0x6cf
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0x420
call fcn.1000459e
mov edi, eax
add esp, 4
test edi, edi
jne 0x10001f9c
lea eax, [edi + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 0x420
push 0
push edi
call fcn.1000c590
lea ebx, [edi + 0x20]
add esp, 0xc
mov ecx, ebx
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x10001fb4
mov ecx, ebx
mov dword [edi], 0x54505258
mov dword [edi + 4], 0x20
mov dword [edi + 8], 0x10000000
mov dword [edi + 0x10], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001fe1
sub ecx, edx
lea eax, [ecx + 1]
mov dword [edi + 0x1c], eax
cmp eax, 4
jb 0x10002038
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov eax, dword [edi + 0x1c]
mov dword [edi + 0x10], edx
mov dword [ebp - 4], eax
cmp eax, 4
jb 0x10002038
mov ecx, ebx
lea eax, [edi + 0x20]
mov ebx, 4
mov esi, 0x4246d991
sub ebx, eax
lea esp, [esp]
xor edx, esi
add esi, 0x1e6cdc
xor dword [ecx], edx
add ecx, 4
lea eax, [ebx + ecx]
cmp eax, dword [ebp - 4]
jbe 0x10002020
lea ebx, [edi + 0x20]
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x10002065
xor ecx, ecx
cmp edx, 4
jb 0x1000205f
mov eax, 4
jmp 0x10002050
add ecx, dword [ebx + eax - 4]
add eax, 4
cmp eax, edx
jbe 0x10002050
test ecx, ecx
jne 0x10002062
or ecx, 0xffffffff
mov dword [edi + 0x18], ecx
push ecx
lea eax, [edx + 0x20]
mov edx, dword [ebp - 8]
push eax
push edi
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.10001df0
push edi
mov esi, eax
call fcn.10004566
add esp, 0x14
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x57
mov esp, ebp
pop ebp
ret
Function at 0x100020a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x64], edx
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x58], edx
push ebx
mov ebx, dword [ebp + 0x18]
test eax, eax
je 0x100020d6
test ebx, ebx
je 0x100020d6
cmp byte [ebx], 0
jne 0x100020ea
mov eax, 0x57
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004557
mov esp, ebp
pop ebp
ret
mov ecx, eax
push esi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100020f0
sub ecx, esi
cmp ecx, 0x40
jae 0x1000229b
mov ecx, ebx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002107
sub ecx, esi
cmp ecx, 0x80
jae 0x1000229b
test edx, edx
je 0x1000213a
mov ecx, edx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002125
sub ecx, edx
cmp ecx, 0xff
ja 0x1000229b
push edi
push 0x1000
call fcn.1000459e
mov edi, eax
add esp, 4
test edi, edi
jne 0x10002162
lea eax, [edi + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004557
mov esp, ebp
pop ebp
ret
push 0x1000
push 0
push edi
call fcn.1000c590
add esp, 0xc
mov dword [ebp - 0x88], 0
xorps xmm0, xmm0
lea eax, [ebp - 0x88]
movdqu xmmword [ebp - 0x84], xmm0
push eax
movdqu xmmword [ebp - 0x74], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x88]
cmp ax, 9
je 0x100021b2
mov dword [ebp - 0x54], 0
cmp ax, 6
jne 0x100021b9
mov dword [ebp - 0x54], 1
push str.ntdll.dll
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10002209
push str.RtlGetNtVersionNumbers
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10002209
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x50]
push ecx
call eax
mov esi, dword [ebp - 0x48]
and esi, 0xfffffff
mov dword [ebp - 0x48], esi
jmp 0x1000220c
mov esi, dword [ebp - 0x48]
push 0x3f
lea eax, [ebp - 0x43]
mov byte [ebp - 0x44], 0
push 0
push eax
call fcn.1000c590
cmp dword [ebp - 0x54], 0
mov ecx, 0x100197f8
mov eax, str.amd64
cmove eax, ecx
push eax
push esi
push dword [ebp - 0x4c]
lea eax, [ebp - 0x44]
push dword [ebp - 0x50]
push str._u._u._u__s
push eax
call fcn.10004893
mov ecx, dword [ebp - 0x58]
mov eax, 0x10019808
test ecx, ecx
cmovne eax, ecx
push eax
push ebx
push dword [ebp - 0x60]
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push str._d__d__d__s__s__s__s
push edi
call fcn.10004893
mov edx, dword [ebp - 0x64]
add esp, 0x48
mov ecx, dword [ebp - 0x5c]
push edi
call fcn.10001f30
push edi
mov esi, eax
call fcn.10004566
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004557
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x6cf
pop esi
xor ecx, ebp
pop ebx
call fcn.10004557
mov esp, ebp
pop ebp
ret