joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001a30
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov dword [ebp - 0x10], edx
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.100018c0
test eax, eax
jne 0x10001a63
mov eax, 9
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi], 0
je 0x10001af1
cmp dword [esi + 8], 0
mov dword [ebp - 8], 0
jbe 0x10001af1
push ebx
xor ecx, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ecx
mov eax, dword [esi]
push dword [eax + ecx]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
mov dword [ebp - 4], 0
test edi, edi
je 0x10001ace
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x10001ac1
push dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.10001730
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
jne 0x10001ad7
mov eax, dword [esi]
mov dword [ebx + eax], 0
mov eax, dword [ebp - 8]
add ebx, 4
mov ecx, dword [ebp - 0xc]
inc eax
add ecx, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
cmp eax, dword [esi + 8]
jb 0x10001a82
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10001b00
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x10001b8f
push ebx
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x10001b58
xor ecx, ecx
mov dword [ebp - 4], ecx
push edi
nop
mov eax, dword [esi]
mov eax, dword [ecx + eax]
test eax, eax
je 0x10001b4b
push eax
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10001b48
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
inc ebx
add ecx, 4
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 8]
jb 0x10001b20
pop edi
push dword [esi]
push 0
push dword [0x1004a200]
call dword [sym.imp.KERNEL32.dll_HeapSize]
pop ebx
cmp eax, 0xffffffff
je 0x10001b7f
test eax, eax
je 0x10001b7f
push eax
push 0
push dword [esi]
call fcn.10030850
add esp, 0xc
push dword [esi]
push 0
push dword [0x1004a200]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10001ba0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10044040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
mov dword [ebp - 8], 0
push edi
add esi, dword [0x1004c420]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10001c08
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016053
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10001c29
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10001c4a
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10001c4a
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10001c44
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x10001c4a
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x14], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.10016053
mov esp, ebp
pop ebp
ret
Function at 0x10002e00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10044040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
lea esi, [ebp - 8]
mov dword [ebp - 0xc], 1
push esi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0x190
push eax
push 2
push edx
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10016053
mov esp, ebp
pop ebp
ret

Function at 0x10002e50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10044040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push eax
push 0x20206
push 0
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10002eb4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10002ef5
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002ec0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 1
push 0
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10016053
mov esp, ebp
pop ebp
ret

Function at 0x10002f10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 4], 0
jne 0x10002f32
push str.Ini_is_not_available__r_n_r_n
push 1
call fcn.10002a10
add esp, 8
xor eax, eax
pop esi
pop ebp
ret 0xc
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.10023532
mov dword [eax], 0
push dword [esi]
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10002f76
call fcn.10023532
cmp dword [eax], 0
jne 0x10002f76
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
push str.GetPrivateProfileInt_Failed__r_n_r_n
push 1
call fcn.10002a10
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1000e940
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10044040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x104
mov ebx, edx
mov edi, ecx
push ebx
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
and esi, 0x7ff8ffa9
add esi, 0x80070057
test eax, eax
je 0x1000e99b
push str.MicrosoftWindowsStart_MenuPrograms_
push 0x104
push ebx
call fcn.1001d9ce
add esp, 0xc
neg eax
sbb esi, esi
and esi, 0x80070057
test esi, esi
js 0x1000ea29
mov ecx, dword [edi + 0x10]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 4
jb 0x1000ea3c
cmp dword [edi + 0x14], 7
jbe 0x1000e9be
mov edi, dword [edi]
push 4
push ecx
push ecx
push edi
push ecx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
call fcn.10014b90
cmp dword [ebp - 0xc], 7
lea eax, [ebp - 0x20]
cmova eax, dword [ebp - 0x20]
push eax
push 0x104
push ebx
call fcn.1001d9ce
mov ecx, dword [ebp - 0xc]
add esp, 0xc
neg eax
sbb esi, esi
and esi, 0x80070057
cmp ecx, 7
jbe 0x1000ea29
mov edx, dword [ebp - 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000ea1f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000ea41
push ecx
push edx
call fcn.100161b0
add esp, 8
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10016053
mov esp, ebp
pop ebp
ret
call fcn.10002790
call fcn.1001dd59
int3
Function at 0x10013b40
Capabilities:
Access peb ldr_data
Get ntdll base address

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 0x10031347
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x10044040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [edi + 0x18], xmm0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 7
mov word [edi + 0x18], ax
movups xmmword [edi + 0x30], xmm0
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], 7
mov word [edi + 0x30], ax
mov byte [edi + 0x48], al
movups xmmword [edi + 0x4c], xmm0
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], 7
mov word [edi + 0x4c], ax
movups xmmword [edi + 0x64], xmm0
mov dword [edi + 0x74], eax
mov dword [edi + 0x78], 7
mov word [edi + 0x64], ax
lea ecx, [edi + 0x7c]
mov byte [ebp - 4], 5
push str.Default
call fcn.1000e090
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x50]
push 0x100383f4
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], 5
mov dword [edi + 0xa8], 0
mov dword [edi + 0xac], 0
call fcn.1000e090
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c]
push 2
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.10014b00
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov esi, dword [ebp - 0x2c]
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov edi, 2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.10014030
add esi, 0x18
mov dword [ebp - 0x1c], esi
sub edi, 1
jne 0x10013cb8
push ecx
mov edx, esi
mov ecx, esi
call fcn.1000e280
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
add esp, 4
mov dword [ebp - 0x28], esi
cmp edi, eax
je 0x10013d15
mov ecx, edi
call fcn.1000e1b0
mov eax, dword [ebp - 0x2c]
mov dword [edi], eax
mov eax, dword [ebp - 0x28]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 8], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x2c]
call fcn.1000e1b0
mov ecx, dword [ebp - 0x3c]
cmp ecx, 7
jbe 0x10013d53
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10013d49
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013d75
push ecx
push edx
call fcn.100161b0
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10016053
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.1001dd59
int3
Function at 0x100243ec
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1002442b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002442b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002442b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1002442b
cmp dword [ecx + 0x74], 0xe
jbe 0x1002442b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10028948
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100289e5
push ebx
push esi
call fcn.10028911
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100288a7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10028992
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100289e4
push edi
push eax
call fcn.10025800
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100289b2
call fcn.100257b0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100289e3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100288a7
add esp, 0x20
test eax, eax
jne 0x100289d1
push edi
call fcn.100257b0
jmp 0x100289d9
push ebx
call fcn.100257b0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1002ff10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002ff3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002ff3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40b018
Capabilities:
Packed with generic packer

Disassembly:
lea esp, [esp + 0xc]
je 0x40b0b8
test bh, bh
pushfd
mov byte [esp], 0x72
push dword [esp + 4]
popfd
pushal
lea esp, [esp + 0x28]
jmp 0x40b1c9
pushfd
push dword [esp + 4]
popfd
pushal
lea esp, [esp + 0x28]
jmp 0x40b0d5
push edx
not edx
not ah
jmp 0x40b1f7
lahf
stc
mov eax, dword [ebx]
call fcn.0040b25b
mov word [esp], 0xd00f
jmp 0x40b1f2
call fcn.0040b0c8
lea esp, [esp + 4]
popal
pushal
lea esp, [esp + 0x20]
jmp loc.004067ed

Function at 0x40b187
Capabilities:
Packed with generic packer

Disassembly:
pushal
pushfd
lea esp, [esp + 0x28]
pushal
pushal
mov dword [esp + 0x1c], 0x406824
add esp, 0x1c
bsf ax, sp
pop ebx
sal cx, 0xd
sub bx, bx
movzx ax, bl
xadd ax, cx
aad 0xfd
add ebx, 0x6560
sal cx, 0xe
lahf
sar cl, cl
push 0xae
adc ax, dx
cmc
aam 0x13
pop ecx
Function at 0x4010fe
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40700c]
mov dword [eax], 1
jmp fcn.0040110e
Function at 0x403632
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x164
mov eax, 0xffffffc0
mov edx, dword [ecx + eax + 0x5e]
bswap edx
mov dword [esp + eax + 0x64], edx
add eax, 4
jne 0x403641
mov eax, 0xffffff00
mov edx, dword [esp + eax + 0x144]
xor edx, dword [esp + eax + 0x158]
xor edx, dword [esp + eax + 0x12c]
xor edx, dword [esp + eax + 0x124]
rol edx, 1
mov dword [esp + eax + 0x164], edx
add eax, 4
jne 0x403655
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
mov ebp, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x20], ecx
mov eax, dword [ecx + 0x10]
mov ecx, 0xffffffb0
mov dword [esp + 0x1c], eax
mov dword [esp], eax
mov dword [esp + 0x18], edx
mov dword [esp + 4], edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], esi
mov eax, esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov esi, ebx
mov edx, ebp
rol ebx, 5
mov edi, dword [esp + 4]
add ebx, dword [esp]
xor ebp, edi
and ebp, eax
xor ebp, edi
mov eax, dword [esp + ecx + 0x74]
mov dword [esp], eax
add ebp, ebx
mov eax, dword [esp]
lea ebx, [eax + ebp + 0x5a827999]
mov ebp, dword [esp + 8]
rol ebp, 0x1e
add ecx, 4
mov dword [esp], edi
mov dword [esp + 4], edx
mov eax, esi
jne 0x4036b3
mov dword [esp], 0xffffffb0
mov dword [esp + 8], ebx
mov ecx, ebp
mov dword [esp + 4], edx
mov eax, ebx
rol eax, 5
mov ebx, ebp
xor ebx, esi
xor ebx, edx
add ebx, eax
mov edx, dword [esp]
mov eax, dword [esp + edx + 0xc4]
add ebx, edi
lea ebx, [eax + ebx + 0x6ed9eba1]
mov ebp, esi
rol ebp, 0x1e
add edx, 4
mov dword [esp], edx
mov edi, dword [esp + 4]
mov edx, ecx
mov esi, dword [esp + 8]
jne 0x4036fa
mov eax, esi
mov dword [esp], 0xffffffb0
mov edx, dword [esp + 4]
mov dword [esp + 4], ebx
mov esi, ebp
mov edi, ecx
mov ecx, ebx
rol ecx, 5
add ecx, edx
mov edx, edi
or edx, ebp
mov ebp, eax
and edx, eax
mov ebx, edi
and ebx, esi
or ebx, edx
mov eax, dword [esp]
mov edx, dword [esp + eax + 0x114]
add ebx, ecx
lea ebx, [edx + ebx - 0x70e44324]
rol ebp, 0x1e
add eax, 4
mov dword [esp], eax
mov edx, edi
mov ecx, esi
mov eax, dword [esp + 4]
jne 0x403748
mov ecx, 0xffffffb0
mov eax, dword [esp + 4]
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov edx, esi
mov esi, ebx
rol esi, 5
mov ebx, ebp
xor ebx, eax
xor ebx, edx
add ebx, esi
mov esi, dword [esp + ecx + 0x164]
add ebx, edi
lea ebx, [esi + ebx - 0x359d3e2a]
mov ebp, eax
rol ebp, 0x1e
add ecx, 4
mov dword [esp + 8], edx
mov edi, edx
mov edx, dword [esp + 4]
mov esi, edx
mov eax, dword [esp]
jne 0x403794
add ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
mov dword [eax], ebx
mov ecx, dword [esp]
add ecx, dword [esp + 0x10]
mov dword [eax + 4], ecx
add ebp, dword [esp + 0x14]
mov dword [eax + 8], ebp
add edx, dword [esp + 0x18]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 8]
add ecx, dword [esp + 0x1c]
mov dword [eax + 0x10], ecx
mov word [eax + 0x1c], 0
add esp, 0x164
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403811
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push edi
push esi
sub esp, 0x14
mov esi, ecx
xor edi, edi
inc edi
mov dword [esp], edi
mov word [esp + 4], 2
push str.127.0.0.1
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 8], eax
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 6], ax
push 0
push edi
push 2
call dword [sym.imp.WS2_32.dll_socket]
test eax, eax
je 0x40388a
mov esi, eax
mov eax, esp
push 4
push eax
push 0xffffff7f
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x40388a
lea eax, [esp + 4]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x40388a
push 3
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jns 0x40389a
push str.SOCK_CHECK_ERR
call sub.api_ms_win_crt_runtime_l1_1_0.dll_perror
add esp, 4
xor esi, esi
dec esi
mov eax, esi
add esp, 0x14
pop esi
pop edi
ret
Function at 0x1002964e
Capabilities:
Encode data using xor
Hash data using sha256

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
push 0x5c
xor ebx, ebx
mov dword [ebp - 8], edi
push ebx
lea eax, [edi + 0x20]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov esi, 0x10011e40
push 8
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
lea edx, [edi + 2]
movzx ecx, byte [edx + 1]
movzx eax, byte [edx]
lea edx, [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 6]
shl ecx, 8
or ecx, eax
xor dword [esi + ebx*4], ecx
inc ebx
cmp ebx, 8
jb 0x10029684
movzx eax, byte [edi]
pop edi
mov dword [esi + 0x74], eax
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x1002c4c0
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [ebx]
cmp dword [ebp + 0x10], ebx
cmovb ebx, dword [ebp + 0x10]
xor esi, esi
mov ecx, dword [edi + 0x30]
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x1002c589
mov edx, dword [ebp + 0x14]
cmp ecx, 0x10
jne 0x1002c56f
xor eax, eax
add byte [eax + edi + 0x10], 1
jne 0x1002c500
inc eax
cmp eax, 8
jl 0x1002c4f3
mov ecx, edi
call fcn.1002c43e
test eax, eax
jne 0x1002c59a
mov eax, ebx
sub eax, esi
cmp eax, 0x10
jb 0x1002c566
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
sub eax, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
xor ecx, ecx
add edx, esi
mov al, byte [ebx + edx]
xor al, byte [ecx + edi + 0x20]
inc ecx
mov byte [edx], al
inc edx
cmp ecx, 0x10
jb 0x1002c52a
mov ebx, dword [ebp - 8]
add esi, 0x10
xor eax, eax
add byte [eax + edi + 0x10], 1
jne 0x1002c54f
inc eax
cmp eax, 8
jl 0x1002c542
mov ecx, edi
call fcn.1002c43e
test eax, eax
jne 0x1002c59a
mov edx, dword [ebp + 0x14]
mov eax, ebx
sub eax, esi
cmp eax, 0x10
jae 0x1002c523
xor ecx, ecx
cmp esi, ebx
jae 0x1002c589
mov edx, dword [ebp + 0x14]
mov al, byte [ecx + edi + 0x20]
mov edi, dword [ebp + 0xc]
xor al, byte [esi + edi]
inc ecx
mov edi, dword [ebp + 8]
mov byte [esi + edx], al
inc esi
cmp esi, ebx
jb 0x1002c4ec
mov dword [edi + 0x30], ecx
xor eax, eax
mov ecx, dword [ebp + 0x18]
mov dword [ecx], esi
pop edi
pop esi
pop ebx
leave
ret 0x14
or eax, 0xffffffff
jmp 0x1002c593
Function at 0x1003a4e8
Capabilities:
Get disk information
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10119540]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov esi, dword [ebx + 0x68]
mov ecx, esi
mov eax, dword [esi + 0x32c]
or dword [eax + 8], 0xffffffff
mov edi, dword [esi + 0x26c]
call fcn.1003b356
and dword [ebp - 0x20c], 0
push edi
test eax, eax
jne 0x1003a578
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsdup]
pop ecx
mov edi, eax
push 0x2f
push edi
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsrchr]
mov edx, eax
pop ecx
pop ecx
test edx, edx
je 0x1003a581
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x210], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x20c]
jne 0x1003a54d
sub ecx, dword [ebp - 0x210]
sar ecx, 1
cmp ecx, 2
jb 0x1003a581
push 0x2e
pop eax
mov word [edx + 2], ax
xor eax, eax
mov word [edx + 4], ax
jmp 0x1003a581
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsdup]
pop ecx
mov edi, eax
push 0x100
lea eax, [ebp - 0x208]
push eax
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumePathNameW]
push edi
test eax, eax
jne 0x1003a5d1
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_free]
mov eax, dword [esi + 0x32c]
pop ecx
xor ecx, ecx
or dword [eax + 0xc], 0xffffffff
mov eax, dword [esi + 0x32c]
mov dword [eax + 0x10], ecx
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
push 0x10013690
push 0xffffffffffffffff
push ebx
call sym.archiveint.dll_archive_set_error
add esp, 0x10
push 0xffffffffffffffe7
pop eax
jmp 0x1003a64d
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_free]
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
xor edi, edi
sub eax, edi
je 0x1003a609
sub eax, 1
je 0x1003a609
sub eax, 3
mov eax, dword [esi + 0x32c]
je 0x1003a600
mov dword [eax + 0xc], edi
jmp 0x1003a613
mov dword [eax + 0xc], 1
jmp 0x1003a613
mov eax, dword [esi + 0x32c]
or dword [eax + 0xc], 0xffffffff
mov eax, dword [esi + 0x32c]
push edi
push edi
add eax, 0x10
push eax
push edi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x1003a64b
mov eax, dword [esi + 0x32c]
mov dword [eax + 0x10], edi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
push 0x100136b0
jmp 0x1003a5c1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100913c0
leave
ret