joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4028b9
Capabilities:
Inspect section memory permissions

Disassembly:
je 0x402914
add eax, esi
cmp dword [eax], ebx
je 0x402914
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x40290f
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x4028f9
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x402901
cmp edx, ebx
jne 0x402a4f
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x4028d0
add eax, dword [eax + 4]
jmp 0x4028bd
mov dword [ebp + 0xc], ebx
jmp 0x40291f
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x402937
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x402955
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
js 0x402979
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4029b3
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40299a
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4029a3
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4029ad
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40298f
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x402919
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
pop es
sub eax, ecx
je 0x402a00
dec eax
je 0x4029f7
sub eax, 3
je 0x4029ee
mov dword [ebp - 4], 0x40
jmp 0x402a1d
mov dword [ebp - 4], 4
jmp 0x402a03
mov dword [ebp - 4], 0x20
jmp 0x402a03
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x402a4f
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4029cf
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00402260
test dword [esp + edi*8], 0x1475ff84
push 1
push esi
call edi
mov eax, esi
jmp 0x402a5b
Function at 0x402953
Capabilities:
Inspect section memory permissions

Disassembly:
je 0x402914
add eax, esi
cmp dword [eax], ebx
je 0x402914
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x40290f
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x4028f9
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x402901
cmp edx, ebx
jne 0x402a4f
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x4028d0
add eax, dword [eax + 4]
jmp 0x4028bd
mov dword [ebp + 0xc], ebx
jmp 0x40291f
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x402937
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x402955
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
js 0x402979
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4029b3
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40299a
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4029a3
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4029ad
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40298f
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x402919
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
pop es
sub eax, ecx
je 0x402a00
dec eax
je 0x4029f7
sub eax, 3
je 0x4029ee
mov dword [ebp - 4], 0x40
jmp 0x402a1d
mov dword [ebp - 4], 4
jmp 0x402a03
mov dword [ebp - 4], 0x20
jmp 0x402a03
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x402a4f
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4029cf
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00402260
test dword [esp + edi*8], 0x1475ff84
push 1
push esi
call edi
mov eax, esi
jmp 0x402a5b

Function at 0x402b20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
invalid
test dword [eax - 4], eax
Function at 0x4030ea
Capabilities:
Contain obfuscated stackstrings

Disassembly:
invalid
call ebp
loop 0x40307d
sub al, byte [eax - 0x5435b]
inc dword [eax]
push 0
call dword [ebp - 0x340]
mov dword [ebp + 8], eax
push 0x104
lea eax, [ebp - 0x334]
push eax
push 0
call dword [ebp - 0x538]
call fcn.00402260
clc
inc ebp
pop edi
Function at 0x405304
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
cmp word [esi + 2], 0x3a
jne 0x4054b6
movzx eax, word [esi + 4]
cmp ax, 0x5c
je 0x40532e
cmp ax, 0x2f
jne 0x4054b6
mov ax, word [esi]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0x5c
mov word [ebp - 0xa], bx
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 3
jne 0x4054b6
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00404545
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x405480
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401458
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00401370
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.004027c2
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401429
mov esi, 0x41679c
push esi
lea ecx, [ebp - 0x1c]
call fcn.004027c2
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.004027c2
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401429
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.004027c2
push edi
lea ecx, [ebp - 0x1c]
call fcn.004027c2
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401429
push esi
lea ecx, [ebp - 0x1c]
call fcn.004027c2
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00402b20
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push dword [ebp - 0x34]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp esi, ebx
pop edi
je 0x405491
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x405491
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp + 8]
pop ecx
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4054bc
push dword [ebp - 0x28]
call fcn.00402ff3
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x4054bd
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x4086d0
Capabilities:
Reference http user-agent string

Disassembly:
sub esp, 0x14
push ebp
mov ebp, ecx
push esi
xor esi, esi
mov eax, dword [ebp + 0x14]
cmp eax, esi
jne 0x4086e5
mov eax, 0x47c950
push ebx
push edi
push eax
mov eax, dword [ebp + 4]
push 0x2712
push eax
call fcn.00435100
mov cl, byte [esp + 0x1f]
mov edi, str.Mozilla_5.0__iPhone__CPU_iPhone_OS_14_0_1_like_Mac_OS_X__AppleWebKit_605.1.15__KHTML__like_Gecko__Mobile_15E148_MicroMessenger_8.0.27_0x18001b34__NetType_4G_Language_zh_CN
mov byte [esp + 0x20], cl
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [esp + 0x18]
push ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.00408c90
test al, al
je 0x408755
mov edi, dword [esp + 0x18]
mov ecx, ebx
mov edx, ecx
mov esi, str.Mozilla_5.0__iPhone__CPU_iPhone_OS_14_0_1_like_Mac_OS_X__AppleWebKit_605.1.15__KHTML__like_Gecko__Mobile_15E148_MicroMessenger_8.0.27_0x18001b34__NetType_4G_Language_zh_CN
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
xor esi, esi
mov byte [eax + ebx], 0
mov eax, dword [esp + 0x18]
pop edi
cmp eax, esi
pop ebx
jne 0x408764
mov eax, 0x47c950
mov ecx, dword [ebp + 4]
push eax
push 0x2722
push ecx
call fcn.00435100
mov edx, dword [ebp + 4]
add esp, 0xc
push 5
push 0x44
push edx
call fcn.00435100
mov eax, dword [ebp + 4]
add esp, 0xc
push 1
push 0x34
push eax
call fcn.00435100
mov ecx, dword [ebp + 4]
add esp, 0xc
push 1
push 0x63
push ecx
call fcn.00435100
mov edx, dword [ebp + 4]
add esp, 0xc
push esi
push 0x2f
push edx
call fcn.00435100
mov eax, dword [ebp + 4]
add esp, 0xc
push 0x408a30
push 0x4e2b
push eax
call fcn.00435100
mov ecx, dword [ebp + 4]
add esp, 0xc
push ebp
push 0x2711
push ecx
call fcn.00435100
mov edx, dword [ebp + 4]
add esp, 0xc
push esi
push 0x40
push edx
call fcn.00435100
mov eax, dword [ebp + 4]
add esp, 0xc
push esi
push 0x51
push eax
call fcn.00435100
mov ecx, dword [esp + 0x1c]
add esp, 0xc
cmp ecx, esi
pop esi
pop ebp
je 0x408823
mov al, byte [ecx - 1]
test al, al
je 0x408819
cmp al, 0xff
je 0x408819
dec al
mov byte [ecx - 1], al
add esp, 0x14
ret
dec ecx
push ecx
call fcn.00471e21
add esp, 4
add esp, 0x14
ret
Function at 0x40d1e0
Capabilities:
Delete file

Disassembly:
sub esp, 0x12c
push edi
push str.sklnsdhbs98r734imnok089
push str.C:UsersPublicDownloadskXaqjbjnZq8dl.dat
call fcn.004241a0
mov edi, eax
add esp, 8
test edi, edi
jne 0x40d207
pop edi
add esp, 0x12c
ret
mov eax, dword [esp + 0x134]
push eax
push edi
call fcn.00424280
add esp, 8
test eax, eax
je 0x40d22f
push edi
call fcn.004242c0
add esp, 4
xor eax, eax
pop edi
add esp, 0x12c
ret
lea ecx, [esp + 4]
push ecx
push 0xffffffffffffffff
push edi
call fcn.004241c0
add esp, 0xc
test eax, eax
je 0x40d256
push edi
call fcn.004242c0
add esp, 4
xor eax, eax
pop edi
add esp, 0x12c
ret
push ebx
mov ebx, dword [esp + 8]
push esi
xor esi, esi
test ebx, ebx
jle 0x40d282
lea edx, [esp + 0xc]
push edx
push esi
push edi
call fcn.004241c0
lea eax, [esp + 0x1c]
push eax
push esi
push edi
call fcn.00424260
add esp, 0x18
inc esi
cmp esi, ebx
jl 0x40d262
push edi
call fcn.004242c0
add esp, 4
push str.C:UsersPublicDownloadskXaqjbjnZq8dl.dat
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
pop ebx
mov eax, 1
pop edi
add esp, 0x12c
ret

Function at 0x40d2b0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push edi
mov edi, dword [esi + 0xc]
mov ecx, dword [eax]
mov eax, dword [edx]
mov dword [esp + 0x10], edi
mov edi, dword [esi + 8]
mov dword [esp + 0x28], edi
mov edi, dword [esi + 4]
mov esi, dword [esi]
mov dword [esp + 0x18], edi
mov edx, 0xf1bbcdc8
mov dword [esp + 0x14], esi
mov edi, 8
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x10]
mov esi, ecx
shl esi, 4
add esi, ebx
mov ebx, ecx
shr ebx, 5
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor esi, ebx
lea ebx, [ecx + edx]
xor esi, ebx
mov ebx, dword [esp + 0x14]
sub eax, esi
mov esi, eax
shl esi, 4
add esi, ebx
mov ebx, eax
shr ebx, 5
add ebx, ebp
xor esi, ebx
lea ebx, [eax + edx]
xor esi, ebx
add edx, 0x61c88647
sub ecx, esi
dec edi
jne 0x40d2ec
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
mov ecx, dword [esp + 0x18]
pop ebx
mov dword [ecx], eax
add esp, 0xc
ret
Function at 0x410220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4789cf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], 1
mov eax, dword [0x48fd28]
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov byte [esp + 0x38], 7
push eax
call fcn.00429671
add esp, 4
lea ecx, [esp + 0x44]
mov ebx, eax
push ecx
lea ecx, [esp + 0x14]
call fcn.00472186
mov edx, dword [esp + 0x48]
push edx
call fcn.00429671
add esp, 4
mov edi, eax
lea eax, [esp + 0x48]
lea ecx, [esp + 0x14]
push eax
call fcn.00472186
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00429671
mov esi, eax
add esp, 4
dec esi
lea edx, [esp + 0xc]
push esi
push str._02d
push edx
call fcn.0046d44d
add esp, 0xc
test esi, esi
jne 0x41034d
cmp edi, 1
jne 0x4102f6
dec ebx
lea eax, [esp + 0x10]
push ebx
push 0x48d364
push eax
call fcn.0046d44d
add esp, 0xc
lea ecx, [esp + 0xc]
mov edi, 0xc
push 0x48e51c
call fcn.004721d6
lea eax, [edi - 2]
cmp eax, 0xa
ja case.default.0x4102fe
jmp dword [eax*4 + 0x410478]
push 0x48e51c
jmp 0x410330
and ebx, reloc.WS2_32.dll_closesocket
jns 0x410319
dec ebx
or ebx, 0xfffffffc
inc ebx
test ebx, ebx
jle 0x410324
push 0x48e518
jmp 0x410330
push 0x48e514
jmp 0x410330
push 0x48e510
lea ecx, [esp + 0x10]
call fcn.004721d6
dec edi
lea ecx, [esp + 0x14]
push edi
push 0x48e50c
push ecx
call fcn.0046d44d
add esp, 0xc
lea edx, [esp + 0x10]
push 0x48e508
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.004722a1
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push eax
push edx
mov byte [esp + 0x44], 8
call fcn.0047223b
push 0x48e508
push eax
lea eax, [esp + 0x28]
mov bl, 9
push eax
mov byte [esp + 0x44], bl
call fcn.004722a1
lea ecx, [esp + 0xc]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov byte [esp + 0x44], 0xa
call fcn.0047223b
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 0xb
call fcn.00472186
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 0xa
call fcn.00472099
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], bl
call fcn.00472099
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 8
call fcn.00472099
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 7
call fcn.00472099
mov esi, dword [esp + 0x40]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00471e2c
mov dword [esp + 0x2c], 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 6
call fcn.00472099
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 5
call fcn.00472099
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 4
call fcn.00472099
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 3
call fcn.00472099
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 2
call fcn.00472099
lea ecx, [esp + 0x48]
mov byte [esp + 0x38], 1
call fcn.00472099
lea ecx, [esp + 0x4c]
mov byte [esp + 0x38], 0
call fcn.00472099
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 0x10
Function at 0x421830
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x42183b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x42193e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x47e8a4]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x47e8a4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x47e8a4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x47e8a4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x47e8a4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x47e8a4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x47e8a4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x47e8a4]
xor eax, edx
inc ecx
dec edi
jne 0x421856
pop edi
test esi, esi
je 0x421960
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x47e8a4]
xor eax, edx
inc ecx
dec esi
jne 0x421942
pop esi
pop ebx
not eax
ret

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

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov edx, dword [ecx]
and esi, 0xff
mov eax, edx
and eax, 0xff
xor eax, esi
shr edx, 8
mov eax, dword [eax*4 + 0x47e8a4]
xor eax, edx
mov edx, dword [ecx + 4]
mov dword [ecx], eax
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 8]
imul eax, eax, 0x8088405
inc eax
mov esi, edx
mov dword [ecx + 4], eax
and esi, 0xff
shr eax, 0x18
xor eax, esi
pop esi
shr edx, 8
mov eax, dword [eax*4 + 0x47e8a4]
xor eax, edx
mov dword [ecx + 8], eax
ret
Function at 0x422340
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x422381
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x422376
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x422394
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x14]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x1c]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x1c], ecx
pop ebp
pop ebx
ret
Function at 0x422eb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebx, ebx
cmp edi, ebx
jne 0x422ecc
pop edi
pop esi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
jne 0x422edd
pop edi
pop esi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x7c], ebx
je 0x422eeb
push edi
call fcn.00423310
add esp, 4
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push edi
call fcn.00422cb0
add esp, 0x10
test eax, eax
je 0x422f13
pop edi
pop esi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push 0x84
call fcn.0042a20d
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x422f32
pop edi
pop esi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
push 0x4000
call fcn.0042a20d
mov dword [esi], eax
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x44], ecx
mov edx, dword [esp + 0x10]
add esp, 4
cmp eax, ebx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x422f6b
push esi
call fcn.0042a124
add esp, 4
mov eax, 0xffffff98
pop edi
pop esi
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov edx, dword [edi + 0x34]
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp edx, ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
sete al
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
cmp eax, ebx
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
jne 0x422fb9
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
push eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00421bd0
add esp, 4
test eax, eax
jne 0x422fb9
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x422fe6
mov edx, dword [edi + 0x38]
shr edx, 8
mov byte [esi + 0x80], dl
jmp 0x422ff2
mov eax, dword [edi + 0x3c]
shr eax, 0x18
mov byte [esi + 0x80], al
mov cl, byte [esi + 0x6c]
push ebp
mov ebp, dword [esp + 0x20]
lea ebx, [esi + 0x70]
neg cl
sbb ecx, ecx
mov dword [ebx], 0x12345678
and ecx, 0xc
mov dword [esi + 0x74], 0x23456789
test ebp, ebp
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x78], 0x34567890
je 0x423033
mov al, byte [ebp]
test al, al
je 0x423033
push eax
push ebx
call fcn.00421970
add esp, 8
inc ebp
jne 0x42301f
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
mov dword [esi + 8], 0
pop ebp
lea ecx, [edx + eax + 0x1e]
xor eax, eax
mov dword [esi + 0x3c], ecx
mov dword [edi + 0x7c], esi
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x423440
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x423522
cmp dword [ebp + 4], 0xffffffff
jne 0x423522
push ebx
lea ebx, [ebp + 0x140]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov cl, byte [ecx + ebp + 0x13f]
cmp cl, 0x5c
je 0x4234b2
cmp cl, 0x2f
je 0x4234b2
mov edi, 0x48f804
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
cmp edi, 1
pop ebx
jne 0x4234de
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4234de
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push edi
push ecx
push esi
call fcn.004220f0
add esp, 0x10
test eax, eax
jne 0x423501
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.00422610
add esp, 4
mov dword [ebp], eax
neg eax
sbb eax, eax
pop edi
and eax, 0xfffffe00
pop esi
add eax, 0x200
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc