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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x100e090]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x100e0a0]
je 0x1006b40
inc eax
cmp eax, 0x12
jb 0x1006b31
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x100e0a0]
mov dword [ebp - 0x110], esi
jne 0x1006ceb
mov eax, dword [0x100ed70]
cmp eax, 1
je 0x1006cb9
test eax, eax
jne 0x1006b76
cmp dword [0x100e098], 1
je 0x1006cb9
cmp ecx, 0xfc
je 0x1006ceb
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1006bb1
push 5
pop ecx
mov esi, 0x10027dc
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006bbc
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1006bf4
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006bd4
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x10027d8
push ebx
call fcn.01009880
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006bf9
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x100e0a4]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1006c13
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01007850
mov edx, esp
push 6
pop ecx
mov esi, 0x10027bc
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006c3f
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1006c4b
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1006c64
mov eax, dword [ebp - 0x110]
mov esi, 0x10027b8
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x100e0a4]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006c82
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1006c8e
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1002790
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01009774
add esp, 0xc
jmp 0x1006ceb
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1006ceb
mov esi, dword [esi + 0x100e0a4]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x1006cd0
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.01005e84
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100721d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100eec8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x1007269
call esi
mov edi, eax
cmp edi, ebx
je 0x100724f
mov dword [0x100eec8], 1
jmp 0x100726e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1007264
push 2
pop eax
mov dword [0x100eec8], eax
jmp 0x1007269
mov eax, dword [0x100eec8]
cmp eax, 1
jne 0x10072e6
cmp edi, ebx
jne 0x100727a
call esi
mov edi, eax
cmp edi, ebx
je 0x10072ef
cmp word [edi], bx
mov eax, edi
je 0x100728f
inc eax
inc eax
cmp word [eax], bx
jne 0x1007281
inc eax
inc eax
cmp word [eax], bx
jne 0x1007281
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x10072dd
push eax
call fcn.01008ee8
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x10072dd
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x10072da
push dword [ebp - 4]
call fcn.01007892
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x100733e
cmp eax, 2
je 0x10072f3
cmp eax, ebx
je 0x10072f3
xor eax, eax
jmp 0x1007340
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x10072ef
cmp byte [esi], bl
je 0x1007310
inc eax
cmp byte [eax], bl
jne 0x1007306
inc eax
cmp byte [eax], bl
jne 0x1007306
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.01008ee8
cmp eax, ebx
pop ecx
je 0x1007337
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100758d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x100e1dc]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x10075ef
push 0x88
push 1
call fcn.01009f90
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10075e7
push esi
push dword [0x100e1dc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x10075e7
push esi
call fcn.01007570
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10075ef
push 0x10
call fcn.01005f96
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
ret
Function at 0x1007600
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
call fcn.010095ee
test eax, eax
je 0x1007619
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x100e1dc], eax
jne 0x1007621
call fcn.0100754d
xor eax, eax
ret
push esi
push 0x88
push 1
call fcn.01009f90
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1007661
push esi
push dword [0x100e1dc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1007661
push esi
call fcn.01007570
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
pop esi
ret
call fcn.0100754d
xor eax, eax
pop esi
ret

Function at 0x1009199
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.01007850
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10091ff
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x100ed78]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x1009203
xor eax, eax
jmp 0x1009210
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1009774
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100f038], ebx
push esi
push edi
jne 0x10097f6
push 0x1002ae0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1009831
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002ad4
push edi
call esi
test eax, eax
mov dword [0x100f038], eax
je 0x1009831
push 0x1002ac4
push edi
call esi
push 0x1002ab0
push edi
mov dword [0x100f03c], eax
call esi
cmp dword [0x100ed78], 2
mov dword [0x100f040], eax
jne 0x10097f6
push 0x1002a94
push edi
call esi
test eax, eax
mov dword [0x100f048], eax
je 0x10097f6
push 0x1002a7c
push edi
call esi
mov dword [0x100f044], eax
mov eax, dword [0x100f044]
test eax, eax
je 0x100983b
call eax
test eax, eax
je 0x1009822
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100f048]
test eax, eax
je 0x1009822
test byte [ebp - 8], 1
jne 0x100983b
cmp dword [0x100ed84], 4
jb 0x1009835
or byte [ebp + 0x12], 0x20
jmp 0x100985a
xor eax, eax
jmp 0x100986a
or byte [ebp + 0x12], 4
jmp 0x100985a
mov eax, dword [0x100f03c]
test eax, eax
je 0x100985a
call eax
mov ebx, eax
test ebx, ebx
je 0x100985a
mov eax, dword [0x100f040]
test eax, eax
je 0x100985a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100f038]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100aa02
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x100aa33
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x100aa3a
cmp ebx, dword [ebp + 8]
jae 0x100aa3a
xor eax, eax
jmp 0x100ac2a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x100aa4b
xor eax, eax
inc eax
jmp 0x100ac29
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x100aa61
cmp ecx, edx
jae 0x100aba6
cmp dword [eax + 4], 0
je 0x100aa6a
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x100aa52
cmp dword [ebp + 8], 0
je 0x100aa8c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x100aba6
cmp eax, esi
jae 0x100aba6
mov eax, dword [0x100f058]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x100aab1
cmp dword [esi*4 + 0x100f060], edi
je 0x100abaa
inc esi
cmp esi, eax
jl 0x100aa9f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100ac26
cmp dword [ebp - 8], 0x1000000
jne 0x100ac26
test byte [ebp - 0xc], 0xcc
je 0x100ab2f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x100ac26
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100ac26
cmp word [eax + 0x18], 0x10b
jne 0x100ac26
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x100ac26
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x100ab2f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x100ab2f
test byte [ecx + 0x27], 0x80
jne 0x100aba6
push 1
push 0x100f0a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x100aa43
mov ecx, dword [0x100f058]
test ecx, ecx
mov edx, ecx
jle 0x100ab63
lea eax, [ecx*4 + 0x100f05c]
cmp dword [eax], edi
je 0x100ab63
dec edx
sub eax, 4
test edx, edx
jg 0x100ab57
test edx, edx
jne 0x100ab94
push 0xf
pop ebx
cmp ecx, ebx
jg 0x100ab70
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x100ab88
lea eax, [edx*4 + 0x100f060]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x100ab76
cmp ecx, 0x10
jge 0x100ab94
inc ecx
mov dword [0x100f058], ecx
push 0
push 0x100f0a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x100aa43
xor eax, eax
jmp 0x100ac29
test esi, esi
jle 0x100aa43
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x100f0a0
call ebx
test eax, eax
jne 0x100aa43
cmp dword [esi*4 + 0x100f060], edi
je 0x100ac00
mov eax, dword [0x100f058]
lea esi, [eax - 1]
test esi, esi
jl 0x100abee
cmp dword [esi*4 + 0x100f060], edi
je 0x100abea
dec esi
jns 0x100abde
test esi, esi
jge 0x100abfe
cmp eax, 0x10
jge 0x100abf9
inc eax
mov dword [0x100f058], eax
lea esi, [eax - 1]
jmp 0x100ac00
je 0x100ac18
xor ecx, ecx
test esi, esi
jl 0x100ac18
lea eax, [ecx*4 + 0x100f060]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x100ac06
push 0
push 0x100f0a0
call ebx
jmp 0x100aa43
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100af8b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x100e090]
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x41c], ecx
jne 0x100afc2
xor eax, eax
jmp 0x100b175
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10104a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x100aff7
push 2
push ecx
push ecx
push dword [ebp + 8]
call fcn.0100c4ea
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x100b0c5
cmp dword [ebp + 0x10], ecx
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x40c], ecx
jbe 0x100b143
jmp 0x100b01e
xor ecx, ecx
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp - 0x414]
sub ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x100b074
mov edx, dword [ebp - 0x414]
inc dword [ebp - 0x414]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x100b05f
inc dword [ebp - 0x41c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x410]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x410]
cmp dword [ebp - 0x410], 0x400
jl 0x100b036
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x424]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100b0f2
mov eax, dword [ebp - 0x424]
add dword [ebp - 0x418], eax
cmp eax, edi
jl 0x100b0fe
mov eax, dword [ebp - 0x414]
sub eax, dword [ebp - 0x420]
cmp eax, dword [ebp + 0x10]
jb 0x100b01c
jmp 0x100b0fe
push ecx
lea ecx, [ebp - 0x424]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100b0f2
mov eax, dword [ebp - 0x424]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x418], eax
jmp 0x100b0fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x100b16d
cmp dword [ebp - 0x40c], eax
je 0x100b13d
push 5
pop esi
cmp dword [ebp - 0x40c], esi
jne 0x100b12f
call fcn.010080d8
mov dword [eax], 9
call fcn.010080e6
mov dword [eax], esi
jmp 0x100b168
push dword [ebp - 0x40c]
call fcn.010080f4
pop ecx
jmp 0x100b168
mov edi, dword [ebp - 0x420]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x100b155
cmp byte [edi], 0x1a
jne 0x100b155
xor eax, eax
jmp 0x100b173
call fcn.010080d8
mov dword [eax], 0x1c
call fcn.010080e6
and dword [eax], 0
or eax, 0xffffffff
jmp 0x100b173
sub eax, dword [ebp - 0x41c]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01005e84
leave
ret
Function at 0x100c574
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
call fcn.0100b713
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x100c6bb
push 2
push esi
push dword [ebp + 8]
call fcn.0100b713
add esp, 0xc
cmp eax, ebx
je 0x100c6bb
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x100c65e
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x100c5ef
call fcn.010080d8
mov dword [eax], 0xc
or esi, 0xffffffff
jmp 0x100c6a6
push 0x8000
push dword [ebp + 8]
call fcn.0100c90f
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp edi, ebx
mov eax, ebx
jge 0x100c609
mov eax, edi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0100af8b
add esp, 0xc
cmp eax, 0xffffffff
je 0x100c625
sub edi, eax
test edi, edi
jg 0x100c601
jmp 0x100c63d
call fcn.010080e6
cmp dword [eax], 5
jne 0x100c63a
call fcn.010080d8
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0100c90f
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100c6a6
jge 0x100c6a6
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0100b713
push dword [ebp + 8]
call fcn.0100ad41
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x100c6a6
call fcn.010080d8
mov dword [eax], 0xd
call fcn.010080e6
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0100b713
add esp, 0xc
mov eax, esi
pop edi
jmp 0x100c6bd
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x100c6c6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x100c89c
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x10104a0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x100c89c
test cl, 0x48
je 0x100c733
cmp byte [eax + 5], 0xa
je 0x100c733
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100c785
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x100c76d
call fcn.010080d8
mov dword [eax], 9
call fcn.010080e6
mov dword [eax], esi
jmp 0x100c77d
cmp eax, 0x6d
je 0x100c89c
push eax
call fcn.010080f4
pop ecx
or eax, 0xffffffff
jmp 0x100c89e
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x100c897
test eax, eax
je 0x100c7ac
cmp byte [ebx], 0xa
jne 0x100c7ac
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x100c7b5
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x100c891
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x100c881
cmp al, 0xd
je 0x100c7e7
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x100c873
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x100c801
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x100c7fc
add dword [ebp + 0x10], 2
jmp 0x100c855
mov dword [ebp + 0x10], eax
jmp 0x100c86f
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100c829
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100c86f
cmp dword [ebp - 0xc], 0
je 0x100c86f
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x100c84a
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x100c855
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x100c872
cmp ebx, dword [ebp + 0xc]
jne 0x100c85a
cmp byte [ebp - 1], 0xa
jne 0x100c85a
mov byte [ebx], 0xa
jmp 0x100c872
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0100b713
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x100c873
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x100c7cb
jmp 0x100c891
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x100c891
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x100c89e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100017c0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100a7478
push 0x1006b3d0
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc0
mov eax, dword [0x100ad040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x50], 0
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x40
push 0x3000
mov edx, dword [ebp - 0x44]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10001855
xor al, al
jmp 0x100018de
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov byte [ecx], 0xc3
lea edx, [ebp - 0x20]
push edx
push 0x140
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10001880
xor al, al
jmp 0x100018de
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
push 0x100018cb
jmp eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10069b90
mov esp, ebp
pop ebp
ret
Function at 0x100024d0
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x400
push 0
push 0x100b1bf8
call fcn.1006bd80
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 4], ecx
push ebx
nop
xor eax, eax
test cl, 1
je 0x100024fb
bts eax, 7
shr ecx, 1
test cl, 1
je 0x10002506
bts eax, 6
shr ecx, 1
test cl, 1
je 0x10002511
bts eax, 5
shr ecx, 1
test cl, 1
je 0x1000251c
bts eax, 4
shr ecx, 1
test cl, 1
je 0x10002527
bts eax, 3
shr ecx, 1
test cl, 1
je 0x10002532
bts eax, 2
shr ecx, 1
test cl, 1
je 0x1000253d
bts eax, 1
test cl, 2
je 0x10002546
bts eax, 0
shl eax, 0x18
mov ecx, eax
add eax, eax
sar ecx, 0x1f
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov ebx, ecx
sar ebx, 0x1f
and ebx, 0x4c11db7
lea eax, [ecx + ecx]
xor ebx, eax
xor edx, edx
lea ecx, [edx + 1]
nop dword [eax]
test bl, 1
je 0x100025df
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x100025d0
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x100b1bf8], edx
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 0xff
jle 0x100024f0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002610
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x1009a6d4
push eax
lea eax, [ebp - 0x408]
mov dword [ebp - 0x408], 0
push eax
or ebx, 0xffffffff
call fcn.1006eafa
add esp, 0xc
test eax, eax
jne 0x100026e9
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x100026e9
push eax
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.1006ed15
mov edx, eax
add esp, 0x10
test edx, edx
je 0x100026c6
push esi
push edi
nop
lea esi, [ebp - 0x404]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x100b1bf8]
mov edi, ebx
sub edx, 1
jne 0x10002686
push dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push 0x400
push 1
push eax
call fcn.1006ed15
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x10002680
pop edi
pop esi
push dword [ebp - 0x408]
call fcn.1006f05c
add esp, 4
not ebx
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10069b90
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xor ecx, ebp
pop ebx
call fcn.10069b90
mov esp, ebp
pop ebp
ret 4