joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a11fc
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 + 0x695e50]
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 0x4a123c
cmp byte [ebx], 0xa
jne 0x4a123c
or byte [eax + edi + 0x28], 4
jmp 0x4a1241
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a133f
mov al, byte [edx]
cmp al, 0x1a
je 0x4a1321
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a1270
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a1295
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a129f
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 0x4a1252
jmp 0x4a133f
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 0x4a131c
cmp dword [ebp - 0xc], 0
je 0x4a131c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x695e50]
test byte [eax + edi + 0x28], 0x48
je 0x4a12f6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a12e1
mov byte [esi], dl
jmp 0x4a12f2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x695e50]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a133f
cmp byte [ebp - 1], 0xa
jne 0x4a1305
cmp esi, ebx
jne 0x4a1305
mov byte [esi], 0xa
jmp 0x4a133e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040194c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a133f
mov byte [esi], 0xd
jmp 0x4a133e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x695e50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a133b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a133f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a139b
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 + 0x695e50]
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 0x4a13de
cmp word [esi], dx
jne 0x4a13de
or byte [edi + eax + 0x28], 4
jmp 0x4a13e3
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 0x4a1536
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 0x4a1516
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a1425
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a145b
cmp eax, edx
jae 0x4a1467
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 0x4a13fd
jmp 0x4a1536
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 0x4a1512
cmp dword [ebp - 0x14], 0
je 0x4a1512
mov eax, dword [ebx*4 + 0x695e50]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a14ea
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a14b3
mov word [esi], cx
jmp 0x4a14e6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x695e50]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x695e50]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x695e50]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a1536
pop ebx
cmp word [ebp - 4], bx
jne 0x4a14fb
cmp esi, dword [ebp + 0xc]
jne 0x4a14fb
mov word [esi], bx
jmp 0x4a1533
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040194c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a1536
push 0xd
jmp 0x4a152f
mov ecx, dword [ebx*4 + 0x695e50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a152d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a1536
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 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x1000a360
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10086310
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100c4014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ecx, 0x100c6079
call fcn.10085165
mov ecx, esi
call fcn.1000acc0
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov word [ecx + 0xc], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
movups xmm0, xmmword [eax]
movups xmmword [ecx + 0xe], xmm0
mov dword [ecx + 0x1e], 0
mov dword [ecx + 0x22], 0
mov dword [ecx + 0x26], 0
mov dword [ecx + 0x2a], 0
xor eax, eax
mov word [ecx + 0x2e], ax
mov dword [ecx + 0x30], eax
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000c4b0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10086885
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x100c4014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ebp - 4], 3
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov dword [ebp - 4], 4
lea eax, [ecx + 0x18]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 5
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov byte [ebp - 4], 8
xor edx, edx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], dx
mov byte [ebp - 4], 9
lea eax, [ecx + 0x30]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xa
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov byte [ebp - 4], 0xd
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 7
mov word [eax], dx
mov byte [ebp - 4], 0xe
lea eax, [ecx + 0x48]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xf
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov byte [ebp - 4], 0x12
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 7
mov word [eax], dx
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x1000c5b0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10086925
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x100c4014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 2
lea esi, [edi + 0x48]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 4
mov ecx, esi
call fcn.10005a50
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
lea esi, [edi + 0x30]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 8
mov ecx, esi
call fcn.10005a50
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
lea esi, [edi + 0x18]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0xc
mov ecx, esi
call fcn.10005a50
mov byte [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0x10
mov ecx, edi
call fcn.10005a50
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10019460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x100c4014]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], ecx
mov ecx, 0x100c75db
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x18], esi
call fcn.10085165
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x100195af
cmp dword [edi + 0x10], 0
je 0x100195af
xor bl, bl
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x100194b0
mov eax, dword [edi]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
add esp, 4
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x100194c4
mov eax, dword [edi]
push 0x1009f058
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x10019587
lea ecx, [esp + 0x1c]
call fcn.10018560
mov eax, dword [esp + 0x14]
xorps xmm0, xmm0
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
push dword [esp + 0x10]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x24], eax
mov eax, 0xdd67c8a7
imul ecx
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
push 0x20
add edx, ecx
mov dword [esp + 0x24], 0x8a4e2d1f
sar edx, 6
mov eax, edx
mov dword [esp + 0x30], 0
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, 0x20
jne 0x10019576
mov ecx, esi
call fcn.1001ae40
push dword [esp + 0x10]
imul esi, eax, 0x4a
mov eax, dword [esp + 0x1c]
push esi
push 1
push dword [eax]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
movzx ebx, bl
cmp eax, esi
mov ecx, 1
cmove ebx, ecx
push dword [esp + 0x10]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test bl, bl
jne 0x10019599
cmp dword [edi + 0x14], 0x10
jb 0x1001958f
mov edi, dword [edi]
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.100826ce
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x3c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100826ce
mov esp, ebp
pop ebp
ret 8
Function at 0x100195d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x100c4014]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 8]
push esi
mov dword [esp + 0x14], ecx
mov ecx, 0x100c75db
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
call fcn.10085165
cmp dword [edi + 0x10], 0
je 0x10019759
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x10019612
mov eax, dword [edi]
push 0x1009f05c
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x10019759
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push eax
call esi
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push 0
push 0
push dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
call esi
add esp, 0x1c
cmp dword [esp + 0x10], 0x6a
jae 0x10019665
push dword [esp + 0x14]
jmp 0x1001973e
lea ecx, [esp + 0x20]
call fcn.10018560
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push esi
push 0x20
xorps xmm0, xmm0
push 1
push eax
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x40], xmm0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 0x20
jne 0x1001973d
cmp dword [esp + 0x20], 0x8a4e2d1f
jne 0x1001973d
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
cmp eax, dword [ecx + 0x28]
jne 0x1001973d
mov ecx, dword [esp + 0x10]
sub ecx, 0x20
mov dword [esp + 0x10], ecx
cmp ecx, 0x4a
jb 0x1001973d
mov eax, 0xbacf914d
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 6
mov dword [esp + 0x18], eax
imul eax, eax, 0x4a
sub ecx, eax
jne 0x1001973d
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x28]
jne 0x1001973d
cmp ecx, dword [esp + 0x2c]
jne 0x1001973d
mov ecx, dword [esp + 0x1c]
push ecx
push eax
call fcn.1001cfc0
mov eax, dword [esp + 0x1c]
push esi
push dword [esp + 0x14]
push 1
push dword [eax]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [esp + 0x14]
jne 0x1001973e
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.100826ce
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp dword [edi + 0x14], 0x10
jb 0x1001974f
mov edi, dword [edi]
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
add esp, 4
mov ecx, dword [esp + 0x4c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.100826ce
mov esp, ebp
pop ebp
ret 8
Function at 0x10019f00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100883ef
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100c4014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, 0x100c75db
call fcn.10085165
lea eax, [edi + 0x10]
mov byte [ebp - 0x49], 1
push eax
lea ecx, [ebp - 0x28]
call fcn.10018030
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0x14
push str.LocalLib.v1.3.0.data
call fcn.1001bc30
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x1009f05c
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x1001a01e
push esi
push 1
xorps xmm0, xmm0
mov byte [ebp - 0x4a], 0
lea eax, [ebp - 0x48]
push 0x20
push eax
movups xmmword [ebp - 0x48], xmm0
movups xmmword [ebp - 0x38], xmm0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x10019ff5
cmp dword [ebp - 0x48], 0x8a4e2d1f
jne 0x10019ff1
mov eax, dword [ebp - 0x44]
cmp eax, dword [edi + 0x28]
jne 0x10019ff1
push 0
mov byte [ebp - 0x4a], 1
mov byte [ebp - 0x49], 1
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov edi, dword [ebp - 0x34]
add esp, 4
cmp edx, edi
jb 0x10019ff5
mov ecx, dword [ebp - 0x38]
ja 0x10019fda
cmp eax, ecx
jbe 0x10019ff5
sub eax, ecx
sbb edx, edi
test edx, edx
ja 0x10019ff5
jb 0x10019feb
cmp eax, 0x3840
jae 0x10019ff5
mov byte [ebp - 0x49], 0
jmp 0x10019ff5
mov byte [ebp - 0x4a], 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp byte [ebp - 0x4a], 0
jne 0x1001a01e
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov byte [ebp - 0x49], 1
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
add esp, 4
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1001a05b
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001a051
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001a051
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1008270f
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x49]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100826ce
mov esp, ebp
pop ebp
ret
Function at 0x1001f930
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, 0x100c75db
push edi
call fcn.10085165
mov edi, dword [ebp + 8]
test edi, edi
je 0x1001f975
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x1001f975
not dword [esi]
movzx eax, byte [edi]
lea edi, [edi + 1]
mov ecx, dword [esi]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x1009f0e0]
xor eax, ecx
mov dword [esi], eax
sub edx, 1
jne 0x1001f951
not eax
mov dword [esi], eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x1001fbe0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100890b5
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x100c4014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ecx, 0x100c75db
call fcn.10085165
mov dword [ebp - 4], 0xb
lea esi, [edi + 0x13c]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0xd
mov ecx, esi
call fcn.10005a50
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 0xa
lea esi, [edi + 0x124]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x11
mov ecx, esi
call fcn.10005a50
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 9
lea esi, [edi + 0x10c]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x15
mov ecx, esi
call fcn.10005a50
mov byte [ebp - 4], 9
mov byte [ebp - 4], 8
lea esi, [edi + 0xf4]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x19
mov ecx, esi
call fcn.10005a50
mov byte [ebp - 4], 8
mov byte [ebp - 4], 7
lea esi, [edi + 0xdc]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x1d
mov ecx, esi
call fcn.10005a50
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
lea esi, [edi + 0xc4]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x21
mov ecx, esi
call fcn.10005a50
mov byte [ebp - 4], 6
mov byte [ebp - 4], 5
lea esi, [edi + 0xac]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x25
mov ecx, esi
call fcn.10005a50
mov byte [ebp - 4], 5
mov byte [ebp - 4], 4
lea esi, [edi + 0x94]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x29
mov ecx, esi
call fcn.10005a50
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
lea esi, [edi + 0x7c]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x2d
mov ecx, esi
call fcn.10005a50
mov byte [ebp - 4], 3
mov byte [ebp - 4], 2
lea esi, [edi + 0x64]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x31
mov ecx, esi
call fcn.10005a50
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
lea esi, [edi + 0x4c]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x35
mov ecx, esi
call fcn.10005a50
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
lea esi, [edi + 0x34]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x39
mov ecx, esi
call fcn.10005a50
mov byte [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10037680
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
push edi
mov ecx, 0x100c75db
call fcn.10085165
mov ebp, dword [esp + 0x18]
xor edi, edi
mov bh, byte [esi + 0x100]
mov cl, byte [esi + 0x101]
test ebp, ebp
je 0x100376e8
nop dword [eax + eax]
inc bh
movzx edx, bh
mov bl, byte [edx + esi]
add cl, bl
mov byte [esp + 0x18], cl
movzx ecx, cl
movzx eax, byte [ecx + esi]
mov byte [edx + esi], al
mov byte [ecx + esi], bl
movzx eax, byte [edx + esi]
mov ecx, dword [esp + 0x10]
add al, bl
movzx eax, al
movzx eax, byte [eax + esi]
xor byte [edi + ecx], al
inc edi
mov cl, byte [esp + 0x18]
cmp edi, ebp
jb 0x100376b0
pop edi
mov byte [esi + 0x101], bh
mov byte [esi + 0x100], bh
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1003fa50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100b6f40
push 0x10082db9
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x100c4014]
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 esi, edx
mov dword [ebp - 0x438], esi
mov ecx, 0x100c75db
call fcn.10085165
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1003fab3
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
call fcn.1003fb90
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x1003faee
test bl, bl
jne 0x1003fb6d
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1003fb03
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp - 0x430]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push 0x100a0d50
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x430]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003fb40
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.1000db60
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
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.100826ce
mov esp, ebp
pop ebp
ret

Function at 0x10042700
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x100c4014]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, ecx
mov ecx, 0x100c75db
push edi
mov edi, dword [esp + 0x14]
call fcn.10085165
mov eax, dword [esi]
test eax, eax
je 0x1004276f
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1004276f
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1004274a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1004276f
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.100826ce
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.100826ce
add esp, 8
ret 4