joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10025250
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006dab0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1017f064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 8
mov dword [ebx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1004956e
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.100485a4
add esp, 8
mov dword [esi + 4], eax
mov ecx, ebx
mov dword [ebx + 0x34], esi
call fcn.10025660
mov eax, ebx
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea esi, [eax + 8]
lea ebx, [eax + 4]
mov dword [eax + 0x20], ecx
mov dword [eax + 0xc], ebx
lea edi, [eax + 0x14]
mov dword [eax + 0x2c], edx
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x10182ef4]
mov dword [eax], 0
mov eax, dword [0x10182ef0]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x40], eax
mov eax, edx
mov dword [edx + 0x4c], 0
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002d600
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x1017f064]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
push 0
mov dword [esp + 0xc], esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1002d666
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov eax, esi
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], 0xf
mov word [esi], 0x20
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.1004955b
mov esp, ebp
pop ebp
ret
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
jne 0x1002d69f
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.1004955b
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
xorps xmm0, xmm0
test edx, edx
je 0x1002d62f
mov ecx, edx
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
lea eax, [ecx + 1]
mov dword [esp + 8], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002d6d0
sub ecx, dword [esp + 8]
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.1002c4f0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x3c]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov eax, esi
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 0x14], 0
pop edi
movups xmmword [esi], xmm0
movq xmm0, qword [esp + 0x1c]
movq qword [esi + 0x10], xmm0
pop esi
xor ecx, esp
call fcn.1004955b
mov esp, ebp
pop ebp
ret
Function at 0x1002ec20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x234
mov eax, dword [0x1017f064]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x30]
push esi
push edi
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
cvtss2sd xmm0, xmm3
sub esp, 8
mov esi, ecx
movsd qword [esp], xmm0
push 0x100e8e3c
push eax
call fcn.1002ec00
add esp, 0x10
lea eax, [esp + 0x138]
push esi
push 0xff
push eax
lea eax, [esp + 0x44]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x138]
push eax
call fcn.100551b6
mov ecx, dword [esp + 0x240]
add esp, 4
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fstp dword [esp + 0x34]
movss xmm0, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004955b
mov esp, ebp
pop ebp
ret 8

