joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c77
Capabilities:
Parse pe header

Disassembly:
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 0x403ca5
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x403cac
cmp ebx, dword [eax + 4]
jae 0x403cac
xor eax, eax
jmp 0x403e9c
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x403cbd
xor eax, eax
inc eax
jmp 0x403e9b
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x403cd3
cmp ecx, edx
jae 0x403e18
cmp dword [eax + 4], 0
je 0x403cdc
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x403cc4
cmp dword [ebp + 8], 0
je 0x403cfe
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x403e18
cmp eax, esi
jae 0x403e18
mov eax, dword [0x4051a8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x403d23
cmp dword [esi*4 + 0x4051b0], edi
je 0x403e1c
inc esi
cmp esi, eax
jl 0x403d11
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x403e98
cmp dword [ebp - 8], 0x1000000
jne 0x403e98
test byte [ebp - 0xc], 0xcc
je 0x403da1
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x403e98
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x403e98
cmp word [eax + 0x18], 0x10b
jne 0x403e98
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x403e98
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x403da1
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x403da1
test byte [ecx + 0x27], 0x80
jne 0x403e18
push 1
push 0x4051f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x403cb5
mov ecx, dword [0x4051a8]
test ecx, ecx
mov edx, ecx
jle 0x403dd5
lea eax, [ecx*4 + 0x4051ac]
cmp dword [eax], edi
je 0x403dd5
dec edx
sub eax, 4
test edx, edx
jg 0x403dc9
test edx, edx
jne 0x403e06
push 0xf
pop ebx
cmp ecx, ebx
jg 0x403de2
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x403dfa
lea eax, [edx*4 + 0x4051b0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x403de8
cmp ecx, 0x10
jge 0x403e06
inc ecx
mov dword [0x4051a8], ecx
push 0
push 0x4051f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x403cb5
xor eax, eax
jmp 0x403e9b
test esi, esi
jle 0x403cb5
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4051f0
call ebx
test eax, eax
jne 0x403cb5
cmp dword [esi*4 + 0x4051b0], edi
je 0x403e72
mov eax, dword [0x4051a8]
lea esi, [eax - 1]
test esi, esi
jl 0x403e60
cmp dword [esi*4 + 0x4051b0], edi
je 0x403e5c
dec esi
jns 0x403e50
test esi, esi
jge 0x403e70
cmp eax, 0x10
jge 0x403e6b
inc eax
mov dword [0x4051a8], eax
lea esi, [eax - 1]
jmp 0x403e72
je 0x403e8a
xor ecx, ecx
test esi, esi
jl 0x403e8a
lea eax, [ecx*4 + 0x4051b0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x403e78
push 0
push 0x4051f0
call ebx
jmp 0x403cb5
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cad0
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov eax, 0x465ede
call fcn.00465ac0
sub esp, 0x94
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
mov esi, ecx
push edi
mov dword [ebp - 0x34], ebx
mov edi, edx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], bl
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 0x20
jne 0x40cc77
cmp dword [eax + 0x14], 0x10
jb 0x40cb1b
mov eax, dword [eax]
push 0x20
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0043f720
add esp, 0xc
mov dword [ebp + 0xc], ebx
lea eax, [ebp + 0xc]
mov dword [ebp - 0x14], ebx
push ebx
push ebx
push 0x477530
push eax
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x40cc50
push ebx
push 0x20
push str.ChainingModeGCM
push str.ChainingMode
push dword [ebp + 0xc]
call dword [sym.imp.bcrypt.dll_BCryptSetProperty]
test eax, eax
js 0x40cc77
push ebx
push 0x20
lea eax, [ebp - 0xa0]
push eax
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
test eax, eax
js 0x40cc77
push 0x40
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00440e40
mov ecx, dword [ebp + 8]
lea eax, [edi + 3]
add esp, 0xc
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x74], 0xc
lea eax, [ecx - 0x10]
mov dword [ebp - 0x64], 0x10
push 0x40
add eax, edi
pop edx
mov dword [ebp - 0x68], eax
lea eax, [ecx - 0x1f]
push eax
push edx
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x40cc2e
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x80]
push edi
push ebx
push ebx
push eax
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x74]
add eax, dword [ebp - 0x78]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
js 0x40cc77
push dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
push edi
call fcn.004128d5
lea eax, [ebp - 0x34]
mov dword [esi], ebx
push eax
mov ecx, esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.00413478
lea ecx, [ebp - 0x34]
call fcn.0041332b
mov eax, esi
jmp 0x40ccc2
lea ecx, [ebp - 0x34]
call fcn.0041332b
or dword [ebp - 4], 0xffffffff
mov ecx, esi
push 0x485b00
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.00413406
jmp 0x40cc27
cmp dword [ebp + 0xc], 0
je 0x40cc61
push ebx
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
cmp dword [ebp - 0x14], 0
je 0x40cc71
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.bcrypt.dll_BCryptDestroyKey]
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0xc], ebx
mov dword [esi], ebx
mov ecx, esi
mov dword [esi + 0x10], ebx
push 0x485b00
mov dword [esi + 0x14], ebx
call fcn.00413406
jmp 0x40cc1f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x41144a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x411471
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00412376
jmp 0x411526
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x411493
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x411495
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x41151a
jg 0x4114aa
test esi, esi
je 0x41151a
test ecx, ecx
jl 0x4114fd
jg 0x4114b4
test eax, eax
je 0x4114fd
cmp edi, ecx
jg 0x4114c8
jl 0x4114be
cmp esi, eax
jae 0x4114c8
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.0043f720
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
mov eax, dword [ebp + 8]
add eax, ecx
test edi, edi
jl 0x41151a
jg 0x411500
test esi, esi
je 0x41151a
jmp 0x411500
mov eax, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x41151a
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.004439cd
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41152f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jg 0x411551
jl 0x411548
test edi, edi
jne 0x411551
xor eax, eax
xor edx, edx
jmp 0x41160f
cmp dword [ecx + 0x38], 0
je 0x411566
push esi
push edi
push dword [ebp + 8]
call fcn.0041243f
jmp 0x41160f
mov eax, dword [ecx + 0x1c]
push ebx
mov ebx, edi
mov edx, dword [eax]
test edx, edx
je 0x4115aa
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x4115aa
cmp dword [eax], edi
mov esi, edi
mov ebx, dword [ebp + 8]
cmovb esi, dword [eax]
push esi
push edx
push ebx
call fcn.0043f720
mov ecx, dword [ebp - 4]
add ebx, esi
mov dword [ebp + 8], ebx
add esp, 0xc
mov ebx, edi
sub ebx, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
jmp 0x4115b0
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ecx + 0x4c], 0
mov edx, ebx
je 0x411605
call fcn.00412ca0
mov edx, ebx
jmp 0x4115e3
push dword [ecx + 0x4c]
push eax
push 1
push dword [ebp + 8]
call fcn.004443d8
add dword [ebp + 8], eax
sub ebx, eax
add esp, 0x10
mov edx, ebx
cmp eax, 0xfff
jne 0x411615
mov ecx, dword [ebp - 4]
mov eax, 0xfff
cmp ebx, eax
ja 0x4115c1
test edx, edx
je 0x411605
push dword [ecx + 0x4c]
push ebx
push 1
push dword [ebp + 8]
call fcn.004443d8
mov edx, ebx
add esp, 0x10
sub edx, eax
sub edi, edx
sbb esi, 0
mov eax, edi
mov edx, esi
pop ebx
pop edi
pop esi
leave
ret 0xc
sub edi, ebx
jmp 0x411607
Function at 0x41187f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x41189b
xor eax, eax
jmp 0x411964
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4118c4
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x4118c4
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x411964
cmp dword [esi + 0x4c], 0
je 0x411962
mov ecx, esi
call fcn.00412ca0
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4118f1
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00442bdc
cmp eax, edi
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x411962
mov byte [ebp - 1], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x411931
sub eax, 1
je 0x411931
dec eax
sub eax, 1
jne 0x411962
push dword [esi + 0x4c]
movsx ecx, byte [ebp - 1]
push ecx
jmp 0x4118e3
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
sub eax, ecx
mov dword [ebp - 8], eax
je 0x411954
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.004439cd
add esp, 0x10
cmp dword [ebp - 8], eax
jne 0x411962
lea eax, [ebp - 1]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0xc], eax
mov eax, ebx
jne 0x411964
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x412cee
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x412d3d
cmp byte [esi + 0x3d], bl
je 0x412d3d
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x412d6c
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, ebx
je 0x412d44
sub eax, 1
je 0x412d47
dec eax
sub eax, 1
jne 0x412d6c
mov byte [esi + 0x3d], bl
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x412d64
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004439cd
add esp, 0x10
cmp edi, eax
jne 0x412d6c
cmp byte [esi + 0x3d], bl
sete al
jmp 0x412d3f
xor al, al
jmp 0x412d3f
Function at 0x41543e
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov eax, edi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x47b800]
movups xmmword [ebx + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x41544b
mov edx, edi
mov dword [ebp - 4], edi
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov esi, dword [ebx + edx*4]
mov eax, edx
cmovae ecx, dword [ebp + 8]
cdq
idiv dword [ebp + 0x20]
movsx eax, byte [edx + ecx]
add eax, esi
add edi, eax
and edi, 0x800000ff
jns 0x41549b
dec edi
or edi, 0xffffff00
inc edi
mov edx, dword [ebp - 4]
mov eax, dword [ebx + edi*4]
mov dword [ebx + edx*4], eax
inc edx
mov dword [ebx + edi*4], esi
mov dword [ebp - 4], edx
cmp edx, 0x100
jl 0x41546f
lea ecx, [ebp + 8]
call fcn.0041332b
pop edi
pop esi
pop ebx
leave
ret 0x1c

Function at 0x4154c2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x4667ba
call fcn.00465ac0
sub esp, 0xc
push ebx
push esi
mov eax, ecx
push edi
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 0x24]
lea edi, [eax + 0x400]
and dword [ebp - 4], 0
mov ecx, edi
push 0x20
push ebx
call fcn.0041383f
xor eax, eax
xor esi, esi
and dword [ebp - 0x10], eax
test ebx, ebx
jle 0x415578
inc eax
and eax, 0x800000ff
jns 0x415508
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov edx, dword [ecx + eax*4]
mov eax, dword [ebp - 0x10]
add eax, edx
and eax, 0x800000ff
jns 0x415524
dec eax
or eax, 0xffffff00
inc eax
mov ebx, dword [ebp - 0x18]
cmp dword [ebp + 0x20], 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + eax*4]
mov dword [ecx + ebx*4], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + eax*4], edx
lea ecx, [ebp + 0xc]
mov eax, dword [ebp - 0x14]
cmovae ecx, dword [ebp + 0xc]
mov eax, dword [eax + ebx*4]
add eax, edx
and eax, 0x800000ff
jns 0x415557
dec eax
or eax, 0xffffff00
inc eax
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp + 0x24]
mov dl, byte [edx + eax*4]
mov eax, edi
xor dl, byte [ecx + esi]
cmp dword [edi + 0x14], 0x10
jb 0x41556d
mov eax, dword [edi]
mov byte [eax + esi], dl
inc esi
mov eax, dword [ebp - 0x18]
cmp esi, ebx
jl 0x4154f9
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov ecx, esi
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
call fcn.00413406
lea ecx, [ebp + 0xc]
call fcn.0041332b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x20
Function at 0x41bdd8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x41bde3
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x41be9f
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x477828]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x477828]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x477828]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x477828]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x477828]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x477828]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x477828]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x477828]
sub edi, 1
jne 0x41bdf8
pop edi
test esi, esi
je 0x41bebb
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x477828]
inc edx
sub esi, 1
jne 0x41bea3
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x41bec2
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
mov esi, ecx
movsx eax, dl
mov ecx, dword [esi]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x477828]
movzx eax, cl
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
mov dword [esi], ecx
mov ecx, dword [esi + 8]
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x477828]
mov dword [esi + 8], ecx
pop esi
ret

