joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100024f0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x14
test byte [0x10005018], 8
mov ebx, dword [ebp + 0x10]
movzx esi, word [ebp + 0x14]
jne 0x10002650
lea eax, [esi - 0x101]
cmp ax, 1
jbe 0x10002540
cmp esi, 0x104
je 0x10002540
mov ecx, 9
mov eax, 1
mov word [0x100090c8], cx
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
xor edx, edx
mov ecx, 0xc
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x100026d9
mov word [eax + 8], si
lea edx, [ebx + 0xa8]
mov dword [eax], edx
mov edx, dword [ebx + 0xac]
mov dword [eax + 4], edx
mov dword [edx], eax
mov dword [ebx + 0xac], eax
mov eax, dword [0x10009010]
test eax, eax
je 0x10002620
mov dword [esp], eax
xor edx, edx
xor esi, esi
mov dword [esp + 8], edx
mov edx, dword [0x1000900c]
mov dword [esp + 0xc], esi
mov esi, dword [sym.imp.user32.dll_PostMessageW]
mov dword [esp + 4], edx
call esi
mov eax, dword [ebx + 0xb0]
sub esp, 0x10
test eax, eax
je 0x100026c0
cmp eax, dword [0x10009010]
jne 0x10002630
mov eax, dword [ebx + 0xb4]
mov edx, dword [0x1000900c]
test eax, eax
je 0x100025f7
cmp eax, dword [ebx + 0xb0]
je 0x100025f7
cmp dword [0x10009010], eax
jne 0x10002694
mov dword [esp + 4], edx
xor eax, eax
xor ecx, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp], 0
call esi
xor eax, eax
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebx + 0xb0]
mov esi, dword [sym.imp.user32.dll_PostMessageW]
test eax, eax
je 0x10002680
mov dword [esp], eax
xor edx, edx
xor ecx, ecx
mov dword [esp + 0xc], edx
mov edx, dword [0x1000900c]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call esi
sub esp, 0x10
jmp 0x100025d3
mov dword [esp + 0x10], esi
mov eax, str.DG_CONTROL_DAT_NULL_MSG_i_n
mov dword [esp + 0xc], eax
mov eax, str.TWAIN_ControlNull
mov dword [esp + 8], eax
mov eax, 0x10005018
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000250c
mov eax, dword [ebx + 0xb4]
mov edx, dword [0x1000900c]
test eax, eax
je 0x100025f7
mov dword [esp + 4], edx
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp], eax
call esi
mov edx, dword [0x1000900c]
sub esp, 0x10
jmp 0x100025f7
mov eax, dword [ebx + 0xb4]
mov edx, dword [0x1000900c]
test eax, eax
jne 0x100025eb
jmp 0x100025f7
mov word [0x100090c8], 2
mov eax, 1
jmp 0x10002531
Function at 0x10002890
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
test byte [0x10005018], 8
mov edi, dword [ebp + 0xc]
jne 0x10002968
mov ebx, dword [0x100090c0]
test ebx, ebx
je 0x100029a8
mov edx, dword [edi]
xor esi, esi
jmp 0x100028ce
mov eax, dword [ebx]
mov esi, ebx
test eax, eax
je 0x100029a8
mov ebx, eax
cmp dword [ebx + 4], edx
jne 0x100028c0
mov eax, 0x402
mov edx, 3
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, 1
mov dword [esp + 0x10], edi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [ebx + 0xa4]
sub esp, 0x14
test esi, esi
movzx edi, ax
je 0x10002998
mov eax, dword [ebx]
mov dword [esi], eax
mov dword [esp + 8], ebx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
test edi, edi
je 0x10002950
mov esi, 0xb
mov eax, edi
mov word [0x100090c8], si
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
mov word [0x100090c8], ax
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, str.DG_CONTROL_DAT_IDENTITY_MSG_CLOSEDS_n
mov ebx, str.TWAIN_CloseDS
mov dword [esp + 0xc], ecx
mov esi, 0x10005018
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x100028a9
mov eax, dword [ebx]
mov dword [0x100090c0], eax
jmp 0x10002910
mov ebx, 3
mov edi, 1
mov word [0x100090c8], bx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10003bd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
test eax, eax
je 0x10003c38
cmp byte [esi + eax - 1], 0xa
mov ebx, eax
je 0x10003c30
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x100090a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x10003bfa
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x100042b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov ebx, dword [ebp + 0xc]
mov dword [esp], ebx
call sym.___wine_dbg_get_channel_flags
movzx ecx, byte [ebp + 8]
movzx eax, al
sar eax, cl
test al, 1
je 0x10004498
mov edx, dword [0x100090a4]
mov eax, dword fs:[0x18]
cmp dword [eax + 0x24], edx
je 0x10004488
test byte [0x10005040], 8
jne 0x10004430
lea edi, [ebp - 0xd4]
mov esi, edi
test byte [0x10005050], 8
jne 0x100043f0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov ecx, str._04x:
mov dword [esp + 4], ecx
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x1000433a
cmp dword [ebp + 8], 3
jbe 0x100043a8
mov dword [esp], 2
mov ebx, edi
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov esi, dword [ebx]
add ebx, 4
lea ecx, [esi - 0x1010101]
not esi
and ecx, esi
and ecx, 0x80808080
je 0x10004349
mov dword [esp + 0xc], eax
mov esi, ecx
mov eax, 1
mov dword [esp + 4], eax
shr esi, 0x10
test ecx, 0x8080
mov dword [esp], edi
cmove ecx, esi
lea esi, [ebx + 2]
mov dl, cl
cmove ebx, esi
add dl, cl
sbb ebx, 3
sub ebx, edi
mov dword [esp + 8], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0x10]
add eax, esi
inc ebx
mov dword [esp + 0x10], ebx
mov dword [esp], eax
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 8]
mov ecx, dword [edx*4 + 0x10007604]
mov edx, str._s:_s:_s
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov ecx, edi
sub ecx, eax
add ecx, 0xc8
mov dword [esp + 4], ecx
call sym._snprintf.constprop.0
jmp 0x1000433a
mov dword [esp], 0x10005050
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x1000430f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov ecx, str._04x:
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym._sprintf
add esi, eax
jmp 0x1000430f
mov dword [esp], 0x10005040
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x100042fa
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
mov esi, str._3u._03u:
mov dword [esp + 4], esi
lea edi, [ebp - 0xd4]
mov dword [esp], edi
mov ecx, eax
mul edx
shr edx, 6
mov dword [esp + 8], edx
imul eax, edx, 0x3e8
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea esi, [edi + eax]
jmp 0x10004302
add esp, 0xe0
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffffff
jmp 0x10004397
Function at 0x1000f150
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x1000f181
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x1000f170
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x1002d130
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006b255
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100863f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
push 0x40
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], esi
call fcn.100021a0
movups xmm0, xmmword [str.BufferedTransformation:_this_object_doesnt_allow_input]
mov edi, eax
mov dword [ebp - 0x18], 0x37
mov eax, 0x3f
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], eax
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x1006fcf0]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x1006fd00]
movups xmmword [edi + 0x20], xmm0
mov eax, dword [0x1006fd10]
mov dword [edi + 0x30], eax
mov ax, word [0x1006fd14]
mov word [edi + 0x34], ax
mov al, byte [0x1006fd16]
mov byte [edi + 0x36], al
mov byte [edi + 0x37], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movq qword [esi + 4], xmm0
mov dword [esi], vtable.CryptoPP::Exception.0
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], 0
push 0x40
mov byte [ebp - 4], 1
mov dword [esi + 0x10], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.100021a0
mov dword [esi + 0x10], eax
mov ecx, 0x3f
movups xmm0, xmmword [edi]
inc ecx
push ecx
movups xmmword [eax], xmm0
push edi
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [eax + 0x20], xmm0
movq xmm0, qword [edi + 0x30]
movq qword [eax + 0x30], xmm0
mov dword [esi + 0x20], 0x37
mov dword [esi + 0x24], 0x3f
mov esi, dword [ebp - 0x2c]
mov dword [esi], vtable.CryptoPP::NotImplemented.0
call fcn.1003e387
add esp, 8
mov dword [esi], vtable.CryptoPP::InputRejecting_class_CryptoPP::BufferedTransformation_::InputRejected.0
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.1003e6af
mov esp, ebp
pop ebp
ret
Function at 0x1003b280
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x1c
test eax, eax
je 0x1003b3c7
mov edx, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x28]
push edi
cmp eax, 4
jb 0x1003b2c3
mov edi, eax
shr edi, 2
mov ecx, dword [edx]
sub eax, 4
xor ecx, dword [ebx]
add edx, 4
mov dword [esi], ecx
add ebx, 4
add esi, 4
sub edi, 1
jne 0x1003b2a8
mov dword [esp + 0x38], eax
push ebp
xor ebp, ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebx
test eax, eax
je 0x1003b3c3
cmp eax, 0x40
jb 0x1003b3a8
lea ecx, [ebx - 1]
lea edi, [esi - 1]
add ecx, eax
add edi, eax
cmp esi, ecx
ja 0x1003b2f5
cmp edi, ebx
jae 0x1003b3a8
lea ecx, [edx - 1]
add ecx, eax
cmp esi, ecx
ja 0x1003b306
cmp edi, edx
jae 0x1003b3a8
mov ecx, eax
lea edi, [esi + 0x20]
mov eax, esi
mov dword [esp + 0x18], edi
sub eax, ebx
and ecx, 0xffffffc0
mov dword [esp + 0x20], eax
mov edi, edx
sub edi, ebx
mov dword [esp + 0x28], ecx
mov eax, edx
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x18]
lea ecx, [ebx + 0x10]
sub eax, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
movups xmm0, xmmword [ecx - 0x10]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [edx + ebp]
lea edi, [edi + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x40]
movups xmmword [edi - 0x60], xmm1
movups xmm1, xmmword [eax + ecx - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x30]
movups xmmword [esi + ecx - 0x40], xmm1
movups xmm1, xmmword [ebx + edi - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x20]
movups xmmword [edi - 0x40], xmm1
movups xmm1, xmmword [edx + ebp + 0x30]
add ebp, 0x40
pxor xmm1, xmm0
movups xmmword [edi - 0x30], xmm1
cmp ebp, dword [esp + 0x28]
jb 0x1003b341
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], ebp
cmp ebp, eax
jae 0x1003b3c3
sub edx, ebx
lea edi, [ebx + ebp]
sub esi, ebx
sub eax, ebp
mov cl, byte [edi + edx]
lea edi, [edi + 1]
xor cl, byte [edi - 1]
mov byte [edi + esi - 1], cl
sub eax, 1
jne 0x1003b3b1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x1005a984
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100752e0
push 0x100752d8
push str.FlsAlloc
push 0x1e
call fcn.1005a7f1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005a9b8
push dword [ebp + 8]
mov ecx, esi
call dword [0x1006c194]
call esi
jmp 0x1005a9be
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1005aa02
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100752f0
push 0x100752e8
push str.FlsGetValue
push 0x20
call fcn.1005a7f1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005aa39
push dword [ebp + 8]
mov ecx, esi
call dword [0x1006c194]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1005c46c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005c2dd

Function at 0x1005c866
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1003e8e0
mov eax, dword [0x100863f8]
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.1005a1fd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1005c8a8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1005ca04
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100682f0
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 + 0x1008ad50]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1005d85d
mov ecx, dword [esi*4 + 0x1008ad50]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1005c9fd
cmp eax, dword [edi + ecx + 0x24]
jne 0x1005c9fd
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005c9fd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1005d85d
add esp, 0x14
test edx, edx
jl 0x1005c9fd
jg 0x1005c973
test eax, eax
jb 0x1005c9fd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1005c9fd
jl 0x1005c98d
cmp dword [ebp - 0x1008], eax
ja 0x1005c9fd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1005c9ab
test ebx, ebx
je 0x1005c9e4
cmp ecx, edi
jae 0x1005c9e4
mov al, byte [ecx]
cmp al, 0xd
jne 0x1005c9c5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1005c9d1
cmp byte [ecx + 1], 0xa
jne 0x1005c9d1
inc ecx
jmp 0x1005c9d1
movzx eax, al
movsx eax, byte [eax + 0x10086690]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1005c9ab
cmp edx, ebx
jne 0x1005c9ab
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1005ca02
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1003e6af
leave
ret
Function at 0x1005ccfb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x1008ad50]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1005cd3b
cmp byte [ebx], 0xa
jne 0x1005cd3b
or byte [eax + edi + 0x28], 4
jmp 0x1005cd40
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1005ce3e
mov al, byte [edx]
cmp al, 0x1a
je 0x1005ce20
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1005cd6f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1005cd94
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1005cd9e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x1005cd51
jmp 0x1005ce3e
push 0
lea eax, [ebp - 0xc]
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 0x1005ce1b
cmp dword [ebp - 0xc], 0
je 0x1005ce1b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1008ad50]
test byte [eax + edi + 0x28], 0x48
je 0x1005cdf5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1005cde0
mov byte [esi], dl
jmp 0x1005cdf1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1008ad50]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1005ce3e
cmp byte [ebp - 1], 0xa
jne 0x1005ce04
cmp esi, ebx
jne 0x1005ce04
mov byte [esi], 0xa
jmp 0x1005ce3d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1005d87b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1005ce3e
mov byte [esi], 0xd
jmp 0x1005ce3d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1008ad50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1005ce3a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1005ce3e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1005ce47
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x1008ad50]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1005ce8a
cmp word [esi], dx
jne 0x1005ce8a
or byte [edi + eax + 0x28], 4
jmp 0x1005ce8f
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1005cfe2
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1005cfc2
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1005ced1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1005cf07
cmp eax, edx
jae 0x1005cf13
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x1005cea9
jmp 0x1005cfe2
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005cfbe
cmp dword [ebp - 0x14], 0
je 0x1005cfbe
mov eax, dword [ebx*4 + 0x1008ad50]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1005cf96
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x1005cf5f
mov word [esi], cx
jmp 0x1005cf92
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1008ad50]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x1008ad50]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1008ad50]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x1005cfe2
pop ebx
cmp word [ebp - 4], bx
jne 0x1005cfa7
cmp esi, dword [ebp + 0xc]
jne 0x1005cfa7
mov word [esi], bx
jmp 0x1005cfdf
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1005d87b
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1005cfe2
push 0xd
jmp 0x1005cfdb
mov ecx, dword [ebx*4 + 0x1008ad50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1005cfd9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1005cfe2
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10061208
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100612a5
push ebx
push esi
call fcn.100611d1
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1005f341
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10061252
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100612a4
push edi
push eax
call fcn.1005916f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10061272
call fcn.10059135
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100612a3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1005f341
add esp, 0x20
test eax, eax
jne 0x10061291
push edi
call fcn.10059135
jmp 0x10061299
push ebx
call fcn.10059135
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100612a8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100612b9
pop esi
ret
push ebx
push edi
push esi
call fcn.100611d1
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1005916f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100612e1
push ebx
push esi
push edi
call fcn.1003fa30
add esp, 0xc
push 0
call fcn.10059135
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100616a5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100612f6