joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x51dace
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x51dace
lcall 0x5de5, 0x8b10c483
jmp loc.01ae5f64
Function at 0x888ab0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d1000]
push edi
or ebp, 0xffffffff
jmp 0x888ad2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x888ad9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x888ac8
mov eax, 1
add ebx, ebx
jne 0x888aeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x888afc
jne 0x888b1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x888b1b
dec eax
add ebx, ebx
jne 0x888b08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x888ae0
add ebx, ebx
jne 0x888b17
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x888b6d
xor ecx, ecx
sub eax, 3
jb 0x888b33
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x888ba2
sar eax, 1
mov ebp, eax
jmp 0x888b3e
add ebx, ebx
jne 0x888b3e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x888b0c
inc ecx
add ebx, ebx
jne 0x888b4c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x888b0c
add ebx, ebx
jne 0x888b59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x888b4e
jne 0x888b6a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x888b4e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x888b8c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x888b7e
jmp 0x888ace
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x888b8c
add edi, ecx
jmp 0x888ace
pop esi
mov edi, esi
mov ecx, 0x697e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x888baa
cmp byte [edi], 0xa
jne 0x888baa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x888baf
lea edi, [esi + 0x47f000]
mov eax, dword [edi]
or eax, eax
je 0x888c27
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x48cb94]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x48ccd4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x888bdc
mov ecx, edi
jns 0x888c0b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x48ccd8]
or eax, eax
je 0x888c21
mov dword [ebx], eax
add ebx, 4
jmp 0x888bf9
call dword [esi + 0x48cce8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x888c58
cmp al, 0xef
ja 0x888c4b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x888c2d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x888c3a
mov ebp, dword [esi + 0x48ccdc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x888c8c
sub esp, 0xffffff80
jmp 0x4aebd0
Function at 0x100018a0
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b0
mov eax, dword [0x10016310]
xor eax, esp
mov dword [esp + 0x1ac], eax
cmp dword [0x100170c4], 0xffffffff
mov dword [esp + 4], 0
jne 0x1000196f
lea eax, [esp + 0x18]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x10001920
push 0x11
push 2
push 2
call sub.WS2_32.dll_socket
mov dword [0x100170c4], eax
cmp eax, 0xffffffff
je 0x10001920
cmp dword [esp + 4], 0
je 0x10001934
push 4
lea ecx, [esp + 8]
push ecx
push 0x20
push 0xffff
push eax
call sub.WS2_32.dll_setsockopt
test eax, eax
je 0x10001934
mov dword [0x100170c4], 0xffffffff
xor eax, eax
mov ecx, dword [esp + 0x1ac]
xor ecx, esp
call fcn.1000572d
mov esp, ebp
pop ebp
ret
mov edx, 2
push 0
mov word [esp + 0xc], dx
call sub.WS2_32.dll_htons
push str.127.0.0.1
mov word [esp + 0xe], ax
call sub.WS2_32.dll_inet_addr
mov ecx, dword [0x100170c4]
mov dword [esp + 0xc], eax
push 0x10
lea eax, [esp + 0xc]
push eax
push ecx
call sub.WS2_32.dll_bind
test eax, eax
jne 0x10001916
mov ecx, dword [esp + 0x1ac]
xor ecx, esp
mov eax, 1
call fcn.1000572d
mov esp, ebp
pop ebp
ret

Function at 0x10001990
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x10016310]
xor eax, esp
mov dword [esp + 0x14], eax
test esi, esi
je 0x10001a0c
test edi, edi
je 0x10001a0c
call fcn.100018a0
test eax, eax
je 0x10001a0c
mov eax, 2
push str.127.0.0.1
mov word [esp + 8], ax
call sub.WS2_32.dll_inet_addr
push 0xea61
mov dword [esp + 0xc], eax
call sub.WS2_32.dll_htons
mov edx, dword [0x100170c4]
push 0x10
lea ecx, [esp + 8]
push ecx
push 0
push edi
push esi
push edx
mov word [esp + 0x1e], ax
call sub.WS2_32.dll_sendto
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov eax, ecx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1000572d
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14]
xor ecx, esp
xor eax, eax
call fcn.1000572d
mov esp, ebp
pop ebp
ret
Function at 0x10003330
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10017158], eax
je 0x1000334e
mov eax, 0x10dd
jmp 0x1000342f
mov eax, dword [0x10017168]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100033cc
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x100033aa
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x100033aa
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.100034a0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.10005722
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x10003356
mov dword [0x10017168], 0
call fcn.10003440
mov ecx, dword [0x10017164]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x10003419
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.10005722
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x100033e4
mov dword [0x10017164], 0
mov dword [0x10017158], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10003970
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x10003985
xor eax, eax
jmp 0x100039fa
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x10000
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x100039b2
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x100039f5
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x100039f3
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x100039ef
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x100039f3
xor eax, eax
jmp 0x100039fa
jmp 0x100039a9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10003aa0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1001715c], 0
je 0x10003ab9
mov eax, dword [0x1001715c]
jmp 0x10003b59
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x10003acb
xor eax, eax
jmp 0x10003b59
push 8
call fcn.1000612e
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10003b21
mov dword [ebp - 4], 8
cmp dword [ebp - 8], 0
je 0x10003b0a
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10005722
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov dword [0x1001715c], eax
mov dword [0x10017160], 0
mov eax, dword [ebp - 4]
jmp 0x10003b59
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10003b3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x10003aeb
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x10017164]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov dword [0x10017164], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10004450
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10004660
add esp, 0xc
mov dword [ebp - 0x10], 0
cmp dword [0x1001714c], 0
jne 0x1000448d
cmp dword [0x10017148], 0
je 0x1000448d
mov eax, dword [0x10017148]
mov dword [0x1001714c], eax
cmp dword [0x1001714c], 0
je 0x1000450a
mov ecx, dword [0x1001714c]
cmp dword [ecx + 8], 0
je 0x1000450a
mov edx, dword [0x1001714c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 8]
jb 0x1000450a
mov ecx, dword [0x1001714c]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1000450a
mov eax, dword [0x1001714c]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 8]
jb 0x100044d9
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jbe 0x100044e0
xor eax, eax
jmp 0x10004650
mov ecx, dword [0x1001714c]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10006930
add esp, 0xc
mov eax, dword [ebp - 0x10]
jmp 0x10004650
mov edx, dword [0x10017148]
mov dword [0x1001714c], edx
jmp 0x10004526
mov eax, dword [0x1001714c]
mov ecx, dword [eax + 4]
mov dword [0x1001714c], ecx
cmp dword [0x1001714c], 0
je 0x10004566
cmp dword [0x1001714c], 0
je 0x10004564
mov edx, dword [0x1001714c]
cmp dword [edx + 8], 0
je 0x10004564
mov eax, dword [0x1001714c]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jb 0x10004564
mov edx, dword [0x1001714c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10004564
jmp 0x100044be
jmp 0x10004518
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
jne 0x10004597
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10004840
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100045b0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10004740
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000464e
mov ecx, dword [ebp - 4]
mov dword [0x1001714c], ecx
mov edx, dword [0x1001714c]
mov dword [edx], 0x52727464
mov eax, dword [0x1001714c]
mov dword [eax + 8], 0
mov ecx, dword [0x1001714c]
mov edx, dword [0x10017148]
mov dword [ecx + 4], edx
mov eax, dword [0x1001714c]
mov dword [0x10017148], eax
mov dword [ebp - 0x14], 0
mov ecx, dword [0x1001714c]
add ecx, 0x48
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], 0x38c
jmp 0x10004619
mov edx, dword [ebp - 0x18]
sub edx, 1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 1
jle 0x1000463d
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x48
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ecx + eax + 0x40], edx
mov eax, dword [ebp - 0x18]
imul eax, eax, 0x48
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
jmp 0x10004610
mov ecx, dword [0x1001714c]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 8], edx
jmp 0x100044be
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10004740
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10004810
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10004805
mov edx, dword [ebp - 4]
cmp edx, dword [0x10016064]
jb 0x10004785
mov eax, dword [ebp - 4]
cmp eax, dword [0x10016068]
ja 0x10004785
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10004755
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.10006930
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100047ab
jmp 0x10004805
cmp dword [ebp - 0x10], 0x10000
jne 0x100047ee
cmp dword [ebp - 0x14], 0x10000
jb 0x100047ee
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x100047e1
mov eax, dword [ebp - 0x24]
jmp 0x10004807
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10004800
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.10004810
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10004755
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10004840
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10004920
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1000490d
mov edx, dword [ebp - 4]
cmp edx, dword [0x10016064]
jb 0x1000488a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10016068]
ja 0x1000488a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000485a
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.10006930
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100048b0
jmp 0x1000490d
cmp dword [ebp - 0x10], 0x10000
jne 0x100048f3
cmp dword [ebp - 0x14], 0x10000
jb 0x100048f3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x100048e6
mov eax, dword [ebp - 0x24]
jmp 0x1000490f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10004908
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.10004920
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000485a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10004950
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10017158], eax
je 0x10004975
mov eax, 0x10dd
jmp 0x10004b1d
cmp dword [0x1001715c], 0
je 0x10004988
mov eax, dword [0x1001715c]
jmp 0x10004b1d
cmp dword [ebp + 0xc], 0
jne 0x10004998
mov eax, 0x57
jmp 0x10004b1d
cmp dword [ebp + 8], 0
jne 0x100049a8
mov eax, 6
jmp 0x10004b1d
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x100049d1
mov dword [ebp - 0xc], 6
mov ecx, dword [ebp - 0xc]
mov dword [0x1001715c], ecx
mov edx, dword [ebp + 8]
mov dword [0x10017160], edx
mov eax, dword [ebp - 0xc]
jmp 0x10004b1d
push 0x18
call fcn.1000612e
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10004a2a
mov dword [ebp - 0xc], 8
mov ecx, dword [ebp - 0xc]
mov dword [0x1001715c], ecx
cmp dword [ebp - 0x18], 0
je 0x10004a19
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.10005722
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [0x10017160], ecx
mov eax, dword [ebp - 0xc]
jmp 0x10004b1d
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10003010
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10003010
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 8]
mov dword [ebp - 4], edx
cmp dword [ebp - 8], 0
je 0x10004a6a
cmp dword [ebp - 8], 0x1e
jbe 0x10004a86
mov dword [ebp - 0xc], 9
cmp dword [0x10017150], 0
je 0x10004a81
jmp 0x100049fa
jmp 0x100049f1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x10004aad
mov dword [ebp - 0xc], 9
cmp dword [0x10017150], 0
je 0x10004aa8
jmp 0x100049fa
jmp 0x100049f1
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0x40
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10004ada
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x100049f1
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [0x10017168]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov dword [0x10017168], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x1000572d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10016310]
jne 0x10005737
repz ret
jmp fcn.10006f35
Function at 0x1000c4bf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10009ceb
and dword [ebp - 4], 0
cmp dword [0x10017ac0], 0
mov ebx, eax
jne 0x1000c570
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000c621
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000c621
push eax
call fcn.10009c79
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10017ac0], eax
call esi
push eax
call fcn.10009c79
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10017ac4], eax
call esi
push eax
call fcn.10009c79
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10017ac8], eax
call esi
push eax
call fcn.10009c79
pop ecx
mov dword [0x10017ad0], eax
test eax, eax
je 0x1000c570
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10009c79
pop ecx
mov dword [0x10017acc], eax
mov eax, dword [0x10017acc]
cmp eax, ebx
je 0x1000c5c8
cmp dword [0x10017ad0], ebx
je 0x1000c5c8
push eax
call fcn.10009cf4
push dword [0x10017ad0]
mov esi, eax
call fcn.10009cf4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000c5c8
test edi, edi
je 0x1000c5c8
call esi
test eax, eax
je 0x1000c5bf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000c5bf
test byte [ebp - 0xc], 1
jne 0x1000c5c8
or dword [ebp + 0x10], 0x200000
jmp 0x1000c601
mov eax, dword [0x10017ac4]
cmp eax, ebx
je 0x1000c601
push eax
call fcn.10009cf4
pop ecx
test eax, eax
je 0x1000c601
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000c601
mov eax, dword [0x10017ac8]
cmp eax, ebx
je 0x1000c601
push eax
call fcn.10009cf4
pop ecx
test eax, eax
je 0x1000c601
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10017ac0]
call fcn.10009cf4
pop ecx
test eax, eax
je 0x1000c621
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000c623
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret