joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb6b1a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4d3000]
push edi
jmp 0xb6b1ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xb6b1c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb6b1b0
mov eax, 1
add ebx, ebx
jne 0xb6b1d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xb6b1e4
jne 0xb6b203
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb6b203
dec eax
add ebx, ebx
jne 0xb6b1f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xb6b1c8
add ebx, ebx
jne 0xb6b1ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xb6b255
xor ecx, ecx
sub eax, 3
jb 0xb6b21b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xb6b28a
sar eax, 1
mov ebp, eax
jmp 0xb6b226
add ebx, ebx
jne 0xb6b226
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb6b1f4
inc ecx
add ebx, ebx
jne 0xb6b234
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb6b1f4
add ebx, ebx
jne 0xb6b241
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xb6b236
jne 0xb6b252
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xb6b236
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xb6b274
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xb6b266
jmp 0xb6b1b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xb6b274
add edi, ecx
jmp 0xb6b1b6
pop esi
mov edi, esi
mov ecx, 0xd349
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xb6b292
cmp byte [edi], 0x1e
jne 0xb6b292
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xb6b297
lea edi, [esi + 0x767000]
mov eax, dword [edi]
or eax, eax
je 0xb6b30f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x771d4c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x771e84]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xb6b2c4
mov ecx, edi
jns 0xb6b2f3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x771e8c]
or eax, eax
je 0xb6b309
mov dword [ebx], eax
add ebx, 4
jmp 0xb6b2e1
call dword [esi + 0x771e88]
mov ebp, dword [esi + 0x771e90]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xb6b343
sub esp, 0xffffff80
jmp 0x5b7c31
Function at 0x452070
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4c000]
push edi
jmp 0x45208a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x452091
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x452080
mov eax, 1
add ebx, ebx
jne 0x4520a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x452098
jne 0x4520b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x452098
xor ecx, ecx
sub eax, 3
jb 0x4520c8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45213a
mov ebp, eax
add ebx, ebx
jne 0x4520d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4520e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x452104
inc ecx
add ebx, ebx
jne 0x4520f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4520e5
jne 0x452101
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4520e5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x452124
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x452115
jmp 0x452086
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x452124
add edi, ecx
jmp 0x452086
pop esi
mov edi, esi
mov ecx, 0x278
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x452142
cmp byte [edi], 0
jne 0x452142
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x452147
lea edi, [esi + 0x50000]
mov eax, dword [edi]
or eax, eax
je 0x4521bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x54f0c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x54fc4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x452174
mov ecx, edi
jns 0x4521a3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x54fcc]
or eax, eax
je 0x4521b9
mov dword [ebx], eax
add ebx, 4
jmp 0x452191
call dword [esi + 0x54fc8]
mov ebp, dword [esi + 0x54fd0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4521f3
sub esp, 0xffffff80
jmp 0x403814
Function at 0x1000b9d0
Capabilities:
Allocate or change rwx memory
Create a process with modified i/o handles and window
Create process on windows
Encode data using base64
Encrypt data using speck
Execute anti-debugging instructions
Execute shellcode via indirect call
Hide graphical window
Parse credit card information
Parse pe header
Resume thread

Disassembly:
jmp 0x100148e9
push ebp
sub eax, 0x2c010ea4
stc
mov ebp, esp
mov ah, 0x36
btc ax, bx
push ebx
push edi
shr al, cl
bt ax, 0x16
push esi
sub esp, 0x208
mov eax, dword [0x1005ec80]
xor eax, ebp
test esp, edx
cmc
clc
mov dword [ebp - 0x10], eax
stc
bt ax, cx
mov dword [ebp - 0x210], 0x871b2679
dec ah

Function at 0x100298fa
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10029939
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10029939
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10029939
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10029939
cmp dword [ecx + 0x74], 0xe
jbe 0x10029939
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1002c2c4
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 0x1002c361
push ebx
push esi
call fcn.1002c28d
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.1002c221
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002c30e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002c360
push edi
push eax
call fcn.1002abc2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002c32e
call fcn.1002ac10
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002c35f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002c221
add esp, 0x20
test eax, eax
jne 0x1002c34d
push edi
call fcn.1002ac10
jmp 0x1002c355
push ebx
call fcn.1002ac10
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 0x1002c5ce
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034440
push 0x10034438
push str.FlsAlloc
push 0x1f
call fcn.1002c4ea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002c602
push dword [ebp + 8]
mov ecx, esi
call dword [0x10032150]
call esi
jmp 0x1002c608
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002c64c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034450
push 0x10034448
push str.FlsGetValue
push 0x21
call fcn.1002c4ea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002c683
push dword [ebp + 8]
mov ecx, esi
call dword [0x10032150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1002c68b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034458
push 0x10034450
push str.FlsSetValue
push 0x22
call fcn.1002c4ea
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002c6c5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10032150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10031bd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10031bfd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10031bfd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x4012c0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp word [edx + eax*2], 0
jne 0x4012d4
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp - 0x254]
lea ecx, [ebx + ecx*2]
mov edx, 0x412106
push ecx
sub ecx, edx
mov ax, word [edx]
mov word [ecx + edx], ax
add edx, 2
test ax, ax
jne 0x4012f3
pop eax
lea eax, [ebp - 0x250]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [ebp - 0x254]
mov word [ebx + eax*2], 0
cmp esi, 0xffffffff
je 0x401410
xor edi, edi
push 0x412102
lea eax, [ebp - 0x224]
push eax
call fcn.0040b370
add esp, 8
test eax, eax
je 0x4013bd
push 0x4120fc
lea eax, [ebp - 0x224]
push eax
call fcn.0040b370
add esp, 8
test eax, eax
je 0x4013bd
mov ecx, dword [ebp - 0x254]
lea ecx, [ebx + ecx*2]
lea edx, [ebp - 0x224]
push ecx
sub ecx, edx
mov ax, word [edx]
mov word [ecx + edx], ax
add edx, 2
test ax, ax
jne 0x40136c
pop eax
test byte [ebp - 0x250], 0x10
je 0x40139d
push 0x41223c
push ebx
call fcn.0040c980
add esp, 8
push ebx
call fcn.004012c0
mov edi, eax
jmp 0x4013b9
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4013b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x4013e2
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40132a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
jne 0x4013e2
xor edi, edi
mov eax, dword [ebp - 0x254]
mov word [ebx + eax*2], 0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
jne 0x40140c
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40140c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
jmp 0x401416
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4015c0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0040b340
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov dword [ebx], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push 0x419114
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401614
xor eax, eax
jmp 0x40175f
push 0
lea eax, [ebp - 4]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40174b
cmp word [ebp - 0x1010], 0x5a4d
jne 0x401756
cmp dword [ebp - 0xfd4], 0xf08
jae 0x401756
mov eax, dword [ebp - 0xfd4]
lea eax, [ebp + eax - 0x1010]
mov dword [ebp - 0x1014], eax
cmp dword [eax], 0x4550
jne 0x401756
mov eax, dword [ebp - 0x1014]
add eax, 0xf8
lea edx, [ebp - 0x10]
cmp eax, edx
jae 0x401756
xor edx, edx
xor ecx, ecx
jmp 0x4016a3
cmp dword [eax + 0x14], edx
jbe 0x40169f
mov edx, dword [eax + 0x14]
mov edi, dword [eax + 0x14]
add edi, dword [eax + 0x10]
mov dword [ebx], edi
add eax, 0x28
inc ecx
mov edi, dword [ebp - 0x1014]
movzx edi, word [edi + 6]
cmp ecx, edi
jl 0x40168f
push 0
push 0
mov ebx, dword [ebx]
add ebx, 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x401756
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40174b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [eax + 4], ebx
cmp dword [ebp - 4], 8
jb 0x40174b
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40174b
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [eax + 4], ebx
cmp dword [ebp - 4], 8
jb 0x40174b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40175f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40175f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402170
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [esi]
test edi, edi
je 0x4021ce
mov dword [esi], 0
mov eax, edi
mov edx, 0x400000
cmp eax, 0x400000
jbe 0x40219b
mov eax, edx
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 4]
push edx
push eax
push ebx
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
add ebx, dword [ebp - 4]
sub edi, dword [ebp - 4]
mov edx, dword [ebp - 4]
add dword [esi], edx
test eax, eax
je 0x4021d2
cmp dword [ebp - 4], 0
je 0x4021ce
test edi, edi
jne 0x40218b
xor eax, eax
jmp 0x4021d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4021f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [esi]
test edi, edi
je 0x40224e
mov dword [esi], 0
mov eax, edi
mov edx, 0x400000
cmp eax, 0x400000
jbe 0x40221b
mov eax, edx
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 4]
push edx
push eax
push ebx
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add ebx, dword [ebp - 4]
sub edi, dword [ebp - 4]
mov edx, dword [ebp - 4]
add dword [esi], edx
test eax, eax
je 0x402252
cmp dword [ebp - 4], 0
je 0x40224e
test edi, edi
jne 0x40220b
xor eax, eax
jmp 0x402258
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402310
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea edx, [ebp - 4]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40233e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40233e
jmp 0x402354
mov eax, dword [ebp - 4]
xor edx, edx
mov edx, eax
xor eax, eax
xor edi, edi
add eax, esi
adc edx, edi
mov dword [ebx], eax
mov dword [ebx + 4], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4053f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
xor eax, eax
mov edx, eax
mov ecx, 8
mov ebx, edx
shr ebx, 1
xor esi, esi
mov edi, edx
and edi, 1
sub esi, edi
and esi, 0xedb88320
mov edx, ebx
xor edx, esi
dec ecx
jne 0x4053fc
mov dword [eax*4 + 0x419d4c], edx
inc eax
cmp eax, 0x100
jb 0x4053f5
mov eax, 0x100
mov edx, dword [eax*4 + 0x41994c]
mov ecx, edx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x419d4c]
shr edx, 8
xor ecx, edx
mov dword [eax*4 + 0x419d4c], ecx
inc eax
cmp eax, 0x800
jb 0x40542a
mov dword [0x41bd50], 0x406810
mov dword [0x41bd4c], 0x406810
mov dword [0x41bd54], 0x4068c0
call fcn.00406ab0
test eax, eax
jne 0x405485
mov dword [0x41bd4c], 0x4068c0
pop edi
pop esi
pop ebx
ret
Function at 0x405490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
push ebx
mov ebx, dword [ebp + 8]
push 0x208
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x208
ja 0x4054e5
lea eax, [ebp - 0x410]
push eax
call fcn.00411c70
push ebx
lea eax, [ebp - 0x410]
push eax
push str._ls_ls
push 0x30e
lea eax, [ebp - 0xa2c]
push eax
call fcn.0040ce40
add esp, 0x14
jmp 0x4054fa
push 0x30e
push ebx
lea eax, [ebp - 0xa2c]
push eax
call fcn.0040cf10
add esp, 0xc
push 8
push 0
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40af20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
and eax, 0xfffffffc
sub dword [esp + 0x18], 4
mov ecx, dword [esp + 0x10]
add eax, dword [esp + 0x10]
cmp ecx, eax
jae 0x40afe2
add ecx, 4
cmp byte [ecx - 4], 0x40
jne 0x40af52
test byte [ecx - 3], 0xc0
je 0x40af5e
cmp byte [ecx - 4], 0x7f
jne 0x40af3b
cmp byte [ecx - 3], 0xc0
jb 0x40af3b
movzx esi, byte [ecx - 4]
shl esi, 0x18
movzx edi, byte [ecx - 3]
shl edi, 0x10
or esi, edi
movzx edi, byte [ecx - 2]
shl edi, 8
or esi, edi
movzx edi, byte [ecx - 1]
or esi, edi
add esi, esi
add esi, esi
test edx, edx
je 0x40af93
mov edi, ecx
sub edi, dword [esp + 0x10]
add edi, dword [esp + 0x18]
add esi, edi
jmp 0x40af9f
mov edi, ecx
sub edi, dword [esp + 0x10]
add edi, dword [esp + 0x18]
sub esi, edi
mov edi, esi
and edi, 0x1ffffff
sub edi, 0x1000000
xor edi, 0xff000000
shr edi, 2
mov esi, edi
or esi, 0x40000000
lea edi, [ecx - 4]
mov ebx, esi
shr ebx, 0x18
mov byte [edi], bl
mov ebx, esi
shr ebx, 0x10
mov byte [edi + 1], bl
mov ebx, esi
shr ebx, 8
mov byte [edi + 2], bl
mov ebx, esi
mov byte [edi + 3], bl
jmp 0x40af3b
mov eax, ecx
sub eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x40aff0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov edx, eax
and edx, 7
cmp dword [ebp + 0xc], 5
jb 0x40b156
sub dword [ebp + 0xc], 4
add dword [ebp + 0x10], 5
xor esi, esi
mov edi, esi
add edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 8]
cmp edi, eax
jae 0x40b035
mov cl, byte [edi]
and cl, 0xfe
cmp cl, 0xe8
je 0x40b035
inc edi
cmp edi, eax
jb 0x40b026
mov ecx, edi
sub ecx, dword [ebp + 8]
mov ebx, ecx
sub ebx, esi
mov dword [ebp - 4], ebx
mov esi, ecx
cmp edi, eax
jae 0x40b104
cmp dword [ebp - 4], 2
jbe 0x40b11e
xor edx, edx
mov al, byte [edi + 4]
inc al
test al, 0xfe
jne 0x40b147
movzx eax, byte [edi + 4]
shl eax, 0x18
movzx ecx, byte [edi + 3]
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [edi + 2]
shl ecx, 8
or eax, ecx
movzx ecx, byte [edi + 1]
mov ebx, eax
or ebx, ecx
mov eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 8], eax
add esi, 5
cmp dword [ebp + 0x18], 0
je 0x40b09b
add ebx, dword [ebp - 8]
jmp 0x40b09e
sub ebx, dword [ebp - 8]
test edx, edx
je 0x40b0dd
mov eax, edx
and eax, 6
add eax, eax
add eax, eax
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov eax, ebx
shr eax, cl
movzx eax, al
inc eax
test eax, 0xfe
jne 0x40b0db
mov ecx, dword [ebp - 0xc]
mov eax, 0x100
shl eax, cl
dec eax
xor ebx, eax
cmp dword [ebp + 0x18], 0
je 0x40b0d8
add ebx, dword [ebp - 8]
jmp 0x40b0db
sub ebx, dword [ebp - 8]
xor edx, edx
mov al, bl
mov byte [edi + 1], al
mov eax, ebx
shr eax, 8
mov byte [edi + 2], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 3], al
xor eax, eax
shr ebx, 0x18
and ebx, 1
sub eax, ebx
mov byte [edi + 4], al
jmp 0x40b017
cmp dword [ebp - 4], 2
jbe 0x40b10e
xor eax, eax
jmp 0x40b115
mov ecx, dword [ebp - 4]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, esi
jmp 0x40b158
mov ecx, dword [ebp - 4]
shr edx, cl
test edx, edx
je 0x40b057
cmp edx, 4
ja 0x40b147
cmp edx, 3
je 0x40b147
mov eax, edx
shr eax, 1
mov al, byte [edi + eax + 1]
inc al
test al, 0xfe
jne 0x40b057
mov eax, edx
shr eax, 1
mov edx, eax
or edx, 4
inc esi
jmp 0x40b017
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14