joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404537
Capabilities:
Check for time delay via queryperformancecounter
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x1c], ecx
mov esi, edi
xor ecx, ecx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, cx
jne 0x404559
sub esi, edx
sar esi, 1
lea eax, [esi + esi]
mov dword [ebp - 0x18], eax
test ebx, ebx
je 0x40458b
cmp dword [ebx + 0x20], ecx
je 0x40458b
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x18]
xor esi, esi
inc esi
xor ecx, ecx
jmp 0x40458d
mov esi, ecx
push ecx
push eax
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test esi, esi
je 0x4045f6
cmp edi, 0xffffffff
je 0x4045f6
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebx + 0x28]
mov eax, dword [ebp - 0x10]
sbb eax, dword [ebx + 0x2c]
push 0
push 0xf4240
push eax
push ecx
call fcn.004169f0
push dword [0x421484]
push dword [0x421480]
push edx
push eax
call fcn.00416a30
mov ecx, eax
mov esi, edx
mov eax, edi
cdq
add dword [ebx + 0x30], eax
adc dword [ebx + 0x34], edx
add dword [ebx + 0x38], 1
adc dword [ebx + 0x3c], 0
add dword [ebx + 0x40], ecx
adc dword [ebx + 0x44], esi
mov ecx, dword [ebp - 8]
not edi
shr edi, 0x1f
xor ecx, ebp
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.00404f0e
leave
ret
Function at 0x4049d3
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push 0x70
pop ecx
mov eax, 0x421440
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x4049dc
push 0x421480
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov eax, dword fs:[0x18]
push str.ntdll.dll
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x38]
mov dword [0x421478], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x404b1a
push str.NtOpenSymbolicLinkObject
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtOpenDirectoryObject
push esi
mov dword [0x421488], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryDirectoryObject
push esi
mov dword [0x42148c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQuerySymbolicLinkObject
push esi
mov dword [0x421490], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlInitUnicodeString
push esi
mov dword [0x421494], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlCompareUnicodeStrings
push esi
mov dword [0x421498], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlCompareUnicodeString
push esi
mov dword [0x42149c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlImageNtHeader
push esi
mov dword [0x4214a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtClose
push esi
mov dword [0x4214a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x421488], 0
mov dword [0x4214a8], eax
je 0x404b1a
cmp dword [0x42148c], 0
je 0x404b1a
cmp dword [0x421490], 0
je 0x404b1a
cmp dword [0x421494], 0
je 0x404b1a
cmp dword [0x421498], 0
je 0x404b1a
cmp dword [0x42149c], 0
je 0x404b1a
cmp dword [0x4214a0], 0
je 0x404b1a
cmp dword [0x4214a4], 0
je 0x404b1a
test eax, eax
je 0x404b1a
xor ecx, ecx
call fcn.0040460c
test eax, eax
je 0x404b1a
xor esi, esi
inc esi
mov ecx, esi
call fcn.0040460c
test eax, eax
je 0x404b1a
mov dword [0x421440], esi
pop esi
ret
Function at 0x404c2e
Capabilities:
Encode data using base64 via winapi
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
push esi
push edi
push 0x18
mov esi, ecx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x404cc9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x404cc9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x404cc9
lea eax, [ebp - 8]
push eax
push 0
push 0x40000001
push ebx
push edi
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x404cc9
mov eax, dword [ebp - 8]
lea esi, [eax + eax]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x404cc9
lea eax, [ebp - 8]
push eax
push esi
push 0x40000001
push ebx
push edi
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x404cc0
mov eax, esi
jmp 0x404ccb
mov edx, esi
xor ecx, ecx
call fcn.004044ed
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404f0e
leave
ret

Function at 0x40529d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x4052d2
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x4052cf
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x4052db
add edx, 0x28
cmp edx, esi
jne 0x4052bd
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x4052d8

Function at 0x405768
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4057a7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4057a7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4057a7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4057a7
cmp dword [ecx + 0x74], 0xe
jbe 0x4057a7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40ecbe
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 0x40ed5b
push ebx
push esi
call fcn.0040ec87
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.0040ec1b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40ed08
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40ed5a
push edi
push eax
call fcn.0040bcbb
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40ed28
call fcn.0040bc81
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40ed59
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040ec1b
add esp, 0x20
test eax, eax
jne 0x40ed47
push edi
call fcn.0040bc81
jmp 0x40ed4f
push ebx
call fcn.0040bc81
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 0x40fa2e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x419508
push 0x419500
push str.FlsAlloc
push 0x1f
call fcn.0040f94a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fa62
push dword [ebp + 8]
mov ecx, esi
call dword [0x41718c]
call esi
jmp 0x40fa68
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40faac
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x419518
push 0x419510
push str.FlsGetValue
push 0x21
call fcn.0040f94a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fae3
push dword [ebp + 8]
mov ecx, esi
call dword [0x41718c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40faeb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x419520
push 0x419518
push str.FlsSetValue
push 0x22
call fcn.0040f94a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fb25
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41718c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x416800
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41682d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41682d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4453b9
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x45fd70]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0044534e
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0042e4c0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x445408
cmp dword [ebp - 0x1c], 5
jb 0x445420
jmp 0x44541c
cmp dword [ebp - 0x10], 1
jne 0x445420
cmp dword [ebp - 0x1c], 4
ja 0x44541c
jne 0x445420
cmp dword [ebp - 0x18], 0
jbe 0x445420
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44f390
call fcn.0044523f
test eax, eax
jge 0x445441
mov byte [0x464678], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042d9ad
add ebp, 0x78
leave
ret

Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..reloc
mov ebx, 0x40de38
nop
nop
mov ecx, 0x242c07f3
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..rdata
mov ebx, 0x4304d8
nop
mov ecx, 0xe2361de
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x5d9f0e
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esp
in eax, dx
std
cwde
dec edi
salc
cdq
mov bl, dl
sub eax, 0x69ba78d8
test al, 0x88
shr dword [ebp - 0x2347e924], cl
adc eax, 0x99add38e
in eax, 0x5c
lea ebx, [eax - 0x27992c78]
mov bl, 0xba
imul ebp, dword [edx + 0x19add388], 0x2edc9ac9
mov edx, ebx
lodsd eax, dword [esi]
cdq
int 2
adc al, 0x98
sbb dword [ebp + edi*4 - 0x16], edx
cdq
push eax
outsb dx, byte [esi]
test al, 0xb
mov eax, 0x928899ad
and ebx, dword [ebp - 0x66522c76]
aas
mov ebx, 0x928899ad
and ebx, dword [ebp - 0x66522c79]
cmpsd dword [esi], dword es:[edi]
and ebx, dword ds:[ebp - 0x6621699e]
fstp xword [ebx + eax*8]
adc al, byte [esp + ebx*4 - 0x1e]
cdq
pushfd
loop 0x5d9eaf
mov bl, dh
movsb byte es:[edi], byte [esi]
xor al, 0xce
lodsd eax, dword [esi]
cwde
xchg ebx, edx
lodsd eax, dword [esi]
cdq
dec ebp
push ecx
mov ds, word [ebx - 0x66192c78]
mov bl, dl
pushal
push ds
mov al, byte [0x918d6b38]
shr dword [ebp - 0x232c29e7], cl
adc eax, 0x99add36b
add al, 8
inc edi
test al, 0xa
mov eax, 0x78899ad
xor byte [eax - 0x66522ff3], ch
mov byte [edi + 0x1dc79546], dl
lodsd eax, dword [esi]
xor al, 0xce
lodsd eax, dword [esi]
cwde
inc edx
sub byte [ebp + 0x6da48898], 0x4b
and eax, 0x5726e1e1
loop 0x5d9f13
cwde
mov byte [esp + ebp*8 - 0x67], dl
movsd dword es:[edi], dword [esi]
dec edi
sbb eax, 0x81d38899
invalid
Function at 0x1002b49
Capabilities:
Encode data using xor

Disassembly:
call 0x1002a30
sub ecx, ecx
sub cx, 0xff6f
call 0x1002b49
rcr byte [esi - 0x7f], 0x76
push cs
mul ah
js 0x1002bc5
xor dword [esi + 0xe], 0x7278e4f6
sub esi, 0xfffffffc
loop 0x1002b4c
invalid
lds esi, [ecx + edi*2 - 0x3b]
dec esp
mov edx, 0x84a94d5c
movsb byte es:[edi], byte [esi]
stosb byte es:[edi], al
invalid
Function at 0x403cf7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
xor ecx, ecx
add eax, edx
mov dword [ebp - 8], ecx
cmp dword [eax + 0x7c], ecx
je 0x403d74
push ebx
push esi
mov esi, dword [eax + 0x78]
add esi, edx
mov ebx, dword [esi + 0x1c]
push edi
mov edi, dword [esi + 0x20]
add ebx, edx
add edi, edx
mov dword [ebp - 4], ecx
cmp dword [esi + 0x14], ecx
jbe 0x403d71
jmp 0x403d2e
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [edi + eax*4]
add ecx, edx
mov dword [ebp - 0xc], ecx
call fcn.00404841
mov ecx, dword [ebp - 0xc]
mov edx, eax
call fcn.0040484f
test eax, eax
je 0x403d59
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x14]
jb 0x403d2b
jmp 0x403d71
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 4]
lea ecx, [eax + ecx*2]
mov eax, dword [ebp + 8]
movzx ecx, word [ecx + eax]
mov ebx, dword [ebx + ecx*4]
add ebx, eax
mov dword [ebp - 8], ebx
pop edi
pop esi
pop ebx
call fcn.00403cca
sub eax, dword [0x40500c]
mov ecx, 0x7fff
cmp ecx, eax
sbb eax, eax
not eax
and eax, dword [ebp - 8]
leave
ret
Function at 0x10001110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x120
mov eax, dword [0x1001b2a8]
xor eax, esp
mov dword [esp + 0x11c], eax
mov edx, dword [esp + 0x128]
push esi
mov esi, dword [esp + 0x128]
mov dword [esp + 0x10], edx
test esi, esi
jne 0x10001153
xor eax, eax
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.1000c11c
add esp, 0x120
ret
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + esi + 0x7c]
push ebp
mov ebp, dword [eax + esi + 0x78]
xor eax, eax
add ebp, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], eax
test ecx, ecx
je 0x100012b2
cmp ebp, esi
jbe 0x100012b2
push ebx
push edi
cmp edx, 0x10000
jae 0x100011ad
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add edi, eax
cmp edx, edi
jae 0x1000127d
cmp edx, eax
jb 0x1000127d
sub edx, eax
mov eax, dword [ebp + 0x1c]
lea edx, [eax + edx*4]
mov eax, dword [edx + esi]
jmp 0x10001253
mov ecx, dword [ebp + 0x20]
add ecx, esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], eax
cmp dword [ebp + 0x18], eax
jbe 0x1000121f
movzx edx, byte [edx]
mov dword [esp + 0x18], edx
jmp 0x100011d4
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov edx, dword [ecx + edx*4]
mov bl, byte [edx + esi]
mov ecx, dword [esp + 0x18]
add edx, esi
movzx edi, bl
sub ecx, edi
jne 0x10001209
mov edi, dword [esp + 0x1c]
sub edi, edx
test bl, bl
je 0x10001209
mov bl, byte [edx + 1]
movzx ecx, byte [edi + edx + 1]
inc edx
movzx eax, bl
sub ecx, eax
mov eax, dword [esp + 0x14]
je 0x100011f1
test ecx, ecx
js 0x10001211
jg 0x10001211
je 0x10001238
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [ebp + 0x18]
jb 0x100011d0
pop edi
pop ebx
pop ebp
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.1000c11c
add esp, 0x120
ret
mov ecx, dword [ebp + 0x24]
mov edx, dword [esp + 0x10]
lea eax, [ecx + edx*2]
movzx ecx, word [eax + esi]
mov edx, dword [ebp + 0x1c]
lea eax, [edx + ecx*4]
mov eax, dword [eax + esi]
mov ecx, dword [esp + 0x20]
add eax, esi
test eax, eax
je 0x1000121f
cmp eax, ebp
jb 0x1000121f
add ecx, ebp
cmp eax, ecx
jae 0x1000121f
mov cl, byte [eax]
mov ebx, eax
test cl, cl
je 0x1000127d
jmp 0x10001270
cmp cl, 0x2e
je 0x10001281
mov cl, byte [ebx + 1]
inc ebx
test cl, cl
jne 0x10001270
xor eax, eax
jmp 0x1000121f
mov esi, ebx
sub esi, eax
test esi, esi
jle 0x1000127d
mov ecx, esi
lea edi, [esp + 0x28]
call fcn.10002700
mov ecx, edi
push ecx
mov byte [esp + esi + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
inc ebx
push ebx
push eax
call fcn.10001110
add esp, 8
jmp 0x1000121f
mov ecx, dword [esp + 0x124]
pop ebp
pop esi
xor ecx, esp
xor eax, eax
call fcn.1000c11c
add esp, 0x120
ret
Function at 0x10001ae0
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call
Inspect section memory permissions

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
mov ebx, dword [edi + 0x3c]
mov eax, dword [ebx + edi + 0x50]
push 0x40
add ebx, edi
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x1001d708], eax
test eax, eax
je 0x10001cae
mov ecx, dword [edi + 0x3c]
movzx edx, word [ecx + edi + 0x14]
add ecx, edi
push ebp
push esi
lea ecx, [edx + ecx + 0x18]
xor esi, esi
mov edx, 0x7fffffff
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 0
cmp si, word [ebx + 6]
jae 0x10001b9a
lea ebp, [ecx + 0x14]
jmp 0x10001b40
mov ecx, dword [ebp]
test ecx, ecx
je 0x10001b51
cmp ecx, edx
jae 0x10001b51
mov edx, ecx
mov dword [esp + 0x10], edx
mov esi, dword [ebp - 8]
add esi, dword [0x1001d708]
lea eax, [ecx + edi]
mov ecx, dword [ebp - 4]
dec ecx
js 0x10001b81
mov edi, eax
lea edx, [ecx + esi]
sub edi, esi
lea ebx, [ebx]
mov al, byte [edi + edx]
mov byte [edx], al
dec edx
dec ecx
jns 0x10001b70
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
movzx ecx, word [ebx + 6]
inc eax
add ebp, 0x28
mov dword [esp + 0x14], eax
cmp eax, ecx
jl 0x10001b40
mov eax, dword [0x1001d708]
dec edx
js 0x10001bb0
lea ecx, [eax + edx]
sub edi, eax
mov al, byte [edi + ecx]
mov byte [ecx], al
dec ecx
dec edx
jns 0x10001ba2
mov eax, dword [0x1001d708]
mov ecx, eax
sub ecx, dword [ebx + 0x34]
je 0x10001bc0
push ecx
push 1
push eax
call fcn.10001090
call fcn.100012e0
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
xor eax, eax
cmp esi, 2
setne al
push ecx
xor ecx, ecx
push edx
mov edx, dword [0x1001d708]
dec eax
and eax, 0x1001d308
test esi, esi
setne cl
push ecx
push edx
call fcn.10001820
mov ecx, dword [0x1001d708]
mov eax, dword [ecx + 0x3c]
movzx edx, word [eax + ecx + 0x14]
add eax, ecx
lea eax, [edx + eax + 0x18]
xor edx, edx
add esp, 0x10
xor edi, edi
cmp dx, word [ebx + 6]
jae 0x10001c6f
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esi, [eax + 0x24]
nop
mov edx, dword [esi]
xor eax, eax
test edx, 0x20000000
je 0x10001c31
mov eax, 0x10
test edx, 0x40000000
je 0x10001c3c
or eax, 0x20
test edx, edx
jns 0x10001c43
or eax, 0x40
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esi - 0x18]
push eax
mov eax, dword [esi - 0x1c]
push eax
add edx, ecx
push edx
mov dword [esp + 0x2c], 0
call ebp
movzx eax, word [ebx + 6]
mov ecx, dword [0x1001d708]
inc edi
add esi, 0x28
cmp edi, eax
jl 0x10001c20
mov edx, 0x2000
pop esi
pop ebp
test word [ebx + 0x16], dx
je 0x10001c8a
mov eax, dword [ebx + 0x28]
push 0
push 1
push ecx
add eax, ecx
call eax
jmp 0x10001c9b
mov edx, dword [ebx + 0x28]
push 5
push 0x10019392
push 0
push ecx
add edx, ecx
call edx
mov eax, dword [0x1001d2dc]
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x100022e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
test edi, edi
jne 0x100022f7
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [0x1001d718]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x10002329
xor ebp, ebp
mov ecx, eax
lea esp, [esp]
cmp byte [ecx], bl
je 0x10002322
inc ebp
add ecx, 0x73
cmp ebp, 0x3e8
jl 0x10002310
jmp 0x10002329
imul ebp, ebp, 0x73
add ebp, eax
jne 0x1000234a
push 0x40
push 0x1000
push 0x1c138
push 0
call esi
mov dword [0x1001d718], eax
test eax, eax
jne 0x10002308
pop esi
pop ebp
pop edi
pop ebx
add esp, 8
ret
lea esi, [ebp + 0xa]
mov dword [ebp + 0x4f], ebx
mov dword [ebp + 0x4b], edi
mov dword [esp + 0x14], esi
xor ebx, ebx
lea esp, [esp]
push 0
add edi, ebx
push edi
call fcn.1000a2d0
mov edx, eax
mov al, byte [edi]
mov dword [esp + 0x10], edx
cmp al, 0x70
jb 0x100023a0
cmp al, 0x7f
ja 0x100023a0
movzx eax, al
mov ecx, 0x100
imul ax, cx
mov ecx, 0x100f
add ax, cx
mov word [esi], ax
mov eax, dword [edi + 1]
sub eax, esi
add eax, edi
mov dword [esi + 2], eax
add esi, 6
jmp 0x100023f2
cmp al, 0xf
jne 0x100023c6
mov cl, byte [edi + 1]
cmp cl, 0x80
jb 0x100023c6
cmp cl, 0x8f
ja 0x100023c6
mov cx, word [edi]
mov word [esi], cx
mov eax, dword [edi + 2]
sub eax, esi
add eax, edi
mov dword [esi + 2], eax
add esi, 6
jmp 0x100023f2
cmp al, 0xe9
je 0x100023e3
cmp al, 0xe8
je 0x100023e3
push edx
push edi
push esi
call fcn.10010660
mov edx, dword [esp + 0x1c]
add esp, 0xc
add esi, dword [esp + 0x10]
jmp 0x100023f2
mov byte [esi], al
mov ecx, dword [edi + 1]
sub ecx, esi
add ecx, edi
mov dword [esi + 1], ecx
add esi, 5
mov edi, dword [esp + 0x1c]
add ebx, edx
mov eax, 6
cmp ebx, eax
jb 0x10002360
push ebx
lea eax, [ebp + 0x2b]
lea edx, [ebx + edi]
push edi
push eax
mov byte [esi], 0x68
mov dword [esi + 1], edx
mov byte [esi + 5], 0xc3
call fcn.10010660
mov ecx, dword [esp + 0x2c]
mov dword [ebp + 1], ecx
xor eax, eax
add esp, 0xc
dec eax
lea ecx, [ebp + 6]
mov byte [ebp + 0x2a], bl
mov byte [ebp], 0x68
mov byte [ebp + 5], 0xc3
mov dword [ecx], ebp
je 0x10002486
dec eax
je 0x1000246f
dec eax
je 0x10002458
mov eax, dword [esp + 0x14]
pop esi
mov byte [edi], 0x68
mov byte [edi + 5], 0xc3
mov dword [edi + 1], ebp
pop ebp
pop edi
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x14]
sub ebp, edi
sub ebp, 5
pop esi
mov byte [edi], 0xe8
mov dword [edi + 1], ebp
pop ebp
pop edi
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x14]
pop esi
mov edx, 0x15ff
pop ebp
mov word [edi], dx
mov dword [edi + 2], ecx
pop edi
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x14]
sub ebp, edi
sub ebp, 5
pop esi
mov byte [edi], 0xe9
mov dword [edi + 1], ebp
pop ebp
pop edi
pop ebx
add esp, 8
ret
Function at 0x100024a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 4]
push eax
push 0x40
push 6
push esi
mov dword [esp + 0x14], 0
call ebx
test eax, eax
jne 0x100024c7
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x10]
push edi
push ecx
push esi
call fcn.100022e0
add esp, 8
lea edx, [esp + 0xc]
push edx
mov edi, eax
mov eax, dword [esp + 0xc]
push eax
push 6
push esi
mov dword [esp + 0x1c], 0
call ebx
mov eax, edi
pop edi
pop ebx
add esp, 8
ret

Function at 0x100025d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
jne 0x100025df
xor eax, eax
pop ebp
pop ecx
ret
mov eax, dword [ebp + 0x3c]
mov eax, dword [eax + ebp + 0x80]
add eax, ebp
je 0x100025da
push ebx
push esi
push edi
mov edi, eax
add eax, 0xc
cmp dword [eax], 0
mov dword [esp + 0x10], edi
je 0x100026c3
mov edx, dword [eax]
mov esi, 0x10019304
add edx, ebp
jmp 0x10002610
movzx eax, byte [edx]
lea ecx, [eax - 0x41]
inc edx
cmp ecx, 0x19
ja 0x1000261f
add eax, 0x20
movzx ecx, byte [esi]
lea ebx, [ecx - 0x41]
inc esi
cmp ebx, 0x19
ja 0x1000262e
add ecx, 0x20
test eax, eax
je 0x10002636
cmp eax, ecx
je 0x10002610
sub eax, ecx
je 0x10002643
add edi, 0x14
mov dword [esp + 0x10], edi
jmp 0x100026b6
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
lea ebx, [eax + ebp]
mov edi, ecx
test ecx, ecx
jne 0x10002653
mov edi, eax
mov eax, dword [edi + ebp]
add edi, ebp
test eax, eax
je 0x100026ad
lea esp, [esp]
cmp eax, 0x80000000
jae 0x100026a0
mov ecx, dword [esp + 0x1c]
mov dl, byte [ecx]
lea esi, [eax + ebp + 2]
movzx eax, byte [esi]
movzx ebp, dl
sub eax, ebp
jne 0x10002694
sub esi, ecx
lea ecx, [ecx]
test dl, dl
je 0x10002694
mov dl, byte [ecx + 1]
movzx eax, byte [esi + ecx + 1]
inc ecx
movzx ebp, dl
sub eax, ebp
je 0x10002680
test eax, eax
js 0x1000269c
jg 0x1000269c
je 0x100026cb
mov ebp, dword [esp + 0x18]
mov eax, dword [edi + 4]
add edi, 4
add ebx, 4
test eax, eax
jne 0x10002660
add dword [esp + 0x10], 0x14
mov edi, dword [esp + 0x10]
cmp dword [edi + 0xc], 0
lea eax, [edi + 0xc]
jne 0x10002602
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
pop ecx
ret
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [esp + 0x18]
push edx
push 0x40
push 4
push ebx
call esi
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
push edx
push 4
push ebx
mov dword [ebx], eax
call esi
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
pop ecx
ret