joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003aab0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.100588e0
push 0xffffffffffffffff
push 0x100bc262
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1011ca44]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x100c]
mov dword [ebp - 0x18], edi
xor ebx, ebx
lea eax, [ebp]
push 0x1000
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.1005c640
mov eax, dword [ebp + 0x1010]
add esp, 0xc
test eax, eax
je 0x1003ab1b
mov esi, dword [eax]
jmp 0x1003ab1d
mov esi, ebx
movzx ecx, word [esi]
mov eax, ebx
mov edx, ebx
test cx, cx
je 0x1003ac42
cmp cx, 0x2e
jne 0x1003ab39
inc eax
cmp eax, 1
jg 0x1003ab4c
inc edx
movzx ecx, word [esi + edx*2]
test cx, cx
jne 0x1003ab2d
cmp eax, 1
jle 0x1003ac42
push 0x100fca6c
push esi
call fcn.10093ade
pop ecx
pop ecx
test eax, eax
js 0x1003ac42
push esi
call fcn.10039f71
pop ecx
test al, al
je 0x1003ac42
push 0x100fca88
lea ecx, [ebp - 0x14]
call fcn.10001727
push 0x100fca84
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.1000d9ae
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x14]
call fcn.1000187c
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1003abae
call fcn.10001b26
push esi
lea ecx, [ebp - 0x10]
call fcn.10001727
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x14]
call fcn.1000187c
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1003abd7
call fcn.10001b26
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1003abe2
mov eax, dword [esi]
jmp 0x1003abe4
mov eax, ebx
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003ac2a
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x1000
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0x100fcae0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1003ac2a
xor eax, eax
mov word [ebp], ax
lea eax, [ebp]
mov ecx, edi
push eax
call fcn.10001727
test esi, esi
je 0x1003ac62
mov ecx, esi
call fcn.10001b26
jmp 0x1003ac62
push str.1.3.1
push esi
call fcn.10093ade
push esi
call fcn.10039f71
add esp, 0xc
mov ecx, edi
push 0x100fc3be
call fcn.1000d9ae
mov ecx, dword [ebp + 0x1010]
test ecx, ecx
je 0x1003ac71
call fcn.10001b26
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.100587af
add ebp, 0x1004
leave
ret
Function at 0x10093ade
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x10093aed
pop dword [ebp - 0x1c]
mov eax, 0x32765933
sub eax, 0x226d1e46
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x5fe2b
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x65142c57
sub ecx, 0x6513e565
xor edx, edx
add edx, eax
mov ebx, 0x1016a800
add ebx, dword [ebp - 0x1c]
mov esi, 0x5cd25a32
mov dword [ebp - 0x14], 0x962ffd05
mov edi, dword [ebx]
xor dword [ebp - 4], ecx
add edi, esi
add dword [ebp - 0xc], 0x85dcdc89
mov dword [edx], edi
add dword [ebp - 4], 0xad339be4
add edx, 0xe0dd17fd
add edx, 0x1f22e807
add ebx, 4
loop 0x10093b3d
add eax, 0xfce82441
add eax, 0x318ea5a
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x6c802eb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x6c802f0b
cmp byte [esi + ebx - 1], 0xa
je 0x6c802edf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6c804118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x10027b10
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [edx + 4]
push edi
mov edi, ecx
test esi, esi
je 0x10027b90
cmp dword [esi], 0
je 0x10027b90
mov eax, dword fs:[0x2c]
mov edx, dword [0x1008a2c0]
mov ecx, dword [eax + edx*4]
mov eax, dword [0x1008ac6c]
cmp eax, dword [ecx + 4]
jle 0x10027b6f
push 0x1008ac6c
call fcn.10045866
add esp, 4
cmp dword [0x1008ac6c], 0xffffffff
jne 0x10027b6f
mov al, byte [esi + 1]
sub al, byte [esi + 3]
sub al, byte [esi + 2]
add al, byte [esi]
push 0x1008ac6c
mov byte [0x1008ac70], al
call fcn.1004581c
add esp, 4
mov cl, byte [edi]
mov eax, edi
test cl, cl
je 0x10027b8b
mov dl, byte [0x1008ac70]
nop dword [eax]
xor cl, dl
mov byte [eax], cl
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x10027b80
sub eax, edi
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x1004627f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
push esi
mov byte [ebp - 0x48], 0x48
mov byte [ebp - 0x47], 0x38
mov byte [ebp - 0x46], 0x30
mov byte [ebp - 0x45], 0x62
mov byte [ebp - 0x44], 0x26
mov byte [ebp - 0x43], 0x54
mov byte [ebp - 0x42], 0x54
mov byte [ebp - 0x41], 0x48
mov byte [ebp - 0x40], 0x62
mov byte [ebp - 0x3f], 0x74
inc ebp
sal dword [esi + eax*8 + 0x45], 0xc2
dec edx
mov byte [ebp - 0x3d], 0x63
mov byte [ebp - 0x3c], 0x4d
mov byte [ebp - 0x3b], 0x54
mov byte [ebp - 0x3a], 0x24
mov byte [ebp - 0x39], 0x42
mov byte [ebp - 0x38], 0x36
mov byte [ebp - 0x37], 0x41
mov byte [ebp - 0x36], 0x67
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x51
mov byte [ebp - 0x33], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x4c], 0
mov eax, 0x6b
imul eax, dword [eax], 0
add byte [esi - 0x77], ah
test dword [eax - 1], edx
invalid
invalid
mov ecx, 0x65
mov word [ebp - 0xae], cx
mov edx, 0x72
mov word [ebp - 0xac], dx
mov eax, 0x6e
mov word [ebp - 0xaa], ax
mov ecx, 0x65
mov word [ebp - 0xa8], cx
mov edx, 0x6c
mov word [ebp - 0xa6], dx
mov eax, 0x33
mov word [ebp - 0xa4], ax
mov ecx, 0x32
mov word [ebp - 0xa2], cx
mov edx, 0x2e
mov word [ebp - 0xa0], dx
mov eax, 0x64
mov word [ebp - 0x9e], ax
mov ecx, 0x6c
mov word [ebp - 0x9c], cx
mov edx, 0x6c
mov word [ebp - 0x9a], dx
xor eax, eax
mov word [ebp - 0x98], ax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x78], 0
inc ebp
mov byte [eax], al
add byte [eax], al
add bh, al
inc ebp
test byte [eax], al
add byte [eax], al
add bh, al
inc ebp
mov al, byte [pe_dos_header]
Function at 0x10046440
Capabilities:
Encrypt data using rc4 prga

Disassembly:
inc ebp
mov byte [eax], al
add byte [eax], al
add bh, al
inc ebp
test byte [eax], al
add byte [eax], al
add bh, al
inc ebp
mov al, byte [pe_dos_header]
lea ecx, [ebp - 0xb0]
push ecx
call fcn.10046c6f
add esp, 4
mov dword [ebp - 0x24], eax
push 0xd57b2
mov edx, dword [ebp - 0x24]
push edx
call fcn.10046ccf
add esp, 8
mov dword [ebp - 0x7c], eax
mov eax, 0x73
mov word [ebp - 0x94], ax
mov dword [ebp - 0x94], eax
mov ecx, 0x63
mov word [ebp - 0x92], cx
mov edx, 0x2e
mov word [ebp - 0x90], dx
mov eax, 0x65
mov word [ebp - 0x8e], ax
mov ecx, 0x78
mov word [ebp - 0x8c], cx
mov edx, 0x65
mov word [ebp - 0x8a], dx
xor eax, eax
mov word [ebp - 0x88], ax
lea ecx, [ebp - 0x94]
push ecx
call dword [ebp - 0x7c]
test eax, eax
jne 0x10046430
xor eax, eax
jmp 0x100468ad
push 0xe3142
mov edx, dword [ebp - 0x24]
push edx
call fcn.10046ccf
add esp, 8
or byte [ecx - 0x79974fbb], cl
push edi
or eax, 0xdc458b00
push eax
call fcn.10046ccf
add esp, 8
mov dword [ebp - 0x78], eax
push 0x348bfa
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.10046ccf
add esp, 8
mov dword [ebp - 0x60], eax

Function at 0x1004646c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [ebp - 0x4c], 0x70c00
push 4
push 0x3000
mov edx, dword [ebp - 0x4c]
push edx
push 0
call dword [ebp - 0x50]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 0
jmp 0x10046498
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x4c]
jae 0x100464c7
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [edx + resource.1]
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov esi, 0x16
div esi
movzx edx, byte [ebp + edx - 0x48]
xor ecx, edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x1c]
mov byte [eax], cl
jmp 0x1004648f
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10046a1f
add esp, 4
mov dword [ebp - 0xe4], eax
push 0x40
push 0x3000
mov edx, dword [ebp - 0xe4]
push edx
push 0
call dword [ebp - 0x50]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100464fc
xor eax, eax
jmp 0x100468ad
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x64]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
sub edx, dword [ecx + 0x34]
mov dword [ebp - 0xbc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x34], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x54]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.10046a9f
add esp, 0xc
mov eax, 8
imul ecx, eax, 5
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x78]
mov ecx, dword [edx + ecx + 0x7c]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], ecx
mov edx, 8
shl edx, 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx + 0x78]
mov edx, dword [eax + edx + 0x7c]
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0xdc], edx
Function at 0x10046471
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [ebp - 0x4c], 0x70c00
push 4
push 0x3000
mov edx, dword [ebp - 0x4c]
push edx
push 0
call dword [ebp - 0x50]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 0
jmp 0x10046498
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x4c]
jae 0x100464c7
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [edx + resource.1]
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov esi, 0x16
div esi
movzx edx, byte [ebp + edx - 0x48]
xor ecx, edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x1c]
mov byte [eax], cl
jmp 0x1004648f
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10046a1f
add esp, 4
mov dword [ebp - 0xe4], eax
push 0x40
push 0x3000
mov edx, dword [ebp - 0xe4]
push edx
push 0
call dword [ebp - 0x50]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100464fc
xor eax, eax
jmp 0x100468ad
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x64]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
sub edx, dword [ecx + 0x34]
mov dword [ebp - 0xbc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x34], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x54]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.10046a9f
add esp, 0xc
mov eax, 8
imul ecx, eax, 5
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x78]
mov ecx, dword [edx + ecx + 0x7c]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], ecx
mov edx, 8
shl edx, 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx + 0x78]
mov edx, dword [eax + edx + 0x7c]
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0xdc], edx

Function at 0x1004694f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x14], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
cmp dword [edx + ecx + 0x78], 0
jne 0x10046980
xor eax, eax
jmp 0x10046a14
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x18]

Function at 0x10046ccf
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
Function at 0x10046ce1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x10], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
jmp 0x10046d32
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 0x18]
jae 0x10046d74
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
inc ebp
or byte [ebx], al
add al, 0x8a
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.10046c2f
add esp, 4
cmp eax, dword [ebp + 0xc]
jne 0x10046d72
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp - 0x20]
loopne 0x10046cf6
inc ebp
or byte [ebx], al
add al, 0x8a
jmp 0x10046d76
jmp 0x10046d29
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1005c192
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10076f90
push 0x10076f88
push str.FlsAlloc
push 0x1e
call fcn.1005bfff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005c1c6
push dword [ebp + 8]
mov ecx, esi
call dword [0x10072204]
call esi
jmp 0x1005c1cc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1005c210
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10076fa0
push 0x10076f98
push str.FlsGetValue
push 0x20
call fcn.1005bfff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005c247
push dword [ebp + 8]
mov ecx, esi
call dword [0x10072204]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1006372c
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 0x100637c9
push ebx
push esi
call fcn.100636f5
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.10061e2b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10063776
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100637c8
push edi
push eax
call fcn.1005c72c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10063796
call fcn.1005bd24
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100637c7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10061e2b
add esp, 0x20
test eax, eax
jne 0x100637b5
push edi
call fcn.1005bd24
jmp 0x100637bd
push ebx
call fcn.1005bd24
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 0x100637cc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100637dd
pop esi
ret
push ebx
push edi
push esi
call fcn.100636f5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1005c72c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10063805
push ebx
push esi
push edi
call fcn.100473e0
add esp, 0xc
push 0
call fcn.1005bd24
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x10063bc9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1006381a

Function at 0x10068340
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 + 0x1008a640]
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 0x10068380
cmp byte [ebx], 0xa
jne 0x10068380
or byte [eax + edi + 0x28], 4
jmp 0x10068385
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x10068483
mov al, byte [edx]
cmp al, 0x1a
je 0x10068465
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100683b4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100683d9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100683e3
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 0x10068396
jmp 0x10068483
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 0x10068460
cmp dword [ebp - 0xc], 0
je 0x10068460
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1008a640]
test byte [eax + edi + 0x28], 0x48
je 0x1006843a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10068425
mov byte [esi], dl
jmp 0x10068436
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1008a640]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10068483
cmp byte [ebp - 1], 0xa
jne 0x10068449
cmp esi, ebx
jne 0x10068449
mov byte [esi], 0xa
jmp 0x10068482
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10063f37
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10068483
mov byte [esi], 0xd
jmp 0x10068482
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1008a640]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1006847f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10068483
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1006ae7b
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]
push dword [ebp + 0xc]
push ebx
call fcn.1006adf7
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1006aff3
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1006aff3
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1006afa2
jg 0x1006aed4
test eax, eax
je 0x1006af98
push 1
push 0x1000
call fcn.1005bcc1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1006aefa
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1006af8f
push 0x8000
push ebx
call fcn.1006ad28
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1006af26
jg 0x1006af21
cmp ecx, 0x1000
jb 0x1006af26
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1005e1b0
add esp, 0x10
cmp eax, 0xffffffff
je 0x1006af6b
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 0x1006af21
jl 0x1006af52
test ecx, ecx
jne 0x1006af13
push dword [ebp - 0xc]
push ebx
call fcn.1006ad28
push esi
call fcn.1005bd24
add esp, 0xc
xor edi, edi
jmp 0x1006b004
cmp byte [edi + 0x24], 0
je 0x1006af82
cmp dword [edi + 0x20], 5
jne 0x1006af82
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1006af8d
mov edi, dword [edi + 0x18]
jmp 0x1006af8f
xor edi, edi
push esi
call fcn.1005bd24
pop ecx
jmp 0x1006b004
test ecx, ecx
jg 0x1006af64
jl 0x1006afa2
test eax, eax
jae 0x1006af64
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10063f37
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1006afc5
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1006af64
jmp 0x1006affc
push ebx
call fcn.1004a51c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1006af64
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1006b004
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1006b001
mov edi, dword [edi + 0x18]
jmp 0x1006b004
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10063f37
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41000d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
cmp ecx, dword [ebp + 0xc]
je 0x41003f
push esi
movsx edx, byte [ecx]
mov esi, edi
mov eax, edi
shl esi, 6
shr eax, 2
add edx, 0x9e3779b9
add esi, eax
add edx, esi
xor edi, edx
inc ecx
mov dword [ebp + 8], ecx
cmp ecx, dword [ebp + 0xc]
jne 0x41001c
pop esi
mov eax, edi
pop edi
pop ebp
ret

Function at 0x410d31
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x46cf91
call fcn.004490bb
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x410e31
cmp byte [ebx + 0x3d], 0
je 0x410e31
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x410d6b
xor al, al
jmp 0x410e33
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.0041195b
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x410dc9
sub eax, 1
je 0x410dcd
dec eax
sub eax, 1
je 0x410e1f
xor bl, bl
jmp 0x410e21
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x410e05
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00453c2d
add esp, 0x10
cmp esi, eax
jne 0x410dc5
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x3d], 0
je 0x410e1f
test esi, esi
jne 0x410d8f
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004118fb
jmp 0x410d89
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408bb6
mov al, bl
jmp 0x410e33
mov al, 1
call fcn.00449065
ret