joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ba2d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
cmp dword [0x1022204], 0
mov eax, dword [0x1010b74]
mov dword [ebp - 4], eax
jne 0x100bb1b
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x98]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100bb10
xor eax, eax
cmp dword [ebp - 0x88], 2
push esi
sete al
test eax, eax
mov dword [0x1010b94], eax
je 0x100bade
push 0x1001bb8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x100bb0f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001b9c
push edi
call esi
test eax, eax
mov dword [0x10221f0], eax
je 0x100bac2
mov dword [0x1010b90], 0x4000
push 0x1001b90
push edi
call esi
push 0x1001b78
push edi
mov dword [0x10221f4], eax
call esi
mov dword [0x10221f8], eax
jmp 0x100bb0f
push 0x1001b6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100bb0f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001b5c
push edi
call esi
push 0x1001b4c
push edi
mov dword [0x10221e8], eax
call esi
mov dword [0x10221ec], eax
pop esi
mov dword [0x1022204], 1
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [0x1010b94]
call fcn.010090ab
leave
ret
Function at 0x100c69a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
call fcn.0100c619
test eax, eax
je 0x100c6db
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 3
push 0
push 0x1001c10
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret 8

Function at 0x100cbc0
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x1cb459e9
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x7ae53d6d
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x100600e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi + 0x630]
cmp eax, ebx
mov dword [ebp - 4], ebx
jne 0x1005f59
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push ebx
push reloc.ADVAPI32.dll_RegOverridePredefKey
push ebx
lea edx, [esi + 0x208]
push edx
push eax
call dword [ecx + LCMapStringW]
mov ebx, eax
test ebx, ebx
jl 0x1005ff8
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.0100c0c5
mov ebx, eax
test ebx, ebx
jl 0x1005ff8
push dword [ebp + 0x18]
lea eax, [ebp - 0x14]
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
push esi
call fcn.01004f2e
jmp 0x1005ff6
cmp eax, 1
je 0x1005fb2
cmp eax, 2
je 0x1005fb2
cmp eax, 3
jne 0x1006009
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push ebx
push 0x1001df4
push ebx
lea edx, [esi + 0x208]
push edx
push eax
call dword [ecx + LCMapStringW]
mov ebx, eax
test ebx, ebx
jl 0x1005ff8
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.0100c0c5
mov ebx, eax
test ebx, ebx
jl 0x1005ff8
push dword [ebp + 0x18]
lea eax, [ebp - 0x14]
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
push esi
call fcn.01005e21
jmp 0x1005ff6
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push ebx
push reloc.ADVAPI32.dll_RegOverridePredefKey
push ebx
lea edx, [esi + 0x208]
push edx
push eax
call dword [ecx + LCMapStringW]
mov ebx, eax
test ebx, ebx
jl 0x1005ff8
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.0100c0c5
mov ebx, eax
test ebx, ebx
jl 0x1005ff8
push dword [ebp + 0x18]
lea eax, [ebp - 0x14]
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
push esi
call fcn.01005642
mov ebx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x1006009
mov ecx, dword [eax]
push eax
call dword [ecx + reloc.KERNEL32.dll_CreateFileA]
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
call fcn.0100c081
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14
Function at 0x1008446
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ebp + 0xc]
push esi
lea esi, [ecx + edx + 0x10]
cmp esi, dword [eax + 8]
ja 0x1008470
test edx, edx
je 0x1008470
mov esi, dword [eax + 0xc]
push ebx
add esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esi + 0x34]
push eax
call edi
mov ebx, eax
add ebx, 0x25
lea eax, [esi + ebx + 0x10]
push eax
call edi
lea ebx, [ebx + eax + 1]
lea eax, [esi + ebx + 0x10]
push eax
call edi
lea ebx, [ebx + eax + 1]
lea eax, [esi + ebx + 0x10]
push eax
call edi
lea ebx, [ebx + eax + 1]
lea eax, [esi + ebx + 0x10]
push eax
call edi
lea ebx, [ebx + eax + 1]
lea eax, [esi + ebx + 0x10]
push eax
call edi
lea ebx, [ebx + eax + 1]
lea eax, [esi + ebx + 0x10]
push eax
call edi
lea ebx, [ebx + eax + 1]
lea eax, [esi + ebx + 0x10]
push eax
call edi
cmp dword [ebp + 8], 1
lea ebx, [ebx + eax + 1]
jne 0x100845e
mov eax, dword [ebp + 0x10]
cmp ebx, dword [eax + 4]
jae 0x100845e
add ebx, 0x10
lea eax, [esi + ebx + 0x10]
push eax
call edi
lea ebx, [ebx + eax + 1]
mov eax, dword [ebp + 0x10]
add ebx, 0x38
mov dword [esi + 4], ebx
mov dword [eax + 4], ebx
pop edi
xor eax, eax
pop ebx
jmp 0x1008475
mov eax, 0x800c0075
pop esi
pop ebp
ret 0xc
Function at 0x1008b5a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, ebx
push edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1008a7a
sub eax, ecx
cmp eax, 1
jb 0x1008aa9
cmp byte [ebx + 1], 0x3a
jne 0x1008aa9
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1008aa5
push 2
push ebx
push esi
call fcn.01009f39
add esp, 0xc
mov byte [esi + 2], 0
inc ebx
inc ebx
jmp 0x1008ab3
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1008ab3
mov byte [eax], 0
and dword [ebp + 8], 0
cmp byte [ebx], 0
mov eax, ebx
mov dword [ebp - 8], eax
mov esi, 0xff
je 0x1008b2b
mov cl, byte [eax]
movzx edx, cl
test byte [edx + 0x100e521], 4
je 0x1008ad7
inc eax
jmp 0x1008af1
cmp cl, 0x2f
je 0x1008aeb
cmp cl, 0x5c
je 0x1008aeb
cmp cl, 0x2e
jne 0x1008af1
mov dword [ebp - 4], eax
jmp 0x1008af1
lea ecx, [eax + 1]
mov dword [ebp + 8], ecx
inc eax
cmp byte [eax], 0
jne 0x1008ac6
mov edi, dword [ebp + 8]
test edi, edi
mov dword [ebp - 8], eax
je 0x1008b2b
cmp dword [ebp + 0x10], 0
je 0x1008b26
sub edi, ebx
cmp edi, esi
jb 0x1008b0f
mov edi, esi
push edi
push ebx
push dword [ebp + 0x10]
call fcn.01009f39
mov eax, dword [ebp + 0x10]
mov byte [edi + eax], 0
mov eax, dword [ebp - 8]
add esp, 0xc
mov ebx, dword [ebp + 8]
jmp 0x1008b35
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1008b35
mov byte [ecx], 0
mov edi, dword [ebp - 4]
test edi, edi
je 0x1008b88
cmp edi, ebx
jb 0x1008b88
cmp dword [ebp + 0x14], 0
je 0x1008b65
sub edi, ebx
cmp edi, esi
jb 0x1008b4e
mov edi, esi
push edi
push ebx
push dword [ebp + 0x14]
call fcn.01009f39
mov eax, dword [ebp + 0x14]
mov byte [edi + eax], 0
mov eax, dword [ebp - 8]
add esp, 0xc
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x1008bb0
sub eax, dword [ebp - 4]
cmp eax, esi
jae 0x1008b75
mov esi, eax
push esi
push dword [ebp - 4]
push edi
call fcn.01009f39
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x1008bb0
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x1008ba6
sub eax, ebx
cmp eax, esi
jae 0x1008b97
mov esi, eax
push esi
push ebx
push edi
call fcn.01009f39
add esp, 0xc
mov byte [esi + edi], 0
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1008bb0
mov byte [eax], 0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1009691
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100e450]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x10095b6
call esi
mov edi, eax
cmp edi, ebx
je 0x100959c
mov dword [0x100e450], 1
jmp 0x10095bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10095b1
push 2
pop eax
mov dword [0x100e450], eax
jmp 0x10095b6
mov eax, dword [0x100e450]
cmp eax, 1
jne 0x1009633
cmp edi, ebx
jne 0x10095c7
call esi
mov edi, eax
cmp edi, ebx
je 0x100963c
cmp word [edi], bx
mov eax, edi
je 0x10095dc
inc eax
inc eax
cmp word [eax], bx
jne 0x10095ce
inc eax
inc eax
cmp word [eax], bx
jne 0x10095ce
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x100962a
push eax
call fcn.0100a3cc
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x100962a
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x1009627
push dword [ebp - 4]
call fcn.0100a307
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x100968b
cmp eax, 2
je 0x1009640
cmp eax, ebx
je 0x1009640
xor eax, eax
jmp 0x100968d
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x100963c
cmp byte [esi], bl
je 0x100965d
inc eax
cmp byte [eax], bl
jne 0x1009653
inc eax
cmp byte [eax], bl
jne 0x1009653
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.0100a3cc
cmp eax, ebx
pop ecx
je 0x1009684
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100a366
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [0x100e744], 3
push esi
mov esi, dword [ebp + 8]
jne 0x100a36e
cmp esi, dword [0x100e4fc]
ja 0x100a36e
push esi
call fcn.0100a958
test eax, eax
pop ecx
jne 0x100a391
test esi, esi
jne 0x100a373
inc esi
cmp dword [0x100e744], 1
je 0x100a382
add esi, 0xf
and esi, 0xfffffff0
push esi
push 0
push dword [0x100e740]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
pop esi
pop ebp
ret
Function at 0x100b6b5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov eax, ecx
mov edx, ecx
add eax, esi
cmp edi, esi
jbe 0x100b590
cmp edi, eax
jb 0x100b708
test edi, 3
jne 0x100b5ac
shr ecx, 2
and edx, 3
cmp ecx, 8
jb switch.0x0100b5cc
rep movsd dword es:[edi], dword [esi]
jmp dword [edx*4 + 0x100b6b8]
mov eax, edi
mov edx, 3
sub ecx, 4
jb 0x100b5c4
and eax, 3
add ecx, eax
jmp dword [eax*4 + 0x100b5d0]
jmp dword [ecx*4 + case.0x100b5a5.0]
jmp dword [ecx*4 + 0x100b64c]
mov eax, dword [esi + ecx*4 - 0x1c]
mov dword [edi + ecx*4 - 0x1c], eax
mov eax, dword [esi + ecx*4 - 0x18]
mov dword [edi + ecx*4 - 0x18], eax
mov eax, dword [esi + ecx*4 - 0x14]
mov dword [edi + ecx*4 - 0x14], eax
mov eax, dword [esi + ecx*4 - 0x10]
mov dword [edi + ecx*4 - 0x10], eax
mov eax, dword [esi + ecx*4 - 0xc]
mov dword [edi + ecx*4 - 0xc], eax
mov eax, dword [esi + ecx*4 - 8]
mov dword [edi + ecx*4 - 8], eax
mov eax, dword [esi + ecx*4 - 4]
mov dword [edi + ecx*4 - 4], eax
lea eax, [ecx*4]
add esi, eax
add edi, eax
jmp dword [edx*4 + 0x100b6b8]
mov eax, dword [ebp + 8]
pop esi
pop edi
leave
ret
mov al, byte [esi]
mov byte [edi], al
mov eax, dword [ebp + 8]
pop esi
pop edi
leave
ret
mov al, byte [esi]
mov byte [edi], al
mov al, byte [esi + 1]
mov byte [edi + 1], al
mov eax, dword [ebp + 8]
pop esi
pop edi
leave
ret
mov al, byte [esi]
mov byte [edi], al
mov al, byte [esi + 1]
mov byte [edi + 1], al
mov al, byte [esi + 2]
mov byte [edi + 2], al
mov eax, dword [ebp + 8]
pop esi
pop edi
leave
ret
lea esi, [ecx + esi - 4]
lea edi, [ecx + edi - 4]
test edi, 3
jne 0x100b73c
shr ecx, 2
and edx, 3
cmp ecx, 8
jb case.default.0x100b727
std
rep movsd dword es:[edi], dword [esi]
cld
jmp dword [edx*4 + 0x100b850]
neg ecx
jmp dword [ecx*4 + 0x100b800]
mov eax, edi
mov edx, 3
cmp ecx, 4
jb switch.0x0100b754
and eax, 3
sub ecx, eax
jmp dword [eax*4 + 0x100b758]
jmp dword [ecx*4 + 0x100b850]
jmp dword [edx*4 + 0x100b850]
mov eax, dword [ebp + 8]
pop esi
pop edi
leave
ret
mov al, byte [esi + 3]
mov byte [edi + 3], al
mov eax, dword [ebp + 8]
pop esi
pop edi
leave
ret
mov al, byte [esi + 3]
mov byte [edi + 3], al
mov al, byte [esi + 2]
mov byte [edi + 2], al
mov eax, dword [ebp + 8]
pop esi
pop edi
leave
ret
mov al, byte [esi + 3]
mov byte [edi + 3], al
mov al, byte [esi + 2]
mov byte [edi + 2], al
mov al, byte [esi + 1]
mov byte [edi + 1], al
mov eax, dword [ebp + 8]
pop esi
pop edi
leave
ret
Function at 0x4018b5
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x254
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
xor ebx, ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ebp, dword [sym.imp.MSVCRT.dll_wcscpy]
lea edi, [esi + eax*2]
mov dword [esp], 0x4081a8
push edi
call ebp
pop ecx
lea eax, [esp + 0x18]
pop ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
and word [edi], bx
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x401902
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4019c3
lea eax, [esp + 0x40]
push 0x4081a4
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x401976
lea eax, [esp + 0x40]
push 0x40819c
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x401976
lea eax, [esp + 0x40]
push eax
push edi
call ebp
test byte [esp + 0x1c], 0x10
pop ecx
pop ecx
je 0x401956
push 0x408160
push esi
call dword [sym.imp.MSVCRT.dll_wcscat]
pop ecx
pop ecx
mov ecx, esi
call fcn.004018b5
jmp 0x401970
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401972
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x40199c
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401902
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x12
jne 0x40199c
xor ebx, ebx
push dword [esp + 0x10]
and word [edi], 0
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
jne 0x4019c1
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4019c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x254
ret

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

Disassembly:
push esi
push edi
xor edx, edx
mov ecx, 0x408220
push 8
mov eax, edx
pop esi
mov edi, eax
and edi, 1
dec edi
not edi
and edi, 0xedb88320
shr eax, 1
xor eax, edi
dec esi
jne 0x401a57
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x408620
jb 0x401a52
pop edi
cmp edx, 0x800
pop esi
jae 0x401ab2
lea ecx, [edx*4 + 0x408220]
mov eax, dword [ecx - 0x400]
mov edx, eax
and edx, 0xff
shr eax, 8
mov edx, dword [edx*4 + 0x408220]
xor edx, eax
mov dword [ecx], edx
add ecx, 4
cmp ecx, 0x40a220
jb 0x401a8b
mov dword [0x4081f0], fcn.00401ad0
call fcn.00404777
test eax, eax
jne 0x401acf
mov dword [0x4081f0], 0x401b84
ret
Function at 0x401ad0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
mov esi, 0xff
mov ecx, edx
mov edx, dword [ebp + 0xc]
test edi, edi
mov dword [ebp - 4], ecx
jbe 0x401b12
test cl, 3
je 0x401b12
movzx ebx, byte [ecx]
mov edi, eax
and edi, esi
xor edi, ebx
shr eax, 8
mov edi, dword [edx + edi*4]
xor eax, edi
mov edi, dword [ebp + 8]
dec edi
inc ecx
test edi, edi
mov dword [ebp + 8], edi
mov dword [ebp - 4], ecx
ja 0x401aed
cmp edi, 4
jb 0x401b5f
mov ebx, edi
shr ebx, 2
mov dword [ebp + 8], ebx
xor eax, dword [ecx]
xor ecx, ecx
xor ebx, ebx
sub edi, 4
mov dword [ebp + 0xc], eax
mov cl, ah
mov bl, byte [ebp + 0xe]
mov ecx, dword [edx + ecx*4 + 0x800]
xor ecx, dword [edx + ebx*4 + 0x400]
mov ebx, eax
and ebx, esi
shr eax, 0x18
xor ecx, dword [edx + ebx*4 + 0xc00]
xor ecx, dword [edx + eax*4]
mov eax, ecx
mov ecx, dword [ebp - 4]
add ecx, 4
dec dword [ebp + 8]
mov dword [ebp - 4], ecx
jne 0x401b1f
test edi, edi
jbe 0x401b7d
mov dword [ebp + 8], edi
movzx ebx, byte [ecx]
mov edi, eax
and edi, esi
xor edi, ebx
shr eax, 8
mov edi, dword [edx + edi*4]
xor eax, edi
inc ecx
dec dword [ebp + 8]
jne 0x401b66
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x401c0f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], edx
mov ebx, ecx
mov edi, dword [esi]
test edi, edi
je 0x401c68
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x401c32
mov eax, edi
lea ecx, [ebp + 8]
push 0
and dword [ebp + 8], 0
push ecx
push eax
push dword [ebp - 4]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
add dword [ebp - 4], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x401c60
test ecx, ecx
je 0x401c68
test edi, edi
jbe 0x401c68
jmp 0x401c27
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401c6a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401c71
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], edx
mov ebx, ecx
mov edi, dword [esi]
test edi, edi
je 0x401cca
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x401c94
mov eax, edi
lea ecx, [ebp + 8]
push 0
and dword [ebp + 8], 0
push ecx
push eax
push dword [ebp - 4]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
add dword [ebp - 4], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x401cc2
test ecx, ecx
je 0x401cca
test edi, edi
jbe 0x401cca
jmp 0x401c89
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401ccc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x404535
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], edx
push esi
mov edx, ecx
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
mov esi, dword [ecx]
and esi, 7
cmp dword [ebp - 8], 5
jb 0x404687
add dword [ebp + 8], 5
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea edi, [eax + edx]
mov eax, dword [ebp - 8]
lea ecx, [edx + eax - 4]
cmp edi, ecx
jae 0x40457b
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40457b
inc edi
jmp 0x40456c
mov eax, edi
sub eax, edx
cmp edi, ecx
jae 0x404668
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x4045ad
xor esi, esi
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x4045da
cmp cl, 0xff
je 0x4045da
and esi, 3
shl esi, 1
or esi, 1
inc eax
jmp 0x404562
dec ecx
shl esi, cl
and esi, 7
je 0x404593
movzx ecx, byte [esi + 0x4070e0]
mov ebx, edi
sub ebx, ecx
cmp byte [esi + 0x4070d8], 0
mov cl, byte [ebx + 4]
je 0x4045d5
test cl, cl
je 0x4045d5
cmp cl, 0xff
jne 0x404593
mov dword [ebp - 4], eax
jmp 0x4045a2
xor ebx, ebx
mov bh, cl
mov bl, byte [edi + 3]
movzx ecx, byte [edi + 2]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [edi + 1]
shl ebx, 8
or ebx, ecx
cmp dword [ebp + 0x10], 0
je 0x404601
lea edx, [ebx + eax]
add edx, dword [ebp + 8]
jmp 0x404608
sub ebx, eax
sub ebx, dword [ebp + 8]
mov edx, ebx
test esi, esi
je 0x40463b
movzx ebx, byte [esi + 0x4070e0]
push 0x18
shl ebx, 3
pop ecx
mov dword [ebp - 0xc], ebx
sub ecx, ebx
mov ebx, edx
shr ebx, cl
test bl, bl
je 0x40462b
cmp bl, 0xff
jne 0x40463b
push 0x20
pop ecx
sub ecx, dword [ebp - 0xc]
push 1
pop ebx
shl ebx, cl
dec ebx
xor ebx, edx
jmp 0x4045f3
mov ecx, edx
mov byte [edi + 1], dl
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, edx
mov edx, dword [ebp - 0x10]
shr ecx, 8
mov byte [edi + 2], cl
add eax, 5
jmp 0x404562
mov edx, eax
push 3
sub edx, dword [ebp - 4]
pop edi
lea ecx, [edx - 1]
shl esi, cl
and esi, 7
cmp edi, edx
mov edx, dword [ebp + 0xc]
pop edi
sbb ecx, ecx
pop ebx
not ecx
and ecx, esi
mov dword [edx], ecx
pop esi
leave
ret 0xc