joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408898
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42b7a4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x4088b5
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x4088e3
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x4088be
mov dword [ecx*4 + 0x42b7a0], eax
inc ecx
cmp ecx, 0x100
jne 0x4088b7
jmp 0x4088a9
cmp edx, ebx
je 0x4088fc
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42b7a0]
jmp 0x4088e3
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
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 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4
Function at 0x408898
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42b7a4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x4088b5
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x4088e3
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x4088be
mov dword [ecx*4 + 0x42b7a0], eax
inc ecx
cmp ecx, 0x100
jne 0x4088b7
jmp 0x4088a9
cmp edx, ebx
je 0x4088fc
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42b7a0]
jmp 0x4088e3
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x402990
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x405130], eax
mov ecx, ebp
add ecx, 8
mov dword [0x40507c], ecx
mov dword [0x4050b0], 0x30
mov dword [0x4050b4], 2
mov dword [0x4050bc], 0
mov dword [0x4050c0], 0
mov dword [0x4050b8], 0x402f20
jmp 0x4029e3
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x4050c4], eax
mov dword [0x4050d0], 0xf
mov dword [0x4050d8], 0x4040ad
mov dword [0x405074], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4050c8], eax
mov dword [0x4050dc], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4050cc], eax
push 0x4050b0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x405074]
push 0
push 0
push 0x24e
push 0x281
push 0xfffff448
push 0xffffec78
push 0x40000
push str.mini
push str.second
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405128], eax
xor eax, eax
jmp 0x402a82
push 5
push dword [0x405128]
call dword [sym.imp.user32.dll_ShowWindow]
test eax, eax
jne 0x402ab6
push 0
push 0x24f
push 0x282
push 0xfffff447
push 0xffffec77
push dword [0x405128]
call dword [sym.imp.user32.dll_MoveWindow]
push dword [0x405128]
call dword [sym.imp.user32.dll_UpdateWindow]
push 0
push 0
push 0
push 0x4050e0
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x402aef
push 0x4050e0
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x4050e0
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x402ac2
mov eax, dword [0x4050e8]
jmp 0x402afc
call 0x40213f
ret
Function at 0x96beac
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
test ebx, ebx
je 0x96bf07
mov edi, dword [ebp + 0xc]
test edi, 0xffff0000
jne 0x96bed1
sub edi, dword [ebx + esi + 0x10]
jmp 0x96bf22
mov ecx, dword [ebx + esi + 0x20]
xor eax, eax
add ecx, esi
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
cmp dword [ebx + esi + 0x18], eax
jbe 0x96bf07
mov eax, dword [ecx + eax*4]
add eax, esi
push edi
push eax
call fcn.009655b8
pop ecx
pop ecx
test eax, eax
je 0x96bf10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [ebx + esi + 0x18]
jb 0x96bee5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov ecx, dword [ebp + 8]
test ecx, ecx
js 0x96bf07
mov eax, dword [ebx + esi + 0x24]
lea eax, [eax + ecx*2]
movzx edi, word [eax + esi]
cmp edi, 0xffffffff
je 0x96bf07
cmp edi, dword [ebx + esi + 0x14]
jae 0x96bf07
mov eax, dword [ebx + esi + 0x1c]
lea eax, [eax + edi*4]
mov eax, dword [eax + esi]
add eax, esi
jmp 0x96bf09

Function at 0x96ddac
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push ebx
push edi
mov ebx, 0x95525c
mov eax, dword [eax + 0xc]
push ebx
mov edi, dword [eax + 0x18]
push dword [edi + 0x28]
call fcn.009714d8
pop ecx
pop ecx
test eax, eax
jne 0x96ddd3
mov eax, dword [edi + 0x10]
jmp 0x96ddf2
push esi
mov esi, dword [edi + 4]
jmp 0x96ddeb
push ebx
push dword [esi + 0x28]
call fcn.009714d8
pop ecx
pop ecx
test eax, eax
je 0x96ddf5
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x96ddd9
xor eax, eax
pop esi
pop edi
pop ebx
ret
mov eax, dword [esi + 0x10]
jmp 0x96ddf1

Function at 0x9703b8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, dword [edx]
mov eax, dword [edx + 4]
test esi, esi
jle 0x97041b
mov ecx, dword [ebp + 0x10]
sub dword [ebp + 0xc], ecx
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
push edi
inc bl
movzx ebx, bl
mov cl, byte [edx + ebx + 8]
add al, cl
movzx eax, al
mov dword [ebp + 8], eax
mov edi, dword [ebp + 8]
mov al, byte [edx + eax + 8]
mov byte [edx + ebx + 8], al
add al, cl
movzx eax, al
mov byte [edx + edi + 8], cl
mov cl, byte [eax + edx + 8]
mov eax, dword [ebp + 0x10]
xor cl, byte [esi + eax]
mov byte [eax], cl
inc eax
sub dword [ebp - 4], 1
mov dword [ebp + 0x10], eax
mov eax, edi
jne 0x9703da
mov esi, dword [ebp + 0x14]
pop edi
mov dword [edx + 4], eax
mov eax, esi
pop esi
mov dword [edx], ebx
pop ebx
leave
ret
Function at 0x975a70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0x48]
lea esi, [ebx + 0x28]
mov edx, dword [ebx + 4]
add eax, 0x28
mov ecx, dword [ebx]
add eax, ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
test edx, edx
jne 0x975abb
cmp ecx, 0x20
jae 0x975abb
mov edi, dword [ebp + 8]
mov ebx, dword [ebx + 0x18]
add ebx, 0x165667c5
mov edi, dword [edi + 0x1c]
adc edi, 0x27d4eb2f
jmp 0x975b52
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push dword [ebx + 0xc]
push dword [ebx + 8]
push 0x12
push dword [ebx + 0x24]
push dword [ebx + 0x20]
call fcn.00962b08
push 0xc
push dword [ebx + 0x1c]
mov edi, eax
mov esi, edx
push dword [ebx + 0x18]
call fcn.00962b08
push 7
push dword [ebx + 0x14]
add edi, eax
push dword [ebx + 0x10]
adc esi, edx
call fcn.00962b08
push 1
push dword [ebx + 0xc]
add edi, eax
push dword [ebx + 8]
adc esi, edx
call fcn.00962b08
add esp, 0x30
add edi, eax
adc esi, edx
push esi
push edi
call fcn.00974ffc
add esp, 0x10
push edx
push eax
call fcn.00974ffc
add esp, 0x10
push edx
push eax
call fcn.00974ffc
add esp, 0x10
push edx
push eax
call fcn.00974ffc
mov esi, dword [ebp - 8]
mov ebx, eax
mov eax, dword [ebp - 4]
mov edi, edx
mov ecx, dword [ebp - 0xc]
add esp, 0x10
mov edx, dword [ebp - 0x10]
add ebx, ecx
lea ecx, [esi + 8]
adc edi, edx
jmp 0x975bac
push 0x1b
push esi
call fcn.00963250
push edx
push eax
push 0
push 0
call fcn.0095b140
add esp, 0x14
xor edx, edi
xor eax, ebx
push edx
push eax
call fcn.00962b08
add esp, 0xc
push 0x9e3779b1
push 0x85ebca87
push edx
push eax
call fcn.0096b21c
mov ecx, dword [ebp - 8]
mov ebx, eax
mov eax, dword [ebp - 4]
add ebx, 0xc2b2ae63
mov edi, edx
adc edi, 0x85ebca77
add esi, 8
add ecx, 8
mov dword [ebp - 8], ecx
cmp ecx, eax
jbe 0x975b5b
lea ecx, [esi + 4]
mov dword [ebp - 0x10], ecx
cmp ecx, eax
ja 0x975c0f
push 0x17
push esi
call fcn.009554f8
pop ecx
mov ecx, eax
mov eax, 0x9e3779b1
mul ecx
mov esi, eax
mov eax, 0x85ebca87
mul ecx
add esi, edx
xor eax, ebx
xor esi, edi
push esi
push eax
call fcn.00962b08
add esp, 0xc
push 0xc2b2ae3d
push 0x27d4eb4f
push edx
push eax
call fcn.0096b21c
mov esi, dword [ebp - 0x10]
mov ebx, eax
mov eax, dword [ebp - 4]
add ebx, 0x9e3779f9
mov edi, edx
adc edi, 0x165667b1
cmp esi, eax
jae 0x975c53
movzx eax, byte [esi]
push 0xb
push 0x27d4eb2f
cdq
push 0x165667c5
push edx
push eax
call fcn.0096b21c
xor edx, edi
xor eax, ebx
push edx
push eax
call fcn.00962b08
add esp, 0xc
push 0x9e3779b1
push 0x85ebca87
push edx
push eax
call fcn.0096b21c
inc esi
mov ebx, eax
mov edi, edx
cmp esi, dword [ebp - 4]
jb 0x975c13
push 0xc2b2ae3d
xor eax, eax
mov ecx, edi
push 0x27d4eb4f
shr ecx, 1
xor eax, edi
xor ecx, ebx
push eax
push ecx
call fcn.0096b21c
mov esi, eax
mov ecx, edx
shrd esi, ecx, 0x1d
push 0x165667b1
shr ecx, 0x1d
xor esi, eax
push 0x9e3779f9
xor ecx, edx
push ecx
push esi
call fcn.0096b21c
mov ecx, edx
xor esi, esi
pop edi
xor eax, ecx
xor edx, esi
pop esi
pop ebx
leave
ret
Function at 0x10001000
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, edx
push esi
mov esi, dword [esp + 0x10]
cmp edx, 4
jl 0x10001045
push edi
mov edi, edx
shr edi, 2
imul eax, edi, 0xfffffffc
add edx, eax
imul ecx, dword [esi], 0x5bd1e995
add esi, 4
imul ebx, ebx, 0x5bd1e995
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
xor ebx, ecx
sub edi, 1
jne 0x10001021
pop edi
xor ecx, ecx
sub edx, 1
je 0x10001066
sub edx, 1
je 0x1000105d
sub edx, 1
jne 0x1000106b
movzx ecx, byte [esi + 2]
shl ecx, 0x10
movzx eax, byte [esi + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [esi]
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
imul edx, ebp, 0x5bd1e995
pop esi
pop ebp
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
imul eax, ebx, 0x5bd1e995
pop ebx
xor ecx, eax
mov eax, edx
shr eax, 0x18
xor eax, edx
imul ecx, ecx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor ecx, eax
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
ret

Function at 0x1000126c
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
mov esi, dword [ebx + 0x14]
xor ecx, dword [ebp + 0xc]
xor edx, dword [ebp + 8]
xor esi, dword [ebp + 4]
push edi
mov edi, dword [esp + 0x20]
imul eax, edi, 0x9e3779b9
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x10]
xor eax, dword [ebp]
mov dword [esp + 0x28], eax
test edi, edi
je 0x10001364
mov ebp, edx
mov edx, dword [esp + 0x10]
mov edi, ecx
mov dword [esp + 0x18], eax
shr edx, 0xb
mov ecx, ebp
mov dword [esp + 0x14], ecx
and edx, 3
mov eax, dword [esp + 0x14]
mov ebp, esi
shl eax, 4
and cl, 0x1f
mov esi, dword [ebx + edx*4 + 0x10]
mov edx, dword [ebx + edx*4]
rol esi, cl
add esi, eax
mov eax, dword [esp + 0x14]
mov ecx, eax
shr eax, 5
shr ecx, 0x1b
rol edx, cl
add edx, eax
mov eax, dword [esp + 0x28]
xor esi, edx
mov edx, dword [esp + 0x10]
add eax, edx
add edx, 0x61c88647
xor esi, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x28]
and edx, 3
mov cl, al
sub ebp, esi
and cl, 0x1f
shl eax, 4
mov esi, dword [ebx + edx*4 + 0x10]
rol esi, cl
mov ecx, dword [esp + 0x28]
add esi, eax
mov eax, dword [ebx + edx*4]
mov edx, dword [esp + 0x10]
shr ecx, 0x1b
rol eax, cl
mov ecx, dword [esp + 0x28]
shr ecx, 5
add eax, ecx
mov ecx, dword [esp + 0x14]
xor esi, eax
lea eax, [ecx + edx]
xor esi, eax
mov eax, edi
sub eax, esi
sub dword [esp + 0x20], 1
mov esi, dword [esp + 0x18]
mov dword [esp + 0x28], eax
jne 0x100012b3
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
sub ecx, dword [ebx + 0xc]
mov dword [ebp + 0xc], ecx
sub edx, dword [ebx + 8]
mov dword [ebp + 8], edx
sub esi, dword [ebx + 4]
mov dword [ebp + 4], esi
sub eax, dword [ebx]
pop edi
pop esi
mov dword [ebp], eax
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x10001383
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov eax, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov edx, dword [ebp]
mov ecx, dword [ebx + 0xc]
add eax, dword [ebp + 4]
add esi, dword [ebp + 8]
add ecx, dword [ebp + 0xc]
add edx, dword [ebx]
push edi
xor edi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], ecx
cmp dword [esp + 0x20], edi
jbe 0x10001473
mov ebp, edx
mov cl, al
mov edx, edi
and edx, 3
shl eax, 4
and cl, 0x1f
mov esi, dword [ebx + edx*4 + 0x10]
mov edx, dword [ebx + edx*4]
rol esi, cl
add esi, eax
mov eax, dword [esp + 0x10]
mov ecx, eax
shr eax, 5
shr ecx, 0x1b
rol edx, cl
add edx, eax
mov eax, dword [esp + 0x28]
add eax, edi
xor esi, edx
xor esi, eax
sub edi, 0x61c88647
mov eax, dword [esp + 0x28]
mov edx, edi
shr edx, 0xb
mov cl, al
and edx, 3
shl eax, 4
add ebp, esi
mov dword [esp + 0x14], edi
and cl, 0x1f
mov edi, ebp
mov ebp, dword [esp + 0x10]
mov esi, dword [ebx + edx*4 + 0x10]
mov edx, dword [ebx + edx*4]
rol esi, cl
mov ecx, dword [esp + 0x28]
add esi, eax
shr ecx, 0x1b
rol edx, cl
mov ecx, dword [esp + 0x28]
mov eax, ecx
shr eax, 5
add edx, eax
mov eax, ebp
add eax, dword [esp + 0x14]
xor esi, edx
xor eax, esi
mov esi, ecx
add eax, dword [esp + 0x18]
sub dword [esp + 0x20], 1
mov dword [esp + 0x18], ecx
mov ecx, edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], ecx
jne 0x100013c3
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x10]
xor eax, edx
mov dword [ebp], eax
mov eax, dword [ebx + 0x14]
xor eax, dword [esp + 0x10]
mov dword [ebp + 4], eax
mov eax, dword [ebx + 0x18]
xor eax, esi
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x1c]
pop edi
xor eax, ecx
pop esi
mov dword [ebp + 0xc], eax
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x10015333
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100200b0
mov eax, dword [0x10028040]
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.1001685c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10015375
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100154d1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10020000
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 + 0x10028f40]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1001884c
mov ecx, dword [esi*4 + 0x10028f40]
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 0x100154ca
cmp eax, dword [ecx + edi + 0x24]
jne 0x100154ca
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 0x100154ca
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001884c
add esp, 0x14
test edx, edx
jl 0x100154ca
jg 0x10015440
test eax, eax
jb 0x100154ca
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100154ca
jl 0x1001545a
cmp dword [ebp - 0x1008], eax
ja 0x100154ca
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10015478
test ebx, ebx
je 0x100154b1
cmp ecx, edi
jae 0x100154b1
mov al, byte [ecx]
cmp al, 0xd
jne 0x10015492
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001549e
cmp byte [ecx + 1], 0xa
jne 0x1001549e
inc ecx
jmp 0x1001549e
movzx eax, al
movsx eax, byte [eax + 0x10028240]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10015478
cmp edx, ebx
jne 0x10015478
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100154cf
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10012150
leave
ret

Function at 0x100159d3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x10015a12
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10015a12
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10015a12
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10015a12
cmp dword [ecx + 0x74], 0xe
jbe 0x10015a12
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10017b8a
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 + 0x10028f40]
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 0x10017bca
cmp byte [ebx], 0xa
jne 0x10017bca
or byte [edi + eax + 0x28], 4
jmp 0x10017bcf
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 0x10017cce
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10017cb1
inc eax
cmp dl, 0xd
je 0x10017bfb
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10017c21
cmp eax, ecx
jae 0x10017c2f
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 0x10017be3
jmp 0x10017cce
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 0x10017cac
cmp dword [ebp - 0x10], 0
je 0x10017cac
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10028f40]
test byte [eax + edi + 0x28], 0x48
je 0x10017c86
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10017c71
mov byte [esi], dl
jmp 0x10017c82
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10028f40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10017cce
cmp byte [ebp - 1], 0xa
jne 0x10017c95
cmp esi, ebx
jne 0x10017c95
mov byte [esi], 0xa
jmp 0x10017ccd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001886a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10017cce
mov byte [esi], 0xd
jmp 0x10017ccd
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10028f40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10017ccb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10017cce
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10017cd7
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 + 0x10028f40]
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 0x10017d1d
cmp word [ebx], dx
jne 0x10017d1d
or byte [eax + edi + 0x28], 4
jmp 0x10017d22
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 0x10017e85
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 0x10017e65
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10017d63
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10017d99
cmp eax, edx
jae 0x10017da7
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 0x10017d3e
jmp 0x10017e85
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 0x10017e60
cmp dword [ebp - 0x18], 0
je 0x10017e60
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10028f40]
test byte [eax + edi + 0x28], 0x48
je 0x10017e36
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 0x10017dfa
mov word [esi], cx
jmp 0x10017e31
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10028f40]
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 + 0x10028f40]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10028f40]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10017e85
pop eax
cmp word [ebp - 4], ax
jne 0x10017e46
cmp esi, ebx
jne 0x10017e46
mov word [esi], ax
jmp 0x10017e82
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001886a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10017e85
push 0xd
pop eax
jmp 0x10017e41
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10028f40]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10017e7f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10017e85
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret