joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5703a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58d8c9
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x5ebfc4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [edi + 0xd4]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x210]
push 0x100
push eax
push str.Test_Unit
push str.TEST_UNIT
push 0x5c3f38
call esi
lea eax, [ebp - 0x210]
push eax
lea ecx, [edi + 0x2bb0]
call fcn.00561bc0
push dword [edi + 0xd4]
lea eax, [ebp - 0x210]
push 0x100
push eax
push str.Test_Count
push str.TEST_COUNT
push 0x5c3f74
call esi
lea eax, [ebp - 0x210]
push eax
lea ecx, [edi + 0x2d40]
call fcn.00561bc0
push dword [edi + 0xd4]
lea eax, [ebp - 0x210]
push 0x100
push eax
push str.Test_Size
push str.TEST_SIZE
push 0x5c3fa8
call esi
lea eax, [ebp - 0x210]
push eax
lea ecx, [edi + 0x2ed0]
call fcn.00561bc0
cmp dword [edi + 0x568], 0
je 0x5704b2
push dword [edi + 0xd4]
lea eax, [ebp - 0x210]
push 0x100
push eax
push str.Mix_Ratio
push str.TEST_MIX
push 0x5c3fdc
call esi
lea eax, [ebp - 0x210]
push eax
lea ecx, [edi + 0xf48]
call fcn.00561bc0
mov eax, dword [edi + 0x3190]
sub eax, 0x10
push eax
call fcn.00401f10
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x214], esi
push esi
lea ecx, [edi + 0x3060]
mov dword [ebp - 4], 0
call fcn.00561bc0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x570520
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x5940e4
jne 0x57053b
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x57053b
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053c0f2
mov esp, ebp
pop ebp
ret
call edx
jmp 0x570520
Function at 0x576320
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 0xc]
push ebx
push esi
push edi
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
push str.Alpha
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp + 8]
or esi, 0xffffffff
mov bl, al
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
test ecx, ecx
jg 0x576390
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov edi, dword [eax + 4]
mov dword [ebp + 0xc], edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, 0x5940e4
jne 0x5763dc
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edi, dword [eax + 4]
mov dword [ebp + 0xc], edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5763d7
push 0
push dword [ecx + 4]
call edi
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], esi
dec esi
test esi, esi
jg 0x5763ce
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x5940e4
jne 0x5763e1
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5763e1
push 0
push dword [edx + 4]
call edi
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 0xc
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 0xc
call dword [ebp + 0xc]
jmp 0x576390
call dword [ebp + 0xc]
jmp 0x576390
mov ecx, edx
call esi
jmp 0x5763ce

Function at 0x5763f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
movzx ecx, byte [ebp + 0xc]
push ebx
push esi
mov eax, ecx
shl eax, 8
push edi
push dword [ebp + 0x10]
or eax, ecx
shl eax, 8
or eax, ecx
push eax
push dword [ebp + 8]
push str.Color
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
movzx esi, al
or edi, 0xffffffff
movzx ecx, ax
shl esi, 8
shr ecx, 8
or esi, ecx
shr eax, 0x10
mov ecx, dword [ebp + 8]
movzx eax, al
add ecx, 0xfffffff0
shl esi, 8
or esi, eax
mov eax, edi
lock xadd dword [ecx + 0xc], eax
dec eax
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jg 0x576483
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp + 0xc], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, 0x5940e4
jne 0x5764d2
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp + 0xc], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5764cb
push 0
push dword [edx + 4]
call ebx
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x5764c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov edi, dword [eax + 4]
cmp eax, 0x5940e4
jne 0x5764db
mov eax, dword [ecx + 4]
mov ecx, dword [eax]
mov edi, dword [ecx + 4]
cmp ecx, vtable.ATL::CWin32Heap.0
jne 0x5764d9
push 0
push dword [eax + 4]
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc
mov ecx, edx
call dword [ebp + 0xc]
jmp 0x576483
mov ecx, edx
call dword [ebp + 0xc]
jmp 0x576483
mov ecx, eax
call edi
jmp 0x5764c2
Function at 0x57dfb0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5ebfc4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x210], 0
push edi
mov word [ebp - 0x204], ax
mov esi, ecx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x208], 0
push eax
push esi
mov ebx, edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
xor ecx, ecx
mov dword [ebp - 0x20c], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004063d0
add esp, 4
mov edi, eax
push edi
push dword [ebp - 0x20c]
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x57e0d6
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x208]
push eax
push 0x5c91c4
push edi
call esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x208]
push eax
push 0x5c91c8
push edi
call esi
mov eax, dword [ebp - 0x208]
push str.FileVersion
mov ecx, dword [eax]
mov eax, ecx
shr eax, 0x10
push eax
movzx eax, cx
push eax
lea eax, [ebp - 0x204]
push str.StringFileInfo_04X_04X_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push edi
call esi
push dword [ebp - 0x208]
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.0054548f
add esp, 0xc
test ebx, ebx
je 0x57e0d6
push dword [ebp - 0x208]
push 0x100
push ebx
call fcn.0054548f
add esp, 0xc
push edi
call fcn.004063cb
add esp, 4
lea eax, [ebp - 0x204]
mov ecx, 0x5c924c
pop edi
pop esi
pop ebx
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x57e116
test dx, dx
je 0x57e112
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x57e116
add eax, 4
add ecx, 4
test dx, dx
jne 0x57e0f0
xor eax, eax
jmp 0x57e11b
sbb eax, eax
or eax, 1
test eax, eax
je 0x57e147
lea eax, [ebp - 0x204]
push eax
call fcn.005495f9
fmul qword [0x5cd3a8]
add esp, 4
call fcn.0053cb40
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053c0f2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0053c0f2
mov esp, ebp
pop ebp
ret
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
pop eax
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x4018c0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00402630
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00402630
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401920
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x406074]
test esi, esi
jle 0x401a40
mov eax, dword [0x406078]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401954
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4019d7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401940
mov dword [esp], ebx
call fcn.00402310
mov edi, eax
test eax, eax
je 0x401a67
mov eax, dword [0x406078]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402450
mov edx, dword [0x406078]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401a47
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4019d0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4019e0
add dword [0x406074], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x406078]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4019d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004018c0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40195e
mov eax, dword [0x406078]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004018c0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004018c0
lea esi, [esi]
nop
Function at 0x401f80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406090
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406088]
sub esp, 4
test ebx, ebx
je 0x401fd5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401fce
test esi, esi
je 0x401fce
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401fb0
mov dword [esp], 0x406090
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402310
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402335
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402340
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402335
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402388
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40237e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40238a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402370
xor eax, eax
pop ebx
pop esi
ret
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
pop eax
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219

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
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219

Function at 0x430ba0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
cmp dword [ebp + 0xc], 1
jne 0x430bb5
mov eax, dword [0x440820]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x10], 1
jne 0x430bc4
mov ecx, dword [0x440804]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 4], 0
jmp 0x430bd6
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [0x440838]
jae 0x430c51
mov ecx, dword [ebp - 4]
mov edx, dword [0x440814]
movzx eax, word [edx + ecx*2]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xc]
shr edx, 0xc
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 3
jne 0x430c4c
cmp dword [ebp - 4], 0
jne 0x430c21
push 0x1429
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x430c21
xor eax, eax
jmp 0x430c51
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax]
mov edx, dword [ebp - 0x10]
and edx, 0xfff
mov eax, dword [ecx + edx]
add eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
and ecx, 0xfff
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
add esi, dword [edx]
mov dword [esi + ecx], eax
jmp 0x430bcd
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
call 0x43200c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10038230
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0xac
mov dword [ebp - 8], 0
jmp 0x10038252
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x11
jge 0x10038291
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx - 0x2d5a7047]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x1003828c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x10038249
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x11], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x100382b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x62
mov dword [ebp - 8], 0
jmp 0x100382d2
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 7
jge 0x10038311
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx + 0x526e6022]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x1003830c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x100382c9
mov eax, dword [ebp - 0xc]
mov byte [eax + 7], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10038330
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x54
mov dword [ebp - 8], 0
jmp 0x10038352
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xb
jge 0x10038391
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx + 0x7ed1f849]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x1003838c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x10038349
mov eax, dword [ebp - 0xc]
mov byte [eax + 0xb], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x100383b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x3e
mov dword [ebp - 8], 0
jmp 0x100383d2
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 9
jge 0x10038411
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx - 0x18d3d68d]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
invalid
Function at 0x100042f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x10004317
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100048bd
jmp 0x100043db
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x1000433f
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10004345
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x100043cf
jg 0x1000435c
test esi, esi
je 0x100043cf
test ecx, ecx
jl 0x100043b2
jg 0x10004366
test eax, eax
je 0x100043b2
cmp edi, ecx
jg 0x1000437a
jl 0x10004370
cmp esi, eax
jae 0x1000437a
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call fcn.100252e0
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
add edx, ecx
sub esi, ecx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x100043cf
jg 0x100043b5
test esi, esi
je 0x100043cf
jmp 0x100043b5
mov edx, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x100043cf
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.10029232
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100043e4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
test esi, esi
jg 0x1000440e
jl 0x10004405
test ebx, ebx
jne 0x1000440e
xor eax, eax
xor edx, edx
jmp 0x100044c6
cmp dword [ecx + 0x38], 0
je 0x10004421
push esi
push ebx
push edx
call fcn.1000499d
jmp 0x100044c6
mov eax, dword [ecx + 0x1c]
push edi
mov edi, ebx
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10004461
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jbe 0x10004461
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push dword [ebp - 0xc]
push edx
call fcn.100252e0
mov ecx, dword [ebp - 8]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
cmp dword [ecx + 0x4c], 0
je 0x100044bc
call fcn.10004f75
mov ecx, dword [ebp - 4]
mov edx, edi
cmp edi, 0xfff
jbe 0x100044a4
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push 0xfff
push 1
push ecx
call fcn.10029a15
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x100044bc
jmp 0x10004471
test edx, edx
je 0x100044bc
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push edi
push 1
push ecx
call fcn.10029a15
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100046fb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1005a240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x10004721
xor eax, eax
jmp 0x100047e6
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x1000474a
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x1000474a
dec dword [edx]
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
mov eax, ebx
jmp 0x100047e6
cmp dword [esi + 0x4c], 0
je 0x100047e4
mov ecx, esi
call fcn.10004f75
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x10004776
push dword [esi + 0x4c]
push eax
call fcn.1000293c
test al, al
pop ecx
pop ecx
cmove ebx, edi
jmp 0x10004743
mov byte [ebp - 0x28], al
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x100047b4
sub eax, 1
je 0x100047b4
dec eax
sub eax, 1
jne 0x100047e4
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x10004768
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x100047d7
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.10029232
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x100047e4
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
cmovne edi, ebx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a2f4
leave
ret 4

Function at 0x10004fc3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1005a240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x1000501c
cmp byte [esi + 0x3d], bl
je 0x1000501c
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10005055
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, ebx
je 0x1000502d
sub eax, 1
je 0x10005030
dec eax
sub eax, 1
jne 0x10005055
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a2f4
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000504d
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10029232
add esp, 0x10
cmp edi, eax
jne 0x10005055
cmp byte [esi + 0x3d], bl
sete al
jmp 0x1000501e
xor al, al
jmp 0x1000501e