joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10037932
Capabilities:
Terminate process

Disassembly:
jmp 0x1005d8c8
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1005d8d9
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.100390b1
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x100379f0
Capabilities:
Query environment variable

Disassembly:
jmp 0x1008c1b1
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1008c1c2
pop esi
ret
push ebx
push edi
push esi
call fcn.1008c098
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1003801c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1008c1ea
push ebx
push esi
push edi
call fcn.10038f44
add esp, 0xc
push 0
call fcn.100396b5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1003d6c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b5d40
push 0x10037f13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x1003d726
mov byte [ebp - 0x3d], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3d]
jmp 0x1003d7af
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], 0x4550
je 0x1003d74d
mov byte [ebp - 0x3e], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3e]
jmp 0x1003d7af
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0xd8]
cmp dword [ebp + 0xc], eax
jb 0x1003d788
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
add edx, dword [ecx + 0xd8]
mov eax, dword [ebp - 0x3c]
add edx, dword [eax + 0xdc]
cmp dword [ebp + 0xc], edx
jae 0x1003d788
mov byte [ebp - 0x3f], 1
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3f]
jmp 0x1003d7af
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x40]
jmp 0x1003d7af
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1003d900
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100c6aa4]
mov dword [ebp - 4], eax
jmp 0x1003d919
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1003d936
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1003d910
mov esp, ebp
pop ebp
ret
Function at 0x1003e140
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x1003e155
xor eax, eax
jmp 0x1003e1ca
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 0x10000
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
jmp 0x1003e182
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x38d
jae 0x1003e1c5
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x48
mov eax, dword [ebp - 0x10]
cmp dword [eax + edx + 0x40], 0
je 0x1003e1c3
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x1003e1bf
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x1003e1c3
xor eax, eax
jmp 0x1003e1ca
jmp 0x1003e179
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x1003ee10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1003ef10
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1003eecc
cmp dword [ebp - 4], 0x50000000
jb 0x1003ee4c
cmp dword [ebp - 4], 0x80000000
ja 0x1003ee4c
mov dword [ebp - 4], 0x80010000
jmp 0x1003ee25
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.100375f4
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1003ee72
jmp 0x1003eecc
cmp dword [ebp - 0x10], 0x10000
jne 0x1003eeb5
cmp dword [ebp - 0x14], 0x10000
jb 0x1003eeb5
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1003eea8
mov eax, dword [ebp - 0x24]
jmp 0x1003eece
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003eec7
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.1003ef10
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003ee25
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003ef50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1003f050
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1003f014
cmp dword [ebp - 4], 0x50000000
jb 0x1003ef91
cmp dword [ebp - 4], 0x80000000
ja 0x1003ef91
mov dword [ebp - 4], 0x4fff0000
jmp 0x1003ef6a
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.100375f4
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1003efb7
jmp 0x1003f014
cmp dword [ebp - 0x10], 0x10000
jne 0x1003effa
cmp dword [ebp - 0x14], 0x10000
jb 0x1003effa
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1003efed
mov eax, dword [ebp - 0x24]
jmp 0x1003f016
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003f00f
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.1003f050
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003ef6a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1005c836
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1005c875
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1005c875
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005c875
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1005c875
cmp dword [ecx + 0x74], 0xe
jbe 0x1005c875
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10089f1b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x100c4c20]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x10089f66
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.1008a4d2
test al, al
jne 0x10089f60
sub edx, 2
cmp edx, edi
jne 0x10089f46
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x10089f88
lea eax, [edi + 2]
cmp edx, eax
je 0x10089f88
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.10089b14
add esp, 0x10
jmp 0x1008a082
push esi
lea ecx, [ebp - 0x255]
call fcn.1008a4d2
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10089fcb
push dword [ebp - 0x25c]
jmp 0x10089f78
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x1008a008
cmp word [ebp - 0x226], 0
je 0x1008a029
cmp word [ebp - 0x226], ax
jne 0x1008a008
cmp word [ebp - 0x224], 0
je 0x1008a029
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.10089b14
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x1008a075
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x10089fe2
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x1008a05d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1008a082
push 0x100893fa
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.10038e2c
add esp, 0x10
jmp 0x1008a052
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003757c
leave
ret
Function at 0x10095150
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1003825b
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100951bf
cmp esi, dword [ebp - 4]
je 0x100951ba
cmp dword [ebp + 0xc], 0
je 0x100951ba
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10095197
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10094b78
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100951c1
xor eax, eax
inc eax
jmp 0x100951c1
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x1009c794
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100c7758]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1009c7d4
cmp byte [ebx], 0xa
jne 0x1009c7d4
or byte [edi + eax + 0x28], 4
jmp 0x1009c7d9
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1009c8d8
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1009c8bb
inc eax
cmp dl, 0xd
je 0x1009c805
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1009c82b
cmp eax, ecx
jae 0x1009c839
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1009c7ed
jmp 0x1009c8d8
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1009c8b6
cmp dword [ebp - 0x10], 0
je 0x1009c8b6
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100c7758]
test byte [eax + edi + 0x28], 0x48
je 0x1009c890
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1009c87b
mov byte [esi], dl
jmp 0x1009c88c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100c7758]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1009c8d8
cmp byte [ebp - 1], 0xa
jne 0x1009c89f
cmp esi, ebx
jne 0x1009c89f
mov byte [esi], 0xa
jmp 0x1009c8d7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10036636
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1009c8d8
mov byte [esi], 0xd
jmp 0x1009c8d7
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100c7758]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1009c8d5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1009c8d8
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1009c934
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100c7758]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1009c97a
cmp word [ebx], dx
jne 0x1009c97a
or byte [eax + edi + 0x28], 4
jmp 0x1009c97f
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1009cae2
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1009cac2
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1009c9c0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1009c9f6
cmp eax, edx
jae 0x1009ca04
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1009c99b
jmp 0x1009cae2
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1009cabd
cmp dword [ebp - 0x18], 0
je 0x1009cabd
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100c7758]
test byte [eax + edi + 0x28], 0x48
je 0x1009ca93
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1009ca57
mov word [esi], cx
jmp 0x1009ca8e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100c7758]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100c7758]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100c7758]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1009cae2
pop eax
cmp word [ebp - 4], ax
jne 0x1009caa3
cmp esi, ebx
jne 0x1009caa3
mov word [esi], ax
jmp 0x1009cadf
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10036636
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1009cae2
push 0xd
pop eax
jmp 0x1009ca9e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100c7758]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1009cadc
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1009cae2
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10002ce0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
lea edx, [ebx - 1]
test ebx, ebx
je 0x10002d74
push esi
mov esi, dword [ebp + 8]
cmp ebx, 0x20
jb 0x10002d62
mov ecx, ebx
xorps xmm2, xmm2
and ecx, 0xffffffe0
xorps xmm1, xmm1
nop dword [eax + eax]
movups xmm0, xmmword [esi + eax]
pxor xmm2, xmm0
movups xmm0, xmmword [esi + eax + 0x10]
add eax, 0x20
pxor xmm1, xmm0
cmp eax, ecx
jb 0x10002d10
pxor xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
pxor xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
pxor xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 2
pxor xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 1
pxor xmm1, xmm0
movd ecx, xmm1
xor dl, cl
cmp eax, ebx
jae 0x10002d6e
xor dl, byte [eax + esi]
inc eax
cmp eax, ebx
jb 0x10002d66
pop esi
mov al, dl
pop ebx
pop ebp
ret
mov al, dl
pop ebx
pop ebp
ret
Function at 0x10010720
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov cl, byte [esi + 6]
test cl, cl
je 0x10010820
push edi
lea edi, [esi + 0x10]
mov esi, dword [ebp + 8]
nop
test byte [edi + 8], 0x40
je case.0x10010777.10
mov edx, dword [edi]
mov al, byte [edx + 5]
test al, 3
je case.0x10010777.10
and al, 0xfc
mov byte [edx + 5], al
movzx eax, byte [edx + 4]
sub eax, 4
cmp eax, 0x22
ja case.0x10010777.10
nop dword [eax]
movzx eax, byte [eax + 0x10010850]
jmp dword [eax*4 + 0x10010830]
mov eax, dword [edx + 8]
test eax, eax
je 0x10010795
test byte [eax + 5], 3
je 0x10010795
push eax
push esi
call fcn.1000fcd0
add esp, 8
mov eax, dword [edx + 0xc]
or byte [edx + 5], 4
add eax, 0x18
add dword [esi + 0x10], eax
test byte [edx + 6], 0x40
mov ecx, dword [edx + 0x10]
mov eax, dword [edx + 0x14]
je case.0x10010777.10
mov al, byte [ecx + 5]
test al, 3
je case.0x10010777.10
and al, 0xfc
mov edx, ecx
mov byte [ecx + 5], al
movzx eax, byte [ecx + 4]
sub eax, 4
cmp eax, 0x22
jbe 0x10010770
jmp case.0x10010777.10
movzx eax, byte [edx + 7]
or byte [edx + 5], 4
add eax, 0x11
add dword [esi + 0x10], eax
jmp case.0x10010777.10
mov eax, dword [edx + 0xc]
or byte [edx + 5], 4
add eax, 0x11
add dword [esi + 0x10], eax
jmp case.0x10010777.10
mov eax, dword [esi + 0x4c]
mov dword [edx + 8], eax
jmp 0x10010807
mov eax, dword [esi + 0x4c]
mov dword [edx + 0x1c], eax
jmp 0x10010807
mov eax, dword [esi + 0x4c]
mov dword [edx + 0x24], eax
jmp 0x10010807
mov eax, dword [esi + 0x4c]
mov dword [edx + 0x4c], eax
mov dword [esi + 0x4c], edx
mov eax, dword [ebp + 0xc]
inc ebx
add edi, 0x10
mov cl, byte [eax + 6]
movzx eax, cl
cmp ebx, eax
jl 0x10010740
pop edi
movzx eax, cl
inc eax
pop esi
shl eax, 4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10012b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
xor eax, dword [ebp + 0x10]
push edi
mov edi, esi
shr edi, 5
inc edi
cmp esi, edi
jb 0x10012b6c
push ebx
mov ebx, dword [ebp + 8]
nop dword [eax + eax]
movzx edx, byte [ebx + esi - 1]
mov ecx, eax
shl ecx, 5
sub esi, edi
add edx, ecx
mov ecx, eax
shr ecx, 2
add edx, ecx
xor eax, edx
cmp esi, edi
jae 0x10012b50
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x10014ad0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
call fcn.1002f69b
mov ecx, dword [ebp + 8]
xor edi, edi
xor esi, esi
xorps xmm1, xmm1
mov eax, dword [eax]
movsx eax, byte [eax]
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov al, byte [ecx]
mov byte [ebp + 0xb], al
movzx eax, al
test byte [eax + 0x10057ac9], 8
je 0x10014b23
nop dword [eax]
mov al, byte [ecx + 1]
inc ecx
mov byte [ebp + 0xb], al
movzx eax, al
test byte [eax + 0x10057ac9], 8
jne 0x10014b10
mov al, byte [ebp + 0xb]
lea edx, [ecx + 1]
cmp al, 0x2d
jne 0x10014b36
mov dword [ebp - 0xc], 1
jmp 0x10014b3e
cmp al, 0x2b
mov dword [ebp - 0xc], esi
cmovne edx, ecx
cmp byte [edx], 0x30
jne 0x10014c76
mov al, byte [edx + 1]
cmp al, 0x78
je 0x10014b56
cmp al, 0x58
jne 0x10014c76
movsd xmm2, qword [0x10055be8]
add edx, 2
mov al, byte [edx]
movsx ecx, al
mov dword [ebp - 0x14], edx
mov byte [ebp + 0xb], al
cmp ecx, dword [ebp - 0x10]
jne 0x10014b81
cmp dword [ebp - 4], 0
jne 0x10014bd3
mov dword [ebp - 4], 1
inc edx
jmp 0x10014b61
movzx eax, al
test byte [eax + 0x10057ac9], 0x10
je 0x10014bd3
test edi, edi
jne 0x10014b9c
cmp byte [ebp + 0xb], 0x30
jne 0x10014b9c
inc dword [ebp - 8]
jmp 0x10014bc9
inc edi
cmp edi, 0x1e
jg 0x10014bc8
test byte [ecx + 0x10057ac9], 2
je 0x10014bb0
add ecx, 0xffffffd0
jmp 0x10014bb6
or ecx, 0x20
sub ecx, 0x57
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
jmp 0x10014bc9
inc esi
cmp dword [ebp - 4], 0
je 0x10014bd0
dec esi
inc edx
jmp 0x10014b61
mov eax, dword [ebp - 8]
add eax, edi
je 0x10014c76
mov eax, dword [ebp + 0xc]
shl esi, 2
mov dword [eax], edx
mov al, byte [edx]
cmp al, 0x70
je 0x10014bf0
cmp al, 0x50
jne 0x10014c52
inc edx
xor ecx, ecx
mov dl, byte [edx]
cmp dl, 0x2d
jne 0x10014c02
lea edi, [ecx + 1]
lea eax, [ecx + 2]
jmp 0x10014c0d
xor eax, eax
xor edi, edi
cmp dl, 0x2b
sete al
inc eax
mov edx, dword [ebp - 0x14]
add edx, eax
mov al, byte [edx]
mov byte [ebp + 0xb], al
movzx eax, al
test byte [eax + 0x10057ac9], 2
je 0x10014c76
movsx eax, byte [ebp + 0xb]
lea ecx, [ecx + ecx*4]
inc edx
lea ecx, [ecx - 0x18]
lea ecx, [eax + ecx*2]
mov al, byte [edx]
mov byte [ebp + 0xb], al
movzx eax, al
test byte [eax + 0x10057ac9], 2
jne 0x10014c23
mov eax, ecx
neg eax
test edi, edi
cmove eax, ecx
add esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
cmp dword [ebp - 0xc], 0
je 0x10014c5f
xorps xmm1, xmmword [0x10055bf0]
push esi
sub esp, 8
movsd qword [esp], xmm1
call fcn.1002f7c1
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
fldz
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001bf20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov esi, 1
call fcn.1000a8f0
mov edi, dword [ebp + 0x10]
add esp, 4
sub eax, edi
je 0x1001bff3
dec eax
push edi
push ebx
mov dword [ebp - 4], eax
call fcn.1000b8b0
add esp, 8
cmp eax, 3
jne 0x1001bfc4
push edi
push ebx
call fcn.1000aa30
add esp, 8
push 0
push edi
push ebx
test eax, eax
je 0x1001bf81
call fcn.1000b6b0
push edx
push eax
push str._lld
push dword [ebp + 0xc]
call fcn.1000bbb0
add esp, 0x1c
jmp 0x1001bf9c
call fcn.1000b7a0
add esp, 4
fstp qword [esp]
push str._.14g
push dword [ebp + 0xc]
call fcn.1000bbb0
add esp, 0x10
test esi, esi
je 0x1001bfa4
test eax, eax
jg 0x1001bfec
xor esi, esi
mov eax, dword [ebp - 4]
inc edi
test eax, eax
jne 0x1001bf43
test esi, esi
jne 0x1001bff3
push esi
push esi
push ebx
call fcn.1000c390
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0x10]
push eax
push edi
push ebx
call fcn.1000bfb0
add esp, 0xc
test esi, esi
je 0x1001bfa4
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 1
push eax
call fcn.1002d2a7
add esp, 0x10
cmp eax, dword [ebp + 0x10]
jne 0x1001bfa4
mov esi, 1
jmp 0x1001bfa6
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001c3a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.10029260
mov eax, dword [0x1006a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2014]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push eax
call fcn.1000bea0
add esp, 8
nop
lea eax, [ebp - 0x2014]
push 0x2000
push eax
call fcn.1000cb10
push esi
push 0x2000
push 1
push eax
call fcn.1002c954
add dword [ebp - 0x200c], eax
add esp, 0x18
cmp eax, 0x2000
je 0x1001c3d0
lea eax, [ebp - 0x2014]
push eax
call fcn.1000cbb0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop esi
call fcn.1002903c
mov esp, ebp
pop ebp
ret

Function at 0x1001c420
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.10029260
mov eax, dword [0x1006a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2014]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push ecx
push eax
call fcn.1000bea0
lea eax, [ebp - 0x2014]
push edi
push eax
call fcn.1000cb10
push esi
push edi
push 1
push eax
call fcn.1002c954
mov esi, eax
lea eax, [ebp - 0x2014]
add dword [ebp - 0x200c], esi
push eax
call fcn.1000cbb0
mov ecx, dword [ebp - 4]
add esp, 0x24
xor eax, eax
cmp eax, esi
sbb eax, eax
xor ecx, ebp
pop edi
neg eax
pop esi
call fcn.1002903c
mov esp, ebp
pop ebp
ret

Function at 0x1003bef4
Capabilities:
Read file on windows

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