Function at 0x41c5eb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov ecx, ebx
imul ecx, dword [ebp + 8]
cmp byte [edi], 0
je 0x41c624
push 0
lea edx, [ebp + 8]
push edx
push ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c61f
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x41c64e
mov edx, dword [edi + 0x1c]
push esi
mov esi, dword [edi + 0x18]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ecx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.0043f720
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
pop esi
xor edx, edx
pop edi
div ebx
pop ebx
leave
ret
Function at 0x41d7ec
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x41d814
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41d814
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [edi]
test al, al
je 0x41d8ab
push ebx
mov ebx, edi
mov ecx, edi
cmp al, 0x2f
je 0x41d82b
cmp al, 0x5c
jne 0x41d82d
mov ebx, ecx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x41d823
cmp ebx, edi
je 0x41d860
sub ebx, edi
lea eax, [ebp - 0x208]
push ebx
push edi
push eax
call fcn.0043f720
add esp, 0xc
mov byte [ebp + ebx - 0x208], 0
lea edx, [ebp - 0x208]
mov ecx, esi
call fcn.0041d7ec
mov byte [ebp - 0x104], 0
pop ebx
test esi, esi
je 0x41d87b
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.00445870
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00445880
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41d8ab
push 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
leave
ret
Function at 0x41e46e
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov eax, 0x4670fc
call fcn.00465ac0
mov eax, 0x1fd0
call fcn.0043f2b0
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x30], edi
mov esi, edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov dword [edi], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0xf
push 0x47748b
mov dword [ebp - 0x18], 0x1fa0
mov byte [edi], bl
call fcn.0041338c
push 0x1fa0
lea eax, [ebp - 0x1fdc]
mov dword [ebp - 4], ebx
push ebx
push eax
mov dword [ebp - 0x1c], 1
call fcn.00440e40
add esp, 0xc
lea eax, [ebp - 0x18]
push ebx
push ebx
push eax
lea eax, [ebp - 0x1fdc]
push eax
push 1
push esi
call fcn.00449ce0
pop ecx
push eax
push esi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x41e605
call dword [0x48a8c8]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x41e5da
mov ecx, dword [0x48a8b4]
push ebx
push 1
push eax
call ecx
add esp, 0xc
test eax, eax
jne 0x41e5a3
lea eax, [ebp - 0x1fdc]
mov dword [ebp - 0x28], ebx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x34], eax
mov eax, dword [0x48a8b0]
push ecx
mov dword [ebp - 0x24], ebx
call eax
add esp, 0xc
test eax, eax
jne 0x41e586
push dword [ebp - 0x24]
lea eax, [ebp - 0x1fdc]
push dword [ebp - 0x28]
push eax
call fcn.0043f720
mov esi, dword [ebp - 0x24]
add esp, 0xc
mov byte [ebp + esi - 0x1fdc], bl
test esi, esi
je 0x41e5ce
movzx eax, byte [ebp + ebx - 0x1fdc]
mov ecx, edi
push eax
call fcn.00413351
inc ebx
cmp ebx, esi
jb 0x41e56f
jmp 0x41e5ce
mov cl, 8
mov dword [ebp - 0x11], 0x7a7a6d08
mov byte [ebp - 0xd], bl
mov eax, ebx
xor byte [ebp + eax - 0x10], cl
inc eax
cmp eax, 3
jae 0x41e5c0
mov cl, byte [ebp - 0x11]
jmp 0x41e594
mov cl, 0xa
mov dword [ebp - 0x11], 0x78786f0a
mov byte [ebp - 0xd], bl
mov eax, ebx
xor byte [ebp + eax - 0x10], cl
inc eax
cmp eax, 3
jae 0x41e5c0
mov cl, byte [ebp - 0x11]
jmp 0x41e5b1
lea eax, [ebp - 0x10]
mov byte [ebp - 0xd], bl
push eax
mov ecx, edi
call fcn.0041338c
push dword [ebp - 0x20]
call dword [0x48a8b8]
pop ecx
jmp 0x41e605
mov cl, 0x6e
mov dword [ebp - 0x11], 0x1c1c0b6e
mov byte [ebp - 0xd], bl
mov eax, ebx
xor byte [ebp + eax - 0x10], cl
inc eax
cmp eax, 3
jae 0x41e5f7
mov cl, byte [ebp - 0x11]
jmp 0x41e5e8
lea eax, [ebp - 0x10]
mov byte [ebp - 0xd], bl
push eax
mov ecx, edi
call fcn.0041338c
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4252f8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov edi, ecx
call fcn.00424324
mov cl, byte [edi]
movzx eax, cl
sub eax, 1
je 0x4253b8
sub eax, 1
je 0x425365
sub eax, 1
je 0x42533c
sub eax, 1
je 0x42533c
sub eax, 1
je 0x42533c
sub eax, 1
je 0x42533c
sub eax, 1
jne 0x4253e5
cmp cl, 3
jne 0x425359
mov ecx, dword [edi + 8]
call fcn.0041332b
push 0x18
push dword [edi + 8]
call fcn.00414894
and dword [edi + 8], 0
pop ecx
pop ecx
mov ecx, edi
mov byte [edi], 0
call fcn.004211c4
jmp 0x4253dc
mov esi, dword [edi + 8]
mov ecx, dword [ebp + 0x14]
add esi, 4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], esi
mov edi, dword [esi]
lea eax, [ecx + 0x10]
cmp eax, edi
je 0x4253a5
mov esi, ecx
mov ebx, eax
sub esp, 0x10
mov ecx, esp
push ebx
call fcn.0042113e
mov ecx, esi
call fcn.004218cd
add ebx, 0x10
add esi, 0x10
cmp ebx, edi
jne 0x425381
mov esi, dword [ebp - 8]
mov ebx, dword [ebp + 8]
mov edi, dword [esi]
lea ecx, [edi - 0x10]
call fcn.00420dd0
add dword [esi], 0xfffffff0
mov eax, dword [ebp - 0xc]
mov dword [ebx + 8], eax
jmp 0x4253dc
mov esi, dword [ebp + 0x10]
lea ecx, [ebp + 8]
mov dword [ebp + 8], esi
call fcn.004219fb
mov ecx, dword [edi + 8]
push esi
call fcn.00426b3c
mov edx, eax
call fcn.00426def
mov ecx, dword [ebp + 8]
mov dword [ebx + 4], ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14
push 0x1d50
call fcn.00445148
int3