joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10022da7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push str.AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJKKKKLLLLMMMMNNNNOOOOPPPPQQQQRRRR
mov esi, 0x800
push esi
mov ebx, str.GGGGuuuuaaaarrrrddddRRRRaaaaiiiillllssssPPPPaaaayyyyllllooooaaaadddd
push ebx
mov edi, 0x1800
call fcn.1002286b
add esp, 0xc
xor eax, eax
xor byte [eax + str.GGGGuuuuaaaarrrrddddRRRRaaaaiiiillllssssPPPPaaaayyyyllllooooaaaadddd], 0x8a
inc eax
cmp eax, esi
jl 0x10022dd0
push esi
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.10007324
lea eax, [ebp - 0x10]
push eax
call fcn.10007380
movzx edi, ax
add esp, 0x10
test di, di
jle 0x10022e9f
lea eax, [ebp - 0x10]
push eax
call fcn.10007380
movzx esi, ax
lea eax, [ebp - 0x10]
push eax
call fcn.10007380
movsx ebx, di
pop ecx
pop ecx
movzx ecx, ax
mov eax, dword [0x10059a0c]
shl ebx, 3
lea edi, [ebx + eax]
movsx eax, si
dec eax
mov word [edi], si
je 0x10022e6a
dec eax
je 0x10022e54
dec eax
jne 0x10022e7f
movsx eax, cx
push eax
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.1000746f
pop ecx
pop ecx
push eax
push dword [edi + 4]
call fcn.10035300
add esp, 0xc
jmp 0x10022e7f
lea eax, [ebp - 0x10]
push eax
call fcn.1000733d
pop ecx
mov ecx, dword [0x10059a0c]
mov dword [ebx + ecx + 4], eax
jmp 0x10022e7f
lea eax, [ebp - 0x10]
push eax
call fcn.10007380
pop ecx
mov ecx, dword [0x10059a0c]
mov word [ebx + ecx + 4], ax
lea eax, [ebp - 0x10]
push eax
call fcn.10007380
movzx edi, ax
pop ecx
test di, di
jg 0x10022dff
mov esi, 0x800
mov ebx, str.GGGGuuuuaaaarrrrddddRRRRaaaaiiiillllssssPPPPaaaayyyyllllooooaaaadddd
push esi
push 0
push ebx
call fcn.100364f0
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1002311e
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ecx], 0
mov eax, 0x52964ee9
je 0x1002313f
push esi
movzx edx, word [ecx]
mov esi, eax
movzx edx, dx
ror esi, 8
add esi, edx
inc ecx
xor eax, esi
cmp byte [ecx], 0
jne 0x10023129
pop esi
ret
Function at 0x10023175
Capabilities:
Access peb ldr_data
Get process heap flags
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 0xc]
sub esp, 0x18
push ebx
push esi
add edx, 0xc
push edi
mov edi, dword [edx]
cmp edi, edx
je 0x1002330c
mov eax, edi
mov ecx, dword [eax + 0x18]
mov eax, dword [ecx + 0x3c]
mov esi, dword [eax + ecx + 0x78]
mov edi, dword [edi]
mov dword [ebp - 0xc], ecx
test esi, esi
je 0x1002318f
add esi, ecx
cmp dword [esi + 0x18], 0
je 0x1002318f
mov eax, dword [esi + 0xc]
add eax, ecx
mov ebx, dword [eax]
or ebx, 0x20202020
cmp ebx, 0x6c64746e
jne 0x1002318f
mov ebx, dword [eax + 4]
or ebx, 0x20202020
cmp ebx, 0x6c642e6c
jne 0x1002318f
mov ax, word [eax + 8]
or ax, 0x20
cmp ax, 0x6c
jne 0x1002318f
mov eax, dword [esi + 0x20]
mov edi, dword [esi + 0x1c]
mov ebx, dword [esi + 0x24]
and dword [ebp - 4], 0
push 0x1770
push 0
push dword [ebp + 8]
add eax, ecx
add edi, ecx
mov dword [ebp - 0x14], eax
add ebx, ecx
call fcn.100364f0
mov esi, dword [esi + 0x18]
xor eax, eax
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], esi
test esi, esi
jbe 0x100232b4
mov esi, dword [ebp + 8]
add esi, 8
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + eax*4]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
je 0x100232a4
movzx eax, word [ecx]
mov edx, 0x694b
cmp ax, dx
jne 0x1002326a
call fcn.1002311e
cmp eax, 0x8dcd4499
jne 0x10023267
mov eax, dword [ebp - 8]
movzx eax, word [ebx + eax*2]
mov edx, dword [edi + eax*4]
add edx, dword [ebp - 0xc]
call fcn.10023140
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x10]
movzx eax, word [ecx]
mov edx, 0x775a
cmp ax, dx
jne 0x100232a4
call fcn.1002311e
mov dword [esi - 8], eax
mov eax, dword [ebp - 8]
movzx eax, word [ebx + eax*2]
lea eax, [edi + eax*4]
mov ecx, dword [eax]
mov eax, ecx
add eax, dword [ebp - 0xc]
inc dword [ebp - 4]
mov dword [esi - 4], ecx
mov dword [esi], eax
add esi, 0xc
cmp dword [ebp - 4], 0x1f4
je 0x100232b4
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x18]
jb 0x10023229
mov eax, dword [ebp - 4]
and dword [ebp - 8], 0
dec eax
mov dword [ebp - 0x18], eax
je 0x1002330c
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 8]
dec ecx
je 0x10023301
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0x10], ecx
mov edi, dword [eax]
lea ecx, [eax + 0xc]
cmp edi, dword [ecx]
jbe 0x100232fa
mov ebx, dword [eax + 8]
mov edx, dword [eax - 4]
mov esi, dword [eax + 4]
mov dword [eax - 4], ebx
mov ebx, dword [ecx]
mov dword [eax], ebx
mov ebx, dword [eax + 0x10]
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [ecx], edi
mov dword [eax + 0x10], esi
dec dword [ebp - 0x10]
mov eax, ecx
jne 0x100232d3
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jb 0x100232c1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10023808
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x10056898], 0
je 0x10023868
mov ecx, dword [0x10056894]
cmp ecx, 1
jne 0x10023829
mov eax, dword [0x1005997c]
test eax, eax
jne 0x1002385d
cmp ecx, 2
jne 0x10023868
mov eax, dword [0x10059980]
test eax, eax
je 0x10023868
mov dword [0x1005688c], eax
mov eax, dword [0x10059984]
mov dword [0x10056890], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.1002e74f
pop ecx
pop ecx
test eax, eax
jne 0x10023868
mov eax, dword [ebp - 4]
leave
ret
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 8]
call eax
jmp 0x10023854
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
leave
ret

Function at 0x10023873
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x10056898], esi
je 0x10023910
mov eax, dword [0x10056894]
cmp eax, 1
jne 0x10023898
cmp dword [0x10059988], esi
jne 0x100238a5
cmp eax, 2
jne 0x10023910
cmp dword [0x1005998c], esi
je 0x10023910
mov eax, dword [ebp + 8]
cmp eax, esi
jne 0x100238b2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp dword [0x10056894], 1
push esi
push esi
push esi
push esi
push 1
push ebx
push dword [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 4]
push 0x1fffff
push eax
jne 0x100238d8
call dword [0x10059988]
jmp 0x100238f8
mov ecx, dword [0x1005998c]
mov dword [0x1005688c], ecx
mov ecx, dword [0x10059990]
mov dword [0x10056890], ecx
call fcn.1002e75e
add esp, 0x2c
cmp eax, esi
jne 0x10023910
test byte [ebp + 0x10], 4
jne 0x1002390b
push dword [ebp - 4]
call fcn.10023808
pop ecx
mov eax, dword [ebp - 4]
jmp 0x10023930
push esi
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push esi
push esi
cmp dword [ebp + 8], esi
jne 0x10023927
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x10023930
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
pop esi
leave
ret

Function at 0x10024049
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push 0x37
pop ecx
call fcn.100228d7
push 0x27
pop ecx
movzx esi, ax
call fcn.100228d7
xor ebx, ebx
inc ebx
push ebx
push 0
movzx edi, ax
call fcn.1000198f
pop ecx
pop ecx
call fcn.100065f6
call fcn.10024d34
cmp esi, ebx
jne 0x10024096
cmp edi, ebx
jne 0x1002408e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10024081
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
cmp edi, ebx
jne 0x100240bb
push 0xffffffffffffffff
push 0
push dword [sym.imp.KERNEL32.dll_ExitProcess]
xor ebx, ebx
push 0
call fcn.10023873
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebx
ret
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10024474
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1002411e
push 0x100568a4
push 3
push 9
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_LogonUserA]
test eax, eax
jne 0x100244b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x18
call fcn.10002216
pop ecx
pop ecx
jmp 0x10024598
push dword [0x100568a4]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x100244ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x19
jmp 0x100244a7
push 0x800
call fcn.100072b2
mov esi, 0x200
push esi
push eax
mov dword [0x100568b4], eax
call fcn.1000746f
push esi
push dword [0x100568b4]
mov dword [0x100568a8], eax
call fcn.1000746f
mov ebx, 0x400
push ebx
push dword [0x100568b4]
mov dword [0x100568ac], eax
call fcn.1000746f
mov edi, 0x100
push edi
push dword [0x100568ac]
mov dword [0x100568b0], eax
push dword [ebp + 0xc]
call fcn.10002a5a
push edi
push dword [0x100568a8]
push dword [ebp + 8]
call fcn.10002a5a
push esi
push dword [0x100568b0]
push dword [ebp + 0x10]
call fcn.10002a5a
add esp, 0x40
lea eax, [ebp - 0x10]
push ebx
push eax
mov dword [0x100568b8], 1
call fcn.10001371
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str._s_s
push eax
call fcn.100014cb
add esp, 0x18
push 0x23
lea eax, [ebp - 0x10]
call fcn.1000152d
push eax
lea eax, [ebp - 0x10]
call fcn.1000152a
push eax
call dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.1000150a
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1002463e
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1002469c
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x10024693
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x10024f0e
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push 0
push 1
lea eax, [esi + edi]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10024f46
add esi, eax
cmp esi, 2
jb 0x10024f3e
cmp byte [esi + edi - 1], 0xa
jne 0x10024f3e
cmp byte [esi + edi - 2], 0xd
je 0x10024f4c
cmp esi, 0x800
jb 0x10024f14
or eax, 0xffffffff
pop esi
pop ebp
ret
mov byte [esi + edi - 2], 0
mov eax, esi
jmp 0x10024f49
Function at 0x10024fb9
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
call fcn.100022e8
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x10024fdf
push eax
call sub.WS2_32.dll_closesocket
jmp 0x10025038
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x10], ax
call sub.WS2_32.dll_htons
mov word [ebp - 0xe], ax
push 0x10
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 0xc], 0x100007f
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1002500e
push esi
jmp 0x10024fd8
push 0x78
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1002500b
push ebx
push dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push esi
call fcn.10024e75
push eax
push 0x10024f55
call fcn.10024016
add esp, 0x10
pop ebx
pop esi
leave
ret
Function at 0x10026a82
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x28], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
xor eax, eax
pop ebp
ret

Function at 0x10026cc7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [0x10052c98]
mov ebx, eax
push edi
mov eax, esi
call fcn.10027a7b
test eax, eax
jne 0x10026dc9
mov ecx, dword [0x10052c9c]
cmp ecx, 1
jl 0x10026dc6
cmp ecx, 0x80
jg 0x10026dc6
mov eax, dword [ebp + 0xc]
xor edx, edx
div ecx
test edx, edx
jne 0x10026dc6
test cl, 3
jne 0x10026dc6
mov edx, esi
imul edx, edx, 0x60
mov edx, dword [edx + 0x10056910]
test edx, edx
je 0x10026d3f
push 0x10052d20
push 0x10052ca0
push eax
push ebx
push dword [ebp + 8]
call edx
add esp, 0x14
jmp 0x10026dc9
cmp dword [ebp + 0xc], 0
je 0x10026dc2
mov edi, 0x10052ca0
jmp 0x10026d52
mov esi, dword [0x10052c98]
xor edx, edx
test ecx, ecx
jle 0x10026d79
mov ecx, dword [ebp + 8]
sub ecx, edi
lea eax, [edx + 0x10052ca0]
mov esi, dword [ecx + eax]
xor dword [eax], esi
add edx, 4
cmp edx, dword [0x10052c9c]
jl 0x10026d5d
mov esi, dword [0x10052c98]
imul esi, esi, 0x60
push 0x10052d20
push ebx
push edi
call dword [esi + 0x100568f4]
add esp, 0xc
test eax, eax
jne 0x10026dc9
mov ecx, dword [0x10052c9c]
xor edx, edx
test ecx, ecx
jle 0x10026db8
mov esi, ebx
sub esi, edi
lea eax, [edx + 0x10052ca0]
mov ecx, dword [esi + eax]
mov dword [eax], ecx
mov ecx, dword [0x10052c9c]
add edx, 4
cmp edx, ecx
jl 0x10026da0
add dword [ebp + 8], ecx
add ebx, ecx
sub dword [ebp + 0xc], ecx
jne 0x10026d4c
xor eax, eax
jmp 0x10026dc9
push 0x10
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10027108
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1004b628]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x10053dc0]
push edi
mov ebx, ecx
mov edi, edx
mov eax, esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edi
call fcn.10027a7b
test eax, eax
jne 0x10027215
mov ecx, dword [0x10053dc4]
cmp ecx, 1
jl 0x10027212
cmp ecx, 0x80
jg 0x10027212
mov eax, dword [ebp + 8]
xor edx, edx
div ecx
test edx, edx
jne 0x10027212
test cl, 3
jne 0x10027212
mov ecx, esi
imul ecx, ecx, 0x60
mov ecx, dword [ecx + 0x10056914]
test ecx, ecx
je 0x10027193
push 0x10053e48
push 0x10053dc8
push eax
push edi
push ebx
call ecx
add esp, 0x14
jmp 0x10027215
cmp dword [ebp + 8], 0
je 0x1002720e
jmp 0x100271a1
mov esi, dword [0x10053dc0]
imul esi, esi, 0x60
push 0x10053e48
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [esi + 0x100568f8]
add esp, 0xc
test eax, eax
jne 0x10027215
mov eax, dword [0x10053dc4]
xor edi, edi
test eax, eax
jle 0x100271fe
mov ecx, dword [ebp - 0x18]
lea esi, [ebp - 0x14]
mov eax, 0x10053dc8
sub esi, ebx
sub ebx, eax
sub ecx, eax
mov dword [ebp - 0x20], ecx
lea eax, [edi + 0x10053dc8]
lea edx, [ebx + eax]
mov ecx, dword [esi + edx]
xor ecx, dword [eax]
mov edx, dword [edx]
mov dword [eax], edx
mov edx, dword [ebp - 0x20]
mov dword [edx + eax], ecx
mov eax, dword [0x10053dc4]
add edi, 4
cmp edi, eax
jl 0x100271da
mov ebx, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
add ebx, eax
sub dword [ebp + 8], eax
mov dword [ebp - 0x1c], ebx
jne 0x1002719b
xor eax, eax
jmp 0x10027215
push 0x10
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100362ff
leave
ret
Function at 0x10028162
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebx + 0x70]
mov eax, esi
call fcn.10028052
test eax, eax
jne 0x100282a2
imul esi, esi, 0x68
push edi
mov edi, dword [esi + 0x100579e0]
push dword [esi + 0x100579e4]
mov dword [ebp - 8], edi
call fcn.1002e8ff
push edi
mov dword [ebp - 4], eax
call fcn.1002e8ff
cmp dword [ebp - 4], 0
pop ecx
mov edi, eax
pop ecx
mov dword [ebp - 0xc], edi
je 0x10028293
test edi, edi
je 0x1002828a
push edi
push ebx
call dword [esi + 0x10057a34]
mov edi, eax
xor eax, eax
pop ecx
pop ecx
cmp edi, eax
jne 0x10028268
cmp dword [esi + 0x100579e4], eax
jbe 0x100281ee
mov ecx, dword [ebx + 0xe8]
mov cl, byte [ecx + eax]
mov edx, dword [ebp - 4]
xor cl, 0x5c
mov byte [eax + edx], cl
inc eax
cmp eax, dword [esi + 0x100579e4]
jb 0x100281d3
push ebx
call dword [esi + 0x10057a2c]
mov edi, eax
pop ecx
test edi, edi
jne 0x10028268
push dword [esi + 0x100579e4]
push dword [ebp - 4]
push ebx
call dword [esi + 0x10057a30]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10028268
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
call dword [esi + 0x10057a30]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10028268
push dword [ebp - 4]
push ebx
call dword [esi + 0x10057a34]
pop ecx
pop ecx
mov edi, eax
xor ecx, ecx
cmp edi, ecx
jne 0x10028268
cmp dword [ebp - 8], ecx
jbe 0x10028261
mov esi, dword [ebp - 4]
sub esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp ecx, dword [eax]
jae 0x10028261
mov eax, dword [ebp + 8]
add eax, ecx
mov dl, byte [esi + eax]
inc ecx
mov byte [eax], dl
cmp ecx, dword [ebp - 8]
jb 0x1002824a
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
xor edi, edi
push dword [ebx + 0xe8]
call fcn.1002e822
push dword [ebp - 0xc]
call fcn.1002e822
push dword [ebp - 4]
call fcn.1002e822
add esp, 0xc
mov eax, edi
jmp 0x100282a1
push dword [ebp - 4]
call fcn.1002e822
pop ecx
test edi, edi
je 0x1002829e
push edi
call fcn.1002e822
pop ecx
push 0xd
pop eax
pop edi
pop esi
leave
ret
Function at 0x100282a5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, eax
call fcn.10028052
test eax, eax
jne 0x100282e0
push esi
mov esi, ebx
imul esi, esi, 0x68
mov dword [edi + 0x70], ebx
mov eax, dword [esi + 0x100579e0]
push dword [esi + 0x100579e4]
mov dword [ebp - 4], eax
call fcn.1002e8ff
pop ecx
mov dword [ebp - 8], eax
test eax, eax
jne 0x100282e3
push 0xd
pop eax
pop esi
pop ebx
leave
ret
push dword [esi + 0x100579e4]
call fcn.1002e8ff
pop ecx
mov dword [edi + 0xe8], eax
test eax, eax
jne 0x10028309
push 0xd
pop ebx
push dword [ebp - 8]
call fcn.1002e822
pop ecx
mov eax, ebx
jmp 0x100282df
mov ecx, dword [esi + 0x100579e4]
cmp ecx, 0x10
jae 0x10028351
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
push 0x10
push 0x10055fa0
mov eax, ebx
call fcn.10027368
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100283d1
mov eax, dword [esi + 0x100579e4]
cmp dword [ebp - 4], eax
jae 0x10028381
sub eax, dword [ebp - 4]
push eax
mov eax, dword [edi + 0xe8]
add eax, dword [ebp - 4]
jmp 0x10028379
push 0x10
push 0x10055fa0
push eax
call fcn.10035300
mov eax, dword [esi + 0x100579e4]
add esp, 0xc
cmp eax, 0x10
jbe 0x10028381
add eax, 0xfffffff0
push eax
mov eax, dword [edi + 0xe8]
add eax, 0x10
push eax
call fcn.1002801f
pop ecx
pop ecx
xor eax, eax
cmp dword [esi + 0x100579e4], eax
jbe 0x100283a6
mov ecx, dword [edi + 0xe8]
mov cl, byte [ecx + eax]
mov edx, dword [ebp - 8]
xor cl, 0x36
mov byte [eax + edx], cl
inc eax
cmp eax, dword [esi + 0x100579e4]
jb 0x1002838b
push edi
call dword [esi + 0x10057a2c]
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x100283d1
push dword [esi + 0x100579e4]
push dword [ebp - 8]
push edi
call dword [esi + 0x10057a30]
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x100282fc
push dword [edi + 0xe8]
call fcn.1002e822
pop ecx
jmp 0x100282fc
Function at 0x100362ff
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004b628]
jne 0x10036309
repz ret
jmp fcn.1003a0d2

Function at 0x10038175
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.10033512
and dword [ebp - 4], 0
cmp dword [0x1005281c], 0
mov ebx, eax
jne 0x10038226
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100382d7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100382d7
push eax
call fcn.100334a0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1005281c], eax
call esi
push eax
call fcn.100334a0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10052820], eax
call esi
push eax
call fcn.100334a0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10052824], eax
call esi
push eax
call fcn.100334a0
pop ecx
mov dword [0x1005282c], eax
test eax, eax
je 0x10038226
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100334a0
pop ecx
mov dword [0x10052828], eax
mov eax, dword [0x10052828]
cmp eax, ebx
je 0x1003827e
cmp dword [0x1005282c], ebx
je 0x1003827e
push eax
call fcn.1003351b
push dword [0x1005282c]
mov esi, eax
call fcn.1003351b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1003827e
test edi, edi
je 0x1003827e
call esi
test eax, eax
je 0x10038275
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10038275
test byte [ebp - 0xc], 1
jne 0x1003827e
or dword [ebp + 0x10], 0x200000
jmp 0x100382b7
mov eax, dword [0x10052820]
cmp eax, ebx
je 0x100382b7
push eax
call fcn.1003351b
pop ecx
test eax, eax
je 0x100382b7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100382b7
mov eax, dword [0x10052824]
cmp eax, ebx
je 0x100382b7
push eax
call fcn.1003351b
pop ecx
test eax, eax
je 0x100382b7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1005281c]
call fcn.1003351b
pop ecx
test eax, eax
je 0x100382d7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100382d9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402c40
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x40b3a0]
test esi, esi
jle 0x402d50
mov edi, dword [0x40b3a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x402c74
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x402cf5
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x402c60
mov dword [esp], eax
mov ebx, eax
call sym.___mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x402d77
mov eax, dword [0x40b3a4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
add eax, dword [edi + 0xc]
mov edx, dword [0x40b3a4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x402d57
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x402cee
sub eax, 4
and eax, 0xfffffffb
jne 0x402d00
add dword [0x40b3a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x40b3a4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x402cee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
xor esi, esi
jmp 0x402c7e
mov eax, dword [0x40b3a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
mov esi, esi
lea edi, [edi]

Function at 0x4031b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40b3b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40b3b0]
sub esp, 4
test ebx, ebx
je 0x403205
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4031fe
test esi, esi
je 0x4031fe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4031e0
mov dword [esp], 0x40b3b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret