joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10016040
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
mov eax, dword [edx]
movzx edx, word [eax + 0x14]
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
jmp 0x10016079
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
add edx, 0x28
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x10], edx
jge 0x100161c8
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x20000000
je 0x100160a2
mov dword [ebp - 0x18], 1
jmp 0x100160a9
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x40000000
je 0x100160c6
mov dword [ebp - 0x1c], 1
jmp 0x100160cd
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x80000000
je 0x100160ea
mov dword [ebp - 0x20], 1
jmp 0x100160f1
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x2000000
je 0x1001612a
push 0x4000
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call section..text
mov eax, dword [eax + 0x8c]
call eax
jmp 0x10016067
mov ecx, dword [ebp - 0x24]
shl ecx, 4
mov edx, dword [ebp - 0x28]
lea eax, [ecx + edx*8 + 0x10019ec0]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
and ecx, 0x4000000
je 0x1001615d
mov edx, dword [ebp - 0x14]
or edx, 0x200
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jne 0x1001619d
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
and eax, 0x40
je 0x10016184
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0xc], eax
jmp 0x1001619d
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
and edx, 0x80
je 0x1001619d
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jbe 0x100161c3
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call section..text
mov eax, dword [eax + 0x18]
call eax
jmp 0x10016067
mov esp, ebp
pop ebp
ret
Function at 0x100161d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], 0
jmp 0x10016215
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 0x28
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0xc], ecx
jge 0x100162c2
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x10016277
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jle 0x10016275
push 4
push 0x1000
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax + 0xc]
push ecx
call section..text
mov edx, dword [eax + 0x14]
call edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
call fcn.10013c90
jmp 0x10016203
push 4
push 0x1000
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 0xc]
push edx
call section..text
mov eax, dword [eax + 0x14]
call eax
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
add edx, dword [eax + 0x14]
mov ecx, dword [ebp - 8]
call fcn.10013cd0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 8], edx
jmp 0x10016203
mov esp, ebp
pop ebp
ret 4
Function at 0x1f40058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01f401a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1f4007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1f4006a
add dl, dl
jne 0x1f40089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1f400dc
xor eax, eax
add dl, dl
jne 0x1f40096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1f4017d
add dl, dl
jne 0x1f400a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1f400b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1f400bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1f400c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1f400d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1f40075
mov eax, 1
add dl, dl
jne 0x1f400ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1f400f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1f400e1
sub eax, ebx
mov ebx, 1
jne 0x1f40128
mov ecx, 1
add dl, dl
jne 0x1f4010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1f40119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1f40105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1f40075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1f4013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1f4014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1f40136
cmp eax, 0x7d00
jae 0x1f4016d
cmp eax, 0x500
jb 0x1f40168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1f40075
cmp eax, 0x7f
ja 0x1f40170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1f40075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1f4019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1f40075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401f90
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x401fdb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401fd4
test esi, esi
je 0x401fd4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401fb0
mov dword [esp], 0x408044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4021c0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x402210
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x4022e8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40224e
cmp eax, 4
jne 0x402270
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40225e
cmp edx, 4
je 0x40225e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004021c0
Function at 0x404ce0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov al, 0x57
mov edi, dword [ebp + 8]
lea esi, [edi + 0x38]
push esi
call fcn.004056f0
mov eax, dword [edi + 4]
xor ebx, dword [ecx]
add esp, 4
xchg esi, eax
xchg ebp, eax
mov dword [ebp + 0x38], ebp
pop edi
cmp al, 0x74
mov edx, 0xf4e850
add byte [eax], al
push eax
call 0x404e00
mov ebx, 0x543b0447
jne 0x404d06
cmp edx, dword [ebp + esi*2 - 0xd]
xor byte [edi + 0x10], 0xf0
call 0x564056f0
mov edx, dword [esi + 0x1c]
pop eax
push ds
push eax
mov dword [edi - 0x39], ebx
call fcn.00405730
mov eax, dword [edi + 0x30]
mov ecx, dword [edi - 0x5a]
mov dword [edi + 0x1c], ebx
dec edx
pop edi
and al, 0xfd
mov ebx, 0x8b104889
or byte [ebx - 0x37c4f73a], al
mov dword [ebp - 0xc], eax
ja 0x404d0f
test eax, 0x8b002272
push eax
ror byte [ecx + 0x187f8b1a], 0x8b
xor byte [ecx], bl
inc edi
or al, 0x85
rcl byte [ebx + 6], 0x50
call 0xfa7ea2d0
mov eax, dword [edi]
mov ecx, dword [edi + 6]
mov edx, dword [edi + 8]
mov dword [esi], ebx
and ecx, dword [ecx + 0x68b514d]
add al, 0x9f
cld
mov dword [eax + 0x1b468bf8], edx
test ecx, ecx
push esi
or bh, byte [ebx]
ret 0x676

Function at 0x405e50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
pop ebx
pop ebp
adc byte [esi - 0x7b], dl
scasb al, byte es:[edi]
push edi
jge 0x405edf
mov ebx, 0xc5d5cf01
cmp word [eax], 0
jne 0x405e74
xor al, 0x9f
lahf
js 0x405e6d
enter 0xffffffffffffc174, 0x43
pushal
rol byte [edx], 0xeb
in eax, dx
sub eax, dword [ebp + 0xc]
adc dword [edi - 0x76072efe], 0x45
adc byte [esp + eax - 0x63], ch
add al, 0
add byte [eax + 0x5c15ff50], al
rol dword [eax], 0x8b
clc
mov eax, dword [ebp + 0x10]
je 0x405eda
add dword [esi - 0x77], edx
jne 0x405ecc
clc
sbb byte [ecx + eax*8 + 0x40], 0x27
add esp, 8
lea ecx, [ebp - 0x63]
mov dword [edi], eax
scasb al, byte es:[edi]
inc edi
xchg byte [ecx + 0x50], dl
invalid
add dword [ecx - 0x3b7d0000], edi
push esi
cmp esp, dword [ebx + 0x297eb189]
lea ecx, [ebx - 1]
ja 0x405f25
dec ebx
push dword [edi + 0x47]
add al, 0x89
dec ebp
or al, 0x41
mov dword [ebp + 0xc], ecx
inc ecx
mov ebp, dword [esi + 0x2c283fc]
mov dword [eax], edx
push ebx
xor byte [esi + 0x631e4601], cl
mov ch, 0xcc
jne 0x405eeb
mov edx, dword [ebp + 0xc]
sub al, 0xc0
push cs
rol byte [ecx + 0x55], cl
ret

Function at 0x406810
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lodsb al, byte [esi]
or byte [edi - 0x74a9ffa2], 6
push eax
call 0x3fec40
push esi
call fcn.004066e0
add esp, 4
pop esi
add edx, eax
add al, 0xc6
nop
nop
nop
nop
nop
nop
nop
pop edx
nop
Function at 0x10456c80
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dl, 0x6b
xor esi, esi
lea edi, [ebp - 0x6c]
lea ebx, [ebp - 0x2c]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x8c]
mov byte [ebp - 0x8c], 0x56
mov byte [ebp - 0x8b], 0x69
mov byte [ebp - 0x8a], 0x72
mov byte [ebp - 0x89], 0x74
mov byte [ebp - 0x88], 0x75
mov byte [ebp - 0x87], 0x61
mov byte [ebp - 0x86], 0x6c
mov byte [ebp - 0x85], 0x41
mov byte [ebp - 0x84], 0x6c
mov byte [ebp - 0x83], 0x6c
mov byte [ebp - 0x82], 0x6f
mov byte [ebp - 0x81], 0x63
mov byte [ebp - 0x80], 0
mov byte [ebp - 0x7f], 0xd8
mov byte [ebp - 0x2c], 0x6b
mov byte [ebp - 0x2b], 0x65
mov byte [ebp - 0x2a], 0x72
mov byte [ebp - 0x29], 0x6e
mov byte [ebp - 0x28], 0x65
mov byte [ebp - 0x27], 0x6c
mov byte [ebp - 0x26], 0x33
mov byte [ebp - 0x25], 0x32
mov byte [ebp - 0x24], 0x2e
mov byte [ebp - 0x23], 0x64
mov byte [ebp - 0x22], 0x6c
mov byte [ebp - 0x21], 0x6c
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x1f], 0xd8
mov dword [0x104d37bc], 0xb8d
mov dword [0x104d37b8], 0xcd
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x9c], edi
mov byte [ebp - 0x9d], dl
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa8], esi
mov eax, dword [ebp - 0xa8]
mov cl, byte [ebp - 0x9d]
movsx edx, cl
mov si, dx
mov word [ebp + eax*2 - 0x6c], si
mov edx, eax
add edx, 1
mov cl, byte [ebp + eax - 0x2b]
cmp cl, 0
mov byte [ebp - 0x9d], cl
mov dword [ebp - 0xa8], edx
jne 0x10456d74
xor eax, eax
lea ecx, [ebp - 0x6c]
mov dword [0x104d37bc], 0xfffffe10
mov dword [0x104d37b8], 0x1a64
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [ebp - 0xac], eax
call fcn.104574d0
mov dword [esp], eax
mov eax, dword [ebp - 0x94]
mov dword [esp + 4], eax
call fcn.10456f10
xor ecx, ecx
mov dword [0x104d37bc], 0x21d9
cmp eax, 0
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xb4], ecx
je 0x10456efb
mov eax, dword [ebp - 0xb0]
mov dword [0x104d37b8], 0x94
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov ecx, dword [0x104d37bc]
add ecx, 0x9fc
mov dword [0x104d37b8], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x90]
mov dword [esp + 4], ecx
mov dword [ebp - 0xb8], eax
call fcn.10456a70
xor eax, eax
mov ecx, dword [ebp - 0xb8]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov dword [0x104d37bc], 0x10da
mov edx, dword [ebp - 0x98]
mov dword [edx + 0x18], ecx
mov ecx, dword [0x104d37bc]
mov esi, dword [ebp - 0xb8]
mov dword [edx + 0x44], esi
mov dword [0x104d37b8], 0x11c
add ecx, 0x1b90
mov dword [0x104d37bc], ecx
cmp esi, 0
mov dword [ebp - 0xb4], eax
je 0x10456efb
mov eax, dword [ebp - 0xb8]
add eax, 0x1354
mov dword [0x104d37b8], 0x48a
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xb4], eax
jmp 0x10456efb
mov eax, dword [ebp - 0xb4]
add esp, 0xc0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10457260
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x104d37c0], 0
mov dword [0x104d37c4], 0
mov dword [0x104d37d0], 0
mov dword [0x104d37bc], 0x263a
mov dword [0x104d37b8], 0x1b86
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x10457408
jmp 0x104572c5
jmp 0x10457408
xor eax, eax
mov ecx, 0x263a
mov edx, eax
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
jmp 0x104572de
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov edi, 0x100
add ecx, 1
add edx, 0xffffe647
mov ebx, eax
add ebx, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv edi
mov dword [0x104d37c0], edx
mov dword [0x104d37b8], 0xe08
mov ecx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + edx]
add ecx, esi
mov eax, ecx
mov dword [ebp - 0x38], edx
cdq
idiv edi
mov dword [0x104d37c4], edx
mov dword [0x104d37b8], 0x94c
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x104d37c8], cl
mov edi, dword [ebp - 0x34]
mov dword [0x104d37bc], edi
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x104d37b8], 0x1891
mov cl, byte [0x104d37c8]
mov edx, dword [0x104d37c4]
mov byte [edi + edx], cl
mov dword [0x104d37bc], 0x11ad
mov edx, dword [0x104d37c0]
movzx edx, byte [edi + edx]
mov ecx, dword [0x104d37c4]
movzx ecx, byte [edi + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x104d37d0], ecx
mov dword [0x104d37b8], 0xdf3
mov dword [0x104d37bc], 0x1469
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x30]
mov dl, byte [edx + esi]
xor dl, byte [edi + ecx]
mov ecx, dword [ebp - 0x18]
mov byte [ecx + esi], dl
mov dword [0x104d37b8], 0x1f6c
mov ecx, dword [ebp - 0x10]
cmp ebx, ecx
mov dword [ebp - 0x3c], ebx
je 0x104572c0
mov eax, dword [0x104d37c0]
mov ecx, dword [0x104d37c4]
mov edx, dword [0x104d37bc]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], esi
jmp 0x104572de
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10457790
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
call fcn.104570d0
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x1045787d
jmp 0x10457915
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
je 0x104578aa
jmp 0x104577e4
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x20], eax
je 0x104577b7
mov eax, dword [esp + 0x20]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x104577d5
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
jmp 0x10457915
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.104580a0
lea ecx, [0x10458720]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x58], edx
mov dword [esp + 0x84], 0x2ebc00
mov edx, dword [0x104d37a4]
mov dword [esp + 0x6c], edx
mov edx, dword [0x104d37a8]
mov dword [esp + 0x64], edx
mov edx, dword [0x104d37ac]
mov dword [esp + 0x5c], edx
mov edx, dword [0x104d37b0]
mov dword [esp + 0x40], edx
mov edx, dword [0x104d37b4]
mov dword [esp + 0x68], edx
mov dword [0x104d37bc], 0xd80
mov dword [0x104d37b8], 0xffffff97
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ecx
jmp 0x104577d5
lea eax, [esp + 0x38]
mov dword [0x104d37b8], 0x2c2
mov dword [esp + 8], eax
call fcn.10458590
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
je 0x10457805
jmp 0x104577f8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x38]
mov dword [esp + 0x78], eax
mov dword [0x104d37bc], 0x7d4
mov eax, dword [eax + ecx + 0x50]
mov dword [esp + 0x38], eax
mov dword [0x104d37b8], 0xffffe833
mov eax, dword [esp + 0x30]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.10456c80
mov dword [0x104d37b8], 0x1531
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [0x104d37bc], 0x1920
mov dword [esp + 0x10], eax
jmp 0x104577f8
mov eax, dword [esp + 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x10457da0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x104d37c4], 0
mov byte [0x104d37c8], 0
mov dword [0x104d37b8], 0x2679
mov dword [0x104d37c0], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10457df8
xor eax, eax
mov dword [0x104d37c0], 0
mov dword [ebp - 0x20], eax
jmp 0x10457e2f
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x104d37b8]
add eax, 0x27
mov dword [0x104d37b8], eax
mov eax, dword [0x104d37c0]
add eax, 1
mov dword [0x104d37c0], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10457df8
jmp 0x10457de7
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x104d37cc], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x104d37bc], 0x1587
mov edi, dword [0x104d37c4]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x104d37cc], esi
mov eax, esi
cdq
idiv ecx
mov dword [0x104d37c4], edx
mov dword [0x104d37b8], 0x19e3
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x104d37c8], cl
mov dword [0x104d37b8], 0x1b42
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x104d37c8]
mov esi, dword [0x104d37c4]
mov byte [ebx + esi], cl
mov dword [0x104d37b8], 0x658
mov esi, dword [0x104d37c0]
add esi, 1
mov dword [0x104d37c0], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x10457e2f
mov eax, dword [0x104d37bc]
add eax, 0x251d
mov dword [0x104d37b8], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10458590
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x2c
mov dword [ebp - 8], 0
mov dword [0x104d37bc], 0x1b9e
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov ecx, 0x818
xor edx, edx
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0x10]
mov esi, dword [esi + 0x3c]
mov dword [0x104d37b8], 0x818
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jmp 0x104585f1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x104586db
jmp 0x10458689
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2], 0
mov esi, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], esi
je 0x1045869f
jmp 0x1045865a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x1045863f
jmp 0x10458689
mov dword [0x104d37b8], 0x262f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x104586b7
jmp 0x10458689
mov dword [0x104d37b8], 0x184e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x104585d9
jmp 0x10458689
mov eax, dword [ebp - 0x24]
add eax, 0xfffff7f5
mov dword [0x104d37b8], eax
mov ecx, dword [ebp - 0x20]
add ecx, 1
cmp ecx, 0x104
mov edx, ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ecx
jl 0x104585f1
jmp 0x1045869f
xor eax, eax
mov ecx, dword [0x104d37bc]
add ecx, 0xffffffb5
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
jmp 0x10458704
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
je 0x10458624
jmp 0x10458689
mov eax, dword [0x104d37bc]
add eax, 0xfffff9ea
mov dword [0x104d37b8], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x10458613
jmp 0x10458689
mov eax, 0xbb7
mov ecx, 1
mov dword [0x104d37bc], 0xa3c
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x1c]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
jne 0x10458689
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [0x104d37b8], ecx
add esp, 0x2c
pop esi
pop ebp
ret