joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408553
Capabilities:
Inspect section memory permissions

Disassembly:
mov dword [ebp + 0xc], ebx
jmp 0x40855e
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x408576
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x408594
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4085f2
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4085d9
invalid
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4085e2
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4085ec
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4085ce
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x408558
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40863f
dec eax
je 0x408636
sub eax, 3
je 0x40862d
mov dword [ebp - 4], 0x40
jmp 0x40865c
mov dword [ebp - 4], 4
jmp 0x408642
mov dword [ebp - 4], 0x20
jmp 0x408642
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x40868e
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40860e
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00407e9f
out dx, eax
sub bl, byte [eax + 0x1475ff5c]
push 1
push esi
call edi
mov eax, esi
jmp 0x40869a
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4085d4
Capabilities:
Inspect section memory permissions

Disassembly:
mov dword [ebp + 0xc], ebx
jmp 0x40855e
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x408576
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x408594
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4085f2
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4085d9
invalid
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4085e2
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4085ec
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4085ce
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x408558
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40863f
dec eax
je 0x408636
sub eax, 3
je 0x40862d
mov dword [ebp - 4], 0x40
jmp 0x40865c
mov dword [ebp - 4], 4
jmp 0x408642
mov dword [ebp - 4], 0x20
jmp 0x408642
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x40868e
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40860e
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00407e9f
out dx, eax
sub bl, byte [eax + 0x1475ff5c]
push 1
push esi
call edi
mov eax, esi
jmp 0x40869a
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408b3a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.00407e64
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.00407e9f
loope 0x408ba2
invalid
inc dword [eax]
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.00407eaf
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00407e64
add esp, 0xc
mov dword [ebp - 0x690], eax
mov byte [ebp - 0x6a0], 0x8b
or byte [ebp - 0x69f], 0xff
mov byte [ebp - 0x69e], 0x55
mov byte [ebp - 0x69d], 0x8b
mov byte [ebp - 0x69c], 0xec
lea eax, [ebp - 0x694]
push eax
push 5
lea eax, [ebp - 0x6a0]
stc
invalid
call dword [eax - 1]
mov ch, 0xc4
cld
invalid
jmp [edx - 1]
call dword [ebp - 0x690]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6bc], eax
push 0x1000
add byte [eax], al
Function at 0x40d5a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d5cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d5cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x10001473
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push 1
pop edi
push edi
push eax
mov dword [ebp - 8], eax
call fcn.10099b64
call sym.runtime.dll_runtimeGetRuntime
push dword [ebp - 8]
mov dword [0x1012ab88], eax
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
call fcn.10001675
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
mov al, byte [ebp - 1]
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x18], al
call fcn.10001fd0
push ebx
call fcn.10099480
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x18]
call fcn.100021fe
mov al, byte [ebp - 1]
mov byte [ebp - 0x28], al
push esi
lea ecx, [ebp - 0x28]
call fcn.10001fd0
cmp dword [ebp - 0x10], esi
je 0x1000152d
cmp dword [ebp - 0x14], esi
je 0x100014fa
lea ecx, [ebp - 0x18]
call fcn.10001fa4
mov eax, dword [ebp - 0x14]
jmp 0x100014ff
mov eax, 0x10100444
cmp byte [eax], 0x20
jne 0x1000152d
push dword [0x10100440]
lea eax, [ebp - 0x38]
push edi
push eax
lea ecx, [ebp - 0x18]
call fcn.10001b28
push dword [0x10100440]
lea ecx, [ebp - 0x18]
push esi
push eax
call fcn.10001e54
push edi
lea ecx, [ebp - 0x38]
jmp 0x100014de
push edi
push esi
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 1], 0x22
call fcn.10001f22
test eax, eax
jne 0x100015b3
push edi
push edi
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 1], 0x22
call fcn.10001f22
mov ebx, eax
mov eax, dword [0x10100440]
cmp ebx, eax
je 0x10001621
push eax
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.10001b28
push dword [0x10100440]
lea ecx, [ebp - 0x28]
push esi
push eax
call fcn.10001e54
push edi
lea ecx, [ebp - 0x38]
call fcn.10001fd0
dec ebx
push ebx
push edi
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.10001b28
push dword [0x10100440]
lea ecx, [ebp - 0x18]
push esi
push eax
call fcn.10001e54
push edi
lea ecx, [ebp - 0x38]
jmp 0x1000161c
push edi
push esi
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 1], 0x20
call fcn.10001f22
mov ebx, eax
mov eax, dword [0x10100440]
cmp ebx, eax
je 0x10001621
push eax
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.10001b28
push dword [0x10100440]
lea ecx, [ebp - 0x28]
push esi
push eax
call fcn.10001e54
push edi
lea ecx, [ebp - 0x38]
call fcn.10001fd0
push ebx
push esi
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.10001b28
push dword [0x10100440]
lea ecx, [ebp - 0x18]
push esi
push eax
call fcn.10001e54
push edi
lea ecx, [ebp - 0x38]
call fcn.10001fd0
mov eax, dword [ebp - 0x24]
cmp eax, esi
jne 0x1000162d
mov eax, 0x10100444
mov ecx, dword [0x1012ab88]
mov edx, dword [ecx]
push esi
push eax
push dword [0x1012ab80]
call dword [edx + 0x24]
mov ecx, dword [0x1012ab88]
mov eax, dword [ecx]
call dword [eax + 0x10]
push esi
push esi
push dword [ebp - 8]
call fcn.10099b64
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10001a98
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
mov ecx, 0x1012ab60
call fcn.100021bd
mov eax, dword [ebp - 4]
cmp eax, dword [0x1012ab64]
jne 0x10001ad6
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
mov ecx, 0x1012ab40
call fcn.100021bd
mov eax, dword [ebp - 4]
cmp eax, dword [0x1012ab44]
je 0x10001adb
mov eax, dword [eax + 0x1c]
jmp 0x10001b1c
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push str.Cant_find_symbol:
push eax
call fcn.1000310e
mov eax, dword [ebp - 0x10]
add esp, 0xc
test eax, eax
jne 0x10001afb
mov eax, 0x10100444
push 0
push 0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
leave
ret 4

Function at 0x10003df0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100fadd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x30]
push ebx
push edi
or ecx, 0xffffffff
xor ebx, ebx
mov byte [esp + 8], al
xor eax, eax
mov edi, str.Startup_Error:
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Startup_Error:
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.100021fe
mov ecx, dword [esp + 0x38]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x3c], ebx
call fcn.10004050
add esp, 0xc
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov byte [esp + 0x30], 2
je 0x10003e82
lea ecx, [eax - 1]
mov al, byte [ecx]
cmp al, bl
je 0x10003e79
cmp al, 0xff
je 0x10003e79
dec al
mov byte [ecx], al
jmp 0x10003e82
push ecx
call fcn.1008cc5c
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
jne 0x10003e9b
mov eax, 0x10100444
mov ecx, dword [0x1012acb0]
push eax
call fcn.1003be70
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x10003edc
mov al, byte [ecx - 1]
cmp al, bl
je 0x10003ed2
cmp al, 0xff
je 0x10003ed2
dec al
pop edi
mov byte [ecx - 1], al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
dec ecx
push ecx
call fcn.1008cc5c
add esp, 4
mov ecx, dword [esp + 0x28]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x10030ec0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
mov ebx, dword [esi + 4]
push edi
xor edi, edi
cmp eax, edi
mov dword [esi], 0x1010050c
jge 0x10030ef7
push 4
lea eax, [esp + 0x10]
push eax
push 0xffffff7f
push 0xffff
push ebx
mov dword [esp + 0x20], 1
call sub.WSOCK32.dll_setsockopt
push ebx
call sub.WSOCK32.dll_closesocket
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x10], eax
call fcn.1008cc5c
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov eax, dword [esi + 0xc]
push eax
mov dword [esp + 0x14], eax
call fcn.1008cc5c
add esp, 8
mov ecx, esi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call fcn.10035c40
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10031480
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x100fbdc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x10100520
mov eax, dword [esi + 8]
test eax, eax
mov dword [esp + 0x20], 0
je 0x10031501
push ebx
lea edi, [eax + 8]
push ebp
lea eax, [esp + 0x10]
push eax
mov ecx, edi
mov dword [esp + 0x14], esi
call fcn.10035640
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
mov ebp, eax
call fcn.10035610
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x14], ebx
je 0x100314f1
lea ecx, [esp + 0x14]
call fcn.10035670
cmp dword [esp + 0x14], ebp
jne 0x100314e2
push ebp
push ebx
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call fcn.10033a10
pop ebp
pop ebx
mov eax, dword [esi + 0xc]
test eax, eax
mov edi, dword [esi + 4]
jge 0x1003152a
push 4
lea eax, [esp + 0x10]
push eax
push 0xffffff7f
push 0xffff
push edi
mov dword [esp + 0x20], 1
call sub.WSOCK32.dll_setsockopt
push edi
call sub.WSOCK32.dll_closesocket
mov ecx, esi
mov dword [esp + 0x20], 0xffffffff
call fcn.10035c40
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x10031780
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x100fbdeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esi + 0x14]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], ebp
je 0x100317c4
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
cmp ecx, ebp
je 0x100317bf
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esi + 0x14], ebp
jne 0x100317ad
mov eax, dword [esi]
cmp eax, ebp
push edi
mov edi, dword [esi + 4]
jge 0x100317ed
push 4
lea ecx, [esp + 0x10]
push ecx
push 0xffffff7f
push 0xffff
push edi
mov dword [esp + 0x20], 1
call sub.WSOCK32.dll_setsockopt
push edi
call sub.WSOCK32.dll_closesocket
mov edi, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
mov eax, dword [edi]
add esi, 8
cmp ecx, ebp
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0xc], eax
je 0x1003183b
mov ecx, eax
cmp eax, ecx
jne 0x1003183b
mov edx, dword [edi + 4]
push edx
mov ecx, esi
call fcn.10034920
mov eax, dword [esi + 4]
mov ecx, dword [0x1012b990]
mov dword [eax + 4], ecx
mov eax, dword [esi + 4]
mov dword [esi + 0xc], ebp
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
jmp 0x10031861
cmp eax, edi
je 0x10031861
push ebx
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.10035670
push ebx
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.100344c0
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x10031840
pop ebx
mov eax, dword [esi + 4]
push eax
call fcn.1008cc5c
mov dword [esi + 4], ebp
mov dword [esi + 0xc], ebp
add esp, 4
lea ecx, [esp + 0x10]
xor esi, esi
call fcn.1008cbab
dec dword [0x1012b98c]
pop edi
jne 0x10031893
mov esi, dword [0x1012b990]
mov dword [0x1012b990], ebp
lea ecx, [esp + 0xc]
call fcn.1008cc47
cmp esi, ebp
je 0x100318a9
push esi
call fcn.1008cc5c
add esp, 4
mov ecx, dword [esp + 0x14]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x100318c0
Capabilities:
Get socket status

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100fbe0e
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x100318f0
xor eax, eax
jmp 0x10031aa3
mov eax, dword [ebp + 4]
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x34], 1
mov ecx, 0x3f
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov ecx, dword [0x1012b7e0]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x18], edx
mov eax, ecx
cdq
mov ecx, 0x3e8
idiv ecx
lea ecx, [esp + 0x34]
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ecx
shl edx, 3
push ebx
mov dword [esp + 0x30], edx
call sub.WSOCK32.dll_select
cmp eax, ebx
jne 0x1003195e
xor eax, eax
jmp 0x10031aa3
cmp eax, 1
je 0x10031971
mov dword [ebp], 0xffffffff
xor eax, eax
jmp 0x10031aa3
mov edx, dword [ebp + 4]
push ebx
push ebx
push edx
call sub.WSOCK32.dll_accept
mov edi, eax
cmp edi, 0xffffffff
jne 0x1003198d
mov dword [ebp], eax
xor eax, eax
jmp 0x10031aa3
push esi
push 0x18
call fcn.10099f75
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
cmp esi, ebx
mov dword [esp + 0x144], ebx
je 0x10031a08
mov ecx, esi
call fcn.10035a50
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edi
mov dword [esi + 4], edi
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebx
mov dword [esi], 0x10100520
mov dword [esp + 0x20], 0x10
call sub.WSOCK32.dll_getpeername
test eax, eax
je 0x100319e5
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov edx, esi
jmp 0x10031a0a
mov edx, dword [esp + 0x2c]
push edx
call sub.WSOCK32.dll_ntohl
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x2a]
push eax
call sub.WSOCK32.dll_ntohs
mov edx, esi
and eax, 0xffff
mov dword [esi + 0x14], eax
jmp 0x10031a0a
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov ebx, dword [0x1012b990]
add ebp, 8
mov dword [esp + 0x10], edx
mov esi, dword [ecx + 4]
cmp esi, ebx
mov dword [esp + 0x144], 0xffffffff
mov edi, ecx
mov al, 1
je 0x10031a47
cmp edx, dword [esi + 0xc]
setb al
test al, al
mov edi, esi
je 0x10031a40
mov esi, dword [esi]
jmp 0x10031a43
mov esi, dword [esi + 8]
cmp esi, ebx
jne 0x10031a30
mov dl, byte [ebp + 8]
test dl, dl
je 0x10031a5b
lea ecx, [esp + 0x10]
push ecx
push edi
push esi
lea edx, [esp + 0x24]
jmp 0x10031a96
test al, al
mov dword [esp + 0x14], edi
je 0x10031a7e
cmp edi, dword [ecx]
jne 0x10031a75
lea eax, [esp + 0x10]
push eax
push edi
push esi
lea ecx, [esp + 0x24]
push ecx
jmp 0x10031a97
lea ecx, [esp + 0x14]
call fcn.10035400
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
cmp dword [eax + 0xc], edx
jae 0x10031a9e
lea ecx, [esp + 0x10]
push ecx
push edi
push esi
lea edx, [esp + 0x30]
push edx
mov ecx, ebp
call fcn.10034960
mov eax, dword [esp + 0x10]
pop esi
mov ecx, dword [esp + 0x138]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret
Function at 0x1003aa30
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x100fc2cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x24]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x24]
xor ebx, ebx
mov dword [esi + 4], ecx
push edi
mov edi, dword [esp + 0x2c]
mov dword [esi], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dl, byte [edi]
lea ecx, [esi + 0x2c]
mov byte [ecx], dl
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov eax, dword [0x10100440]
push eax
push ebx
push edi
mov dword [esp + 0x18], esi
call fcn.10001e54
mov cl, byte [esp + 0x30]
mov byte [esi + 0x3c], 1
mov dword [esp + 0x20], ebx
mov byte [esi + 0x40], cl
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dl, byte [esp + 0x30]
mov byte [esi + 0x50], dl
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov al, byte [esp + 0x30]
lea edi, [esi + 0x64]
mov byte [esi + 0x60], bl
mov byte [edi], al
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
push ebx
mov byte [esp + 0x24], 3
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, esi
call fcn.1003d820
cmp byte [esi + 0x60], bl
je 0x1003aaec
push 5
jmp 0x1003aaed
push ebx
push edi
push 0x1003d370
call sub.DDRAW.dll_DirectDrawEnumerateExA
push 8
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
mov ecx, dword [esp + 0x18]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
Function at 0x1003be70
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x1012ba08]
test eax, eax
push esi
mov esi, ecx
je 0x1003bf62
push ebp
push edi
push 0
push 0
mov edi, eax
mov eax, dword [esi]
push 0x403
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov al, byte [0x1012baad]
test al, al
jne 0x1003bf52
mov eax, dword [0x1012ba1c]
mov ebp, 3
cmp eax, ebp
jne 0x1003bedf
mov esi, dword [sym.imp.USER32.dll_GetDesktopWindow]
call esi
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 5
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x10]
mov eax, dword [edi]
push 0
push ecx
mov ecx, edi
call dword [eax + 0x18]
pop edi
pop ebp
pop esi
ret 4
mov byte [0x1012baae], 1
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1003bef2
call fcn.10068ae0
cmp dword [0x1012ba1c], ebp
jne 0x1003bf02
mov ecx, dword [esi + 0x10]
call fcn.100474e0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1003bf25
cmp dword [0x1012ba1c], ebp
jne 0x1003bf1d
mov eax, dword [esi + 0x78]
test eax, eax
je 0x1003bf1d
call fcn.10051960
mov ecx, dword [esi + 0xc]
call fcn.10051850
cmp dword [0x1012ba1c], ebp
mov byte [0x1012baad], 1
mov byte [0x1012baae], 0
jne 0x1003bf43
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
mov ecx, dword [0x1012ba08]
test ecx, ecx
je 0x1003bf52
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov eax, dword [edi]
push 0
push ecx
mov ecx, edi
call dword [eax + 0x18]
pop edi
pop ebp
pop esi
ret 4