joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c547
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x10015ab8], 0
jne 0x1000c5ab
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x10015ab8
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1000c5ab
push esi
mov esi, dword [0x10015ac4]
mov dword [0x10015acc], eax
mov dword [0x10015ad0], eax
mov dword [0x10015ac8], eax
mov dword [0x10015ab4], eax
mov dword [0x10015ac0], eax
jmp 0x1000c5a2
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
test esi, esi
jne 0x1000c58d
xor eax, eax
pop esi
leave
ret
mov eax, 0x10dd
leave
ret
Function at 0x1000d593
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
push esi
push edi
push 0x54
xor esi, esi
lea eax, [ebp - 0x58]
mov ebx, ecx
push esi
push eax
mov dword [ebp - 4], ebx
call sub.msvcrt.dll_memset
mov ebx, dword [ebx + 0x30]
lea edx, [ebp - 0x258]
add esp, 0xc
mov ecx, ebx
sub edx, ebx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x1000d5c2
lea edi, [ebp - 0x258]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x1000d5da
mov eax, dword [ebp - 4]
mov esi, str._fmt
push 4
pop edx
mov ecx, 0x120
mov dword [ebp - 0x4c], eax
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x44], eax
add eax, edx
mov dword [ebp - 0x34], ecx
xor ecx, ecx
push ecx
movsd dword es:[edi], dword [esi]
push ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x58]
push eax
movsw word es:[edi], word [esi]
push str.REGISTRYMACHINESOFTWARECrypto_ProCryptographyCurrentVersionDebug
mov esi, 0x4000000
mov dword [ebp - 0x50], ebx
push ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], edx
call dword [sym.imp.ntdll.dll_RtlQueryRegistryValues]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424c60
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00424cdf
jae 0x424c6c
xor ecx, ecx
call fcn.00424cdf
jae 0x424c96
xor eax, eax
call fcn.00424cdf
jae 0x424ca7
mov al, 0x10
call fcn.00424cdf
adc al, al
jae 0x424c88
jne 0x424cd4
stosb byte es:[edi], al
jmp 0x424c6d
call fcn.00424ceb
dec ecx
loop 0x424cb3
mov eax, ebp
call fcn.00424ce9
jmp 0x424cd5
lodsb al, byte [esi]
shr eax, 1
je 0x424cfb
adc ecx, 2
mov ebp, eax
jmp 0x424cd5
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00424ce9
cmp eax, 0x7d00
jae 0x424cd3
cmp eax, 0x500
jae 0x424cd4
cmp eax, 0x7f
ja 0x424cd5
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x424c6d
pop ebp
ret 8
Function at 0x461b49
Capabilities:
Encode data using xor

