joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411080
Capabilities:
Encode data using xor
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x41
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x4110dc
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x4c]
lea edx, [ecx + 1]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4110c0
sub ecx, edx
lea eax, [ebp - 0x4c]
push ecx
push eax
mov ecx, esi
call fcn.00401820
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [0x43fb7f], 0
mov eax, dword [0x43fb7c]
mov dword [ebp - 4], eax
je 0x4111b9
xor ecx, ecx
cmp dword [0x450534], 2
jl 0x411190
movaps xmm3, xmmword [0x43f550]
mov ecx, 4
movaps xmm2, xmm3
movaps xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x4408d0]
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x4408d0]
shufps xmm2, xmm0, 0xdd
movd xmm0, ecx
mov ecx, 0x1f
psrad xmm2, xmm0
movaps xmm1, xmm2
movd xmm0, ecx
psrld xmm1, xmm0
paddd xmm1, xmm2
pmulld xmm1, xmmword [str.6666]
psubd xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x43f5d0]
packuswb xmm1, xmm1
paddb xmm1, xmmword [str.3333333333333333]
movd xmm0, eax
pxor xmm1, xmm0
movd dword [ebp - 4], xmm1
jmp 0x4111b9
mov eax, 0x2f684bdb
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
mov dl, cl
shr eax, 5
movsx eax, al
imul eax, eax, 0x36
sub dl, al
add dl, 0x33
xor byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 4
jl 0x411190
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
lea edx, [ecx + 1]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4111d6
sub ecx, edx
lea eax, [ebp - 4]
push ecx
push eax
mov ecx, esi
call fcn.00401820
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411ab0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x100
call fcn.004206ba
push 0x100
mov esi, eax
push 0
push esi
mov dword [ebp - 0x10], esi
call fcn.00421fc0
push 0x100
call fcn.004206ba
push 0x100
push 0
push eax
mov dword [ebp - 4], eax
call fcn.00421fc0
mov ebx, dword [ebp + 8]
mov eax, esi
mov edi, dword [ebp + 0xc]
add esp, 0x20
xor ecx, ecx
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov ebx, dword [ebp - 4]
sub eax, ebx
mov dword [ebp - 0xc], eax
nop dword [eax + eax]
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 8], edi
jb 0x411b2e
mov eax, dword [edi]
mov dword [ebp - 8], eax
xor edx, edx
lea esi, [ebx + ecx]
mov eax, ecx
mov ebx, dword [ebp - 8]
div dword [edi + 0x10]
mov al, byte [edx + ebx]
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
mov byte [edx + esi], al
mov byte [esi], cl
inc ecx
cmp ecx, 0x100
jl 0x411b20
mov esi, ebx
mov dword [ebp - 8], 0x100
mov ebx, dword [ebp + 8]
xor edi, edi
mov eax, dword [ebp - 0xc]
mov dl, byte [esi]
movzx ecx, dl
movzx eax, byte [esi + eax]
add edi, eax
add edi, ecx
and edi, 0x800000ff
jns 0x411b80
dec edi
or edi, 0xffffff00
inc edi
mov ecx, dword [ebp - 4]
mov al, byte [ecx + edi]
mov byte [esi], al
inc esi
sub dword [ebp - 8], 1
mov byte [ecx + edi], dl
jne 0x411b60
mov edi, dword [ebp + 0x10]
mov ecx, ebx
push 0
push dword [edi + 0x10]
call fcn.00411dd0
xor eax, eax
xor esi, esi
xor ecx, ecx
cmp dword [edi + 0x10], eax
mov edi, dword [ebp - 4]
jbe 0x411c28
nop
inc ecx
and ecx, 0x800000ff
jns 0x411bc1
dec ecx
or ecx, 0xffffff00
inc ecx
mov dword [ebp - 4], ecx
mov cl, byte [edi + ecx]
movzx edx, cl
add eax, edx
and eax, 0x800000ff
jns 0x411bda
dec eax
or eax, 0xffffff00
inc eax
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov al, byte [edi + eax]
mov byte [edi + ebx], al
mov eax, dword [ebp - 0xc]
mov byte [edi + eax], cl
mov eax, ebx
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
movzx eax, byte [edi + eax]
add eax, edx
cmp dword [ecx + 0x14], 0x10
movzx eax, al
mov dl, byte [eax + edi]
mov eax, ecx
jb 0x411c0a
mov eax, dword [ecx]
mov al, byte [eax + esi]
xor al, dl
cmp dword [ebx + 0x14], 0x10
mov edx, ebx
jb 0x411c19
mov edx, dword [ebx]
mov byte [edx + esi], al
inc esi
cmp esi, dword [ecx + 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
jb 0x411bb0
test edi, edi
je 0x411c3a
push 0x100
push edi
call fcn.004206ea
add esp, 8
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x411c4f
push 0x100
push eax
call fcn.004206ea
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426729
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x426768
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426768
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426768
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x426768
cmp dword [ecx + 0x74], 0xe
jbe 0x426768
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42d931
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x444918
push 0x444910
push str.FlsAlloc
push 0x1f
call fcn.0042d79c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d965
push dword [ebp + 8]
mov ecx, esi
call dword [0x43f1d0]
call esi
jmp 0x42d96b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42d9af
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x444928
push 0x444920
push str.FlsGetValue
push 0x21
call fcn.0042d79c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d9e6
push dword [ebp + 8]
mov ecx, esi
call dword [0x43f1d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42d9ee
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x444930
push 0x444928
push str.FlsSetValue
push 0x22
call fcn.0042d79c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42da28
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43f1d0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42f4af
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00420700
mov eax, dword [0x44f060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0042df64
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42f4f1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42f64d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0043dad0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x450d08]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004304ac
mov ecx, dword [esi*4 + 0x450d08]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x42f646
cmp eax, dword [ecx + edi + 0x24]
jne 0x42f646
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42f646
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004304ac
add esp, 0x14
test edx, edx
jl 0x42f646
jg 0x42f5bc
test eax, eax
jb 0x42f646
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42f646
jl 0x42f5d6
cmp dword [ebp - 0x1008], eax
ja 0x42f646
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42f5f4
test ebx, ebx
je 0x42f62d
cmp ecx, edi
jae 0x42f62d
mov al, byte [ecx]
cmp al, 0xd
jne 0x42f60e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42f61a
cmp byte [ecx + 1], 0xa
jne 0x42f61a
inc ecx
jmp 0x42f61a
movzx eax, al
movsx eax, byte [eax + 0x44f2d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42f5f4
cmp edx, ebx
jne 0x42f5f4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42f64b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00420dc6
leave
ret
Function at 0x42f944
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x450d08]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42f984
cmp byte [ebx], 0xa
jne 0x42f984
or byte [edi + eax + 0x28], 4
jmp 0x42f989
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x42fa88
mov dl, byte [eax]
cmp dl, 0x1a
je 0x42fa6b
inc eax
cmp dl, 0xd
je 0x42f9b5
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42f9db
cmp eax, ecx
jae 0x42f9e9
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x42f99d
jmp 0x42fa88
push 0
lea eax, [ebp - 0x10]
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 0x42fa66
cmp dword [ebp - 0x10], 0
je 0x42fa66
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x450d08]
test byte [eax + edi + 0x28], 0x48
je 0x42fa40
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42fa2b
mov byte [esi], dl
jmp 0x42fa3c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x450d08]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42fa88
cmp byte [ebp - 1], 0xa
jne 0x42fa4f
cmp esi, ebx
jne 0x42fa4f
mov byte [esi], 0xa
jmp 0x42fa87
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004304ca
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42fa88
mov byte [esi], 0xd
jmp 0x42fa87
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x450d08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42fa85
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42fa88
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42fa91
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x450d08]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42fad7
cmp word [ebx], dx
jne 0x42fad7
or byte [eax + edi + 0x28], 4
jmp 0x42fadc
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x42fc3f
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x42fc1f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42fb1d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42fb53
cmp eax, edx
jae 0x42fb61
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x42faf8
jmp 0x42fc3f
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42fc1a
cmp dword [ebp - 0x18], 0
je 0x42fc1a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x450d08]
test byte [eax + edi + 0x28], 0x48
je 0x42fbf0
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x42fbb4
mov word [esi], cx
jmp 0x42fbeb
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x450d08]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x450d08]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x450d08]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x42fc3f
pop eax
cmp word [ebp - 4], ax
jne 0x42fc00
cmp esi, ebx
jne 0x42fc00
mov word [esi], ax
jmp 0x42fc3c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004304ca
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42fc3f
push 0xd
pop eax
jmp 0x42fbfb
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x450d08]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42fc39
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x42fc3f
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x435d4f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x435dec
push ebx
push esi
call fcn.00435d18
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00434a0a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x435d99
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x435deb
push edi
push eax
call fcn.0043115d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x435db9
call fcn.0042d460
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x435dea
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00434a0a
add esp, 0x20
test eax, eax
jne 0x435dd8
push edi
call fcn.0042d460
jmp 0x435de0
push ebx
call fcn.0042d460
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x438572
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042d020
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4385e1
cmp esi, dword [ebp - 4]
je 0x4385dc
cmp dword [ebp + 0xc], 0
je 0x4385dc
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4385b9
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004380c4
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4385e3
xor eax, eax
inc eax
jmp 0x4385e3
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x438648
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x44f060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0042d020
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0042d020
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4386bf
cmp word [ecx], dx
je 0x4386bf
mov eax, dword [0x4451d4]
push edi
dec eax
push eax
push 0x4450c0
call fcn.004385e7
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x438732
cmp word [eax], dx
je 0x438732
mov eax, dword [edi]
test eax, eax
je 0x4386e3
cmp word [eax], dx
je 0x4386e3
lea eax, [ebp - 0x10]
push eax
call fcn.00437fca
jmp 0x4386ec
lea eax, [ebp - 0x10]
push eax
call fcn.00438065
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x43875c
mov eax, dword [0x4450bc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x444db0
call fcn.004385e7
add esp, 0xc
test al, al
je 0x43875c
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x438727
cmp word [eax], di
je 0x438727
lea eax, [ebp - 0x10]
push eax
call fcn.00437fca
pop ecx
jmp 0x43875e
lea eax, [ebp - 0x10]
push eax
call fcn.00438065
jmp 0x438724
mov eax, dword [edi]
test eax, eax
je 0x438749
cmp word [eax], dx
je 0x438749
lea eax, [ebp - 0x10]
push eax
call fcn.00437f7f
pop ecx
jmp 0x43875c
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x438827
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0043846c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x438827
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x438827
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x438827
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4387b4
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042db2e
test ebx, ebx
je 0x438822
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042db2e
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x438827
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x438827
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0043cc16
add esp, 0x10
xor eax, eax
inc eax
jmp 0x438829
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420dc6
leave
ret
Function at 0x43d391
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0043d30d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43d500
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43d500
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43d4b5
jg 0x43d3ed
test eax, eax
je 0x43d4ab
push 1
push 0x1000
call fcn.0042d49a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43d410
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x43d4a2
push 0x8000
push ebx
call fcn.0042a814
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43d439
jg 0x43d434
cmp ecx, 0x1000
jb 0x43d439
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042ecfe
add esp, 0x10
cmp eax, 0xffffffff
je 0x43d47e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x43d434
jl 0x43d465
test ecx, ecx
jne 0x43d426
push dword [ebp - 0xc]
push ebx
call fcn.0042a814
push esi
call fcn.0042d460
add esp, 0xc
xor ebx, ebx
jmp 0x43d50e
cmp byte [edi + 0x24], 0
je 0x43d495
cmp dword [edi + 0x20], 5
jne 0x43d495
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43d4a0
mov ebx, dword [edi + 0x18]
jmp 0x43d4a2
xor ebx, ebx
push esi
call fcn.0042d460
pop ecx
jmp 0x43d50e
test ecx, ecx
jg 0x43d477
jl 0x43d4b5
test eax, eax
jae 0x43d477
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004304ca
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43d4d5
cmp byte [edi + 0x1c], 0
je 0x43d477
jmp 0x43d506
push ebx
call fcn.00436543
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43d477
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x43d50e
cmp byte [edi + 0x1c], 0
je 0x43d50b
mov ebx, dword [edi + 0x18]
jmp 0x43d50e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004304ca
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100017a0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov ecx, 0x10
mov esi, 0x518b470
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
add esi, 0xfffffffe
xor ecx, ecx
test esi, esi
jle 0x10001832
jmp 0x100017d0
movzx edi, byte [edx + ecx]
shr edi, 2
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax], bl
movsx edi, byte [edx + ecx]
movzx ebx, byte [edx + ecx + 1]
and edi, 3
shr ebx, 4
shl edi, 4
or edi, ebx
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax + 1], bl
movsx ebx, byte [edx + ecx + 1]
movzx edi, byte [edx + ecx + 2]
and ebx, 0xf
add ebx, ebx
shr edi, 6
add ebx, ebx
or edi, ebx
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax + 2], bl
movsx edi, byte [edx + ecx + 2]
and edi, 0x3f
movzx ebx, byte [ebp + edi - 0x44]
mov byte [eax + 3], bl
add ecx, 3
add eax, 4
cmp ecx, esi
jl 0x100017d0
cmp ecx, dword [ebp + 8]
jge 0x100018ae
movzx esi, byte [ecx + edx]
shr esi, 2
mov bl, byte [ebp + esi - 0x44]
mov esi, dword [ebp + 8]
dec esi
mov byte [eax], bl
cmp ecx, esi
jne 0x10001871
movsx ecx, byte [ecx + edx]
and ecx, 3
add ecx, ecx
mov dl, byte [ebp + ecx*8 - 0x44]
mov byte [eax + 1], dl
pop edi
mov byte [eax + 2], 0x3d
add eax, 3
pop esi
mov word [eax], 0x3d
pop ebx
mov esp, ebp
pop ebp
ret 4
lea esi, [ecx + edx + 1]
movsx ecx, byte [ecx + edx]
movzx edx, byte [esi]
and ecx, 3
shl ecx, 4
shr edx, 4
or ecx, edx
movzx ecx, byte [ebp + ecx - 0x44]
mov byte [eax + 1], cl
movsx edx, byte [esi]
and edx, 0xf
movzx ecx, byte [ebp + edx*4 - 0x44]
pop edi
mov byte [eax + 2], cl
add eax, 3
pop esi
mov word [eax], 0x3d
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1000be50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
test edx, edx
jle 0x1000bee2
push ebx
sub ecx, esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
jmp 0x1000be73
mov ecx, dword [ebp - 0xc]
movzx ecx, byte [ecx + esi]
mov byte [ebp - 2], cl
mov cl, byte [eax + 0x100]
movzx edi, cl
movzx edx, byte [edi + eax]
add edi, eax
mov byte [ebp + 0xb], dl
mov dl, byte [eax + 0x101]
add dl, byte [ebp + 0xb]
mov dword [ebp - 0x10], edi
movzx edi, dl
mov bl, byte [edi + eax]
add edi, eax
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x10]
mov byte [edi], bl
mov edi, dword [ebp - 0x14]
mov byte [ebp - 1], bl
movzx ebx, byte [ebp + 0xb]
mov byte [edi], bl
movzx ebx, byte [ebp + 0xb]
movzx edi, byte [ebp - 1]
add edi, ebx
mov bl, byte [ebp - 2]
and edi, 0xff
xor bl, byte [edi + eax]
inc cl
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x1000be70
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4