joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100017ac
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x808
lea edi, [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x1000ba80
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov ebx, dword [edi]
lea esi, [ebp + 0xc]
sub esp, 0x14
movaps xmm0, xmmword [0x10020090]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.Mozilla_5.0
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
je 0x100018c6
cmp dword [edi + 0x18], 0x10
mov ecx, esi
jb 0x10001812
mov ecx, dword [edi + 4]
sub esp, 0x18
movaps xmm0, xmmword [0x100200a0]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], ecx
mov dword [esp], eax
mov esi, eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100018e9
mov dword [ebp - 0x24], esi
xorps xmm0, xmm0
lea eax, [ebp - 0x44]
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
lea esi, [ebp - 0x814]
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x28]
push eax
push 0x7d0
push esi
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10001913
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x100018a0
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x44]
push eax
push esi
call fcn.100019c0
cmp dword [ebp - 0x28], 0
mov ebx, dword [ebp - 0x2c]
lea esi, [ebp - 0x814]
jne 0x1000185e
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x24]
call esi
movups xmm0, xmmword [ebp - 0x44]
movups xmmword [ebx], xmm0
movsd xmm0, qword [ebp - 0x34]
movsd qword [ebx + 0x10], xmm0
jmp 0x1000195a
xor eax, eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x10], eax
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
mov dword [ebp - 0x10], eax
mov ecx, ebx
push eax
push 0x1002491e
call fcn.10003d3c
lea esi, [ebp + 8]
jmp 0x1000195d
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
xor eax, eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x10], eax
mov dword [ebp - 0x10], eax
mov ecx, ebx
push eax
push 0x1002491e
call fcn.10003d3c
lea esi, [ebp + 8]
jmp 0x1000195d
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x24]
call esi
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
xor eax, eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x10], eax
mov dword [ebp - 0x10], 1
mov ecx, ebx
push eax
push 0x1002491e
call fcn.10003d3c
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x1000195a
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10003928
add esp, 8
lea esi, [ebp + 8]
mov eax, dword [esi + 0x18]
cmp eax, 0x10
jb 0x10001974
inc eax
push eax
lea eax, [ebp + 0xc]
push dword [eax]
call fcn.10003928
add esp, 8
mov eax, dword [esi]
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x808
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10001b43
Capabilities:
Get graphical window text

Disassembly:
push edi
push esi
sub esp, 0x200
mov esi, dword [esp + 0x20c]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x10001b88
mov edi, esp
push 0x100
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
xor eax, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
push edi
call fcn.10013ac1
add esp, 4
mov ecx, esi
push eax
push edi
jmp 0x10001b9e
xor eax, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov ecx, esi
push eax
push 0x1002493c
call fcn.10004038
mov eax, esi
add esp, 0x200
pop esi
pop edi
ret

Function at 0x10005d00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ecx
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x1000baf0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov esi, dword [ebp + 8]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
push 0x24
call fcn.1000c0e2
add esp, 4
mov ecx, dword [edi]
mov dword [eax], ecx
lea ecx, [eax + 4]
xor edi, edi
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], edi
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
movups xmmword [eax + 4], xmm0
mov edx, dword [esi + 0x10]
cmp dword [esi + 0x14], 0x10
jb 0x10005d66
mov esi, dword [esi]
mov dword [ebp - 0x10], edi
push edx
push esi
call fcn.10004f2a
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x1c], eax
mov dword [ebp - 0x24], ecx
mov edi, dword [ebp - 0x2c]
lea esi, [edi + 4]
xor eax, eax
push esi
push eax
push ecx
push 0x100061ae
push eax
push eax
call fcn.100116ff
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x10005dbf
lea ecx, [ebp - 0x24]
mov dword [ecx], 0
call fcn.10006224
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi], 0
mov dword [ebp - 0x10], 1
push 6
call fcn.1000c9b7
add esp, 4
push ebp
sub esp, 0x18
add ebp, 0xc
lea ecx, [ebp - 0x24]
call fcn.10006224
add esp, 0x18
pop ebp
ret
Function at 0x1000b46a
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, esp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x28], edx
mov dword [esi + 0x24], ecx
lea eax, [esi + 0x70]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x1000bb30
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword fs:[0], eax
lea eax, [esi + 0x2d]
mov dword [eax - 1], ecx
lea eax, [esi + 0x30]
push eax
call fcn.10001b43
add esp, 4
mov eax, dword [esi + 0x28]
test byte [eax], 1
jne 0x1000b5f5
mov dword [esi + 0x78], 0
lea eax, [esi + 0x48]
push eax
call fcn.10001b43
add esp, 4
lea eax, [esi + 0x2d]
cmp byte [eax], 0
je 0x1000b5c8
lea ecx, [esi + 0x30]
lea eax, [esi + 0x48]
push eax
call fcn.1000b696
test al, al
jne 0x1000b5c8
cmp dword [esi + 0x5c], 8
lea eax, [esi + 0x48]
jb 0x1000b507
mov eax, dword [esi + 0x48]
mov edx, dword [esi + 0x58]
mov dword [esi + 0x78], 1
lea ecx, [esi + 0x30]
push edx
push eax
call fcn.1000b6e0
xorps xmm0, xmm0
movaps xmmword [esi + 0x10], xmm0
mov dword [esi + 0x64], 0x3cec4d84
mov dword [esi + 0x60], 0xd94a4fc3
xor edx, edx
mov cl, byte [esi + edx + 0x60]
mov byte [esi + 0xb], cl
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x1c]
je 0x1000b548
mov byte [eax], cl
inc dword [esi + 0x18]
jmp 0x1000b562
mov dword [esi + 0x78], 2
lea ecx, [esi + 0x14]
mov dword [esi + 0xc], edx
lea edx, [esi + 0xb]
push edx
push eax
call fcn.10005438
mov edx, dword [esi + 0xc]
inc edx
cmp edx, 8
jne 0x1000b532
mov dword [esi + 0xc], esp
push eax
sub esp, 0x14
mov ecx, esp
xor eax, eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
cmp dword [esi + 0x44], 8
lea eax, [esi + 0x30]
jb 0x1000b58b
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x40]
mov dword [esi + 0x78], 2
push edx
push eax
call fcn.100053ac
lea ecx, [esi + 0x10]
call fcn.10006b20
mov esp, dword [esi + 0xc]
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
lea edx, [esi + 0x14]
push edx
call dword [eax]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1000b5c8
mov ecx, dword [esi + 0x1c]
sub ecx, eax
push ecx
push eax
call fcn.10003928
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x5c]
cmp eax, 8
jb 0x1000b4bc
add eax, eax
add eax, 2
push eax
push dword [esi + 0x48]
call fcn.10003928
add esp, 8
jmp 0x1000b4bc
mov eax, dword [esi + 0x44]
cmp eax, 8
jb 0x1000b60e
add eax, eax
add eax, 2
push eax
push dword [esi + 0x30]
call fcn.10003928
add esp, 8
mov eax, dword [esi + 0x70]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000b94e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x1000bfb0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
push 4
call fcn.1000c0e2
add esp, 4
mov edi, eax
mov dword [eax], ebx
lea eax, [esi + 4]
xor ebx, ebx
mov dword [ebp - 0x24], eax
push eax
push ebx
push edi
push 0x1000b9ea
push ebx
push ebx
call fcn.100116ff
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x1000b9c0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x24]
mov dword [eax], ebx
mov dword [ebp - 0x10], ebx
push 6
call fcn.1000c9b7
add esp, 4
nop
push ebp
sub esp, 0x18
add ebp, 0xc
push dword [ebp - 0x20]
call fcn.1000c112
add esp, 0x1c
pop ebp
ret

Function at 0x1000dfa2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1000df7e
pop esi
leave
ret 8

Function at 0x100119d4
Capabilities:
Parse pe header

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

Function at 0x10014d10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10014d3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10014d3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10015c34
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002278c
push 0x10022784
push str.FlsAlloc
push 0x1f
call fcn.10015fc0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015c68
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x10015c6e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10015cb2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002279c
push 0x10022794
push str.FlsGetValue
push 0x21
call fcn.10015fc0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015ce9
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10015cf1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100227a4
push 0x1002279c
push str.FlsSetValue
push 0x22
call fcn.10015fc0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015d2b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001813f
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 0x100181dc
push ebx
push esi
call fcn.1001822d
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.10018043
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10018189
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100181db
push edi
push eax
call fcn.10019e9b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100181a9
call fcn.10015024
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100181da
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10018043
add esp, 0x20
test eax, eax
jne 0x100181c8
push edi
call fcn.10015024
jmp 0x100181d0
push ebx
call fcn.10015024
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 0x100181df
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100181f0
pop esi
ret
push ebx
push edi
push esi
call fcn.1001822d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10019e9b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10018218
push ebx
push esi
push edi
call fcn.10010d30
add esp, 0xc
push 0
call fcn.10015024
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10018264
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001826f
Function at 0x1001cd84
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 + 0x1002dc58]
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 0x1001cdc4
cmp byte [ebx], 0xa
jne 0x1001cdc4
or byte [edi + eax + 0x28], 4
jmp 0x1001cdc9
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 0x1001cec8
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001ceab
inc eax
cmp dl, 0xd
je 0x1001cdf5
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001ce1b
cmp eax, ecx
jae 0x1001ce29
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 0x1001cddd
jmp 0x1001cec8
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 0x1001cea6
cmp dword [ebp - 0x10], 0
je 0x1001cea6
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1002dc58]
test byte [eax + edi + 0x28], 0x48
je 0x1001ce80
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001ce6b
mov byte [esi], dl
jmp 0x1001ce7c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1002dc58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001cec8
cmp byte [ebp - 1], 0xa
jne 0x1001ce8f
cmp esi, ebx
jne 0x1001ce8f
mov byte [esi], 0xa
jmp 0x1001cec7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001c2e6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001cec8
mov byte [esi], 0xd
jmp 0x1001cec7
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1002dc58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001cec5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001cec8
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001ced1
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 + 0x1002dc58]
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 0x1001cf17
cmp word [ebx], dx
jne 0x1001cf17
or byte [eax + edi + 0x28], 4
jmp 0x1001cf1c
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 0x1001d07f
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 0x1001d05f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1001cf5d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001cf93
cmp eax, edx
jae 0x1001cfa1
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 0x1001cf38
jmp 0x1001d07f
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 0x1001d05a
cmp dword [ebp - 0x18], 0
je 0x1001d05a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1002dc58]
test byte [eax + edi + 0x28], 0x48
je 0x1001d030
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 0x1001cff4
mov word [esi], cx
jmp 0x1001d02b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1002dc58]
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 + 0x1002dc58]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1002dc58]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001d07f
pop eax
cmp word [ebp - 4], ax
jne 0x1001d040
cmp esi, ebx
jne 0x1001d040
mov word [esi], ax
jmp 0x1001d07c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001c2e6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001d07f
push 0xd
pop eax
jmp 0x1001d03b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1002dc58]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1001d079
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001d07f
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001d304
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1001d49b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1001d473
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1001d473
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1001d428
jg 0x1001d360
test eax, eax
je 0x1001d41e
push 1
push 0x1000
call fcn.10014fc7
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1001d383
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001d415
push 0x8000
push ebx
call fcn.1001d1fe
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1001d3ac
jg 0x1001d3a7
cmp ecx, 0x1000
jb 0x1001d3ac
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100193cc
add esp, 0x10
cmp eax, 0xffffffff
je 0x1001d3f1
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1001d3a7
jl 0x1001d3d8
test ecx, ecx
jne 0x1001d399
push dword [ebp - 0xc]
push ebx
call fcn.1001d1fe
push esi
call fcn.10015024
add esp, 0xc
xor ebx, ebx
jmp 0x1001d481
cmp byte [edi + 0x24], 0
je 0x1001d408
cmp dword [edi + 0x20], 5
jne 0x1001d408
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1001d413
mov ebx, dword [edi + 0x18]
jmp 0x1001d415
xor ebx, ebx
push esi
call fcn.10015024
pop ecx
jmp 0x1001d481
test ecx, ecx
jg 0x1001d3ea
jl 0x1001d428
test eax, eax
jae 0x1001d3ea
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001c2e6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1001d448
cmp byte [edi + 0x1c], 0
je 0x1001d3ea
jmp 0x1001d479
push ebx
call fcn.1001a815
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1001d3ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001d481
cmp byte [edi + 0x1c], 0
je 0x1001d47e
mov ebx, dword [edi + 0x18]
jmp 0x1001d481
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1001c2e6
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x455020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403048
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403028
xor eax, eax
push ebp
push 0x403021
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403064
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403028
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x455020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x455020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d0c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x457048], 0
je 0x403d6d
cmp word [0x45721c], 0xd7b2
jne 0x403d35
cmp dword [0x457224], 0
jbe 0x403d35
mov eax, 0x457218
call dword [0x457234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45506c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403d94
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x455030], 0
jne 0x403d89
push 0
push 0x455064
push 0x45506c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret