joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001275
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.01003920
mov eax, dword [0x1005038]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
je 0x100134d
mov eax, ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10012ab
sub eax, ecx
mov dword [ebp - 0x2008], eax
lea eax, [eax + eax + 2]
push eax
push 0
call esi
push eax
call edi
test eax, eax
mov dword [ebp - 0x200c], eax
je 0x100134d
mov ecx, dword [ebp - 0x2008]
push ecx
push ebx
lea edx, [ebp - 0x2008]
push edx
add ecx, ecx
push ecx
push eax
call dword [sym.imp.ntdll.dll_RtlMultiByteToUnicodeN]
test eax, eax
jl 0x100133c
push dword [ebp - 0x2008]
lea eax, [ebp - 0x2008]
push dword [ebp - 0x200c]
push eax
push 0x1fff
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeToOemN]
test eax, eax
jl 0x100133c
mov eax, dword [ebp - 0x2008]
mov byte [ebp + eax - 0x2004], 0
lea eax, [ebp - 0x2004]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
pop ecx
pop ecx
push dword [ebp - 0x200c]
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x100135a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
push ecx
push ecx
lea edx, [ebp - 0x2010]
push edx
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [ebp - 0x2008], eax
lea eax, [eax + eax + 2]
push eax
push 0
call esi
push eax
call edi
mov esi, eax
test esi, esi
je 0x1001402
mov eax, dword [ebp - 0x2008]
push eax
push dword [ebp - 0x2010]
lea ecx, [ebp - 0x2008]
push ecx
add eax, eax
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlMultiByteToUnicodeN]
test eax, eax
jl 0x1001402
push dword [ebp - 0x2008]
lea eax, [ebp - 0x2008]
push esi
push eax
push 0x1fff
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeToOemN]
test eax, eax
jl 0x1001402
mov eax, dword [ebp - 0x2008]
mov byte [ebp + eax - 0x2004], 0
lea eax, [ebp - 0x2004]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
pop ecx
pop ecx
push 1
call dword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x1001498
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push esi
push 0x1ce8
call fcn.01001410
mov esi, dword [sym.imp.msvcrt.dll_fprintf]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0x1001140
push eax
call esi
add esp, 0xc
push 0x1cf7
call fcn.01001410
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0x100113c
push eax
call esi
add esp, 0xc
push 0
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x1001519
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.01001410
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x100113c
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x1001765
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1007628]
push ebx
push esi
xor ebx, ebx
cmp eax, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
je 0x10017ae
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x1007634], eax
jne 0x10017b7
push ebx
push dword [0x1007628]
call fcn.01001275
push 0xfffffffffffffff6
call edi
mov dword [0x1007634], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetFileType]
push eax
call esi
cmp eax, 1
mov dword [0x10071d8], eax
jne 0x1001803
lea eax, [ebp - 4]
push eax
push dword [0x1007634]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 1
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.01003970
xor ecx, ecx
add eax, dword [ebp - 8]
mov dword [0x1007148], ebx
adc edx, ecx
mov dword [0x1005028], eax
mov dword [0x100502c], edx
jmp 0x100181b
or dword [0x1005028], 0xffffffff
or dword [0x100502c], 0xffffffff
mov dword [0x1007148], 0x1000
cmp dword [0x10071f8], ebx
jne 0x100184d
push 0xfffffffffffffff5
call edi
push eax
mov dword [0x1007134], eax
call esi
cmp eax, 2
mov dword [0x10071f0], eax
jne 0x1001857
lea eax, [ebp - 0xc]
push eax
push dword [0x1007134]
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jne 0x1001857
mov dword [0x10071f0], 1
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor esi, esi
push ebx
push ebx
push 1
push ebx
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x1007658], eax
call edi
mov dword [esi + 0x10070b8], eax
add esi, 0x1c
cmp esi, 0x38
jl 0x100185f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001c77
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x10075ec], edi
je 0x1001dd9
mov ecx, dword [0x1005024]
mov esi, dword [0x100710c]
mov eax, dword [0x10070f0]
lea edx, [ecx + esi]
cmp eax, edx
mov ebx, 0x1007640
jge 0x1001d76
mov edi, dword [0x10071e4]
cmp edi, dword [0x100502c]
jg 0x1001d76
jl 0x1001cd5
mov edx, dword [0x10071e0]
cmp edx, dword [0x1005028]
jae 0x1001d76
cdq
idiv ecx
mov eax, dword [0x10071e0]
mov esi, edx
imul esi, esi, 0x1c
add esi, ebx
push dword [esi + 0x18]
mov dword [esi + 0x10], eax
mov eax, edi
sar eax, 0x1f
mov eax, dword [0x1007148]
mov dword [esi + 0x14], edi
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
push eax
mov eax, dword [0x10070f0]
cdq
idiv dword [0x1005024]
push dword [esi]
push dword [edx*4 + 0x10070f8]
push dword [0x1007634]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001d3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1001dcf
mov eax, dword [esi]
mov edi, dword [0x10071e4]
mov ecx, dword [0x1005024]
mov esi, dword [0x100710c]
cdq
add dword [0x10071e0], eax
mov eax, dword [0x10070f0]
adc edi, edx
inc eax
lea edx, [ecx + esi]
cmp eax, edx
mov dword [0x10071e4], edi
mov dword [0x10070f0], eax
jl 0x1001cb5
cmp esi, eax
jge 0x1001e46
mov eax, esi
cdq
idiv ecx
imul edx, edx, 0x1c
add edx, ebx
lea edi, [edx + 4]
cmp dword [edi], 0
jne 0x1001db3
push 1
push edi
add edx, 8
push edx
push dword [0x1007634]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1001dcf
mov esi, dword [0x100710c]
mov ecx, dword [0x1005024]
mov eax, esi
cdq
idiv ecx
mov edi, dword [edi]
inc esi
mov dword [0x100710c], esi
mov eax, dword [edx*4 + 0x10070f8]
mov dword [0x1007100], eax
jmp 0x1001e36
push 0
push dword [0x1007628]
jmp 0x1001e1f
mov eax, dword [0x10070f8]
push edi
lea ecx, [ebp - 4]
push ecx
push dword [0x1007148]
mov dword [0x1007100], eax
push eax
push dword [0x1007634]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001e24
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x1001e27
mov eax, dword [0x1007628]
cmp eax, edi
jne 0x1001e1d
push 0x1cf5
call fcn.01001410
push edi
push eax
call fcn.01001275
mov edi, dword [ebp - 4]
mov eax, edi
cdq
add dword [0x10071e0], eax
adc dword [0x10071e4], edx
mov eax, dword [0x1007100]
add eax, edi
test edi, edi
mov dword [0x1007150], eax
jne 0x1001e52
mov dword [0x10075f8], 1
jmp 0x1001e61
mov eax, edi
cdq
add dword [0x1007078], eax
adc dword [0x100707c], edx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001f2b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x1007128]
push esi
push edi
mov eax, ecx
cdq
push 2
pop esi
idiv esi
mov eax, dword [0x1007120]
xor edi, edi
mov esi, edx
imul esi, esi, 0x1c
add esi, 0x10070a0
mov dword [esi + 0x10], eax
mov eax, dword [0x1007124]
mov edx, eax
mov dword [esi + 0x14], eax
mov eax, dword [0x10071b4]
sar edx, 0x1f
cmp dword [0x10075f4], edi
mov dword [esi], eax
jne 0x1001fc7
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
push eax
push dword [esi]
mov eax, dword [0x1007128]
push 2
pop ecx
cdq
idiv ecx
push dword [edx*4 + 0x1007138]
push dword [0x1007084]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100209b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x100209b
push edi
push 0x1007200
jmp 0x10020d2
cmp dword [0x1007630], edi
je 0x1002067
cdq
idiv dword [0x10071a4]
test edx, edx
je 0x1002019
push dword [0x1007134]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov eax, 0x40000000
push eax
push 4
push edi
push 1
push eax
push dword [0x10071f8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x1007134], eax
jne 0x1002019
push edi
push dword [0x10071f8]
jmp 0x10020d2
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
push eax
mov eax, dword [0x1007128]
cdq
idiv dword [0x1005030]
push dword [esi]
push dword [edx*4 + 0x1007138]
push dword [0x1007134]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100209b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x100209b
mov eax, dword [0x10071f8]
cmp eax, edi
jne 0x10020d0
jmp 0x10020c6
push edi
lea edx, [ebp - 4]
push edx
push eax
mov eax, ecx
cdq
idiv dword [0x1005030]
push dword [edx*4 + 0x1007138]
push dword [0x1007134]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10020bd
mov eax, dword [ebp - 4]
cmp eax, dword [0x10071b4]
jne 0x10020bd
mov dword [esi + 4], eax
mov eax, dword [0x10071b4]
cdq
add dword [0x1007120], eax
mov dword [0x10071b4], edi
pop edi
adc dword [0x1007124], edx
inc dword [0x1007128]
pop esi
leave
ret
mov eax, dword [0x10071f8]
cmp eax, edi
jne 0x10020d0
push 0x1cf6
call fcn.01001410
push edi
push eax
call fcn.01001275
int3
Function at 0x1002299
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3ec
mov eax, dword [0x1005038]
mov dword [ebp - 4], eax
xor eax, eax
inc eax
cmp dword [0x10071a0], eax
je 0x1002350
push ebx
mov dword [0x10071a0], eax
mov eax, dword [0x10071a8]
xor ebx, ebx
cmp eax, ebx
push esi
je 0x100231f
lea edx, [ebp - 0x3ec]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x10022d5
mov esi, 0x1007200
push esi
push ebx
push 0x10011c0
lea eax, [ebp - 0x3ec]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push ebx
push 0x64000000
push 2
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x1007084], eax
jne 0x100233d
push ebx
push esi
call fcn.01001275
lea eax, [ebp - 0x3ec]
push eax
push 0x3e7
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x10022df
push ebx
push 0x10011b4
jmp 0x100231a
lea eax, [ebp - 0x3ec]
push eax
call fcn.010021fc
pop esi
mov dword [0x10071f4], eax
pop ebx
mov ecx, dword [ebp - 4]
call fcn.0100367a
leave
ret

Function at 0x100235f
Capabilities:
Get memory capacity

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push dword [0x1007634]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x10071ac]
xor ebx, ebx
xor esi, esi
inc ebx
cmp dword [0x10071f0], ebx
mov dword [0x1007120], esi
mov dword [0x1007124], esi
mov dword [0x10070e4], eax
je 0x10023ab
mov ecx, 0x1000
cmp eax, ecx
jl 0x10023a7
mov dword [0x10070e4], ecx
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp dword [0x10071a0], esi
mov eax, dword [0x10071f8]
jne 0x10023e1
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [0x100707c]
ja 0x10023f7
jb 0x10023e1
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [0x1007078]
jae 0x10023f7
cmp eax, esi
jne 0x10023f1
push 0x1cf2
call fcn.010014eb
jmp 0x10023a7
mov dword [0x1007630], ebx
cmp eax, esi
je 0x10023a7
cmp dword [0x1007630], esi
je 0x100242f
push eax
mov dword [0x1005030], 2
call fcn.010021fc
push esi
push 0x60000000
push 2
push esi
push ebx
push 0x40000000
push dword [0x10071f8]
mov dword [0x10071a4], eax
jmp 0x100243f
push esi
push 0x80
push 2
push esi
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x1007134], eax
jne 0x10023a7
push esi
push dword [0x10071f8]
call fcn.01001275
int3
Function at 0x1002ddc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [0x10070e0]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x4c]
mov esi, dword [edi + 0x1c]
imul eax, ebx
cdq
mov ecx, eax
add ecx, dword [edi + 8]
mov eax, dword [edi + 0x18]
adc edx, dword [edi + 0xc]
sub eax, ecx
mov dword [ebp - 8], eax
sbb esi, edx
mov eax, ebx
mov dword [ebp - 0xc], edx
cdq
cmp edx, esi
jl 0x1002e32
jg 0x1002e1d
cmp eax, dword [ebp - 8]
jbe 0x1002e32
mov ebx, dword [edi + 0x18]
mov eax, dword [0x10071f4]
sub ebx, ecx
lea edx, [eax - 1]
and edx, ebx
je 0x1002e32
sub eax, edx
add ebx, eax
mov eax, dword [0x10070f0]
push 2
cdq
pop esi
idiv esi
mov eax, dword [ebp - 0xc]
mov esi, edx
imul esi, esi, 0x1c
add esi, 0x1007640
push dword [esi + 0x18]
mov dword [esi + 0x10], ecx
mov ecx, eax
sar ecx, 0x1f
mov dword [esi + 0x14], eax
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
push eax
push dword [esi]
mov eax, dword [edi + 0x4c]
push 2
pop ecx
cdq
idiv ecx
push dword [edi + edx*4 + 0x20]
push dword [0x1007084]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
pop edi
pop esi
pop ebx
jne 0x1002ea4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1002ea4
push 0
push 0x1007200
call fcn.01001275
inc dword [0x10070f0]
leave
ret 4
Function at 0x1003792
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10011e0
call fcn.01003ab8
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10037cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10037cd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10037e5
cmp eax, 0x20b
je 0x10037d2
mov dword [ebp - 0x1c], edi
jmp 0x10037f9
cmp dword [ecx + 0x84], 0xe
jbe 0x10037cd
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10037f3
cmp dword [ecx + 0x74], 0xe
jbe 0x10037cd
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100767c], 0xffffffff
or dword [0x1007680], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1007070]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100706c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1007684], eax
call fcn.01003aae
cmp dword [0x1005040], edi
jne 0x1003854
push fcn.01003aae
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01003a97
push 0x1005010
push 0x100500c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1007068]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1007064]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x1005008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100354e
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x10038cb
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1003900
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01003af3
ret
Function at 0x4187f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x493ba8]
xor edx, edx
cmp eax, edx
jne 0x418816
xor eax, eax
mov byte [eax + 0x493aa8], al
inc eax
cmp eax, 0x100
jl 0x4187fe
mov dword [0x493ba8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x493aa8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4188a7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41887a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x418848
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x418920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x418973
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41895a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41cc10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x41ce31
cmp eax, 8
jg 0x41ce31
cmp dword [esp + 0x8c], 2
jl 0x41ce31
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x41ce31
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x41ce31
mov eax, dword [esp + 0x80]
test eax, eax
je 0x41cc97
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x41ce1a
mov ebp, dword [0x46843c]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x41ccc9
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x41ce01
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x41cce9
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [0x46844c]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x41cd28
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x468448]
lea ecx, [esp + 0x28]
push ecx
call dword [0x468408]
test eax, eax
jne 0x41cde8
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.0041c220
cmp eax, 1
jne 0x41ce12
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0041cad0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x41ccdd
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x41ce1a
jmp 0x41ccb4
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.0041be20
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c
Function at 0x41f3b0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x41f548
cmp ebp, ebx
jle 0x41f548
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x41f40e
dec eax
or eax, 0xfffffff8
inc eax
je 0x41f415
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x41f424
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x41f42b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0045908b
add esp, 4
cmp eax, ebx
je 0x41f44c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.0045908b
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x41f53e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x41f525
mov al, byte [edx]
cmp al, 0xc0
jbe 0x41f511
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x41f506
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x41f514
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x41f514
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x41f4b0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x41f4a1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret