joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10043b2f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
movzx eax, byte [ebp + 0x2c]
test eax, eax
je 0x10043bf7
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10043bde
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
push dword [ebp - 0x34]
push 0xb77
push 1
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
push dword [eax]
mov eax, dword [ebp - 0x40]
push dword [eax]
push 1
push dword [ebp - 0x44]
push 1
push 0x4409
call fcn.10041a85
add esp, 0x28
jmp 0x10043bf5
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x10043c37
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x54], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
movzx eax, byte [eax]
test eax, eax
je 0x10043c19
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x10043c37
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
movzx eax, byte [eax]
test eax, eax
je 0x10043c37
push 0
call dword [sym.imp.USER32.dll_DestroyIcon]
mov esp, ebp
pop ebp
ret
Function at 0x100671d0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10072760]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10057068
mov dword [ebp - 0x14], eax
cmp dword [0x1065f218], esi
jne 0x100672c3
push 0x800
push esi
push 0x1000b078
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10067250
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100673a3
push esi
push esi
push 0x1000b078
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x100673a3
push 0x1000b090
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100673a3
push eax
call ebx
push 0x1000b09c
push edi
mov dword [0x1065f218], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1000b0ac
push edi
mov dword [0x1065f21c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1000b0c0
push edi
mov dword [0x1065f220], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1065f228], eax
test eax, eax
je 0x100672c0
push 0x1000b0dc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1065f224], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x100672e8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100672db
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x100672fd
push 4
pop eax
jmp 0x100673a5
cmp dword [ebp - 0x14], esi
je 0x100672fd
push dword [0x1065f218]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x100672e2
mov eax, dword [0x1065f224]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1006735b
cmp dword [0x1065f228], edi
je 0x1006735b
push eax
call ebx
push dword [0x1065f228]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1006735b
test eax, eax
je 0x1006735b
call ecx
test eax, eax
je 0x10067350
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10067350
test byte [ebp - 8], 1
jne 0x1006735b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1006738b
mov eax, dword [0x1065f21c]
cmp eax, edi
je 0x10067388
push eax
call ebx
test eax, eax
je 0x10067388
call eax
mov esi, eax
test esi, esi
je 0x10067388
mov eax, dword [0x1065f220]
cmp eax, edi
je 0x10067388
push eax
call ebx
test eax, eax
je 0x10067388
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1065f218]
call ebx
test eax, eax
je 0x100673a3
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x100673a5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005454c
mov esp, ebp
pop ebp
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1014
push ebp
mov ebp, esp
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
or eax, 0xffffffff
mov dword [0x415c84], 9
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
mov dword [ebp - 8], eax
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
mov ecx, 0x1000
xor eax, eax
lea edx, [ebp - 0x1010]
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
mov edi, eax
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
test eax, eax
mov esi, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
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
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
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
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x30015fc2
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x30018a58
call fcn.300161b0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x3001dc9c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x30015d65
cmp eax, esi
jne 0x30015d58
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x30015d68
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x30015d3f
xor esi, esi
inc esi
mov eax, dword [0x3001dc98]
cmp eax, esi
jne 0x30015d7b
push 0x1f
call fcn.300b1000
pop ecx
jmp 0x30015daa
mov eax, dword [0x3001dc98]
test eax, eax
jne 0x30015da4
mov dword [0x3001dc98], esi
push 0x300013d8
push 0x300013d0
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x30015daa
jmp 0x30015ece
mov dword [0x3001d94c], esi
mov eax, dword [0x3001dc98]
cmp eax, esi
jne 0x30015dce
push 0x300013cc
push 0x30001308
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x3001dc98], 2
cmp dword [ebp - 0x20], ebx
jne 0x30015ddb
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x3001dca8], ebx
je 0x30015dfc
push 0x3001dca8
call fcn.3001652e
pop ecx
test eax, eax
je 0x30015dfc
push ebx
push 2
push ebx
call dword [0x3001dca8]
mov eax, dword [sym.imp.MSVCR80.dll__wcmdln]
cmp dword [eax], ebx
je 0x30015ece
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x30015e66
cmp cx, bx
je 0x30015e21
cmp dword [ebp - 0x1c], ebx
jne 0x30015e66
movzx ecx, word [eax]
cmp cx, bx
je 0x30015e36
cmp cx, 0x20
ja 0x30015e36
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x30015e21
test byte [ebp - 0x40], 1
je 0x30015e42
movzx ecx, word [ebp - 0x3c]
jmp 0x30015e45
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x30000000
call main
mov dword [0x3001d948], eax
cmp dword [0x3001d93c], ebx
jne 0x30015eab
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp cx, 0x22
jne 0x30015e77
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x30015e0b
cmp dword [0x3001d94c], ebx
jne 0x30015eb9
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x3001d948]
jmp 0x30015eda
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.300161f5
ret
call fcn.30015670
jmp 0x30015d02
Function at 0x40b1e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441db8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
push dword [ebp + 0x20]
mov edi, ecx
lea ecx, [edi + 0x10]
call fcn.00410b00
mov edx, dword [ebp + 0x24]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, dword [edx]
mov dword [edi + 0x1c], eax
mov eax, dword [edx + 4]
mov dword [edi + 0x20], eax
mov eax, dword [edx + 8]
mov dword [edi + 0x24], eax
mov eax, dword [edx + 0xc]
mov dword [edi + 0x28], eax
mov eax, dword [edx + 0x10]
mov dword [edi + 0x2c], eax
mov eax, dword [edx + 0x14]
mov dword [edi + 0x30], eax
mov eax, dword [edx + 0x18]
mov dword [edi + 0x34], eax
mov eax, dword [edx + 0x1c]
mov dword [edi + 0x38], eax
mov eax, dword [edx + 0x20]
mov dword [edi + 0x3c], eax
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x40b26a
mov eax, 0x444568
push 0x4610f4
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040e2c0
lea eax, [ebp - 0x18]
push eax
call fcn.0040e690
push 0
push dword [0x463650]
push dword [ebp + 0x1c]
push dword [ebp + 8]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x40010300
push dword [ebp - 0x18]
push 0x450380
push 0
call fcn.00411cc0
mov dword [edi + 0xc], eax
add esp, 0x40
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [edi + 0x34]
test eax, eax
je 0x40b2d4
push 1
push eax
push 0x30
push dword [edi + 0xc]
call fcn.00412390
add esp, 0x10
push dword [edi + 0x4c]
call dword [0x444070]
mov ecx, dword [edi + 0x48]
mov esi, eax
test ecx, ecx
je 0x40b2ed
push ecx
call dword [0x444050]
mov dword [edi + 0x48], esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
pop edi
pop esi
test eax, eax
je 0x40b309
push eax
call fcn.0042a2c0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x20

Function at 0x40fad0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442950
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.00410810
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
push dword [ebp + 8]
call fcn.00410810
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
push 0x452570
call fcn.00410960
push 0x452574
lea ecx, [ebp - 0x18]
call fcn.00410960
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40fb32
mov eax, 0x444568
push eax
call fcn.0042b94a
mov eax, dword [ebp - 0x18]
add esp, 4
test eax, eax
jne 0x40fb47
mov eax, 0x444568
mov ecx, dword [ebp - 0x24]
test ecx, ecx
jne 0x40fb53
mov ecx, 0x444568
push eax
push ecx
call fcn.0042b997
add esp, 8
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40fb71
push eax
call fcn.0042a2c0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40fb88
push eax
call fcn.0042a2c0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40fda0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442968
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov al, byte [edi + 0xc]
and al, 1
xor esi, esi
mov byte [ebp + 0xb], al
nop
mov al, byte [ecx + esi]
test al, al
je 0x40fde7
mov byte [ebp + esi - 0x424], al
inc esi
cmp esi, 0x400
jb 0x40fdd0
push ebx
push dword [ebp + 0x10]
mov ebx, 0x400
lea eax, [ebp - 0x424]
push 0
push dword [ebp + 0xc]
sub ebx, esi
add eax, esi
push ebx
push eax
call fcn.00402c20
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0042a29c
add esp, 0x1c
test eax, eax
js 0x40fe20
cmp eax, 0xffffffff
jne 0x40fe22
mov eax, ebx
add esi, eax
mov eax, dword [edi + 0xc]
shr eax, 0xb
mov word [ebp + esi - 0x424], 0xa0d
add esi, 2
test al, 1
je 0x40ff1b
lea ebx, [edi + 0x98]
push ebx
mov dword [ebp - 0x14], ebx
call dword [0x4441a0]
mov byte [ebp - 0x10], 1
mov dword [ebp - 4], 0
mov eax, dword [edi + 0xc]
shr eax, 0xb
test al, 1
je 0x40fef4
call dword [0x44408c]
mov ecx, dword [edi + 0x84]
mov dword [ebp + 0x10], eax
test ecx, ecx
je 0x40fec1
add ecx, esi
cmp ecx, 0xa00000
jg 0x40feba
push 0
lea eax, [edi + 0x90]
push 0
push eax
call fcn.0040fa90
mov dword [ebp + 0xc], eax
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, 0
sub eax, dword [edi + 0x88]
sbb ecx, dword [edi + 0x8c]
cmp ecx, edx
jb 0x40fec1
ja 0x40feba
cmp eax, dword [ebp + 0xc]
jb 0x40fec1
mov ecx, edi
call fcn.004102d0
push esi
lea eax, [ebp - 0x424]
push eax
mov eax, dword [edi + 0x80]
add eax, dword [edi + 0x84]
push eax
call fcn.00426460
add dword [edi + 0x84], esi
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
push ebx
call dword [0x4440fc]
jmp 0x40ff32
push 0
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp - 0x424]
push eax
push dword [edi + 8]
call dword [0x4440a0]
mov dword [ebp - 4], 0xffffffff
push ebx
call dword [0x4440fc]
jmp 0x40ff32
push 0
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp - 0x424]
push eax
push dword [edi + 8]
call dword [0x4440a0]
cmp byte [ebp + 0xb], 0
pop ebx
je 0x40ff53
push 1
call fcn.0042b32e
push eax
push esi
lea eax, [ebp - 0x424]
push 1
push eax
call fcn.0042b8e7
add esp, 0x14
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x412e40
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x14]
cmp eax, 0xca
jne 0x412e77
push esi
call fcn.00417b90
add esp, 4
cmp byte [esi + 0x40], 0
je 0x412e6e
pop edi
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
pop ebp
ret
mov dword [esi + 0x14], 0xcb
jmp 0x412e82
cmp eax, 0xcb
jne 0x412efe
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x412ee8
mov edi, edi
mov eax, dword [esi + 8]
test eax, eax
je 0x412e9f
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x412ee2
cmp eax, 2
je 0x412ee8
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x412e90
cmp eax, 3
je 0x412ec7
cmp eax, 1
jne 0x412e90
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x412e90
mov eax, dword [esi + 0x11c]
add eax, edi
mov dword [edx + 8], eax
jmp 0x412e90
pop edi
xor al, al
pop esi
pop ebp
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.00412f30
add esp, 4
pop edi
pop esi
pop ebp
ret
cmp eax, 0xcc
je 0x412f20
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x14
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
push esi
call fcn.00412f30
add esp, 4
pop edi
pop esi
pop ebp
ret

Function at 0x412f30
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x14], 0xcc
je 0x412f5e
mov eax, dword [esi + 0x180]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x180]
cmp byte [eax + 8], 0
je 0x412fe3
mov ecx, dword [esi + 0x78]
lea ebx, [esi + 0x78]
cmp ecx, dword [esi + 0x60]
jae 0x412fb6
mov eax, dword [esi + 8]
mov edi, ecx
test eax, eax
je 0x412f97
mov dword [eax + 4], ecx
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x60]
push esi
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
call eax
mov edi, dword [ebx]
add esp, 4
mov eax, dword [esi + 0x184]
push 0
push ebx
push 0
mov eax, dword [eax + 4]
push esi
call eax
mov ecx, dword [ebx]
add esp, 0x10
cmp ecx, edi
je 0x412ffa
cmp ecx, dword [esi + 0x60]
jb 0x412f75
mov eax, dword [esi + 0x180]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x180]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
xor ecx, ecx
mov eax, dword [esi + 0x180]
add esp, 8
cmp byte [eax + 8], cl
jne 0x412f70
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret
Function at 0x41bfd0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, dword [esi + 0x4c]
cmp edx, 1
mov ebx, dword [esi + 0x1a8]
sete al
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], edx
mov byte [ebx + 0x1c], al
lea eax, [edx - 1]
push dword [esi + 0x64]
mov ecx, dword [esi + 4]
neg eax
sbb eax, eax
and eax, 0xfffffe02
add eax, 0x2fe
push eax
mov eax, dword [ecx + 8]
push 1
push esi
call eax
mov dword [ebx + 0x18], eax
xor edi, edi
mov eax, dword [ebx + 0x14]
add esp, 0x10
cmp dword [esi + 0x64], edi
jle 0x41c0e3
mov ecx, dword [ebx + edi*4 + 0x20]
cdq
idiv ecx
cmp dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x41c045
mov eax, dword [ebx + 0x18]
add dword [eax + edi*4], 0xff
mov eax, dword [ebx + 0x18]
xor ebx, ebx
mov eax, dword [eax + edi*4]
mov dword [ebp - 8], eax
lea eax, [ecx - 1]
push eax
push ebx
push edi
push esi
call fcn.0041c370
add esp, 0x10
mov edx, eax
xor esi, esi
cmp esi, edx
jle 0x41c080
mov eax, dword [ebp - 0x10]
inc ebx
dec eax
push eax
push ebx
push edi
push dword [ebp + 8]
call fcn.0041c370
mov edx, eax
add esp, 0x10
cmp esi, edx
jg 0x41c067
mov eax, dword [ebp - 0xc]
movzx eax, al
movzx ecx, bl
imul ecx, eax
mov eax, dword [ebp - 8]
mov byte [esi + eax], cl
inc esi
cmp esi, 0xff
jle 0x41c063
cmp dword [ebp - 4], 1
jne 0x41c0d0
mov ebx, eax
mov ecx, 1
lea edx, [ebx - 1]
jmp 0x41c0b0
movzx eax, byte [ebx]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [ebx + 0xff]
mov byte [ebx + ecx + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x41c0b0
mov esi, dword [ebp + 8]
inc edi
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x14]
cmp edi, dword [esi + 0x64]
jl 0x41c028
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e340
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx ecx, si
shr esi, 0x10
test edi, edi
jne 0x41e35c
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x41e46b
jmp 0x41e370
mov edx, ebx
cmp ebx, 0x15b0
jb 0x41e37f
mov edx, 0x15b0
sub ebx, edx
mov dword [ebp + 0x10], ebx
cmp edx, 0x10
jl 0x41e42e
mov ebx, edx
shr ebx, 4
mov eax, ebx
neg eax
shl eax, 4
add edx, eax
jmp 0x41e3a0
movzx eax, byte [edi]
add ecx, eax
movzx eax, byte [edi + 1]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 2]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 3]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 4]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 5]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 6]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 7]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 8]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 9]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xa]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xb]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xc]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xd]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xe]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xf]
add esi, ecx
add edi, 0x10
add ecx, eax
add esi, ecx
sub ebx, 1
jne 0x41e3a0
mov ebx, dword [ebp + 0x10]
test edx, edx
je 0x41e43f
movzx eax, byte [edi]
inc edi
add ecx, eax
add esi, ecx
sub edx, 1
jne 0x41e432
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul esi
shr edx, 0xf
imul edx, edx, 0xffff000f
add esi, edx
test ebx, ebx
jne 0x41e370
shl esi, 0x10
pop ebx
or esi, ecx
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x41e480
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x41e48e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x41e54d
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4544a8]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4544a8]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4544a8]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4544a8]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4544a8]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4544a8]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4544a8]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4544a8]
sub edi, 1
jne 0x41e4a6
pop edi
test esi, esi
je 0x41e56b
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4544a8]
sub esi, 1
jne 0x41e551
not eax
pop esi
pop ebp
ret