joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409360
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x409369
xor ecx, ecx
jne 0x409369
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x40938a
mov eax, 0xd
jmp 0x4093e5
xor eax, eax
jne 0x409371
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x40939b
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x40a480
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x8003
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40a4b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x40a500
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
push 0xf0000000
push 1
push 0
push 0
mov eax, dword [ebp - 8]
add eax, 4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x40a566
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x40a55d
push 8
push 1
push 0
push 0
mov ecx, dword [ebp - 8]
add ecx, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x40a55b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40a566
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x40a5b0
Capabilities:
Hash data via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
je 0x40a5c5
cmp dword [ebp + 0xc], 0
jne 0x40a5cc
mov eax, 0x57
jmp 0x40a5f9
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x40a5f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x40a600
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4314b0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x424], ecx
cmp dword [ebp + 8], 0
jne 0x40a629
mov eax, 0x57
jmp 0x40a77d
mov dword [ebp - 0x41c], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0xffffffff
jne 0x40a675
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp - 0x41c]
jmp 0x40a77d
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0x400
mov byte [ebp - 0x410], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x40f]
push ecx
call fcn.004185a0
add esp, 0xc
mov dword [ebp - 0x420], 1
mov dword [ebp - 0x414], 0
push 0
lea edx, [ebp - 0x414]
push edx
push 0x400
lea eax, [ebp - 0x410]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
jne 0x40a6f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x41c], eax
jmp 0x40a750
cmp dword [ebp - 0x414], 0
je 0x40a736
mov edx, dword [ebp - 0x414]
push edx
lea eax, [ebp - 0x410]
push eax
mov ecx, dword [ebp - 0x424]
call fcn.0040a5b0
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
je 0x40a72a
jmp 0x40a750
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x414]
mov dword [ebp - 8], ecx
cmp dword [ebp - 0x420], 0
je 0x40a6b4
cmp dword [ebp - 0x414], 0
jne 0x40a6b4
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40a76d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x418], 0xffffffff
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00417e4f
mov esp, ebp
pop ebp
ret 4
Function at 0x40d6e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4314b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x228], ecx
cmp dword [ebp + 0xc], 0
je 0x40d705
cmp dword [ebp + 0x10], 0
jne 0x40d714
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40d907
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40d740
xor eax, eax
jmp 0x40d907
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.004185a0
add esp, 0xc
mov dword [ebp - 0xc], 1
push 5
push 0x42b2a4
mov eax, dword [ebp + 0x10]
push eax
call fcn.0041b008
add esp, 0xc
test eax, eax
jne 0x40d784
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 8
jne 0x40d7eb
mov byte [ebp - 0x220], 0xef
mov byte [ebp - 0x21f], 0xbb
mov byte [ebp - 0x21e], 0xbf
push 0
lea ecx, [ebp - 0x21c]
push ecx
push 3
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40d7d0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40d907
push str.__xml_version_1.0__encoding_UTF_8___
push 0x104
lea edx, [ebp - 0x218]
push edx
call fcn.004018e0
jmp 0x40d876
cmp dword [ebp + 8], 0x10
jne 0x40d846
mov eax, 0xfeff
mov word [ebp - 0x224], ax
push 0
lea ecx, [ebp - 0x21c]
push ecx
push 2
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40d82e
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40d907
push 0x42b300
push 0x104
lea edx, [ebp - 0x218]
push edx
call fcn.004018e0
jmp 0x40d876
cmp dword [ebp + 8], 0x908
jne 0x40d867
push str.__xml_version_1.0__encoding_GB2312____
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.004018e0
jmp 0x40d876
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40d907
cmp dword [ebp - 0xc], 0
je 0x40d8ba
push 0
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.00418aab
add esp, 4
shl eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40d8ba
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40d907
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
push 0
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00418aab
add esp, 4
shl eax, 1
push eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40d8f8
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40d907
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417e4f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x417e4f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4314b0]
jne 0x417e59
repz ret
jmp fcn.0041b3ed

Function at 0x425c5c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041c612
and dword [ebp - 4], 0
cmp dword [0x4330fc], 0
mov ebx, eax
jne 0x425d0d
push 0x42d7e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x425dbe
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42d7d4
push edi
call esi
test eax, eax
je 0x425dbe
push eax
call fcn.0041c5a0
mov dword [esp], 0x42d7c4
push edi
mov dword [0x4330fc], eax
call esi
push eax
call fcn.0041c5a0
mov dword [esp], 0x42d7b0
push edi
mov dword [0x433100], eax
call esi
push eax
call fcn.0041c5a0
mov dword [esp], 0x42d794
push edi
mov dword [0x433104], eax
call esi
push eax
call fcn.0041c5a0
pop ecx
mov dword [0x43310c], eax
test eax, eax
je 0x425d0d
push 0x42d77c
push edi
call esi
push eax
call fcn.0041c5a0
pop ecx
mov dword [0x433108], eax
mov eax, dword [0x433108]
cmp eax, ebx
je 0x425d65
cmp dword [0x43310c], ebx
je 0x425d65
push eax
call fcn.0041c61b
push dword [0x43310c]
mov esi, eax
call fcn.0041c61b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x425d65
test edi, edi
je 0x425d65
call esi
test eax, eax
je 0x425d5c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x425d5c
test byte [ebp - 0xc], 1
jne 0x425d65
or dword [ebp + 0x10], 0x200000
jmp 0x425d9e
mov eax, dword [0x433100]
cmp eax, ebx
je 0x425d9e
push eax
call fcn.0041c61b
pop ecx
test eax, eax
je 0x425d9e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x425d9e
mov eax, dword [0x433104]
cmp eax, ebx
je 0x425d9e
push eax
call fcn.0041c61b
pop ecx
test eax, eax
je 0x425d9e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4330fc]
call fcn.0041c61b
pop ecx
test eax, eax
je 0x425dbe
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x425dc0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x74137b9c
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x7ef76718
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x40556b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
jbe 0x405598
test cl, 7
je 0x405598
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x42c2a0]
dec esi
inc ecx
jmp 0x405579
cmp esi, 8
jb 0x40563b
mov edx, esi
shr edx, 3
mov dword [ebp + 8], edx
push ebx
mov edx, dword [ecx + 4]
xor eax, dword [ecx]
mov ebx, edx
shr ebx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x42c6a0]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x42c2a0]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x42caa0]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x42d2a0]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x42d6a0]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x42daa0]
movzx edx, dl
xor edi, dword [edx*4 + 0x42cea0]
movzx eax, al
xor edi, dword [eax*4 + 0x42dea0]
sub esi, 8
add ecx, 8
dec dword [ebp + 8]
mov eax, edi
jne 0x4055aa
pop ebx
jmp 0x40563b
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x42c2a0]
dec esi
inc ecx
test esi, esi
ja 0x405627
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x405962
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0x40
pop ebx
cmp esi, ebx
jbe 0x4059ac
lea eax, [ebp - 0x1d0]
push eax
call fcn.0041036e
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1d0]
push eax
call fcn.00410670
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.004106e9
lea eax, [ebp - 0x80]
push 0x20
mov dword [ebp + 8], eax
pop esi
xor ecx, ecx
push edi
test esi, esi
jbe 0x4059cc
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
sub edi, eax
lea eax, [ebp + ecx - 0x40]
mov dl, byte [edi + eax]
xor dl, 0x36
inc ecx
mov byte [eax], dl
cmp ecx, esi
jb 0x4059bb
cmp esi, ebx
jae 0x4059e4
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x40]
push 0x36
push eax
call fcn.00419f40
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
call fcn.0041036e
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.00410670
push dword [ebp + 0x14]
lea eax, [ebp - 0xf0]
push dword [ebp + 0x10]
push eax
call fcn.00410670
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.004106e9
lea eax, [ebp - 0x160]
push eax
call fcn.0041036e
xor ecx, ecx
test esi, esi
jbe 0x405a4e
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
sub edi, eax
lea eax, [ebp + ecx - 0x40]
mov dl, byte [edi + eax]
xor dl, 0x5c
inc ecx
mov byte [eax], dl
cmp ecx, esi
jb 0x405a3d
pop edi
cmp esi, ebx
jae 0x405a67
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x40]
push 0x5c
push eax
call fcn.00419f40
add esp, 0xc
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.00410670
push 0x20
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.00410670
push dword [ebp + 0x18]
lea eax, [ebp - 0x160]
push eax
call fcn.004106e9
pop esi
pop ebx
leave
ret 0x14
Function at 0x434550
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2f000]
push edi
jmp 0x43456a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x434571
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x434560
mov eax, 1
add ebx, ebx
jne 0x434583
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x434578
jne 0x434594
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x434578
xor ecx, ecx
sub eax, 3
jb 0x4345a8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43461a
mov ebp, eax
add ebx, ebx
jne 0x4345b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4345c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4345e4
inc ecx
add ebx, ebx
jne 0x4345d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4345c5
jne 0x4345e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4345c5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x434604
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4345f5
jmp 0x434566
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x434604
add edi, ecx
jmp 0x434566
pop esi
mov edi, esi
mov ecx, 0x23d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x434622
cmp byte [edi], 1
jne 0x434622
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x434627
lea edi, [esi + 0x32000]
mov eax, dword [edi]
or eax, eax
je 0x43469f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x390d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3918c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x434654
mov ecx, edi
jns 0x434683
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x39190]
or eax, eax
je 0x434699
mov dword [ebx], eax
add ebx, 4
jmp 0x434671
call dword [esi + 0x391a0]
mov ebp, dword [esi + 0x39194]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4346d3
sub esp, 0xffffff80
jmp 0x403265

Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x403594
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x798008], 0x8088405
inc edx
mov dword [ebx + 0x798008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41c6d0
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41c701
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c6e9
add dl, dl
jne 0x41c70c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c75d
xor eax, eax
add dl, dl
jne 0x41c719
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c7fa
add dl, dl
jne 0x41c728
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c733
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c73e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c749
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41c753
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41c6f8
mov eax, 1
add dl, dl
jne 0x41c76b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c776
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c762
sub eax, ebx
mov ebx, 1
jne 0x41c7a9
mov ecx, 1
add dl, dl
jne 0x41c78f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41c79a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c786
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41c6f8
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41c7c0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41c7cb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c7b7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41c6f8
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41c81b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41c6f8
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41d398
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x41d3ab
add esp, 0xfffffff0
call fcn.00403d90
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00403b18
mov byte [ebx + 4], 0
cmp dword [esi + 0x5c], 0
jne 0x41d3d1
cmp dword [esi + 0x58], 0x40
jb 0x41d5b7
jmp 0x41d3d7
jl 0x41d5b7
lea eax, [ebx + 0xc]
mov edx, 0x40
call fcn.00406e68
push 0
push 0
push 0
push 0x40
lea edx, [ebx + 0xc]
mov eax, esi
call fcn.0041cf50
cmp word [ebx + 0xc], 0x5a4d
jne 0x41d5b7
mov ecx, dword [ebx + 0x48]
test ecx, ecx
jle 0x41d5b7
cmp ecx, 0x10000
jge 0x41d5b7
mov eax, ecx
add eax, 4
add eax, 0x14
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d432
cmp eax, dword [esi + 0x58]
ja 0x41d5b7
jmp 0x41d438
jg 0x41d5b7
lea eax, [ebx + 0x4c]
mov edx, 4
call fcn.00406e68
mov eax, dword [ebx + 0x48]
cdq
push edx
push eax
push 0
push 4
lea edx, [ebx + 0x4c]
mov eax, esi
call fcn.0041cf50
cmp dword [ebx + 0x4c], 0x4550
jne 0x41d5b7
lea eax, [ebx + 0x50]
mov edx, 0x14
call fcn.00406e68
mov eax, dword [ebx + 0x48]
add eax, 4
cdq
push edx
push eax
push 0
push 0x14
lea edx, [ebx + 0x50]
mov eax, esi
call fcn.0041cf50
mov ax, word [ebx + 0x50]
cmp ax, 0x8664
jne 0x41d4ef
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xf0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d4b3
cmp eax, dword [esi + 0x58]
ja 0x41d540
jmp 0x41d4b9
jg 0x41d540
lea eax, [ebx + 0x144]
mov edx, 0xf0
call fcn.00406e68
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xf0
lea edx, [ebx + 0x144]
mov eax, esi
call fcn.0041cf50
mov byte [ebx + 4], 1
jmp 0x41d540
cmp ax, 0x14c
jne 0x41d540
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xe0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d510
cmp eax, dword [esi + 0x58]
ja 0x41d540
jmp 0x41d512
jg 0x41d540
lea eax, [ebx + 0x64]
mov edx, 0xe0
call fcn.00406e68
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xe0
lea edx, [ebx + 0x64]
mov eax, esi
call fcn.0041cf50
mov byte [ebx + 4], 1
cmp byte [ebx + 4], 0
je 0x41d5b7
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
mov di, word [ebx + 0x52]
movzx edx, di
shl edx, 3
lea edx, [edx + edx*4]
add eax, edx
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d571
cmp eax, dword [esi + 0x58]
ja 0x41d5b7
jmp 0x41d573
jg 0x41d5b7
movzx eax, di
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x781e68]
call fcn.00405b5c
add esp, 4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
cdq
push edx
push eax
movzx eax, word [ebx + 0x52]
shl eax, 3
lea eax, [eax + eax*4]
xor edx, edx
push edx
push eax
mov edx, dword [ebx + 8]
mov eax, esi
call fcn.0041cf50
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x41d5ce
call fcn.00403de8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x41e2cc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x78378b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e37d
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e366
test esi, esi
jbe 0x41e37d
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040888c
test eax, eax
jne 0x41e358
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e37d
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e335
jmp 0x41e37d
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e37d
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x783792
ret