Function at 0x1002ecc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x1017f064]
xor eax, ebp
mov dword [ebp - 4], eax
mov dl, byte [ebp + 0x10]
mov eax, str.True
push ebx
mov ebx, dword [ebp + 8]
test dl, dl
push esi
mov esi, ecx
mov ecx, str.False
push edi
mov edi, dword [ebp + 0xc]
cmove eax, ecx
push eax
lea eax, [ebp - 0x204]
push 0x100e8e50
push eax
call fcn.1002ec00
add esp, 0xc
lea eax, [ebp - 0x104]
push esi
push 0xff
push eax
lea eax, [ebp - 0x204]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
mov ecx, str.True
lea eax, [ebp - 0x104]
pop ebx
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1002ed50
test dl, dl
je 0x1002ed4c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1002ed50
add eax, 2
add ecx, 2
test dl, dl
jne 0x1002ed30
xor eax, eax
jmp 0x1002ed55
sbb eax, eax
or eax, 1
test eax, eax
je 0x1002ed9f
mov ecx, str.true
lea eax, [ebp - 0x104]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1002ed84
test dl, dl
je 0x1002ed80
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1002ed84
add eax, 2
add ecx, 2
test dl, dl
jne 0x1002ed64
xor eax, eax
jmp 0x1002ed89
sbb eax, eax
or eax, 1
test eax, eax
je 0x1002ed9f
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004955b
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.1004955b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1002edc0
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [0x1017fad0], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov dword [ebp - 4], edx
mov edi, ecx
je 0x1002ee07
mov esi, dword [0x101829e8]
mov eax, dword [0x101810c0]
inc esi
add eax, dword [ebp + 0x10]
mov dword [0x101829e8], esi
cmp esi, eax
jge 0x1002edfd
call ebx
add eax, dword [ebp + 8]
jmp 0x1002ee02
call ebx
add eax, dword [ebp + 0xc]
mov dword [0x10182e38], eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
call esi
test ax, ax
jns 0x1002ee4a
cmp byte [edi*2 + 0x101829f0], 0
jne 0x1002ee4a
mov word [edi*2 + 0x101829f0], 1
call ebx
cmp eax, dword [0x10182e38]
setae byte [0x1017fad0]
call ebx
cmp eax, dword [0x10182e38]
setae al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edi*2 + 0x101829f0], 1
jne 0x1002ee66
push edi
call esi
test ax, ax
js 0x1002ee66
mov word [edi*2 + 0x101829f0], 0x100
push edi
call esi
test ax, ax
jns 0x1002ee78
mov byte [edi*2 + 0x101829f1], 0
jmp 0x1002ee29
mov edx, dword [ebp - 4]
mov byte [edi*2 + 0x101829f1], 1
call fcn.1002eef0
test al, al
jne 0x1002ee29
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10038b40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1017f064]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
call fcn.10029060
cmp byte [0x101829ee], 0
push dword [0x10182e5c]
je 0x10038caf
call fcn.100395b0
add esp, 4
test al, al
jne 0x10038bbb
mov edx, 0x10182e5c
mov byte [0x10182c23], al
mov byte [0x10182c32], al
call fcn.10039470
push dword [0x10182e5c]
mov cl, 1
call fcn.10028fb0
push dword [0x10182e5c]
call fcn.100398f0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004955b
mov esp, ebp
pop ebp
ret
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x10038bed
mov edx, 5
call fcn.1002eef0
test al, al
jne 0x10038bed
mov edx, 1
mov ecx, edx
call fcn.1003a460
xor cl, cl
call fcn.1003a3c0
xor cl, cl
jmp 0x10038bff
xor edx, edx
xor ecx, ecx
call fcn.1003a460
mov cl, 1
call fcn.1003a3c0
mov cl, 1
push dword [ebp - 0x2c]
call fcn.10028fb0
add esp, 4
mov dword [ebp - 0x30], 0
call fcn.10025be0
mov ecx, eax
call fcn.1003d450
lea edx, [ebp - 0x30]
mov ecx, eax
call fcn.1003d4f0
movss xmm3, dword [0x10176fc0]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x30]
lea edx, [ebp - 0xc]
xorps xmm2, xmm2
lea ecx, [ebp - 0x10]
xorps xmm1, xmm1
call fcn.10026f60
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x2c]
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
call fcn.10039700
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x2c]
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x28]
call fcn.10039650
push dword [0x10182e5c]
movss xmm1, dword [0x101771b4]
xorps xmm3, xmm3
xorps xmm2, xmm2
call fcn.100291b0
push dword [0x10182e5c]
movss xmm3, dword [ebp - 8]
movss xmm2, dword [ebp - 0xc]
movss xmm1, dword [ebp - 0x10]
call fcn.10029100
add esp, 0x20
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004955b
mov esp, ebp
pop ebp
ret
call fcn.100395b0
add esp, 4
test al, al
je 0x10038ce3
push dword [0x10182e5c]
call fcn.10039510
xor edx, edx
xor ecx, ecx
call fcn.1003a460
mov cl, 1
call fcn.1003a3c0
push dword [ebp - 0x2c]
mov cl, 1
call fcn.10028fb0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004955b
mov esp, ebp
pop ebp
ret

Function at 0x1003b7e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x10182cad], 0
je 0x1003b8a4
mov dword [ebp - 4], 0
call fcn.10025be0
mov ecx, eax
call fcn.1003d450
lea edx, [ebp - 4]
mov ecx, eax
call fcn.1003d4f0
push dword [ebp - 4]
call fcn.10027200
add esp, 4
test al, al
je 0x1003b8a4
push 0xa0
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1003b83a
mov byte [0x10182b31], 0
jmp 0x1003b84f
mov edx, 0x10
mov byte [0x10182b31], 1
call fcn.1002eef0
test al, al
je 0x1003b8a4
mov dword [ebp - 4], 0
call fcn.10025be0
mov ecx, eax
call fcn.1003d450
lea edx, [ebp - 4]
mov ecx, eax
call fcn.1003d4f0
movss xmm3, dword [0x10176f64]
sub esp, 0x1c
xorps xmm2, xmm2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
push dword [ebp - 4]
call fcn.1003d630
add esp, 0x20
mov esp, ebp
pop ebp
ret
Function at 0x10045e00
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x1017f064]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10182dd7], 0
je 0x10046048
mov dword [ebp - 0x5c], 0
call fcn.10025be0
mov ecx, eax
call fcn.1003d450
lea edx, [ebp - 0x5c]
mov ecx, eax
call fcn.1003d4f0
push dword [ebp - 0x5c]
call fcn.10039100
add esp, 4
test al, al
je 0x10046048
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 2
call esi
test ax, ax
mov al, byte [0x101829f4]
jns 0x10045e71
test al, al
jne 0x10045e71
mov word [0x101829f4], 1
jmp 0x10045e99
cmp al, 1
jne 0x10045e87
push 2
call esi
test ax, ax
js 0x10045e87
mov word [0x101829f4], 0x100
mov edx, 5
call fcn.100296f0
test al, al
je 0x10046047
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, dword [0x101815bc]
add ecx, 0x96
cmp ecx, eax
jae 0x10046047
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
call fcn.10025be0
mov ecx, eax
call fcn.1003d450
lea edx, [ebp - 0x60]
mov ecx, eax
call fcn.1003d4f0
push dword [ebp - 0x60]
lea ecx, [ebp - 0x5c]
call fcn.10028060
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x64]
call fcn.100471e0
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x5c]
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x4c]
call fcn.100281a0
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x58]
call fcn.10047830
movss xmm1, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
movss xmm2, dword [ebp - 0xc]
lea edx, [ebp - 0x24]
addss xmm1, dword [0x10176e14]
addss xmm2, dword [0x10176f58]
movss xmm3, dword [0x10176dbc]
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x5c]
xorps xmm1, xmmword [0x10177420]
call fcn.100282f0
movss xmm2, dword [ebp - 0xc]
lea eax, [ebp - 0x38]
movss xmm1, dword [ebp - 0x10]
lea edx, [ebp - 0x3c]
addss xmm2, dword [0x10176f58]
addss xmm1, dword [0x10176e14]
movss xmm3, dword [0x10176dbc]
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x5c]
call fcn.100282f0
movss xmm2, dword [ebp - 0xc]
lea eax, [ebp - 0x14]
addss xmm2, dword [0x10177074]
movss xmm1, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
xorps xmm1, xmmword [0x10177420]
lea ecx, [ebp - 0x1c]
movss xmm3, dword [0x10176dbc]
push eax
push dword [ebp - 0x5c]
call fcn.100282f0
movss xmm2, dword [ebp - 0xc]
lea eax, [ebp - 0x2c]
addss xmm2, dword [0x10177074]
movss xmm3, dword [0x10176dbc]
lea edx, [ebp - 0x30]
movss xmm1, dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x5c]
call fcn.100282f0
movss xmm0, dword [ebp - 0x14]
add esp, 0x2c
movss xmm3, dword [ebp - 0x1c]
movss xmm2, dword [ebp - 0x20]
movss xmm1, dword [ebp - 0x24]
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x18]
movss dword [esp], xmm0
movss xmm0, dword [ebp - 0x28]
call fcn.10029dd0
movss xmm0, dword [ebp - 0x2c]
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x30]
movss xmm3, dword [ebp - 0x34]
movss xmm2, dword [ebp - 0x38]
movss xmm1, dword [ebp - 0x3c]
movss dword [esp], xmm0
movss xmm0, dword [ebp - 0x40]
call fcn.10029dd0
add esp, 8
call esi
mov dword [0x101815bc], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004955b
mov esp, ebp
pop ebp
ret
Function at 0x1005c70d
Capabilities:
Read file on windows

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

Function at 0x1005cba9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10073070
push 0x10073068
push str.FlsAlloc
push 0x1e
call fcn.1005ca16
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005cbdd
push dword [ebp + 8]
mov ecx, esi
call dword [0x1006f1c0]
call esi
jmp 0x1005cbe3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1005cc27
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10073080
push 0x10073078
push str.FlsGetValue
push 0x20
call fcn.1005ca16
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005cc5e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1006f1c0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1005e460
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1004a450
mov eax, dword [0x1017f064]
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.10059402
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1005e4a2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1005e5fe
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1006b3c0
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 + 0x10182588]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1005f611
mov ecx, dword [esi*4 + 0x10182588]
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 0x1005e5f7
cmp eax, dword [edi + ecx + 0x24]
jne 0x1005e5f7
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 0x1005e5f7
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1005f611
add esp, 0x14
test edx, edx
jl 0x1005e5f7
jg 0x1005e56d
test eax, eax
jb 0x1005e5f7
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1005e5f7
jl 0x1005e587
cmp dword [ebp - 0x1008], eax
ja 0x1005e5f7
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1005e5a5
test ebx, ebx
je 0x1005e5de
cmp ecx, edi
jae 0x1005e5de
mov al, byte [ecx]
cmp al, 0xd
jne 0x1005e5bf
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1005e5cb
cmp byte [ecx + 1], 0xa
jne 0x1005e5cb
inc ecx
jmp 0x1005e5cb
movzx eax, al
movsx eax, byte [eax + 0x1017f2d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1005e5a5
cmp edx, ebx
jne 0x1005e5a5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1005e5fc
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1004955b
leave
ret
Function at 0x1005eaaf
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 + 0x10182588]
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 0x1005eaef
cmp byte [ebx], 0xa
jne 0x1005eaef
or byte [eax + edi + 0x28], 4
jmp 0x1005eaf4
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1005ebf2
mov al, byte [edx]
cmp al, 0x1a
je 0x1005ebd4
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1005eb23
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1005eb48
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1005eb52
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 0x1005eb05
jmp 0x1005ebf2
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 0x1005ebcf
cmp dword [ebp - 0xc], 0
je 0x1005ebcf
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10182588]
test byte [eax + edi + 0x28], 0x48
je 0x1005eba9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1005eb94
mov byte [esi], dl
jmp 0x1005eba5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10182588]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1005ebf2
cmp byte [ebp - 1], 0xa
jne 0x1005ebb8
cmp esi, ebx
jne 0x1005ebb8
mov byte [esi], 0xa
jmp 0x1005ebf1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1005f62f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1005ebf2
mov byte [esi], 0xd
jmp 0x1005ebf1
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10182588]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1005ebee
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1005ebf2
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1005ebfb
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 + 0x10182588]
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 0x1005ec3e
cmp word [esi], dx
jne 0x1005ec3e
or byte [edi + eax + 0x28], 4
jmp 0x1005ec43
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 0x1005ed96
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 0x1005ed76
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1005ec85
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1005ecbb
cmp eax, edx
jae 0x1005ecc7
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 0x1005ec5d
jmp 0x1005ed96
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 0x1005ed72
cmp dword [ebp - 0x14], 0
je 0x1005ed72
mov eax, dword [ebx*4 + 0x10182588]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1005ed4a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x1005ed13
mov word [esi], cx
jmp 0x1005ed46
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10182588]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x10182588]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10182588]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x1005ed96
pop ebx
cmp word [ebp - 4], bx
jne 0x1005ed5b
cmp esi, dword [ebp + 0xc]
jne 0x1005ed5b
mov word [esi], bx
jmp 0x1005ed93
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1005f62f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1005ed96
push 0xd
jmp 0x1005ed8f
mov ecx, dword [ebx*4 + 0x10182588]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1005ed8d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1005ed96
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 0x10062d68
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 0x10062e05
push ebx
push esi
call fcn.10062d31
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.1005e6f9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10062db2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10062e04
push edi
push eax
call fcn.1005d16b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10062dd2
call fcn.1005c19a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10062e03
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1005e6f9
add esp, 0x20
test eax, eax
jne 0x10062df1
push edi
call fcn.1005c19a
jmp 0x10062df9
push ebx
call fcn.1005c19a
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 0x10062e08
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10062e19
pop esi
ret
push ebx
push edi
push esi
call fcn.10062d31
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1005d16b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10062e41
push ebx
push esi
push edi
call fcn.1004aaf0
add esp, 0xc
push 0
call fcn.1005c19a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10063205
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10062e56