joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e4de0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x1326cd8]
xor edx, edx
cmp eax, edx
jne 0x5e4e06
xor eax, eax
mov byte [eax + 0x1326bd8], al
inc eax
cmp eax, 0x100
jl 0x5e4dee
mov dword [0x1326cd8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x1326bd8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x5e4e97
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x5e4e6a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x5e4e38
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x5e4ea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x5e4ef3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x5e4eda
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5eb880
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x62733e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.005ec1a0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x129020c
call fcn.00613063
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x5eb913
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00613063
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x5eb90c
push 0
mov ecx, eax
call fcn.005e2a20
mov dword [esi + 0xc], eax
jmp 0x5eb915
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x5eb915
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x409850
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00409d90
mov eax, dword [0x413ec0]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x4099b2
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x413dc0]
test byte [edx + ecx*8 + 4], 1
je 0x4099b2
push 1
push ebp
push ebx
call fcn.00408780
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x4099bc
push 2
push ebp
push ebx
call fcn.00408780
add esp, 0xc
cmp eax, 0xffffffff
je 0x4099bc
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x409958
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00409d10
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x4098ff
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00406e80
add esp, 0xc
cmp eax, 0xffffffff
je 0x40991b
sub esi, eax
test esi, esi
jle 0x409931
jmp 0x4098f0
cmp dword [0x412ac4], 5
jne 0x40992e
mov dword [0x412ac0], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00409d10
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00408780
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x409999
push 0
push ecx
push ebx
call fcn.00408780
add esp, 0xc
push ebx
call fcn.00408da0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x409999
mov dword [0x412ac0], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x412ac4], eax
push 0
push edi
push ebx
call fcn.00408780
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x412ac0], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1001b43a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1001b449
pop dword [ebp - 0x1c]
mov eax, 0x921f2f54
sub eax, 0x821d7b0b
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x3d783
push 0
mov eax, 0x46d839a4
add eax, 0xc92b2738
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x6ed2c817
add ecx, 0x912d7413
mov ebx, eax
mov edi, 0x5d4d37d7
add edi, 0xb2b68629
add edi, dword [ebp - 0x1c]
mov edx, 0xa8ddf61d
sub edx, 0x90ca09bd
mov esi, dword [edi]
sub dword [ebp - 0xc], 0x8f33154f
add esi, edx
xor dword [ebp - 0x18], 0x8ac06d2
mov dword [ebx], esi
xor dword [ebp - 0x18], ecx
add ebx, 4
add edi, 4
loop 0x1001b4a8
add eax, 0x5edb0b71
sub eax, 0x5eda27f6
mov ebx, eax
add eax, 0x78b26f4c
sub eax, 0x78b26f47
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.1001b43a
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.1001b43a
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret
Function at 0x412281
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x412290
pop dword [ebp - 0xc]
mov eax, 0xa97e9b0a
sub eax, 0xa93d787a
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x39716
push 0
mov eax, 0x6ecaef6d
add eax, 0x9177a0bf
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x4996
mov edx, eax
mov ebx, 0xf69e5c31
sub ebx, 0xf65aee31
add ebx, dword [ebp - 0xc]
mov esi, 0xa2728c62
add esi, 0xb0e54f40
xor dword [ebp - 8], ecx
mov edi, dword [ebx]
add dword [ebp - 8], 0x6646a697
add edi, esi
add dword [ebp - 4], 0x6d84c418
mov dword [edx], edi
add dword [ebp - 4], 0xf2b79662
add edx, 0x2e7552e
sub edx, 0x2e7552a
add ebx, 4
loop 0x4122e9
add eax, 0x1192b
xor ebx, ebx
add ebx, eax
add eax, 0xb6e31add
add eax, 0x491ce528
mov ecx, 0xdf77ecc3
add ecx, 0x20c8133d
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x425a8c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bb98
push 0x425a86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x43466c], 0xffffffff
or dword [0x434670], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x432650]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x43264c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x434668], eax
call fcn.00425bcf
cmp dword [0x430240], 0
jne 0x425b0f
push 0x425bcc
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00425bba
push 0x430064
push 0x430060
call sub.msvcrt.dll__initterm
mov eax, dword [0x432648]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x432644]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
push 0x43005c
push section..data
call sub.msvcrt.dll__initterm
call dword [sym.imp.msvcrt.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00411c13
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.10009830
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10009830
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.10009830
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.10009830
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.10009830
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.10009830
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.10009830
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.10009830
push 0xd008
push edi
call fcn.10009830
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.10009830
int3

Function at 0x10009830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x1000983f
pop dword [ebp - 0x34]
mov eax, 0xc3610923
add eax, 0x4c9f8f1c
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x3780f
push 0
mov eax, 0x92a0a090
add eax, 0x7d609fd4
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0xa02181c7
add ecx, 0x5fdec03b
mov edi, eax
mov ebx, 0x10018600
add ebx, dword [ebp - 0x34]
mov esi, 0xa9be484b
sub esi, 0x4113c12c
xor dword [ebp - 0x24], 0x51625404
mov edx, dword [ebx]
mov dword [ebp - 0x30], 0x2c4c3c72
add edx, esi
add dword [ebp - 0xc], 0xd75c192a
mov dword [edi], edx
xor dword [ebp - 0xc], esi
add edi, 0xeff8672
sub edi, 0xeff866e
add ebx, 0x8417bd10
sub ebx, 0x8417bd0c
loop 0x10009898
add eax, 0xfadb
mov ebx, eax
add eax, 0x7f188ab
sub eax, 0x7f188a6
mov ecx, 0x44bd2399
add ecx, 0xcb42dc67
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x1000e680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000e802
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1000e802
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov edi, dword [edi]
push eax
push edi
push esi
mov esi, dword [esi]
mov edi, dword [edi]
test eax, 0x1f
je 0x1000e6b8
mov dl, byte [esi + eax - 1]
mov byte [esi + eax], dl
vpxor ymm0, ymm0, ymm0
vpcmpeqb xmm7, xmm7, xmm7
vpsrldq xmm7, xmm7, 0xf
vpand ymm7, ymm7, ymmword [esi]
add eax, 0x1f
and eax, 0xffffffe0
cmp eax, 0x20
ja 0x1000e6f0
vpcmpeqb xmm6, xmm6, xmm6
vpslldq xmm6, xmm6, 0xf
vperm2i128 ymm6, ymm6, ymm6, 1
vpand ymm6, ymm6, ymmword [esi]
jmp 0x1000e700
vmovdqu ymm6, ymmword [esi + 0x20]
vperm2i128 ymm6, ymm0, ymm6, 0x20
vpslldq ymm6, ymm6, 0xf
vmovdqu ymm1, ymmword [esi]
vperm2i128 ymm2, ymm0, ymm1, 0x20
vpalignr ymm2, ymm1, ymm2, 0xf
vperm2i128 ymm4, ymm0, ymm1, 3
vpalignr ymm3, ymm4, ymm1, 1
vpor ymm2, ymm2, ymm7
vpor ymm3, ymm3, ymm6
vpsrldq ymm7, ymm4, 0xf
vpunpckhbw ymm4, ymm1, ymm0
vpunpcklbw ymm5, ymm1, ymm0
vperm2i128 ymm1, ymm5, ymm4, 0x20
vperm2i128 ymm4, ymm5, ymm4, 0x31
vpunpckhbw ymm5, ymm2, ymm0
vpunpcklbw ymm6, ymm2, ymm0
vperm2i128 ymm2, ymm6, ymm5, 0x20
vperm2i128 ymm5, ymm6, ymm5, 0x31
vpunpckhbw ymm6, ymm3, ymm0
vpunpcklbw ymm0, ymm3, ymm0
vperm2i128 ymm3, ymm0, ymm6, 0x20
vperm2i128 ymm6, ymm0, ymm6, 0x31
vpxor ymm0, ymm0, ymm0
vpmullw ymm1, ymm1, ymmword [0x102c2780]
vpmullw ymm4, ymm4, ymmword [0x102c2780]
vpaddw ymm2, ymm2, ymmword [0x102c2740]
vpaddw ymm5, ymm5, ymmword [0x102c2740]
vpaddw ymm3, ymm3, ymmword [0x102c2760]
vpaddw ymm6, ymm6, ymmword [0x102c2760]
vpaddw ymm2, ymm2, ymm1
vpaddw ymm5, ymm5, ymm4
vpsrlw ymm2, ymm2, 2
vpsrlw ymm5, ymm5, 2
vpaddw ymm3, ymm3, ymm1
vpaddw ymm6, ymm6, ymm4
vpsrlw ymm3, ymm3, 2
vpsrlw ymm6, ymm6, 2
vpsllw ymm3, ymm3, 8
vpsllw ymm6, ymm6, 8
vpor ymm2, ymm2, ymm3
vpor ymm5, ymm5, ymm6
vmovdqu ymmword [edi], ymm2
vmovdqu ymmword [edi + 0x20], ymm5
sub eax, 0x20
add esi, 0x20
add edi, 0x40
cmp eax, 0x20
ja 0x1000e6f0
test eax, eax
jne 0x1000e6d4
pop esi
pop edi
pop eax
add esi, 4
add edi, 4
dec ecx
jg 0x1000e6a3
vzeroupper
pop edi
pop esi
pop ebp
ret
Function at 0x1001df10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101672e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x102db678]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1001df46
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1001dff0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.1001e020
test al, al
je 0x1001df9f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1001dfdc
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001dfd2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001e00d
push edx
push ecx
call fcn.10144f68
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, edi
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.101452d9
mov esp, ebp
pop ebp
ret
call fcn.1014ad03
int3