Disassembly:
test dword [ebp + 0x16897194], 0xae37d3e3
and byte [eax + ecx], dh
test dl, bh
sbb esp, dword [ebp - 0x6c]
xchg esp, eax
xchg ebx, eax
pop esp
aad 0xdb
xchg esi, eax
mov eax, dword [0x934a2bff]
out 0x3f, eax
xchg ebp, eax
js 0x461ae7
loope 0x461b50
jg 0x461bb6
dec ecx
or edx, dword [0x11feabeb]
xchg esi, eax
mov edi, 0x5af1cad1
pop esp
lahf
frstor dword [ecx]
sub byte [esi], dl
sbb eax, 0xfcf92e5
jae 0x461b07
mov dh, 0xc5
cmp dword [eax], ebx
popal
sbb dh, dh
or al, 0x41
pop edi
in eax, 0x88
mov byte [ecx], cl
std
adc eax, dword [0x670c8b6b]
pop ecx
inc eax
stc
add al, 0x48
test eax, 0x411549a8
cdq
inc edx
and dword [edx + ebp*4 - 0x7e7a1e5a], esi
cmpsb byte [esi], byte es:[edi]
jecxz 0x461c3c
mov bh, 0xec
bound ecx, qword [ebp + 0x4e]
out 0x2c, eax
cmp byte [ebp - 0x62], al
out dx, al
mov bl, 0x86
mov bl, 0x91
int 0xa3
cmp eax, dword [eax]
inc eax
mov ebx, 0xa8bfba7f
sbb edi, ebx
or eax, 0x7b2f6689
mov ch, 0x78
invalid
das
dec edx
inc ebx
xor dword [ebp + 0x5e], ebp
dec ecx
sub ecx, ebp
shl esp, 1
cmp dword [edi + 0x6d7e6d0c], ecx
push ecx
out 0xc8, al
add byte [esp + eax*2 - 0x21f535d], 0x41
invalid
and eax, 0x8ef61179
dec ecx
in eax, dx
movsb byte es:[edi], byte [esi]
pop edi
pop eax
push ebx
jns 0x461c17
mov dh, 0x6c
out dx, eax
ja 0x461c69
ror dword [ebx + 0x71], 0x6c
mov dl, 0x31
xchg edx, eax
std
inc ecx
dec edi
ret
pop esp
pop ss
sal dword [0xd3d4ad00], 1
jp 0x461ca0
wait
and esi, edi
sal byte [esi - 0x6d2cdd83], 0x60
sal byte [esi - 0x6d2cdd83], 0x60
mov ch, 0x39
and edx, dword [edx - 0x16b91f2e]
cmp dword [edi + 0x6f], esp
lcall 0x59cd, 0xc75ea1e6
push ss
jo 0x461c77
push ss
mov bh, 0x19
add ebp, dword [edi - 0x1b]
hlt
test dword [esi + ebx], 0xe0ab7b73
outsb dx, byte [esi]
dec edi
pop ss
cmp bl, byte [ecx - 0x17]
in al, 0xd
mov ecx, 0x9e98f48d
dec eax
sti
adc al, 0x8e
dec ebx
xchg ecx, eax
add byte [edi], ch
mov byte [0x9f38905c], al
dec esp
mov ah, 0xdf
div dword [eax]
cmp ebx, esi
pushal
div dword [edi]
invalid

Function at 0x4ad1a1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lcall 0xb80e, 0x38fcdf4a
imul ecx, dword [ecx + 0x61], 0x63
mov eax, 0xd25d2129
sub dword [ecx], esp
pop ebp
shr byte [eax], cl
in eax, 0x99
jp 0x4ad1eb
sbb esp, dword [ecx - 0x5a6cbda6]
mov eax, dword [0xa593425a]
jb 0x4ad1c6
mov dh, 0xba
leave
cld
jg 0x4ad1f8
cdq
imul ecx, dword [ebx], 0x1a21a06d
cdq
xchg ebp, eax
jo 0x4ad1de
jb 0x4ad194
add eax, 0x17191d98
push ss
mov dword [0x73a46b4e], 0xc0b7a64c
cwde
sbb eax, 0xc7161719
add eax, 0x73a46b4e
dec esp
cmpsb byte [esi], byte es:[edi]
mov bh, 0xc0
mov eax, dword [0x56276dd5]
add ch, byte [ecx - 0x18]
cdq
add dword [ecx + 0x7f], ecx
xchg ebx, eax
inc esp
outsd dx, dword [esi]
arpl bp, bx
out 0x4d, al
stc
dec eax
mov ecx, 0x35a00ac3
in eax, dx
mov cl, 0x1e
ja fcn.004ad205
ret
js 0x4ad1ab
sub ecx, dword [esi + 0x61]
popal
salc
lds ecx, [ecx]
mov bl, 0xce
add dword [edx - 0x454938f9], esi
leave
Function at 0x4ad1c5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lcall 0xb80e, 0x38fcdf4a
imul ecx, dword [ecx + 0x61], 0x63
mov eax, 0xd25d2129
sub dword [ecx], esp
pop ebp
shr byte [eax], cl
in eax, 0x99
jp 0x4ad1eb
sbb esp, dword [ecx - 0x5a6cbda6]
mov eax, dword [0xa593425a]
jb 0x4ad1c6
mov dh, 0xba
leave
cld
jg 0x4ad1f8
cdq
imul ecx, dword [ebx], 0x1a21a06d
cdq
xchg ebp, eax
jo 0x4ad1de
jb 0x4ad194
add eax, 0x17191d98
push ss
mov dword [0x73a46b4e], 0xc0b7a64c
cwde
sbb eax, 0xc7161719
add eax, 0x73a46b4e
dec esp
cmpsb byte [esi], byte es:[edi]
mov bh, 0xc0
mov eax, dword [0x56276dd5]
add ch, byte [ecx - 0x18]
cdq
add dword [ecx + 0x7f], ecx
xchg ebx, eax
inc esp
outsd dx, dword [esi]
arpl bp, bx
out 0x4d, al
stc
dec eax
mov ecx, 0x35a00ac3
in eax, dx
mov cl, 0x1e
ja fcn.004ad205
ret
js 0x4ad1ab
sub ecx, dword [esi + 0x61]
popal
salc
lds ecx, [ecx]
mov bl, 0xce
add dword [edx - 0x454938f9], esi
leave

Function at 0x4ad205
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push 0x4a
sub bl, byte [edi + 0x17]
adc edi, edx
sbb eax, 0x92c78e68
sub eax, 0x3ca5bdb6
and ch, byte [edi + 0x50135fdc]
mov al, byte [0x969a87b6]
sub dl, byte [ecx + 0x31]
xchg dword [edx + 0x31512a96], ebx
loopne 0x4ad278
fisub word [edi]
lcall 0xe193, 0xf87dbc57
cmp cl, byte [ecx + 0x16]
repne cmpsb byte [esi], byte es:[edi]
cmpsd dword [esi], dword es:[edi]
or byte [esi + 0x959c9b], 0xae
inc edi
mov ebp, edi
invalid
xlatb

Function at 0x4c6d25
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4d1398
cmp edx, dword [eax]
je 0x4c6d47
add eax, 8
inc ecx
cmp eax, 0x4d1428
jl 0x4c6d38
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4d1398]
jne 0x4c6e75
mov eax, dword [0x4d6dc0]
cmp eax, 1
je 0x4c6e4f
test eax, eax
jne 0x4c6d78
cmp dword [0x4d12c4], 1
je 0x4c6e4f
cmp edx, 0xfc
je 0x4c6e75
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c6daf
lea eax, [ebp - 0x1a4]
push 0x4ccd48
push eax
call fcn.004c7710
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c7ba0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c6df2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c7ba0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4ccd44
push edi
call fcn.004c9a70
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4ccd28
push eax
call fcn.004c7710
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c7720
lea eax, [ebp - 0xa0]
push 0x4ccd24
push eax
call fcn.004c7720
push dword [esi + 0x4d139c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c7720
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4cccfc
push eax
call fcn.004c99e4
add esp, 0x2c
pop edi
jmp 0x4c6e75
lea eax, [ebp + 8]
lea esi, [esi + 0x4d139c]
push 0
push eax
push dword [esi]
call fcn.004c7ba0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x16b08d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x499000]
push edi
or ebp, 0xffffffff
jmp 0x16b08f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16b08f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16b08e8
mov eax, 1
add ebx, ebx
jne 0x16b090b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16b091c
jne 0x16b093b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16b093b
dec eax
add ebx, ebx
jne 0x16b0928
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16b0900
add ebx, ebx
jne 0x16b0937
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x16b098d
xor ecx, ecx
sub eax, 3
jb 0x16b0953
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16b09c2
sar eax, 1
mov ebp, eax
jmp 0x16b095e
add ebx, ebx
jne 0x16b095e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16b092c
inc ecx
add ebx, ebx
jne 0x16b096c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16b092c
add ebx, ebx
jne 0x16b0979
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16b096e
jne 0x16b098a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16b096e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x16b09ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16b099e
jmp 0x16b08ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16b09ac
add edi, ecx
jmp 0x16b08ee
pop esi
mov edi, esi
mov ecx, 0xc608
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16b09ca
cmp byte [edi], 0x24
jne 0x16b09ca
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 0x16b09cf
lea edi, [esi + 0x7ac000]
mov eax, dword [edi]
or eax, eax
je 0x16b0a3e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x82babc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x82bbe8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16b09fc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x82bbec]
or eax, eax
je 0x16b0a38
mov dword [ebx], eax
add ebx, 4
jmp 0x16b0a19
call dword [esi + 0x82bbfc]
mov ebp, dword [esi + 0x82bbf0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x16b0a72
sub esp, 0xffffff80
jmp 0x1158aec
Function at 0x401000
Capabilities:
Check mutex on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [ebp + 0x10]
push eax
push 0x407030
lea ecx, [ebp - 0x104]
push ecx
call fcn.004012db
add esp, 0xc
lea edx, [ebp - 0x104]
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x108], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4011fe
mov dword [ebp - 0x130], 0x80000002
mov dword [ebp - 0x12c], 0x407054
mov dword [ebp - 0x128], 0x80000000
mov dword [ebp - 0x124], 0x407064
mov dword [ebp - 0x120], 0x80000001
mov dword [ebp - 0x11c], 0x407074
mov dword [ebp - 0x118], 0x80000003
mov dword [ebp - 0x114], 0x407084
mov dword [ebp - 0x10c], 0
jmp 0x4010b4
mov eax, dword [ebp - 0x10c]
add eax, 1
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 4
jae 0x4010f6
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ebp + ecx*8 - 0x12c]
push edx
call fcn.00401260
add esp, 4
push eax
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp + eax*8 - 0x12c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00401220
add esp, 0xc
test eax, eax
jne 0x4010f4
jmp 0x4010f6
jmp 0x4010a5
mov eax, dword [ebp - 0x12c]
push eax
call fcn.00401260
add esp, 4
mov ecx, dword [ebp + 0x10]
add ecx, eax
mov dword [ebp - 0x134], ecx
cmp dword [ebp - 0x10c], 4
jae 0x4011fe
lea edx, [ebp - 0x110]
push edx
push 0xf003f
push 0
mov eax, dword [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ebp + ecx*8 - 0x130]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4011fe
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0x104
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x238]
push ecx
push 0
push 0
push 0x40708c
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x240]
or ecx, eax
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x23c], 0x104
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x344]
push eax
push 0
push 0
push 0x407098
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x240]
or edx, eax
mov dword [ebp - 0x240], edx
cmp dword [ebp - 0x240], 0
jne 0x4011f1
push 0x30
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x344]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x417d00
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi]
test esi, esi
je 0x417d62
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
mov dword [edi], 0
lea esp, [esp]
cmp esi, 0x400000
mov eax, 0x400000
ja 0x417d2f
mov eax, esi
mov edx, dword [ebp]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x417d67
test ecx, ecx
je 0x417d60
test esi, esi
ja 0x417d20
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
pop ebp
pop ebx
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x417d80
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi]
test esi, esi
je 0x417de2
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
mov dword [edi], 0
lea esp, [esp]
cmp esi, 0x400000
mov eax, 0x400000
ja 0x417daf
mov eax, esi
mov edx, dword [ebp]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x1c]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x417de7
test ecx, ecx
je 0x417de0
test esi, esi
ja 0x417da0
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
pop ebp
pop ebx
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

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

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x547fc0], ecx
add edx, 1
cmp edx, 0x100
jl 0x418152
cmp edx, 0x800
jae 0x41823b
mov edi, edi
mov eax, dword [edx*4 + 0x547bc0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x547fc0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x547fbc], eax
jb 0x418210
mov dword [0x544960], 0x41a780
call fcn.0041a950
test eax, eax
jne 0x418258
mov dword [0x544960], 0x41a830
ret
Function at 0x41e7d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x10]
xor eax, eax
and ebp, 7
cmp ecx, 5
jae 0x41e7e9
pop ebp
pop ecx
ret
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x1c]
add esi, 5
lea edx, [edx + ecx - 4]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x10], edx
jmp 0x41e810
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x41e82f
jmp 0x41e820
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41e82f
add edi, 1
cmp edi, edx
jb 0x41e820
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x1c]
cmp edi, edx
jae 0x41e945
cmp ecx, 3
jbe 0x41e865
xor ebp, ebp
mov cl, byte [edi + 4]
test cl, cl
mov dword [esp + 0x1c], eax
je 0x41e8a3
cmp cl, 0xff
je 0x41e8a3
and ebp, 3
add ebp, ebp
or ebp, 1
add eax, 1
jmp 0x41e810
add ecx, 0xffffffff
shl ebp, cl
and ebp, 7
je 0x41e848
movzx ecx, byte [ebp + 0x4fd9c4]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x4fd9bc], 0
mov cl, byte [ebx + 4]
je 0x41e88f
test cl, cl
je 0x41e88f
cmp cl, 0xff
jne 0x41e848
and ebp, 3
add ebp, ebp
mov dword [esp + 0x1c], eax
or ebp, 1
add eax, 1
jmp 0x41e810
xor edx, edx
mov dh, cl
movzx ecx, byte [edi + 2]
mov dl, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x41e8ce
lea ebx, [edx + eax]
add ebx, esi
jmp 0x41e8d4
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x41e916
movzx esi, byte [ebp + 0x4fd9c4]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x41e8f9
cmp dl, 0xff
jne 0x41e912
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
sub edx, 1
xor edx, ebx
jmp 0x41e8c0
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
sub dl, 1
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x10]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x41e810
cmp ecx, 3
pop edi
pop esi
pop ebx
jbe 0x41e958
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [ecx], ebp
pop ebp
pop ecx
ret
add ecx, 0xffffffff
shl ebp, cl
mov ecx, dword [esp + 0x18]
and ebp, 7
mov dword [ecx], ebp
pop ebp
pop ecx
ret

Function at 0x425930
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x42594d
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call fcn.00425910
add esp, 4
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x42596d
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
cmp eax, 0x2f
je 0x42596d
push str.Comments_must_start_with__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
call fcn.00425990
add esp, 8
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov esp, ebp
pop ebp
ret 4
Function at 0x425990
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0xffffffff
jne 0x4259a9
mov eax, dword [ebp + 8]
push eax
call fcn.004b63c0
add esp, 4
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
push ecx
call fcn.004b85bb
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4259cc
push str.Failed_to_allocate_string_value_buffer
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004b6a50
add esp, 0xc
mov edx, dword [ebp - 4]
add edx, dword [ebp + 0xc]
mov byte [edx], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4269e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
shl ecx, 0x18
sar ecx, 0x18
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 7
ja case.default.0x426a0c
mov edx, dword [ebp - 0xc]
jmp dword [edx*4 + 0x426ac4]
push 0x4fde57
mov ecx, dword [ebp + 8]
call fcn.00402870
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
jmp 0x426abc
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0
je 0x426a43
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
jmp 0x426a4a
mov dword [ebp - 0x10], 0x4fde58
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402870
mov edx, dword [ebp - 4]
or edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
jmp 0x426abc
mov eax, dword [ebp - 8]
movzx ecx, byte [eax]
test ecx, ecx
je 0x426a77
mov dword [ebp - 0x14], 0x4fde5c
jmp 0x426a7e
mov dword [ebp - 0x14], 0x4fde64
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
call fcn.00402870
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
jmp 0x426abc
push str.Type_is_not_convertible_to_string
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x4fde59
mov ecx, dword [ebp + 8]
call fcn.00402870
mov ecx, dword [ebp - 4]
or ecx, 1
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4