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

Disassembly:
sub esp, 0x18
mov eax, dword [0x10185cf0]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x28]
test edi, edi
jne 0x100c8538
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.101407ce
add esp, 0x18
ret
test esi, esi
je 0x100c8521
test ebx, ebx
je 0x100c8521
push ebp
mov ebp, dword [esp + 0x38]
test ebp, ebp
jle 0x100c85e2
mov ecx, 0x101432bc
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100c8574
test dl, dl
je 0x100c8570
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100c8574
add eax, 2
add ecx, 2
test dl, dl
jne 0x100c8554
xor eax, eax
jmp 0x100c8579
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100c85ad
mov ecx, 0x10146524
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100c85a4
test dl, dl
je 0x100c85a0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100c85a4
add eax, 2
add ecx, 2
test dl, dl
jne 0x100c8584
xor eax, eax
jmp 0x100c85a9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100c85e2
push 2
lea eax, [esp + 0x14]
push esi
push eax
call dword [sym.imp.MSVCR90.dll_strncpy]
push 2
lea ecx, [esp + 0x20]
push 0x10149fb4
push ecx
call dword [sym.imp.MSVCR90.dll_strncat]
lea edx, [esp + 0x28]
push edx
push edi
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x100c85fa
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.101407ce
add esp, 0x18
ret
push esi
push ebp
push 1
push ebx
call dword [sym.imp.MSVCR90.dll_fwrite]
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
mov ecx, dword [esp + 0x38]
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.101407ce
add esp, 0x18
ret
Function at 0x100c89c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x10185cf0]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x214]
push edi
mov edi, dword [esp + 0x214]
mov dword [esp + 4], eax
test edi, edi
jne 0x100c8a03
xor eax, eax
pop edi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.101407ce
add esp, 0x20c
ret
push ebx
mov ebx, dword [esp + 0x220]
push ebp
push esi
test ebx, ebx
je 0x100c8a1b
call dword [sym.imp.MSVCR90.dll__getpid]
mov ebp, eax
jmp 0x100c8a1f
mov ebp, dword [esp + 0x10]
mov ecx, str._tmp
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100c8a46
test dl, dl
je 0x100c8a42
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100c8a46
add eax, 2
add ecx, 2
test dl, dl
jne 0x100c8a26
xor eax, eax
jmp 0x100c8a4b
sbb eax, eax
sbb eax, 0xffffffff
mov esi, dword [sym.imp.MSVCR90.dll__snprintf]
test eax, eax
jne 0x100c8a67
lea ecx, [esp + 0x14]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x100c8a7c
push edi
push 0x10149fc0
lea edx, [esp + 0x1c]
push 0x104
push edx
call esi
add esp, 0x10
test ebx, ebx
je 0x100c8a9f
push ebp
lea eax, [esp + 0x18]
push eax
push str._s_d_
lea ecx, [esp + 0x124]
push 0x100
push ecx
call esi
add esp, 0x14
jmp 0x100c8abb
lea edx, [esp + 0x14]
push edx
push 0x10147ce8
lea eax, [esp + 0x120]
push 0x100
push eax
call esi
add esp, 0x10
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x11c]
push edx
call sym.leptonlib.dll_stringJoin
mov ecx, dword [esp + 0x220]
add esp, 8
pop esi
pop ebp
pop ebx
pop edi
xor ecx, esp
call fcn.101407ce
add esp, 0x20c
ret

Function at 0x100c8af0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x10185cf0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
test esi, esi
jne 0x100c8b28
xor eax, eax
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.101407ce
add esp, 0x108
ret
push 4
push str._tmp
push esi
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x100c8b5c
push esi
call sym.leptonlib.dll_stringNew
add esp, 4
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.101407ce
add esp, 0x108
ret
lea eax, [esp + 4]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100c8b71
sub eax, edx
cmp eax, 4
jne 0x100c8ba2
lea ecx, [esp + 4]
push ecx
call sym.leptonlib.dll_stringNew
add esp, 4
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.101407ce
add esp, 0x108
ret
push edi
add esi, 4
push esi
call sym.leptonlib.dll_stringNew
mov esi, eax
lea edx, [esp + 0xc]
push esi
push edx
call sym.leptonlib.dll_stringJoin
push esi
mov edi, eax
call dword [sym.imp.MSVCR90.dll_free]
mov ecx, dword [esp + 0x11c]
add esp, 0x10
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.101407ce
add esp, 0x108
ret
Function at 0x100c8ff0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
jne 0x100c8ffd
xor eax, eax
pop ebx
ret
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x100c900b
pop edi
xor eax, eax
pop ebx
ret
push esi
push ebx
call sym.leptonlib.dll_fnbytesInFile
mov dword [edi], eax
inc eax
push eax
push 1
call dword [sym.imp.MSVCR90.dll_calloc]
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100c902b
pop esi
pop edi
pop ebx
ret
mov eax, dword [edi]
push ebx
push 1
push eax
push esi
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
mov eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x100ce0e0
Capabilities:
Execute command

Disassembly:
sub esp, 0x310
mov eax, dword [0x10185cf0]
xor eax, esp
mov dword [esp + 0x30c], eax
mov edx, dword [esp + 0x314]
push esi
test edx, edx
je 0x100ce1a3
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100ce110
sub eax, esi
je 0x100ce1a3
push 0x104
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.MSVCR90.dll__fullpath]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
call sym.leptonlib.dll_splitPathAtDirectory
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ecx
push edx
push str.i_view32.exe___s___filepattern__s___thumbs
lea eax, [esp + 0x134]
push 0x200
push eax
call dword [sym.imp.MSVCR90.dll__snprintf]
mov ecx, dword [esp + 0x34]
mov esi, dword [sym.imp.MSVCR90.dll_free]
push ecx
call esi
mov edx, dword [esp + 0x34]
push edx
call esi
lea eax, [esp + 0x144]
push eax
call dword [sym.imp.MSVCR90.dll_system]
add esp, 0x38
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30c]
xor ecx, esp
call fcn.101407ce
add esp, 0x310
ret
mov ecx, dword [esp + 0x310]
pop esi
xor ecx, esp
mov eax, 1
call fcn.101407ce
add esp, 0x310
ret
Function at 0x100ceb50
Capabilities:
Execute command

Disassembly:
sub esp, 0x210
mov eax, dword [0x10185cf0]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x21c]
push edi
mov edi, dword [esp + 0x21c]
test ebx, ebx
je 0x100ceb84
jge 0x100ceb9d
mov dword [0x10185d74], 0
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.101407ce
add esp, 0x210
ret
push ebp
mov ebp, dword [esp + 0x228]
cmp ebp, 2
je 0x100cebaf
cmp ebp, 3
jne 0x100cebb3
test edi, edi
jne 0x100cebd0
pop ebp
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.101407ce
add esp, 0x210
ret
cmp dword [0x10185d74], 0
push esi
mov esi, dword [sym.imp.MSVCR90.dll__snprintf]
jne 0x100cebff
push str.rm__f__tmp_junk_write_display..png__tmp_junk_write_display..jpg
lea eax, [esp + 0x20]
push 0x200
push eax
call esi
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.MSVCR90.dll_system]
add esp, 0x10
inc dword [0x10185d74]
push edi
cmp ebx, 1
jne 0x100cec15
call sym.leptonlib.dll_boxClone
add esp, 4
jmp 0x100cec57
fild dword [esp + 0x22c]
fld1
fdivrp st(1)
fstp dword [esp + 0x18]
call sym.leptonlib.dll_numaGetRefcount
fld dword [esp + 0x18]
add esp, 4
cmp eax, 1
jne 0x100cec44
push ecx
fstp dword [esp]
push edi
call sym.leptonlib.dll_pixScaleToGray
add esp, 8
jmp 0x100cec57
sub esp, 8
fst dword [esp + 4]
fstp dword [esp]
push edi
call sym.leptonlib.dll_pixScale
add esp, 0xc
push eax
mov dword [esp + 0x14], eax
call sym.leptonlib.dll_numaGetRefcount
mov edx, dword [esp + 0x14]
add esp, 4
cmp eax, 0x10
jne 0x100cecb0
push 2
push edx
call sym.leptonlib.dll_pixMaxDynamicRange
mov dword [esp + 0x20], eax
mov eax, dword [0x10185d74]
push eax
push str._tmp_junk_write_display._03d.png
lea ecx, [esp + 0x2c]
push 0x200
push ecx
call esi
mov edx, dword [esp + 0x30]
push 3
push edx
lea eax, [esp + 0x3c]
push eax
call sym.leptonlib.dll_pixWrite
lea ecx, [esp + 0x3c]
push ecx
call sym.leptonlib.dll_pixDestroy
add esp, 0x28
jmp 0x100ced25
push edx
call sym.leptonlib.dll_numaGetRefcount
add esp, 4
cmp eax, 8
jl 0x100cecf9
mov eax, dword [esp + 0x10]
push eax
call sym.leptonlib.dll_pixGetColormap
add esp, 4
test eax, eax
jne 0x100cecf9
cmp ebp, 3
je 0x100cecf9
mov ecx, dword [0x10185d74]
push ecx
push str._tmp_junk_write_display._03d.jpg
lea edx, [esp + 0x24]
push 0x200
push edx
call esi
mov eax, dword [esp + 0x20]
push ebp
push eax
lea ecx, [esp + 0x34]
push ecx
jmp 0x100ced1d
mov edx, dword [0x10185d74]
push edx
push str._tmp_junk_write_display._03d.png
lea eax, [esp + 0x24]
push 0x200
push eax
call esi
mov ecx, dword [esp + 0x20]
push 3
push ecx
lea edx, [esp + 0x34]
push edx
call sym.leptonlib.dll_pixWrite
add esp, 0x1c
lea eax, [esp + 0x10]
push eax
call sym.leptonlib.dll_pixDestroy
mov ecx, dword [esp + 0x220]
add esp, 4
pop esi
pop ebp
pop edi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.101407ce
add esp, 0x210
ret
Function at 0x100cee80
Capabilities:
Execute command

Disassembly:
sub esp, 0x210
mov eax, dword [0x10185cf0]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [esp + 0x218]
push edi
mov edi, dword [esp + 0x220]
test edi, edi
je 0x100cf03a
jge 0x100ceebd
mov dword [0x10185d74], 0
jmp 0x100cf03a
test esi, esi
jne 0x100ceedb
pop edi
lea eax, [esi + 1]
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.101407ce
add esp, 0x210
ret
cmp dword [0x10185d74], 0
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll__snprintf]
jne 0x100cef0a
push str.rm__f__tmp_junk_write_display..png__tmp_junk_write_display..jpg
lea eax, [esp + 0x1c]
push 0x200
push eax
call ebx
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.MSVCR90.dll_system]
add esp, 0x10
inc dword [0x10185d74]
push esi
cmp edi, 1
jne 0x100cef20
call sym.leptonlib.dll_boxClone
add esp, 4
jmp 0x100cef62
fild dword [esp + 0x228]
fld1
fdivrp st(1)
fstp dword [esp + 0x14]
call sym.leptonlib.dll_numaGetRefcount
fld dword [esp + 0x14]
add esp, 4
cmp eax, 1
jne 0x100cef4f
push ecx
fstp dword [esp]
push esi
call sym.leptonlib.dll_pixScaleToGray
add esp, 8
jmp 0x100cef62
sub esp, 8
fst dword [esp + 4]
fstp dword [esp]
push esi
call sym.leptonlib.dll_pixScale
add esp, 0xc
push eax
mov dword [esp + 0x10], eax
call sym.leptonlib.dll_numaGetRefcount
mov edx, dword [esp + 0x10]
add esp, 4
cmp eax, 0x10
jne 0x100cefbb
push 2
push edx
call sym.leptonlib.dll_pixMaxDynamicRange
mov dword [esp + 0x1c], eax
mov eax, dword [0x10185d74]
push eax
push str._tmp_junk_write_display._03d.png
lea ecx, [esp + 0x28]
push 0x200
push ecx
call ebx
mov edx, dword [esp + 0x2c]
push 3
push edx
lea eax, [esp + 0x38]
push eax
call sym.leptonlib.dll_pixWrite
lea ecx, [esp + 0x38]
push ecx
call sym.leptonlib.dll_pixDestroy
add esp, 0x28
jmp 0x100cf02c
push edx
call sym.leptonlib.dll_numaGetRefcount
add esp, 4
cmp eax, 8
jl 0x100cf000
mov eax, dword [esp + 0xc]
push eax
call sym.leptonlib.dll_pixGetColormap
add esp, 4
test eax, eax
jne 0x100cf000
mov ecx, dword [0x10185d74]
push ecx
push str._tmp_junk_write_display._03d.jpg
lea edx, [esp + 0x20]
push 0x200
push edx
call ebx
mov eax, dword [esp + 0x1c]
push 2
push eax
lea ecx, [esp + 0x30]
push ecx
jmp 0x100cf024
mov edx, dword [0x10185d74]
push edx
push str._tmp_junk_write_display._03d.png
lea eax, [esp + 0x20]
push 0x200
push eax
call ebx
mov ecx, dword [esp + 0x1c]
push 3
push ecx
lea edx, [esp + 0x30]
push edx
call sym.leptonlib.dll_pixWrite
add esp, 0x1c
lea eax, [esp + 0xc]
push eax
call sym.leptonlib.dll_pixDestroy
add esp, 4
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.101407ce
add esp, 0x210
ret
Function at 0x100d8d38
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x100d8d5d
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x100d8d75
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x100d8da4
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x100d8de6
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x100d8eba
sub edx, 0x10000
js 0x100d8eba
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x100d8dcc
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x100d8dcc
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x100d8e3d
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x100d8e3a
add edx, 8
jne 0x100d8e21
jmp 0x100d8eab
add edx, 4
test eax, 0xffff
jne 0x100d8e4a
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x100d8eab
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x100d8e7e
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x100d8dcc
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x100d8eba
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x100d8dcc
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x100d8ecb
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x100f5e80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x100f5eaf
push esi
call fcn.100f65e0
add esp, 4
cmp byte [esi + 0x40], 0
je 0x100f5ea8
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x100f5f29
mov eax, dword [esi + 0x1a0]
cmp byte [eax + 0x10], 0
je 0x100f5f19
mov eax, dword [esi + 8]
test eax, eax
je 0x100f5ed4
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x1a0]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x100f5f15
cmp eax, 2
je 0x100f5f19
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100f5ec5
cmp eax, 3
je 0x100f5efc
cmp eax, 1
jne 0x100f5ec5
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x100f5ec5
mov edx, dword [esi + 0x120]
add dword [eax + 8], edx
jmp 0x100f5ec5
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.100f5c50
pop esi
ret
cmp eax, 0xcc
je 0x100f5f4b
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.100f5c50
pop esi
ret

Function at 0x100fb2b0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call sym.leptonlib.dll_pixReadMemBmp
push 0x54
push edi
mov dword [esp + 0x18], eax
call fcn.10104480
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x100fb2f6
push edi
call fcn.100c5e10
mov eax, dword [edi]
mov dword [eax + 0x14], 0x38
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
mov eax, dword [edx]
push edi
call eax
add esp, 8
mov dword [esi], fcn.100fa7a0
mov dword [esi + 4], fcn.100fa8f0
mov dword [esi + 8], fcn.100fa9b0
mov dword [esi + 0xc], fcn.100faa60
mov dword [esi + 0x10], 0x100fab10
mov dword [esi + 0x14], 0x100fab80
mov dword [esi + 0x18], 0x100fabf0
mov dword [esi + 0x1c], 0x100faed0
mov dword [esi + 0x20], 0x100fb010
mov dword [esi + 0x24], fcn.100fb160
mov dword [esi + 0x28], 0x100fb270
mov dword [esi + 0x30], 0x3b9aca00
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
cmp eax, ebx
je 0x100fb3d1
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x10]
push ecx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x100fb3d1
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x100fb3ac
cmp al, 0x4d
jne 0x100fb3c4
mov eax, dword [esp + 0xc]
imul eax, eax, 0x3e8
imul eax, eax, 0x3e8
pop edi
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10102870
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x24]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1b8]
mov dword [esp + 0x18], esi
jne 0x10102897
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x101028a3
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0x14], ecx
jle 0x101029b6
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x14], edx
jmp 0x101028e8
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
cdq
idiv edi
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
je 0x10102909
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov ebp, dword [edx + ecx*4]
lea eax, [edi + 0xfe]
lea esi, [edi + edi - 2]
cdq
idiv esi
xor ebx, ebx
mov dword [esp + 0x24], ebp
xor esi, esi
mov edx, eax
cmp esi, edx
jle 0x1010295f
mov ecx, ebx
lea ebp, [edi + edi - 2]
imul ecx, ecx, 0x1fe
jmp 0x10102940
add ecx, 0x1fe
lea eax, [ecx + edi + 0xfe]
cdq
idiv ebp
inc ebx
mov edx, eax
cmp esi, edx
jg 0x10102940
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov al, byte [esp + 0x18]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x10102926
cmp dword [esp + 0x10], 0
je 0x1010299d
mov eax, 1
lea edx, [ebp - 1]
movzx ebx, byte [ebp]
mov byte [edx], bl
movzx ebx, byte [ebp + 0xff]
mov byte [eax + ebp + 0xff], bl
inc eax
dec edx
cmp eax, 0xff
jle 0x10102980
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], 4
inc ecx
cmp ecx, dword [eax + 0x64]
mov dword [esp + 0x1c], ecx
jl 0x101028e0
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x18
ret

Function at 0x1013e580
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [edx + 0x38]
test byte [ecx], 8
jne 0x1013e599
mov dword [0x1018612c], 0x6f
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x1013e5af
push 1
lea ecx, [esp + 8]
push ecx
push edx
call eax
add esp, 0xc
jmp 0x1013e5c5
mov edx, dword [ecx + 0x38]
push edx
push 1
lea eax, [esp + 0xc]
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x1013e5d7
mov dword [0x1018612c], 0x66
xor eax, eax
ret
mov al, byte [esp + 4]
cmp al, 0x21
je 0x1013e61e
cmp al, 0x2c
je 0x1013e60e
cmp al, 0x3b
je 0x1013e5fe
mov ecx, dword [esp + 8]
mov dword [ecx], 0
mov dword [0x1018612c], 0x6b
xor eax, eax
ret
mov edx, dword [esp + 8]
mov dword [edx], 4
mov eax, 1
ret
mov eax, dword [esp + 8]
mov dword [eax], 2
mov eax, 1
ret
mov ecx, dword [esp + 8]
mov dword [ecx], 3
mov eax, 1
ret
Function at 0x1013e630
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll_fread]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esi + 0x38]
cmp dword [edi + 0x3c], 0
mov eax, edi
je 0x1013e65a
mov edx, dword [eax + 0x3c]
push 1
lea ecx, [esp + 0x14]
push ecx
push esi
call edx
add esp, 0xc
jmp 0x1013e66c
mov ecx, dword [eax + 0x38]
push ecx
push 1
lea edx, [esp + 0x18]
push 1
push edx
call ebx
add esp, 0x10
cmp eax, 1
jne 0x1013e6bb
mov cl, byte [esp + 0x10]
mov edx, dword [esp + 0x14]
test cl, cl
jbe 0x1013e6cb
lea eax, [edi + 0x44]
mov dword [edx], eax
mov byte [eax], cl
mov eax, dword [esi + 0x38]
mov edx, dword [edx]
mov ecx, dword [eax + 0x3c]
inc edx
test ecx, ecx
je 0x1013e6a0
movzx eax, byte [esp + 0x10]
push eax
push edx
push esi
call ecx
add esp, 0xc
jmp 0x1013e6b2
mov eax, dword [eax + 0x38]
movzx ecx, byte [esp + 0x10]
push eax
push ecx
push 1
push edx
call ebx
add esp, 0x10
movzx ecx, byte [esp + 0x10]
cmp eax, ecx
je 0x1013e6d1
pop edi
pop esi
mov dword [0x1018612c], 0x66
xor eax, eax
pop ebx
ret
mov dword [edx], 0
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x1013e790
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [edx + 0x38]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x1013e7aa
push 2
lea eax, [esp + 4]
push eax
push edx
call ecx
add esp, 0xc
jmp 0x1013e7c0
mov ecx, dword [eax + 0x38]
push ecx
push 2
lea edx, [esp + 8]
push 1
push edx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 2
je 0x1013e7d3
mov dword [0x1018612c], 0x66
xor eax, eax
pop ecx
ret
mov ax, word [esp]
movzx ecx, ah
movzx edx, al
mov eax, dword [esp + 8]
shl ecx, 8
add ecx, edx
mov dword [eax], ecx
mov eax, 1
pop ecx
ret

Function at 0x1013e7f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [sym.imp.MSVCR90.dll_fread]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esi + 0x38]
cmp dword [edi + 0x3c], 0
mov eax, edi
je 0x1013e81a
mov edx, dword [eax + 0x3c]
push 1
lea ecx, [esp + 0x14]
push ecx
push esi
call edx
add esp, 0xc
jmp 0x1013e82c
mov ecx, dword [eax + 0x38]
push ecx
push 1
lea edx, [esp + 0x18]
push 1
push edx
call ebp
add esp, 0x10
cmp eax, 1
jne 0x1013e87b
mov cl, byte [esp + 0x10]
mov edx, dword [esp + 0x14]
test cl, cl
jbe 0x1013e88b
lea eax, [edi + 0x44]
mov dword [edx], eax
mov byte [eax], cl
mov eax, dword [esi + 0x38]
mov edx, dword [edx]
mov ecx, dword [eax + 0x3c]
inc edx
test ecx, ecx
je 0x1013e860
movzx eax, byte [esp + 0x10]
push eax
push edx
push esi
call ecx
add esp, 0xc
jmp 0x1013e872
mov eax, dword [eax + 0x38]
movzx ecx, byte [esp + 0x10]
push eax
push ecx
push 1
push edx
call ebp
add esp, 0x10
movzx ecx, byte [esp + 0x10]
cmp eax, ecx
je 0x1013e89c
pop edi
pop esi
mov dword [0x1018612c], 0x66
xor eax, eax
pop ebp
ret
mov dword [edx], 0
mov byte [edi + 0x44], 0
mov dword [edi + 0x34], 0
pop edi
pop esi
mov eax, 1
pop ebp
ret