joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4201e8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x1126803
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420223
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x42023c
lea eax, [ebp - 0x10]
mov edx, dword [0x114230c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x42024f
lea eax, [ebp - 0x10]
mov edx, dword [0x114230c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42025b
adc edx, 0
mov edx, dword [edx*4 + 0x1141154]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4203d5
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4203c8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4203c8
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4203c8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4203c8
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420366
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420366
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420366
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420366
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4203c8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4203c8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4203c8
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4203c8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4203c8
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x4203ed
inc ebx
cmp ebx, 0x19
jne 0x420215
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x112680a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401cf0
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x417014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x10], eax
xor esi, esi
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x401de5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push 0x190000
push 3
push esi
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401d80
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x401dd0
push dword [ebp + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x401dd0
push esi
push 0x190000
push 3
push esi
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401dd0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
jne 0x401dc9
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x401dc4
push 0
push dword [ebp - 0xc]
push 0x40c
push dword [ebp - 0x10]
push 0x410
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
mov esi, eax
cmp edi, 0xffffffff
je 0x401dd0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410430
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410430
mov esp, ebp
pop ebp
ret 0x20
Function at 0x404e80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411b35
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x417014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push 0
push 0
push 1
push 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], 0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov eax, dword [edi + 8]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x14], eax
cmp esi, 0xffffffff
je 0x404fed
mov ebx, dword [ebp + 0xc]
nop dword [eax]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 0x38]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404fc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x404f9b
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, 0
je 0x404f4a
sub eax, 1
je 0x40501c
jmp 0x404f00
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x404fc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x40501c
push 0
push 0xffffffffffffffff
push str.unexpected_error
lea ecx, [ebp - 0x6c]
call fcn.0040e81e
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x54]
call fcn.00404760
push 0x41612c
jmp 0x405029
cmp eax, 0x6d
je 0x40501c
push 0
push 0xffffffffffffffff
push str.Read_Error
lea ecx, [ebp - 0x6c]
call fcn.0040e81e
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x54]
call fcn.00404760
push 0x41612c
jmp 0x405029
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410430
mov esp, ebp
pop ebp
ret 8
push 0
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x6c]
call fcn.0040e81e
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x54]
call fcn.00404760
push 0x41612c
lea eax, [ebp - 0x54]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
lea ecx, [ebp - 0x54]
call fcn.004047f0
push 0x4160f4
lea eax, [ebp - 0x54]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x4050d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411b9d
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x417014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
je 0x405236
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push 1
push 0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov eax, dword [edi + 8]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x14], eax
cmp esi, 0xffffffff
je 0x40524c
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 0x38]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4051ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4051d3
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, 0
je 0x40519b
sub eax, 1
jne 0x405156
jmp 0x405236
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410430
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
je 0x40521e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
je 0x40521e
push 0
push 0xffffffffffffffff
push str.Connection_Closed
lea ecx, [ebp - 0x6c]
call fcn.0040e81e
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x88]
call fcn.00404760
push 0x41612c
lea eax, [ebp - 0x88]
jmp 0x405246
lea ecx, [ebp - 0x88]
call fcn.004047f0
push 0x4160f4
lea eax, [ebp - 0x88]
jmp 0x405246
lea ecx, [ebp - 0x54]
call fcn.004047f0
push 0x4160f4
lea eax, [ebp - 0x54]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x6c]
call fcn.0040e81e
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x54]
call fcn.00404760
push 0x41612c
lea eax, [ebp - 0x54]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x40fc84
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
push esi
push eax
push 1
push eax
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x40fcb9
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
leave
ret
push str.unable_to_create_tls_index
lea ecx, [ebp - 0x1c]
call fcn.00404730
push 0x416094
lea eax, [ebp - 0x1c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x410280
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 4
mov esi, ecx
call fcn.00410441
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x41029c
mov dword [eax], ecx
jmp 0x41029e
mov eax, ecx
push ecx
push ecx
push esi
push 0x410310
push ecx
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
pop esi
mov dword [ecx], eax
leave
ret
Function at 0x1209d
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
push eax
nop
nop
nop
nop
mov eax, dword fs:[0x30]
nop
nop
nop
nop
mov dword [ebp - 4], eax
nop
nop
pop eax
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0xc]
add esi, 0x14
mov edi, dword [esi]
jmp 0x120db
push dword [ebp + 8]
push dword [edi + 0x28]
call dword [0x410a4]
test eax, eax
je 0x120e5
mov edi, dword [edi]
cmp edi, esi
jne 0x120c9
xor al, al
pop edi
pop esi
leave
ret
mov al, 1
jmp 0x120e1
Function at 0x15566
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4e078]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x10], 0x33323130
mov dword [ebp - 0xc], 0x37363534
mov word [ebp - 8], 0x3938
mov byte [ebp - 6], 0
mov ecx, edi
mov eax, esi
push ebx
push 0xa
cdq
pop ebx
idiv ebx
inc ecx
test eax, eax
jne 0x15596
mov byte [ecx], al
pop ebx
mov eax, esi
xor edx, edx
push 0xa
pop esi
div esi
dec ecx
mov dl, byte [ebp + edx - 0x10]
mov esi, eax
mov byte [ecx], dl
test esi, esi
jne 0x155a4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
pop esi
call fcn.0002f48c
leave
ret
Function at 0x1748f
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x980
mov eax, dword [0x4e078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
sub esp, 0xc
mov dword [ebp - 0x8d8], eax
lea eax, [ebp + 0xc]
mov esi, esp
call fcn.00022d75
lea eax, [ebp - 0x980]
push eax
call fcn.000155de
add esp, 0x10
push 0xf
pop ecx
mov esi, eax
lea edi, [ebp - 0x944]
rep movsd dword es:[edi], dword [esi]
push 0x47a5a
lea esi, [ebp - 0x8f8]
call fcn.00022d43
xor ebx, ebx
push ebx
push ebx
push ebx
push 1
push dword [ebp + 0x18]
call dword [0x252104]
push dword [0x251dcc]
mov dword [ebp - 0x8dc], eax
push dword [ebp - 0x940]
xor esi, esi
call dword [0x2521e0]
test eax, eax
jne 0x17516
inc esi
cmp dword [ebp - 0x8dc], ebx
je 0x1769a
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x92c]
push dword [ebp - 0x934]
push dword [ebp - 0x8dc]
call dword [0x252204]
mov dword [ebp - 0x8e8], eax
cmp eax, ebx
je 0x1768e
mov eax, esi
neg eax
push ebx
sbb eax, eax
and eax, 0x800000
add eax, 0x400100
push eax
push ebx
push ebx
push dword [0x251c18]
push dword [ebp - 0x918]
push 0x48ab4
push dword [ebp - 0x8e8]
call dword [0x252244]
mov edi, eax
mov dword [ebp - 0x8e0], edi
cmp edi, ebx
je 0x17682
cmp esi, ebx
je 0x175af
or dword [ebp - 0x8ec], 0x10300
push 4
lea eax, [ebp - 0x8ec]
push eax
push 0x1f
push edi
call dword [0x251ffc]
push ebx
push ebx
push ebx
push ebx
push edi
call dword [0x2521cc]
push ebx
mov esi, eax
lea eax, [ebp - 0x8fc]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x13
push edi
mov dword [ebp - 0x8fc], 0x100
call dword [0x25225c]
test eax, eax
jne 0x175f7
push 0x48ab8
mov esi, dword [ebp - 0x8d8]
call fcn.00022d43
jmp 0x176ab
lea edx, [ebp - 0x104]
call fcn.00024359
cmp eax, 0xc8
jne 0x176d7
cmp esi, ebx
je 0x17676
mov edi, 0x7cf
jmp 0x17657
mov eax, dword [ebp - 0x8e4]
cmp eax, ebx
je 0x17676
mov byte [ebp + eax - 0x8d4], bl
lea eax, [ebp - 0x8d4]
push eax
lea esi, [ebp - 0x908]
lea eax, [ebp - 0x8f8]
call fcn.00022e65
lea esi, [ebp - 0x8f8]
call fcn.00022de9
mov eax, dword [ebp - 0x908]
call fcn.00013510
lea eax, [ebp - 0x8e4]
push eax
push edi
lea eax, [ebp - 0x8d4]
push eax
push dword [ebp - 0x8e0]
call dword [0x25212c]
test eax, eax
jne 0x17618
push dword [ebp - 0x8e0]
call dword [0x252100]
push dword [ebp - 0x8e8]
call dword [0x252100]
push dword [ebp - 0x8dc]
call dword [0x252100]
mov esi, dword [ebp - 0x8d8]
lea eax, [ebp - 0x8f8]
call fcn.00022d75
mov eax, dword [ebp - 0x8f8]
call fcn.00013510
mov eax, dword [ebp + 0xc]
call fcn.00013510
mov eax, dword [ebp + 0x18]
call fcn.00013510
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0002f48c
leave
ret
push 0x48ac0
jmp 0x175e7
Function at 0x1826f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
push 0x40
push 0
push esi
call fcn.0001880b
add esp, 0x10
test eax, eax
jne 0x1828f
xor eax, eax
inc eax
jmp 0x18325
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x18322
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x18322
push dword [ebp + 8]
lea edi, [esi + 0x40]
push 0xf8
push eax
push edi
call fcn.0001880b
add esp, 0x10
test eax, eax
je 0x18287
cmp dword [edi], 0x4550
jne 0x18322
mov eax, 0x10b
cmp word [esi + 0x58], ax
jne 0x18322
movzx eax, word [esi + 0x46]
test ax, ax
je 0x18322
imul eax, eax, 0x28
push eax
mov dword [esi + 0x140], eax
call fcn.000243d4
pop ecx
mov dword [esi + 0x138], eax
test eax, eax
jne 0x182f7
push 3
jmp 0x18324
push dword [ebp + 8]
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
push dword [esi + 0x140]
lea ecx, [ecx + edx + 0x18]
push ecx
push eax
mov dword [esi + 0x13c], ecx
call fcn.0001880b
add esp, 0x10
neg eax
sbb eax, eax
inc eax
jmp 0x18325
push 2
pop eax
pop edi
pop ebp
ret
Function at 0x21eec
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 0x3c]
xor ebx, ebx
add esi, eax
mov dword [ebp - 0x14], ebx
xor eax, eax
cmp dword [esi], 0x4550
push edi
jne 0x21fb2
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00036090
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push 4
pop edi
push edi
push 1
push ebx
push ebx
push 0x47615
push 0x47754
call dword [0x2520b0]
test eax, eax
je 0x21fb0
push edi
push 0x1000
push edi
push ebx
call dword [0x25216c]
mov ebx, eax
push ebx
mov dword [ebx], 0x10007
push dword [ebp - 0x20]
call dword [0x410c4]
test eax, eax
je 0x21fb0
push 0
push edi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x24]
call dword [0x41194]
push 0x40
push 0x3000
push dword [esi + 0x50]
push dword [esi + 0x34]
push dword [ebp - 0x24]
call dword [0x410d0]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x21fb7
push dword [ebp - 0x20]
call dword [0x252220]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov edi, dword [0x410d4]
push 0
push dword [esi + 0x54]
push dword [ebp + 8]
push eax
push dword [ebp - 0x24]
call edi
and dword [ebp - 0xc], 0
xor eax, eax
cmp ax, word [esi + 6]
jae 0x22011
and dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 8]
push 0
lea eax, [eax + ecx + 0xf8]
push dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x10]
add edx, ecx
push edx
push eax
push dword [ebp - 0x24]
call edi
movzx eax, word [esi + 6]
inc dword [ebp - 0xc]
add dword [ebp - 8], 0x28
cmp dword [ebp - 0xc], eax
jl 0x21fda
push 0
push 4
lea eax, [esi + 0x34]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x24]
call edi
mov eax, dword [esi + 0x28]
add eax, dword [ebp - 0x10]
push ebx
mov dword [ebx + 0xb0], eax
push dword [ebp - 0x20]
call dword [0x410c8]
push dword [ebp - 0x20]
call dword [0x252220]
mov eax, dword [ebp - 0x1c]
jmp 0x21fb2
Function at 0x2a979
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret

Function at 0x2c9d0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov ebx, eax
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x2c9fe
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call fcn.00036090
mov eax, ebx
movzx ecx, word [eax*8 + 0x471b2]
mov dword [esi + 0x6af98], ecx
movzx ecx, word [eax*8 + 0x471b0]
mov dword [esi + 0x6af9c], ecx
movzx ecx, word [eax*8 + 0x471b4]
mov dword [esi + 0x6afa0], ecx
movzx eax, word [eax*8 + 0x471b6]
add esp, 0xc
mov dword [esi + 0x6af94], eax
cmp ebx, 2
jg 0x2ca61
mov eax, dword [ebp + 8]
or word [eax], 4
jmp 0x2ca6d
cmp ebx, 8
jl 0x2ca6d
mov eax, dword [ebp + 8]
or word [eax], 2
push 0x10000
lea ebx, [esi + 0x1af70]
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, edi
je 0x2cad2
cmp eax, 0xffffffff
je 0x2cad2
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x2caad
call fcn.0002cc28
mov dword [esi + 0x6af7c], edi
xor eax, eax
movzx ecx, byte [ebx + eax]
shl edi, 5
xor edi, ecx
and edi, 0x7fff
inc eax
mov dword [esi + 0x6af7c], edi
cmp eax, 2
jb 0x2cab5
jmp 0x2cae2
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x2cd39
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x2cf37
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x2cdb3
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x2cdf6
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x2cdf6
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0x2cddd
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
mov edx, esi
call fcn.0002cae7
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
cmp ebx, eax
jbe 0x2cdf6
mov ebx, eax
cmp ebx, 3
jb 0x2ceb7
mov edx, dword [esi + 0x6af84]
sub edx, dword [esi + 0x6af88]
lea ecx, [ebx - 3]
mov eax, esi
call fcn.0002c46e
sub dword [esi + 0x6af90], ebx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x2ce84
cmp eax, 3
jb 0x2ce84
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x2ce32
jmp 0x2ced7
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [esi + 0x6af7c], edx
jmp 0x2cedd
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
xor edx, edx
mov eax, esi
call fcn.0002c46e
dec dword [esi + 0x6af90]
mov dword [ebp - 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp - 8], 0
je 0x2cf18
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x2cef6
lea edx, [ecx + esi + 0x1af70]
jmp 0x2cef8
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 0
sub eax, ecx
push edx
mov ecx, esi
call fcn.0002c2f1
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x2cf29
call fcn.0002cc28
cmp dword [esi + 0x6af90], 0
jne 0x2cd63
pop edi
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x2cf4a
lea edx, [ecx + esi + 0x1af70]
jmp 0x2cf4c
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push edx
mov ecx, esi
call fcn.0002c2f1
pop ecx
pop ecx
pop esi
pop ebx
leave
ret