joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10770b8
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0xfffffffffffffff1
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov ecx, esi
call fcn.01073fea
mov ecx, esi
mov dword [esi + 4], eax
call fcn.01073e70
mov eax, dword [esi + 4]
xor edi, edi
inc edi
xor ebx, ebx
cmp eax, edi
je 0x1077108
cmp eax, 3
je 0x1077108
cmp eax, 2
jne 0x1077119
mov ecx, esi
call fcn.0107594f
cmp eax, ebx
jge 0x1077119
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
cmp dword [esi + 4], edi
jne 0x1077168
push ebx
push ebx
push 0x400
push dword [esi + 0xc]
mov dword [esi + 0x18], edi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x107715a
push ebx
push ebx
push dword [esi + 0xc]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x1077161
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [esi + 0x18], ebx
jne 0x1077133
jmp 0x1077168
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0xdc
call sub.d3d8.dll_Direct3DCreate8
cmp eax, ebx
mov dword [esi + 0x2354], eax
jne 0x1077188
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], 0x82000001
jmp 0x10771e7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
cmp eax, ebx
jl 0x107719e
mov ecx, esi
call fcn.010762e0
cmp eax, ebx
jge 0x10771a6
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
jmp 0x10771e7
xor edx, edx
cmp dword [esi + 0x2350], ebx
jbe 0x10771d4
lea ecx, [esi + 0x232c]
mov eax, dword [ecx]
cmp dword [eax + 0x2a40], ebx
jne 0x10771e0
cmp dword [eax + 0x2a48], ebx
jne 0x10771e0
inc edx
add ecx, 4
cmp edx, dword [esi + 0x2350]
jb 0x10771b6
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], 0x82000003
jmp 0x10771e7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x1077993
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x1084efc]
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x118]
push eax
mov esi, ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [ebp - 0x108], 1
sete al
xor edi, edi
cmp dword [esi + 4], 2
mov dword [esi + 0x20], eax
jne 0x1077a5f
cmp eax, edi
je 0x1077a5f
lea eax, [ebp - 0x120]
push eax
push 0x1005dd8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1077a5f
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x11c]
push eax
push edi
push edi
push 0x1005dac
push dword [ebp - 0x120]
mov dword [ebp - 0x124], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1077a5f
cmp dword [ebp - 0x11c], edi
je 0x1077a5f
push 0x1005d90
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [esi + 0x24], eax
je 0x1077a53
push 0x1005d7c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x28], eax
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
call fcn.01077c80
fstp st(0)
cmp dword [esi + 0x34], edi
jne 0x1077a8d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
cmp eax, edi
mov ecx, esi
jge 0x1077a84
push 1
push eax
call fcn.01075040
jmp 0x1077b03
call fcn.0107764b
cmp eax, edi
jl 0x1077b03
cmp dword [esi + 4], 2
jne 0x1077aa5
push edi
lea eax, [ebp - 0x11c]
push eax
push 1
push 0x61
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov dword [ebp - 0x13c], edi
push 1
push edi
push edi
push edi
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1077add
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1077af8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x34], edi
mov ecx, esi
je 0x1077af3
call fcn.010748ff
jmp 0x1077af8
call fcn.010747ca
cmp dword [ebp - 0x13c], 0x12
jne 0x1077aab
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01010358
leave
ret
Function at 0x107dd8b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x1090224]
mov eax, dword [0x1084efc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], edi
jae 0x107df71
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x1090240]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x424], ebx
je 0x107df71
and dword [ebp - 0x414], 0
and dword [ebp - 0x420], 0
cmp dword [ebp + 0x10], 0
jne 0x107ddfc
xor eax, eax
jmp 0x107df85
test al, 0x20
je 0x107de0f
push 2
push 0
push 0
push ecx
call fcn.0107e868
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x107decf
and dword [ebp - 0x40c], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x410], edi
jbe 0x107df4b
mov ecx, dword [ebp - 0x410]
xor edi, edi
sub ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x107de7e
mov edx, dword [ebp - 0x410]
inc dword [ebp - 0x410]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x107de6c
inc dword [ebp - 0x420]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x424]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x107de48
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x418]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x107defd
mov eax, dword [ebp - 0x418]
add dword [ebp - 0x414], eax
cmp eax, edi
jl 0x107df09
mov eax, dword [ebp - 0x410]
sub eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0x10]
jb 0x107de34
jmp 0x107df09
push 0
lea ecx, [ebp - 0x418]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x107defd
mov eax, dword [ebp - 0x418]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x414], eax
jmp 0x107df09
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x107df69
cmp dword [ebp - 0x40c], eax
je 0x107df45
push 5
pop eax
cmp dword [ebp - 0x40c], eax
jne 0x107df37
mov dword [0x108e67c], 9
mov dword [0x108e680], eax
jmp 0x107df82
push dword [ebp - 0x40c]
call fcn.0107e732
pop ecx
jmp 0x107df82
mov edi, dword [ebp - 0x41c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x107df5d
cmp byte [edi], 0x1a
je 0x107ddf5
mov dword [0x108e67c], 0x1c
jmp 0x107df7b
sub eax, dword [ebp - 0x420]
jmp 0x107df85
mov dword [0x108e67c], 9
and dword [0x108e680], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01010358
leave
ret
Function at 0x4628bf
Capabilities:
Encode data using xor

Disassembly:
mov dl, 0x13
mov byte [esi - 0x39], ch
push edx
std
sbb bh, byte [eax - 0x1b]
add cl, bh
lodsd eax, dword [esi]
dec ebp
stc
cmp eax, 0x93d93d1e
and eax, 0x6080c98c
sub byte [ebx + 0x3cdfa035], 0x32
fdivr st(4), st(0)
or eax, 0xf3e84b3a
xchg edx, eax
cli
mov dword [ecx - 0x6259bba8], 0x3b699029
lahf
jmp 0x462874

Function at 0x47dca6
Capabilities:
Encode data using xor

Disassembly:
or ecx, dword [eax + 0x259ebcd3]
add ebp, edi
xchg esi, eax
pop esp
sbb eax, 0xc5385aea
cdq
dec esp
xor ah, byte [eax + edx - 0x60]
mov word [eax - 0x6e], cs
mov esp, 0xb91a5872
jmp 0x47dd34
invalid

Function at 0x4d9c01
Capabilities:
Encode data using xor

Disassembly:
scasd eax, dword es:[edi]
mov dh, 0x1d
aaa
jno 0x4d9bdd
xor bl, ah
push 0xbcc55ae0
scasb al, byte es:[edi]
xor bh, byte [0xd7e116dd]
and edi, esi
mov eax, dword [0x6fadc7cc]
adc edx, edi
mov eax, 0x6f023aaa
sub eax, 0xec94c0e1
push es
lahf
invalid
jns 0x4d9bce
xchg byte [edx], ah
cmp ebp, dword [ebx]
shr byte [ebx + 0x14cab4c6], 1
xchg esp, eax
mov al, byte [0x12823d56]
xchg esp, eax
inc ebx
push esi
cmp eax, 0x43941282
popfd
push esi
bound edx, qword [ebx - 0x59]
std
sbb dh, bh
dec edx
loope 0x4d9bbf
daa
sub al, 0xab
test byte [esi + 0x53], dl
push eax
nop
jbe 0x4d9b5b
cmp dword [edi], ebp
sub ah, byte [ecx]
add cl, bh
and esp, edx
cmp bh, byte [edx]
or dh, byte [ebp + 0x6c3494f3]
xor al, 0x6c
inc edi
and dword [ecx + 0x39], edi
lcall 0x4046, 0x641cb2ab
stosd dword es:[edi], eax
mov dl, 0x1c
inc esi
inc eax
mov bl, 0xf
xor byte [eax + 0x5028ded9], dh
cmp al, 0x3e
sbb al, 0xb2
mov dl, 0x95
mov dl, 0x95
xlatb
pop esp
dec ebx
jp 0x4d9be9
lahf
xchg ecx, eax
shl esi, 1
mov al, 0xf9
aad 0x29
xchg edx, eax
jp 0x4d9bf0
and bh, byte [ecx + 0x430d0e64]
and esp, ebx
mov esp, 0xc51499ef
or eax, 0x9fd1ac87
jne 0x4d9bb1
push eax
mov bh, 0x14
rol byte [ecx + 0x1cde675a], 1
sbb bl, byte [edi + 0x57]
nop
sub dl, dl
popfd
xchg ebx, eax
jl 0x4d9c58
arpl dx, dx
test eax, 0x10e282fc
aam 0xfb
invalid
mov byte [0x4913554], al
loop 0x4d9c79
push 0x5a
pop edx
out 0xc3, al
adc al, 0x6a
outsd dx, dword [esi]
das
ljmp 0x3d0a
cmp al, 0x61
mov bl, 0xe5
fadd dword [edx]
dec esi
mov esp, 0x274df33c
pushfd
or eax, 0xed21f12b
sahf
shl esi, 0x6e
imul edx, esp, 0x77d7591a
mov ch, 0xad
sub dl, ah
cmp ecx, dword ss:[ecx + 0x11]
das
int 0x9b
jge 0x4d9cfa
wait
out 0xca, eax
or eax, dword ds:[edi - 0x4f]
jl 0x4d9cab
nop
lodsb al, byte [esi]
jge 0x4d9d21
inc byte [ebx + 0x45]
pop ds
lahf
mov dx, 0xc2c7
inc esp
dec ebx
scasb al, byte es:[edi]
mov cl, 0x69
push 0xaa503131
adc dword [ebp - 0x61c2d0e7], esi
invalid
cmpsb byte [esi], byte es:[edi]
pop es
add cl, dh
salc
sbb ah, byte [ebp + ecx*4 - 0x16324439]
stosb byte es:[edi], al
stc
or al, 0xc7
xchg esi, eax
nop
scasd eax, dword es:[edi]
cmp esp, ebp
aam 0x7c
int 0xd9
invalid
mov eax, dword [0x246a2fe2]
mov edx, 0x9f052f34
and esi, dword [ebx + 0x57686790]
xor al, 0xb5
lodsb al, byte [esi]
out 0xf8, eax
lds esp, gs:[eax]
dec ebx
invalid

Function at 0x50e3e5
Capabilities:
Encode data using xor

Disassembly:
popal
mov eax, dword [0x7b9b8bbe]
and eax, 0x94dd4a9e
invalid
Function at 0x402be0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
lea edi, [ebp + 8]
cmp byte [ecx + 0xb], 0
js 0x402bf6
je 0x402c24
mov eax, esi
jmp 0x402bfe
cmp dword [esi + 4], 0
je 0x402c24
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [esi + 0xb], 0
js 0x402c16
mov word [esi], 0
mov byte [esi + 0xb], 0
jmp 0x402c24
mov eax, dword [esi]
mov word [eax], 0
mov dword [esi + 4], 0
cmp esi, edi
je 0x402c68
cmp byte [esi + 0xb], 0
movzx eax, byte [edi + 0xb]
js 0x402c54
test al, al
jns 0x402c44
mov ecx, esi
push dword [edi + 4]
push dword [edi]
call fcn.00409790
jmp 0x402c68
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
movsd xmm0, qword [edi]
movsd qword [esi], xmm0
jmp 0x402c68
mov edx, edi
test al, al
jns 0x402c5f
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov ecx, esi
push eax
push edx
call fcn.00409680
cmp byte [edi + 0xb], 0
jns 0x402c78
push dword [edi]
call fcn.0040bcd2
add esp, 4
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x403c20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x18]
mov dword [edx - 4], esp
mov dword [edx + 8], 0xffffffff
mov dword [edx + 4], 0x4091e0
mov eax, dword fs:[0]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
mov dword fs:[0], edx
test byte [eax + 4], 1
jne 0x403c83
mov dl, byte [ebp + 0x14]
movzx esi, byte [ebp + 0x18]
mov edi, dword [ecx]
movsx edx, dl
push esi
push edx
push eax
push dword [ebp + 0xc]
push ebx
call dword [edi + 0x18]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x20], ecx
lea esi, [ebp - 0x2c]
mov ecx, eax
push esi
call fcn.00409d70
mov dword [ebp - 0x10], 0
mov ecx, esi
push 0x452dd8
call fcn.0040aa40
mov esi, eax
mov ecx, dword [ebp - 0x2c]
xor edi, edi
dec edi
mov eax, edi
lock xadd dword [ecx + 4], eax
test eax, eax
jne 0x403cbf
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov eax, dword [esi]
mov cl, byte [ebp + 0x18]
xor cl, 1
movzx ecx, cl
mov eax, dword [eax + ecx*4 + 0x14]
mov dword [ebp - 0x10], edi
mov ecx, esi
lea edx, [ebp - 0x2c]
push edx
call eax
movzx eax, byte [ebp - 0x21]
test al, al
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov esi, eax
cmovs esi, edx
test esi, esi
je 0x403d76
test al, al
lea esi, [ebp - 0x2c]
cmovs esi, ecx
mov dword [ebp - 0x30], esi
cmp dword [ebp - 0x20], 0
je 0x403d59
mov eax, dword [ebp - 0x30]
mov cl, byte [eax]
movzx eax, cl
mov esi, dword [ebp - 0x20]
mov edx, dword [esi + 0x18]
cmp edx, dword [esi + 0x1c]
je 0x403d62
lea esi, [edx + 1]
mov edi, dword [ebp - 0x20]
mov dword [edi + 0x18], esi
mov byte [edx], cl
xor esi, esi
cmp eax, 0xffffffff
je 0x403d30
mov esi, dword [ebp - 0x20]
mov al, byte [ebp - 0x21]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x20], esi
mov ebx, dword [ebp - 0x30]
inc ebx
test al, al
lea esi, [ebp - 0x2c]
cmovs esi, ecx
movzx edi, al
cmovs edi, edx
add edi, esi
mov dword [ebp - 0x30], ebx
cmp ebx, edi
jne 0x403d02
jmp 0x403d76
mov dword [ebp - 0x20], 0
jmp 0x403d3c
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
mov dword [ebp - 0x10], 1
push eax
call edx
jmp 0x403d26
shr al, 7
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x20]
mov dword [edx], esi
test al, al
je 0x403d8e
push ecx
call fcn.0040bcd2
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
jmp 0x403c79

Function at 0x4249d5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004249e0

Function at 0x427c7c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00427c87
Function at 0x42f530
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x20], ecx
mov eax, dword [0x450014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
xor eax, eax
dec eax
mov dword [ecx - 4], eax
mov dword [ecx - 8], eax
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x1c], 0xffffffff
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x18]
push edx
push dword [edi + 0x28]
call dword [eax + 0x10]
mov ebx, eax
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
sub esi, eax
push dword [edi + 0x20]
push esi
push 1
push eax
call fcn.0041c1f9
add esp, 0x10
cmp eax, esi
jne 0x42f5b3
cmp ebx, 1
je 0x42f555
cmp ebx, 2
mov esi, 0xffffffff
je 0x42f5b6
mov eax, dword [ebp - 0x20]
push dword [eax + 0x20]
call fcn.0041be96
add esp, 4
neg eax
sbb esi, esi
jmp 0x42f5b6
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c1d8
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x42f5d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp byte [ecx + 0x2c], 0
je 0x42f5f9
push dword [ecx + 0x20]
push esi
push 1
push eax
call fcn.0041c1f9
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 8
test esi, esi
jle 0x42f621
mov dword [ebp - 0x10], ecx
xor edi, edi
mov ebx, eax
movzx eax, byte [eax + edi]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
call dword [edx + 0x30]
cmp eax, 0xffffffff
je 0x42f623
inc edi
cmp esi, edi
mov eax, ebx
jne 0x42f602
mov edi, esi
jmp 0x42f623
xor edi, edi
mov eax, edi
add esp, 4
jmp 0x42f5f2
Function at 0x42f630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, dword [ebp + 8]
mov eax, dword [0x450014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
cmp ebx, eax
je 0x42f67d
mov edi, ecx
mov byte [ebp - 0x19], bl
cmp byte [ecx + 0x2c], 0
je 0x42f697
xor esi, esi
inc esi
lea eax, [ebp - 0x19]
push dword [edi + 0x20]
push esi
push esi
push eax
call fcn.0041c1f9
add esp, 0x10
cmp eax, esi
mov esi, 0xffffffff
je 0x42f67f
jmp 0x42f681
xor ebx, ebx
mov esi, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c1d8
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 4
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x20]
mov dword [ecx], eax
lea esi, [ebp - 0x19]
mov dword [ebp - 0x24], 0xffffffff
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x18]
push edx
push esi
push dword [edi + 0x28]
call dword [eax + 8]
cmp dword [ebp - 0x24], esi
je 0x42f71a
mov ebx, eax
cmp eax, 3
je 0x42f705
cmp ebx, 1
ja 0x42f71a
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
sub esi, eax
push dword [edi + 0x20]
push esi
push 1
push eax
call fcn.0041c1f9
add esp, 0x10
cmp eax, esi
jne 0x42f71a
mov esi, dword [ebp - 0x24]
cmp ebx, 1
je 0x42f6a2
mov ebx, dword [ebp + 8]
jmp 0x42f67f
xor ebx, ebx
inc ebx
push dword [edi + 0x20]
push ebx
push ebx
push esi
call fcn.0041c1f9
add esp, 0x10
cmp eax, ebx
je 0x42f6fd
xor esi, esi
dec esi
jmp 0x42f681

Function at 0x42f760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp byte [ecx + 0x2c], 0
je 0x42f789
push dword [ecx + 0x20]
push esi
push 2
push eax
call fcn.0041c1f9
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 8
test esi, esi
jle 0x42f7b2
mov dword [ebp - 0x10], ecx
xor edi, edi
mov ebx, eax
movzx eax, word [eax + edi*2]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
call dword [edx + 0x30]
cmp ax, 0xffff
je 0x42f7b4
inc edi
cmp esi, edi
mov eax, ebx
jne 0x42f792
mov edi, esi
jmp 0x42f7b4
xor edi, edi
mov eax, edi
add esp, 4
jmp 0x42f782
Function at 0x42f7c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
movzx esi, word [ebp + 8]
mov eax, dword [0x450014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
cmp si, 0xffff
je 0x42f80f
mov edi, ecx
mov word [ebp - 0x1a], si
cmp byte [ecx + 0x2c], 0
je 0x42f827
lea eax, [ebp - 0x1a]
push dword [edi + 0x20]
push 1
push 2
push eax
call fcn.0041c1f9
add esp, 0x10
cmp eax, 1
je 0x42f811
xor esi, esi
dec esi
jmp 0x42f811
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c1d8
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 4
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x20]
mov dword [ecx], eax
lea esi, [ebp - 0x1a]
mov dword [ebp - 0x24], 0xffffffff
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x18]
push edx
push esi
push dword [edi + 0x28]
call dword [eax + 8]
cmp dword [ebp - 0x24], esi
je 0x42f80a
mov ebx, eax
cmp eax, 3
je 0x42f896
cmp ebx, 1
ja 0x42f80a
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
sub esi, eax
push dword [edi + 0x20]
push esi
push 1
push eax
call fcn.0041c1f9
add esp, 0x10
cmp eax, esi
jne 0x42f80a
mov esi, dword [ebp - 0x24]
cmp ebx, 1
je 0x42f832
movzx esi, word [ebp + 8]
jmp 0x42f811
xor ebx, ebx
inc ebx
push dword [edi + 0x20]
push ebx
push ebx
push esi
call fcn.0041c1f9
add esp, 0x10
cmp eax, ebx
jne 0x42f80a
jmp 0x42f88d
Function at 0x4348e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x18]
mov dword [edx - 4], esp
mov dword [edx + 8], 0xffffffff
mov dword [edx + 4], 0x409260
mov eax, dword fs:[0]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
mov dword fs:[0], edx
test byte [eax + 4], 1
jne 0x43493f
movzx edx, word [ebp + 0x14]
movzx esi, byte [ebp + 0x18]
mov edi, dword [ecx]
movzx edx, dx
push esi
push edx
push eax
push dword [ebp + 0xc]
push ebx
call dword [edi + 0x18]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
jmp 0x434a79
lea esi, [ebp - 0x2c]
mov ecx, eax
push esi
call fcn.00409d70
mov dword [ebp - 0x10], 0
mov ecx, esi
push 0x452de0
call fcn.0040aa40
mov esi, eax
mov ecx, dword [ebp - 0x2c]
xor edi, edi
dec edi
mov eax, edi
lock xadd dword [ecx + 4], eax
test eax, eax
mov bl, byte [ebp + 0x18]
jne 0x434978
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov eax, dword [esi]
xor bl, 1
movzx ecx, bl
mov eax, dword [eax + ecx*4 + 0x14]
mov dword [ebp - 0x10], edi
mov ecx, esi
lea ebx, [ebp - 0x2c]
push ebx
call eax
movzx edx, byte [ebp - 0x21]
test dl, dl
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov esi, edx
cmovs esi, eax
test esi, esi
je 0x434a83
mov esi, ebx
mov ebx, eax
mov dword [ebp - 0x34], edx
test dl, dl
mov dword [ebp - 0x20], edi
cmovns edi, esi
mov ecx, dword [ebp + 0xc]
mov eax, esi
test ecx, ecx
je 0x434a1e
movzx eax, word [edi]
mov esi, dword [ecx + 0x18]
cmp esi, dword [ecx + 0x1c]
je 0x434a31
lea edx, [esi + 2]
mov dword [ecx + 0x18], edx
mov word [esi], ax
xor esi, esi
cmp ax, 0xffff
je 0x4349e7
mov esi, ecx
mov bl, byte [ebp - 0x21]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x30], esi
lea esi, [ebp - 0x2c]
add edi, 2
test bl, bl
mov eax, esi
mov dword [ebp - 0x20], edx
cmovs esi, edx
mov edx, edi
mov dword [ebp - 0x34], ebx
movzx edi, bl
mov ebx, ecx
cmovs edi, ecx
lea esi, [esi + edi*2]
mov edi, edx
cmp edx, esi
mov ecx, dword [ebp - 0x30]
jne 0x4349c5
jmp 0x434a51
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x20]
mov ecx, ebx
mov ebx, dword [ebp - 0x34]
mov esi, eax
jmp 0x4349f6
mov dword [ebp - 0x20], edi
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
mov dword [ebp - 0x10], 1
movzx eax, ax
mov dword [ebp - 0x30], ecx
push eax
call edx
mov ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x20]
jmp 0x4349dd
mov edx, dword [ebp - 0x34]
shr dl, 7
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
test dl, dl
je 0x434a6f
push edi
call fcn.0040bcd2
mov eax, dword [ebp + 8]
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
shr dl, 7
mov ecx, dword [ebp + 0xc]
jmp 0x434a5a