joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476ded
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov eax, ecx
push edi
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x476e37
call fcn.00478c9a
push 0xf0
push dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x476e34
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x476e85
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test esi, esi
je 0x476e63
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call fcn.005ab9cd
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
test edi, edi
je 0x476e63
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x476e83
mov eax, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [eax + 0xa0]
mov ecx, esi
call fcn.005ab9cd
mov ecx, edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x477879
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x4778cc
push esi
push dword [ebp + 8]
call fcn.00477a6c
mov edi, eax
test edi, edi
jne 0x47789c
mov eax, dword [ebp + 0x10]
jmp 0x4778de
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x477897
mov eax, dword [ebp - 8]
jmp 0x4778de
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48450c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x484526
mov edi, dword [esi + 0xc]
jmp 0x484566
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x48453f
call fcn.0047a7e6
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x484554
call fcn.0047a7e6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x484566
call fcn.0047a7e6
call fcn.00478c9a
cmp dword [eax + 0x3c], 0
je 0x48457b
push edi
mov ecx, ebx
call fcn.00483c45
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00484758
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4845a4
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4845b0
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b216b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x4b2184
call fcn.00478c9a
mov esi, dword [eax + 0xc]
push 0x5fac94
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4b21da
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4b21d9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4b21ba
xor esi, esi
jmp 0x4b21d0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.004b21e2
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4eb5c9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
invalid
inc ebp

Function at 0x4eb853
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4eb7e9
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4eb807
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4eb865
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4eb84c
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4eb855
or byte [eax + ecx], 2
or byte [edx], al
cmp dword [ebp + 0x10], ebx
je 0x4eb85f
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4eb841
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4eb7cb
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4eb8b2
dec eax
je 0x4eb8a9
sub eax, 3
je 0x4eb8a0
mov dword [ebp - 4], 0x40
jmp 0x4eb8cf
mov dword [ebp - 4], 4
jmp 0x4eb8b5
mov dword [ebp - 4], 0x20
jmp 0x4eb8b5
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4eb901
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4eb881
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004eb112
xor al, 0x52
dec ecx
or bh, bh
jne 0x4eb90c
push 1
push esi
call edi
mov eax, esi
jmp 0x4eb90d
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ed2c9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
or al, 0x8b
jo 0x4ed2e9
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x4ed2d6
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.004eb112
add dword [edi], ecx
std
std
push esp
pop es
js 0x4ed2f0
xlatb
sbb byte [ebx - 0x20fcdfa6], cl

Function at 0x54addc
Capabilities:
Get file system object information

Disassembly:
push 0x4cc
mov eax, 0x5ea3df
call fcn.005aba3e
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.0041cbd0
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x5f0ff0
call fcn.00435ad0
cmp eax, 0xffffffff
jne 0x54aea7
push 0
push 0x5fac50
lea ecx, [ebp - 0x4d0]
call fcn.00435ad0
cmp eax, 0xffffffff
jne 0x54aea7
push 0
push 0x5f23b4
lea ecx, [ebp - 0x4d0]
call fcn.00435ad0
cmp eax, 0xffffffff
jne 0x54aea7
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.0041cbd0
mov edi, eax
pop ecx
mov dword [ebp - 0x4d4], edi
lea ecx, [edi + 0x10]
mov dword [ebp - 0x4d8], ecx
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea eax, [ebp - 0x218]
push eax
push 0x104
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x54ae84
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call fcn.005ab9cd
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x4d4]
mov edi, eax
call fcn.00404240
jmp 0x54aedf
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00404900
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00404240
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x54aecd
mov edi, dword [ebp - 0x4cc]
jmp 0x54aedf
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call fcn.005ab9cd
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.00404240
mov eax, edi
call fcn.005ab9e8
ret

Function at 0x564bf0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
mov esi, ecx
lea ecx, [esi + 0x130]
call fcn.00564b73
mov ecx, esi
pop esi
jmp fcn.004ec99b

Function at 0x5d048b
Capabilities:
Read file on windows

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

Function at 0x5d3eb3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005d3b73
Function at 0x426740
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x417015
lea edi, [esi - 0x16015]
push edi
or ebp, 0xffffffff
jmp 0x426762
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x426769
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x426758
mov eax, 1
add ebx, ebx
jne 0x42677b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x426770
jne 0x42678c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x426770
xor ecx, ecx
sub eax, 3
jb 0x4267a0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x426812
mov ebp, eax
add ebx, ebx
jne 0x4267ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4267b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4267dc
inc ecx
add ebx, ebx
jne 0x4267c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4267bd
jne 0x4267d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4267bd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4267fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4267ed
jmp 0x42675e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4267fc
add edi, ecx
jmp 0x42675e
pop esi
mov edi, esi
mov ecx, 0x7aa
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42681a
cmp byte [edi], 0x12
jne 0x42681a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x42681f
lea edi, [esi + 0x24000]
mov eax, dword [edi]
or eax, eax
je 0x42688e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2606c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x260d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42684c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x260d4]
or eax, eax
je 0x426888
mov dword [ebx], eax
add ebx, 4
jmp 0x426869
call dword [esi + 0x260d8]
popal
jmp 0x410c30
Function at 0x10001118
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x20c]
xor esi, esi
push eax
push esi
push esi
push 0x1c
push esi
mov ebx, ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str._s_steamActivehid
push eax
call fcn.100013cd
lea eax, [ebp - 0x414]
push 0x10021c40
push eax
call fcn.1000a944
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1000117d
xor eax, eax
jmp 0x10001212
push 2
push esi
push edi
call fcn.1000a854
push edi
call fcn.100080ff
mov esi, eax
add esp, 0x10
mov dword [ebx], esi
test esi, esi
jne 0x100011a0
push edi
call fcn.1000a530
pop ecx
jmp 0x10001176
xor eax, eax
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x418], eax
cmp esi, 0x7fffffff
ja 0x1000129f
push esi
lea ecx, [ebp - 0x420]
call fcn.10001409
push esi
push 0
push dword [ebp - 0x420]
call fcn.10006530
mov eax, dword [ebp - 0x420]
push dword [ebx]
add eax, esi
mov dword [ebp - 0x41c], eax
call fcn.1000af10
add esp, 0x10
mov dword [ebp - 0x428], eax
test eax, eax
jne 0x10001221
push edi
call fcn.1000a530
pop ecx
xor esi, esi
lea ecx, [ebp - 0x420]
call fcn.1000138a
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004ab3
leave
ret
push 0
push 0
push edi
call fcn.1000a854
push edi
push dword [ebx]
push 1
push dword [ebp - 0x420]
call fcn.1000ab4f
push edi
mov esi, eax
call fcn.1000a530
mov eax, dword [ebx]
add esp, 0x20
cmp esi, eax
je 0x10001259
push dword [ebp - 0x428]
call fcn.1000a95b
jmp 0x10001202
imul eax, eax, 5
push eax
push dword [ebp - 0x428]
mov dword [ebp - 0x424], eax
call fcn.1000a560
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10001203
push dword [ebx]
lea eax, [ebp - 0x424]
push dword [ebp - 0x420]
push eax
push esi
call fcn.10001f10
test eax, eax
je 0x10001292
push esi
jmp 0x10001252
mov eax, dword [ebp - 0x424]
mov dword [ebx], eax
jmp 0x10001205
call fcn.100013fe
int3

Function at 0x100012a5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x414]
push eax
push str._shid.dll
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.10001006
lea eax, [ebp - 0x20c]
push 2
push eax
call fcn.1000812f
add esp, 0x18
test eax, eax
jne 0x1000130c
push 8
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
lea ecx, [ebp - 0x418]
call fcn.10001118
mov esi, eax
test esi, esi
je 0x1000134b
mov edx, dword [ebp - 0x418]
sub esp, 0x18
mov ecx, esi
call fcn.10001967
add esp, 0x18
test eax, eax
je 0x10001344
mov ecx, eax
call fcn.10001c2a
push 2
push 0x6f
call eax
pop ecx
pop ecx
push esi
call fcn.1000a95b
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10004ab3
leave
ret
Function at 0x10003ad0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10003ae0

Function at 0x10003d60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10003d70

Function at 0x10004090
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x1001ac28]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x1001ac28]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x1001ac28]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x1001ac28]
mov eax, edx
pop ebp
ret

Function at 0x10007e95
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10018d20
mov eax, dword [section..data]
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.1000c642
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10007ed7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10008033
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10018c70
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 + 0x10024f38]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1000c94d
mov ecx, dword [esi*4 + 0x10024f38]
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 0x1000802c
cmp eax, dword [ecx + edi + 0x24]
jne 0x1000802c
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 0x1000802c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1000c94d
add esp, 0x14
test edx, edx
jl 0x1000802c
jg 0x10007fa2
test eax, eax
jb 0x1000802c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1000802c
jl 0x10007fbc
cmp dword [ebp - 0x1008], eax
ja 0x1000802c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10007fda
test ebx, ebx
je 0x10008013
cmp ecx, edi
jae 0x10008013
mov al, byte [ecx]
cmp al, 0xd
jne 0x10007ff4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10008000
cmp byte [ecx + 1], 0xa
jne 0x10008000
inc ecx
jmp 0x10008000
movzx eax, al
movsx eax, byte [eax + 0x10024208]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10007fda
cmp edx, ebx
jne 0x10007fda
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10008031
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10004ab3
leave
ret
Function at 0x1000bb69
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000bba8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000bba8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000bba8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000bba8
cmp dword [ecx + 0x74], 0xe
jbe 0x1000bba8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1000d0be
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 + 0x10024f38]
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 0x1000d0fe
cmp byte [ebx], 0xa
jne 0x1000d0fe
or byte [edi + eax + 0x28], 4
jmp 0x1000d103
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 0x1000d202
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1000d1e5
inc eax
cmp dl, 0xd
je 0x1000d12f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1000d155
cmp eax, ecx
jae 0x1000d163
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 0x1000d117
jmp 0x1000d202
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 0x1000d1e0
cmp dword [ebp - 0x10], 0
je 0x1000d1e0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10024f38]
test byte [eax + edi + 0x28], 0x48
je 0x1000d1ba
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1000d1a5
mov byte [esi], dl
jmp 0x1000d1b6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10024f38]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1000d202
cmp byte [ebp - 1], 0xa
jne 0x1000d1c9
cmp esi, ebx
jne 0x1000d1c9
mov byte [esi], 0xa
jmp 0x1000d201
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1000c96b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1000d202
mov byte [esi], 0xd
jmp 0x1000d201
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10024f38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1000d1ff
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1000d202
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1000d20b
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 + 0x10024f38]
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 0x1000d251
cmp word [ebx], dx
jne 0x1000d251
or byte [eax + edi + 0x28], 4
jmp 0x1000d256
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 0x1000d3b9
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 0x1000d399
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1000d297
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1000d2cd
cmp eax, edx
jae 0x1000d2db
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 0x1000d272
jmp 0x1000d3b9
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 0x1000d394
cmp dword [ebp - 0x18], 0
je 0x1000d394
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10024f38]
test byte [eax + edi + 0x28], 0x48
je 0x1000d36a
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 0x1000d32e
mov word [esi], cx
jmp 0x1000d365
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10024f38]
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 + 0x10024f38]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10024f38]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1000d3b9
pop eax
cmp word [ebp - 4], ax
jne 0x1000d37a
cmp esi, ebx
jne 0x1000d37a
mov word [esi], ax
jmp 0x1000d3b6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1000c96b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1000d3b9
push 0xd
pop eax
jmp 0x1000d375
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10024f38]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1000d3b3
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1000d3b9
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret