joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f60
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
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 sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401fc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40606c]
test esi, esi
jle 0x4020e0
mov eax, dword [0x406070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401ff4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x402077
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401fe0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x402107
mov eax, dword [0x406070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x406070]
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 0x4020e7
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x402070
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x402080
add dword [0x40606c], 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 [0x406070]
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 0x402070
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x401ffe
mov eax, dword [0x406070]
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 dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, cs:[esi]
nop
Function at 0x402630
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406080]
sub esp, 4
test ebx, ebx
je 0x402685
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
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x40267e
test eax, eax
jne 0x40267e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402660
mov dword [esp], 0x406088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4029c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4029e5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4029f0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4029e5
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 0x402a38
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x402a2e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x402a3a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x402a20
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40306a
Capabilities:
Parse pe header

Disassembly:
push edi
push dword [esp + 8]
push 0x40
push 0
push esi
call fcn.004035d4
add esp, 0x10
test eax, eax
jne 0x403085
xor eax, eax
inc eax
pop edi
ret
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x403117
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x403117
push dword [esp + 8]
lea edi, [esi + 0x40]
push 0xf8
push eax
push edi
call fcn.004035d4
add esp, 0x10
test eax, eax
je 0x403080
cmp dword [edi], 0x4550
jne 0x403117
mov eax, 0x10b
cmp word [esi + 0x58], ax
jne 0x403117
movzx eax, word [esi + 0x46]
test ax, ax
je 0x403117
mov edi, eax
imul edi, edi, 0x28
push edi
mov dword [esi + 0x140], edi
call fcn.00420ecb
pop ecx
mov dword [esi + 0x138], eax
test eax, eax
jne 0x4030f0
push 3
jmp 0x403119
movzx ecx, word [esi + 0x54]
push dword [esp + 8]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
push edi
push ecx
push eax
mov dword [esi + 0x13c], ecx
call fcn.004035d4
add esp, 0x10
neg eax
sbb eax, eax
inc eax
pop edi
ret
push 2
pop eax
pop edi
ret
Function at 0x408419
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x408424
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x4084d8
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x441408]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x441408]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x441408]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x441408]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x441408]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x441408]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x441408]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x441408]
add ecx, 8
sub edi, 8
dec esi
jne 0x40843b
pop ebx
test edi, edi
je 0x4084f1
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x441408]
inc ecx
dec edi
jne 0x4084dc
pop esi
not eax
pop edi
ret

Function at 0x4084f6
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x441408]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x441408]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x416cf5
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x4364a3
call fcn.00423a7e
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
mov edi, ecx
cmp ebx, esi
jne 0x416d17
xor eax, eax
call fcn.00423ac8
ret 4
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x416d3d
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x416d3d
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x416d0f
cmp dword [edi + 0x54], 0
jne 0x416d47
mov eax, esi
jmp 0x416d0f
mov eax, edi
call fcn.0041766b
cmp dword [edi + 0x44], 0
jne 0x416d6a
push dword [edi + 0x54]
movsx eax, bl
push eax
call fcn.00422198
pop ecx
cmp eax, esi
pop ecx
mov eax, ebx
jne 0x416d0f
jmp 0x416d43
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.00417363
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x416e18
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
mov ebx, dword [ebp - 0x1c]
add ebx, eax
push ebx
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x2d]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x14]
test eax, eax
js 0x416e40
cmp eax, 1
jg 0x416e20
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x416dc7
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, eax
je 0x416ded
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x416dda
lea eax, [ebp - 0x2c]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.00422dbb
add esp, 0x10
cmp esi, eax
jne 0x416e40
lea eax, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], eax
jne 0x416e3b
test esi, esi
jne 0x416d79
cmp dword [ebp - 0x1c], 0x20
jae 0x416e40
push esi
push 8
pop ebx
lea esi, [ebp - 0x2c]
call fcn.0040eecb
jmp 0x416d79
mov edx, dword [ebp - 0x2c]
jmp 0x416d8b
cmp eax, 3
jne 0x416e40
movsx eax, byte [ebp - 0x2d]
push dword [edi + 0x54]
push eax
call fcn.00422198
or esi, 0xffffffff
pop ecx
pop ecx
cmp eax, esi
je 0x416e43
mov esi, dword [ebp + 8]
jmp 0x416e43
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406220
jmp 0x416d43
Function at 0x417582
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x436476
call fcn.00423a7e
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x417663
cmp byte [edi + 0x49], bl
je 0x417663
mov eax, dword [edi]
push 0xffffffffffffffff
mov ecx, edi
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4175b7
xor al, al
jmp 0x417665
lea esi, [ebp - 0x2c]
call fcn.00417363
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x417605
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x18]
sub eax, 0
je 0x41760a
dec eax
je 0x41760e
dec eax
dec eax
je 0x41765f
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406220
mov al, bl
jmp 0x417665
mov edx, dword [ebp - 0x2c]
jmp 0x4175d0
mov byte [edi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x41761a
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, eax
je 0x417640
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x41762d
lea eax, [ebp - 0x2c]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.00422dbb
add esp, 0x10
cmp esi, eax
jne 0x4175f3
cmp byte [edi + 0x49], 0
je 0x41765f
test esi, esi
jne 0x4175c2
push esi
push 8
pop ebx
lea esi, [ebp - 0x2c]
call fcn.0040eecb
jmp 0x4175c2
mov bl, 1
jmp 0x4175f5
mov al, 1
call fcn.00423ac8
ret

Function at 0x41920a
Capabilities:
Enumerate files on windows

Disassembly:
push 0x298
mov eax, 0x436c1a
call fcn.00423a7e
and dword [ebp - 0x2a0], 0
mov dword [ebp - 0x2a4], ebx
lea eax, [ebp - 0x48]
xor esi, esi
push eax
inc esi
lea eax, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.00419047
cmp dword [eax + 0x14], 8
jb 0x419240
mov eax, dword [eax]
lea ecx, [ebp - 0x298]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push esi
xor edi, edi
lea esi, [ebp - 0x48]
mov dword [ebp - 0x29c], eax
call fcn.0040ec41
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
lea eax, [ebp - 0x26c]
inc edi
push eax
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x2a0], edi
call fcn.004189ec
mov ecx, esi
mov edx, ebx
mov byte [ebp - 4], 2
call fcn.0041a0ba
push edi
jmp 0x4192ad
lea eax, [ebp - 0x26c]
push eax
lea esi, [ebp - 0x2c]
call fcn.004189ec
mov ecx, esi
mov edx, ebx
mov byte [ebp - 4], 3
call fcn.0041a0ba
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040ec41
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x29c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41928f
push eax
push 1
lea ecx, [ebp + 8]
call fcn.00406220
mov eax, ebx
call fcn.00423ac8
ret 0x1c
Function at 0x41b83d
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [0x44b280]
test edx, edx
jne 0x41b850
xor eax, eax
leave
ret
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x41b84c
mov eax, dword [edx + 0x3c]
cmp dword [eax + edx], 0x4550
jne 0x41b84c
mov eax, dword [eax + edx + 0x78]
add eax, edx
mov ecx, dword [eax + 0x20]
push ebx
push esi
mov esi, dword [eax + 0x1c]
push edi
mov edi, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
add esi, edx
add edi, edx
add ecx, edx
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
test eax, eax
je 0x41b8ce
mov edx, dword [ecx + edx*4]
mov eax, dword [ebp + 8]
add edx, dword [0x44b280]
mov bl, byte [edx]
cmp bl, byte [eax]
jne 0x41b8b9
test bl, bl
je 0x41b8b5
mov bl, byte [edx + 1]
cmp bl, byte [eax + 1]
jne 0x41b8b9
add edx, 2
add eax, 2
test bl, bl
jne 0x41b899
xor eax, eax
jmp 0x41b8be
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41b8d5
mov edx, dword [ebp - 4]
inc edx
mov dword [ebp - 4], edx
cmp edx, dword [ebp - 8]
jb 0x41b88d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 4]
movzx eax, word [edi + eax*2]
mov eax, dword [esi + eax*4]
add eax, dword [0x44b280]
jmp 0x41b8d0
Function at 0x41ddf5
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov ebx, eax
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x41de20
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call fcn.004289a0
mov eax, ebx
movzx ecx, word [eax*8 + 0x43fa8a]
mov dword [esi + 0x6af98], ecx
movzx ecx, word [eax*8 + 0x43fa88]
mov dword [esi + 0x6af9c], ecx
movzx ecx, word [eax*8 + 0x43fa8c]
mov dword [esi + 0x6afa0], ecx
movzx eax, word [eax*8 + 0x43fa8e]
add esp, 0xc
mov dword [esi + 0x6af94], eax
cmp ebx, 2
jg 0x41de84
mov eax, dword [esp + 0x10]
or word [eax], 4
jmp 0x41de91
cmp ebx, 8
jl 0x41de91
mov eax, dword [esp + 0x10]
or word [eax], 2
push 0x10000
lea ebx, [esi + 0x1af70]
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, edi
je 0x41def6
cmp eax, 0xffffffff
je 0x41def6
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x41ded1
call fcn.0041e04b
mov dword [esi + 0x6af7c], edi
xor eax, eax
movzx ecx, byte [ebx + eax]
shl edi, 5
xor edi, ecx
and edi, 0x7fff
inc eax
mov dword [esi + 0x6af7c], edi
cmp eax, 2
jb 0x41ded9
jmp 0x41df06
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
ret
Function at 0x41e15f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x41e35d
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x41e1d9
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x41e21c
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x41e21c
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0x41e203
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
mov edx, esi
call fcn.0041df0a
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
cmp ebx, eax
jbe 0x41e21c
mov ebx, eax
cmp ebx, 3
jb 0x41e2dd
mov edx, dword [esi + 0x6af84]
sub edx, dword [esi + 0x6af88]
lea ecx, [ebx - 3]
mov eax, esi
call fcn.0041d8cc
sub dword [esi + 0x6af90], ebx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x41e2aa
cmp eax, 3
jb 0x41e2aa
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x41e258
jmp 0x41e2fd
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [esi + 0x6af7c], edx
jmp 0x41e303
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
xor edx, edx
mov eax, esi
call fcn.0041d8cc
dec dword [esi + 0x6af90]
mov dword [ebp - 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp - 8], 0
je 0x41e33e
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41e31c
lea edx, [ecx + esi + 0x1af70]
jmp 0x41e31e
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 0
sub eax, ecx
push edx
mov ecx, esi
call fcn.0041d6fe
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x41e34f
call fcn.0041e04b
cmp dword [esi + 0x6af90], 0
jne 0x41e189
pop edi
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41e370
lea edx, [ecx + esi + 0x1af70]
jmp 0x41e372
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push edx
mov ecx, esi
call fcn.0041d6fe
pop ecx
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x41ef1a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x41ef25
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x41efd9
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43fad8]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43fad8]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43fad8]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43fad8]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43fad8]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43fad8]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43fad8]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43fad8]
add ecx, 8
sub edi, 8
dec esi
jne 0x41ef3c
pop ebx
test edi, edi
je 0x41eff2
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x43fad8]
inc ecx
dec edi
jne 0x41efdd
pop esi
not eax
pop edi
ret

Function at 0x41eff7
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x43fad8]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x43fad8]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x41f19c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x448674]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x38]
mov esi, ecx
push eax
push esi
mov ebx, edx
call dword [0x44b1c0]
test eax, eax
jne 0x41f1de
mov eax, 0x200
jmp 0x41f362
mov ecx, dword [ebp - 0x38]
xor eax, eax
xor edi, edi
inc eax
mov dword [ebp - 0x40], ecx
and dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edi
je 0x41f1f4
mov dword [ebp - 0x3c], eax
test cl, 2
je 0x41f1fd
or dword [ebp - 0x3c], 2
test cl, 4
je 0x41f206
or dword [ebp - 0x3c], 4
mov eax, ecx
and eax, 0x10
je 0x41f211
or dword [ebp - 0x3c], 0x10
test cl, 0x20
je 0x41f21a
or dword [ebp - 0x3c], 0x20
cmp eax, edi
je 0x41f227
or dword [ebp - 0x3c], 0x40000000
jmp 0x41f22e
or dword [ebp - 0x3c], 0x80000000
or dword [ebp - 0x3c], 0x1000000
cmp dword [ebp - 0x40], edi
jne 0x41f241
or dword [ebp - 0x3c], 0x800000
push edi
push esi
call dword [0x44b2a4]
mov dword [ebp - 0x48], eax
cmp eax, 0x28
jbe 0x41f2e6
push edi
push edi
push edi
push esi
call dword [0x44b0e4]
push edi
lea eax, [ebp - 0x44]
push eax
push 2
lea eax, [ebp - 0x40]
push eax
push esi
call dword [0x44b1f0]
push edi
push edi
push 0x24
push esi
call dword [0x44b0e4]
push edi
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [0x44b1f0]
mov eax, 0x54ad
cmp word [ebp - 0x40], ax
jne 0x41f2e6
mov eax, dword [ebp - 0x4c]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x48], ecx
jbe 0x41f2e6
push edi
push edi
push eax
push esi
call dword [0x44b0e4]
push edi
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [0x44b1f0]
mov eax, dword [ebp - 0x5c]
cmp eax, 0x5a4d
je 0x41f2df
cmp eax, 0x454e
je 0x41f2df
cmp eax, 0x454c
je 0x41f2df
cmp eax, 0x4550
jne 0x41f2e6
or dword [ebp - 0x3c], 0x400000
mov eax, dword [ebp - 0x58]
cmp eax, edi
je 0x41f2f2
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x50]
cmp eax, edi
je 0x41f2fe
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
cmp ebx, edi
je 0x41f337
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0041f113
push dword [ebp - 0x20]
mov dword [ebx], eax
push dword [ebp - 0x24]
mov dword [ebx + 4], edx
call fcn.0041f113
push dword [ebp - 0x30]
mov dword [ebx + 8], eax
push dword [ebp - 0x34]
mov dword [ebx + 0xc], edx
call fcn.0041f113
add esp, 0x18
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
mov ebx, dword [ebp - 0x54]
cmp ebx, edi
je 0x41f360
push dword [ebp - 0x20]
lea edi, [ebp - 0x3c]
push dword [ebp - 0x24]
lea esi, [ebp - 0x40]
call fcn.0041f135
movzx eax, word [ebp - 0x40]
pop ecx
pop ecx
movzx ecx, word [ebp - 0x3c]
shl eax, 0x10
or eax, ecx
mov dword [ebx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420e82
leave
ret

Function at 0x420e82
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x448674]
jne 0x420e8c
repz ret
jmp fcn.004261f6