joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007fa0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
movaps xmm0, xmmword [0x10096a30]
xor ecx, ecx
movups xmmword [ebp - 0x3e], xmm0
mov word [ebp - 0x2e], 0x100
nop word [eax + eax]
lea eax, [ecx + 0x32]
xor byte [ebp + ecx - 0x3e], al
inc ecx
cmp ecx, 0x10
jb 0x10007fd0
mov byte [ebp - 0x2d], 0
xor ecx, ecx
mov dword [ebp - 0xc], 0x5a404673
mov dword [ebp - 8], 0x504b5264
mov dword [ebp - 4], 0x1005e40
lea eax, [ecx + 0x32]
xor byte [ebp + ecx - 0xc], al
inc ecx
cmp ecx, 0xa
jb 0x10007ff8
mov byte [ebp - 1], 0
xor ecx, ecx
mov dword [ebp - 0x1c], 0x50465061
mov dword [ebp - 0x18], 0x5c6b5953
mov dword [ebp - 0x14], 0x53554f4e
mov dword [ebp - 0x10], 0x1004c59
lea eax, [ecx + 0x32]
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 0xe
jb 0x10008027
lea eax, [ebp - 0x3e]
mov byte [ebp - 0xd], 0
push eax
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x10008064
push 1
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.10007cf0
add esp, 0xc
mov esp, ebp
pop ebp
ret
push 0
push 0x300
push 0x400
call fcn.10007cf0
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x10008220
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
movups xmm0, xmmword [str.0123456789abcdef]
mov al, byte [0x10096a5c]
push esi
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x20], xmm0
mov byte [ebp - 0x10], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10008338
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10008338
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8003
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x100082c1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0xc]
push 0
push eax
push 0x400
lea eax, [ebp - 0x430]
push eax
push esi
call edi
test eax, eax
je 0x1000831b
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x1000833f
push 0
push ecx
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 4]
call ebx
push 0
test eax, eax
je 0x1000831d
lea eax, [ebp - 0xc]
push eax
push 0x400
lea eax, [ebp - 0x430]
push eax
push esi
call edi
test eax, eax
jne 0x100082e8
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
test eax, eax
je 0x1000831b
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10
push eax
lea eax, [ebp - 0x30]
push eax
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1000839c
mov ebx, dword [ebp - 8]
xor edi, edi
test ebx, ebx
je 0x10008395
mov edx, dword [ebp + 0xc]
nop
movzx ecx, byte [ebp + edi - 0x30]
lea edx, [edx + 2]
mov eax, ecx
inc edi
shr eax, 4
and ecx, 0xf
movzx eax, byte [ebp + eax - 0x20]
mov byte [edx - 2], al
movzx eax, byte [ebp + ecx - 0x20]
mov byte [edx - 1], al
cmp edi, ebx
jb 0x10008370
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x20], 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10008530
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
cmp dword [0x10ed8d90], 0
jne 0x10008580
push 0
push 2
push 0x10ed8d7c
push dword [0x100cd514]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0xc
push 0x10ed8d80
push dword [0x100cd51c]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [0x10ed8d90], 1
jmp fcn.10001900
ret

Function at 0x10008590
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Encode data using xor
Execute shellcode via indirect call
Read .ini file

Disassembly:
push 0
push 2
push 0x10ed8d7c
push dword [0x100cd514]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 0xc
push 0x10ed8d80
push dword [0x100cd51c]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
jmp fcn.10008610

Function at 0x10008c50
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ecx]
push ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 4]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 8]
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x14]
push dword [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call fcn.10008b00
mov esi, dword [ebp - 0x14]
xor edx, edx
mov ecx, dword [ebp - 0x10]
xor edi, edi
sub ecx, esi
mov ebx, esi
add ecx, 3
shr ecx, 2
cmp esi, dword [ebp - 0x10]
cmova ecx, edx
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x10008ce4
nop dword [eax]
mov esi, dword [ebx]
test esi, esi
je 0x10008cd9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
inc edi
add ebx, 4
cmp edi, ecx
jne 0x10008cc0
mov esi, dword [ebp - 0x14]
push 0x28
push dword [ebp - 8]
call fcn.10027504
add esp, 8
test esi, esi
je 0x10008d21
mov ecx, dword [ebp - 0xc]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10008d17
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008d28
push ecx
push esi
call fcn.10027504
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10066943
int3
Function at 0x10008e00
Capabilities:
Enumerate threads
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10090d48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 0x1c]
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 0x20]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x24], 0
push eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.10008a50
mov esi, dword [ebp - 0x24]
xor edx, edx
mov ecx, dword [ebp - 0x20]
sub ecx, esi
mov dword [ebp - 4], 0
add ecx, 3
mov dword [ebp - 0x14], 0
shr ecx, 2
cmp esi, dword [ebp - 0x20]
cmova ecx, edx
mov edx, esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
test ecx, ecx
je 0x10008f09
push edi
nop dword [eax]
mov edi, dword [edx]
test edi, edi
je 0x10008ee1
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x10008ee1
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x1c
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x4c], xmm0
movq qword [ebp - 0x3c], xmm0
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10008eda
cmp dword [ebp - 0x48], edi
je 0x10008f31
lea eax, [ebp - 0x50]
push eax
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10008ec7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10096390
push 0x10
call fcn.100083c0
add esp, 8
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
inc ecx
add edx, 4
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
cmp ecx, dword [ebp - 0x18]
jne 0x10008e90
mov esi, dword [ebp - 0x24]
pop edi
test esi, esi
je 0x10008f6c
mov ecx, dword [ebp - 0x1c]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10008f62
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008f7b
jmp 0x10008f62
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x10008ef0
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x10008f59
test eax, eax
jne 0x10008eda
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10008ef0
push ecx
push esi
call fcn.10027504
add esp, 8
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.10066943
int3

Function at 0x10008f90
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
mov edi, ecx
lea eax, [edi + 0x14]
push eax
push 0
push 0
push 0x100029c0
push 0
push 0
call esi
mov dword [edi], eax
lea eax, [edi + 0x18]
push eax
push 0
push 0
push 0x10002a50
push 0
push 0
call esi
mov dword [edi + 4], eax
lea eax, [edi + 0x1c]
push eax
push 0
push 0
push 0x10005030
push 0
push 0
call esi
mov dword [edi + 8], eax
lea eax, [edi + 0x20]
push eax
push 0
push 0
push 0x10002950
push 0
push 0
call esi
mov dword [edi + 0xc], eax
pop edi
pop esi
ret
Function at 0x1002b0be
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x1007bb52
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007b80b

Function at 0x1007bb5d
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007b8e4

Function at 0x1008412d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1008393d

Function at 0x10084138
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10083b78
Function at 0x41b58b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b22d

Function at 0x41b596
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b3bc

Function at 0x41b990
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00409dd0
mov eax, dword [0x47f300]
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.0041852c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41b9d2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41bb2e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425e70
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 + 0x4810e8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041cb60
mov ecx, dword [esi*4 + 0x4810e8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41bb27
cmp eax, dword [edi + ecx + 0x24]
jne 0x41bb27
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bb27
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041cb60
add esp, 0x14
test edx, edx
jl 0x41bb27
jg 0x41ba9d
test eax, eax
jb 0x41bb27
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41bb27
jl 0x41bab7
cmp dword [ebp - 0x1008], eax
ja 0x41bb27
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41bad5
test ebx, ebx
je 0x41bb0e
cmp ecx, edi
jae 0x41bb0e
mov al, byte [ecx]
cmp al, 0xd
jne 0x41baef
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41bafb
cmp byte [ecx + 1], 0xa
jne 0x41bafb
inc ecx
jmp 0x41bafb
movzx eax, al
movsx eax, byte [eax + 0x47f5d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41bad5
cmp edx, ebx
jne 0x41bad5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41bb2c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004092b4
leave
ret
Function at 0x41bffe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4810e8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c03e
cmp byte [ebx], 0xa
jne 0x41c03e
or byte [eax + edi + 0x28], 4
jmp 0x41c043
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41c141
mov al, byte [edx]
cmp al, 0x1a
je 0x41c123
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41c072
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41c097
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41c0a1
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41c054
jmp 0x41c141
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c11e
cmp dword [ebp - 0xc], 0
je 0x41c11e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4810e8]
test byte [eax + edi + 0x28], 0x48
je 0x41c0f8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c0e3
mov byte [esi], dl
jmp 0x41c0f4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4810e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c141
cmp byte [ebp - 1], 0xa
jne 0x41c107
cmp esi, ebx
jne 0x41c107
mov byte [esi], 0xa
jmp 0x41c140
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041cb7e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c141
mov byte [esi], 0xd
jmp 0x41c140
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4810e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c13d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c141
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c14a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4810e8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c18d
cmp word [esi], dx
jne 0x41c18d
or byte [edi + eax + 0x28], 4
jmp 0x41c192
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41c2e5
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41c2c5
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41c1d4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41c20a
cmp eax, edx
jae 0x41c216
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41c1ac
jmp 0x41c2e5
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c2c1
cmp dword [ebp - 0x14], 0
je 0x41c2c1
mov eax, dword [ebx*4 + 0x4810e8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41c299
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41c262
mov word [esi], cx
jmp 0x41c295
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4810e8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4810e8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4810e8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41c2e5
pop ebx
cmp word [ebp - 4], bx
jne 0x41c2aa
cmp esi, dword [ebp + 0xc]
jne 0x41c2aa
mov word [esi], bx
jmp 0x41c2e2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041cb7e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41c2e5
push 0xd
jmp 0x41c2de
mov ecx, dword [ebx*4 + 0x4810e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c2dc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c2e5
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e0dc
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 0x41e179
push ebx
push esi
call fcn.0041e0a5
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.0041cd2a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41e126
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e178
push edi
push eax
call fcn.00417686
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41e146
call fcn.0041745c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e177
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041cd2a
add esp, 0x20
test eax, eax
jne 0x41e165
push edi
call fcn.0041745c
jmp 0x41e16d
push ebx
call fcn.0041745c
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 0x425c70
Capabilities:
Parse pe header

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

Function at 0x427000
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push str.Success_created.
push 0x480778
mov ebx, ecx
call fcn.00401200
push eax
call fcn.004021f0
push 8
call fcn.00409271
mov esi, eax
add esp, 0x10
test esi, esi
je 0x427062
push 4
call fcn.00409271
add esp, 4
test eax, eax
je 0x427040
mov dword [eax], 0x427bc0
jmp 0x427042
xor eax, eax
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x4021d0
push 0
push 0
call fcn.00410396
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x42709d
jmp 0x427064
xor esi, esi
cmp dword [esi + 4], 0
je 0x4270aa
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [esi + 4], eax
je 0x4270b1
push 0
push dword [esi + 4]
push dword [esi]
call fcn.00405ba5
add esp, 0xc
test eax, eax
jne 0x4270b8
push 8
push esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.004092a1
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
ret
push 6
mov dword [edi], 0
call fcn.00405d5b
push 1
call fcn.00405d5b
push 5
call fcn.00405d5b
push 2
call fcn.00405d5b
int3

Function at 0x4275d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x24c
mov eax, dword [0x47f300]
Function at 0x414996
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x4149a5
pop dword [ebp - 8]
mov eax, 0x1d214433
add eax, 0xe3200572
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x33ec4
push 0
mov eax, 0x4fae6f73
sub eax, 0x4f6b1987
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x7ae8a523
sub ecx, 0x7ae868e4
mov ebx, eax
mov esi, 0xf67e7c74
sub esi, 0xf63a8c74
add esi, dword [ebp - 8]
mov edi, 0xc5cfced7
sub edi, 0x4234c312
xor dword [ebp - 4], 0x476774ba
mov edx, dword [esi]
add dword [ebp - 4], eax
sub edx, edi
mov dword [ebp - 4], 0xf233ce1b
mov dword [ebx], edx
add dword [ebp - 4], ecx
add ebx, 0xfa3246d9
sub ebx, 0xfa3246d5
add esi, 0xbbc4e8b
sub esi, 0xbbc4e87
loop 0x414a04
add eax, 0xf141684a
sub eax, 0xf140847b
xor ebx, ebx
add ebx, eax
add eax, 0xfc83d9ae
add eax, 0x37c2657
mov ecx, 0x85f29fbc
sub ecx, 0x85b29fbc
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x401828
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebp
push edi
push 0x426154
xor ebp, ebp
push dword [esp + 0x14]
mov dword [esp + 0x10], ebp
call dword [sym.imp.MSVCRT.dll__wfopen]
mov edi, eax
pop ecx
cmp edi, ebp
pop ecx
je 0x4018d2
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push ebp
push edi
call esi
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push ebp
push ebp
push edi
mov ebx, eax
call esi
lea ebp, [ebx + 1]
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 0x20
test esi, esi
je 0x4018c8
push ebp
push 0
push esi
call sub.MSVCRT.dll_memset
push edi
push ebx
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
push 0x42614c
push dword [esp + 0x3c]
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebp, eax
add esp, 0x24
test ebp, ebp
je 0x4018c1
push ebp
push ebx
push 1
pop ebx
push ebx
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov dword [esp + 0x10], ebx
push esi
call fcn.0041fa48
pop ecx
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop esi
pop ebx
mov eax, dword [esp + 8]
pop edi
pop ebp
pop ecx
ret