Function at 0x1001f3f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x102db678]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov esi, ecx
imul esi, ebx
mov dword [ebp - 0xc], ecx
test edx, edx
jne 0x1001f430
lea eax, [esi + 1]
push eax
call fcn.1014531a
mov edx, eax
add esp, 4
mov eax, dword [ebp - 8]
mov ecx, dword [edi + 0xc]
sub ecx, 1
je 0x1001f48e
sub ecx, 1
je 0x1001f467
sub ecx, 1
jne 0x1001f49d
mov eax, dword [edi + 8]
lea edi, [ebp - 8]
push edi
push esi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101452d9
mov esp, ebp
pop ebp
ret 0xc
push 0
lea eax, [ebp - 8]
push eax
push esi
push edx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101452d9
mov esp, ebp
pop ebp
ret 0xc
push dword [edi]
push dword [ebp - 0xc]
push ebx
push edx
call fcn.1014b015
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101452d9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001f4b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x102db678]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 8], 0
test eax, eax
jne 0x1001f4dc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101452d9
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0xc], 0
sub eax, 1
je 0x1001f53c
sub eax, 1
je 0x1001f516
sub eax, 1
jne 0x1001f54e
mov eax, dword [ecx + 8]
lea edx, [ebp - 0xc]
push edx
push 1
lea edx, [ebp - 8]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101452d9
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101452d9
mov esp, ebp
pop ebp
ret
push dword [ecx]
lea eax, [ebp - 8]
push 1
push 1
push eax
call fcn.1014b015
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
xor ecx, ebp
call fcn.101452d9
mov esp, ebp
pop ebp
ret
Function at 0x10020180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x102db678]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
test ebx, ebx
je 0x100201d1
mov ecx, ebx
call fcn.100200b0
movzx eax, word [ebp + 0x10]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x100201d1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x100201e4
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101452d9
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 0x30]
mov edi, eax
mov dword [ebp - 0x2c], 0
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push edi
push eax
call fcn.10147030
mov esi, dword [ebp - 0x30]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x2c]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x100202f7
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
call fcn.1001e110
mov esi, eax
cmp dword [esi + 0x20], 0
jne 0x100202f7
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi], 0
mov byte [ebp - 0x28], 1
jne 0x100202a1
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], 1
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], 0
push eax
push esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call sub.gdiplus.dll_GdiplusStartup
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
movzx ecx, cl
cmovne ecx, edx
mov dword [ebp - 0x28], ecx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x28], 0
je 0x100202f7
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], 0x101695f0
push eax
push dword [ebp - 0x34]
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movlpd qword [ebp - 0xc], xmm0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
test eax, eax
je 0x100202e4
push ecx
jmp 0x100202f2
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.1001fc90
push dword [ebp - 0x10]
call sub.gdiplus.dll_GdipDisposeImage
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101452d9
mov esp, ebp
pop ebp
ret
Function at 0x1005a55f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0x10]
imul esi, dword [ebp + 0x14]
push edi
xor edi, edi
inc edi
cmp dword [ebp + 0x10], edi
jne 0x1005a616
mov eax, dword [ebp + 0xc]
shl eax, 3
push eax
call fcn.10025c01
imul esi, dword [ebp + 0x18]
pop ecx
cmp eax, esi
cmovl esi, eax
xor eax, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
cmp esi, edi
jle 0x1005a68b
mov ecx, dword [ebp + 8]
mov eax, edi
and eax, 0x80000007
jns 0x1005a5b5
dec eax
or eax, 0xfffffff8
inc eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0x10], eax
mov eax, edi
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x10], eax
push 7
mov dl, byte [eax + ecx]
mov cl, 7
sub cl, byte [ebp - 0xc]
pop eax
sub eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
movzx ebx, dl
mov al, byte [eax + esi]
shr al, cl
mov cl, 7
sub cl, byte [ebp + 0x10]
shr dl, cl
xor al, dl
test al, 1
mov eax, dword [ebp - 4]
je 0x1005a5fa
bts ebx, eax
jmp 0x1005a5fd
btr ebx, eax
mov eax, dword [ebp - 0x10]
mov ecx, esi
inc edi
mov dword [ebp - 8], eax
mov byte [eax + ecx], bl
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0x14]
jl 0x1005a5a7
jmp 0x1005a68b
mov eax, esi
cdq
and edx, 7
lea esi, [edx + eax]
sar esi, 3
cmp dword [ebp + 0x10], 0x10
jne 0x1005a673
lea ebx, [esi + 1]
cmp ebx, dword [ebp + 0xc]
jae 0x1005a68b
mov edi, dword [ebp + 8]
inc edi
add edi, esi
not esi
movzx edx, byte [esi + edi]
add ebx, 2
movzx eax, byte [esi + edi + 1]
movzx ecx, byte [edi - 1]
shl dx, 8
or dx, ax
shl cx, 8
movzx eax, byte [edi]
or cx, ax
add dx, cx
movzx ecx, dx
mov eax, ecx
mov byte [edi], cl
shr eax, 8
lea edi, [edi + 2]
mov byte [edi - 3], al
cmp ebx, dword [ebp + 0xc]
jb 0x1005a638
jmp 0x1005a68b
cmp esi, dword [ebp + 0xc]
jae 0x1005a68b
mov edx, dword [ebp + 8]
mov ecx, edx
sub ecx, esi
mov al, byte [ecx + esi]
add byte [esi + edx], al
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x1005a67f
pop edi
pop esi
pop ebx
leave
ret