joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b55
Capabilities:
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
lea edx, [esp + 0x10]
xorps xmm0, xmm0
xor eax, eax
lea ecx, [esp + 0x28]
mov dword [ecx + 8], eax
mov dword [ecx + 4], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x40], eax
mov dword [ecx + 0x3c], eax
mov dword [ecx], 0x44
movaps xmmword [edx], xmm0
push edx
push ecx
push eax
push eax
push 0x8000000
push eax
push eax
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401bf7
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0xc], 0
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401c15
mov edi, 0x6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401c38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp edi, 3
je 0x401c3c
cmp edi, 2
jne 0x401c4e
mov ecx, dword [ebp + 0x14]
jmp 0x401c3f
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x401bea
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esi], edi
jmp 0x401c41
mov ecx, dword [ebp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x1c]
mov dword [esi], eax
mov dword [esi + 4], edi
jmp 0x401c44
Function at 0x402356
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x210
mov eax, dword [ebp + 8]
xor ebx, ebx
lea esi, [ebp - 0x218]
mov dword [ebp - 0xc], 0
mov word [esi + 0x208], bx
mov word [esi], bx
push 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
je 0x4023ac
lea eax, [ebp - 0xc]
push ebx
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4023ac
mov bl, byte [ebp - 0xc]
and bl, 8
shr bl, 3
mov eax, ebx
add esp, 0x210
pop esi
pop ebx
pop ebp
ret

Function at 0x402512
Capabilities:
Create directory
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0x6c
push esi
push 0x104
push edi
call fcn.00402c6e
add esp, 0xc
test al, al
je 0x40264c
push 0x404542
push 0x104
push edi
call fcn.00402ca9
add esp, 0xc
test al, al
je 0x40264c
mov eax, edi
mov edi, 0x104
push edi
push eax
call fcn.00402c46
add esp, 8
sub edi, eax
mov ecx, eax
xor eax, eax
cmp edi, 0xb
jb 0x40264e
lea edx, [ebp - 0x24]
mov dword [ebp - 0x10], ecx
mov dword [edx + 4], eax
mov dword [edx], eax
mov dword [edx - 4], 0xc
push edx
push esi
call fcn.00402452
add esp, 8
test al, al
je 0x40263a
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
mov esi, 0xfffffff6
mov dword [eax + 4], 0
mov dword [eax], 0x6d
mov eax, dword [ebp - 0x10]
lea ecx, [ecx + eax*2]
add eax, 5
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
mov ebx, 4
push ebx
lea edi, [ebp - 0x2c]
push edi
call sub.ADVAPI32.dll_SystemFunction036
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push ebx
push edi
call fcn.00402be4
add esp, 0x10
cmp dword [ebp - 0x18], 0x103
ja 0x402606
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov word [ecx + eax*2 + 0xa], 0
push str..tmp
push 0x104
mov eax, dword [ebp + 0xc]
mov ebx, eax
push eax
call fcn.00402ca9
add esp, 0xc
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x28]
test eax, eax
cmovne eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402656
inc esi
jne 0x4025d1
jmp 0x402675
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov dword [ecx], 0x75
xor eax, eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x404464
push 0x104
push dword [ebp + 0xc]
call fcn.00402ca9
add esp, 0xc
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x402683
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
sete al
jmp 0x40264e
Function at 0x40268e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov edi, dword [ebp + 0xc]
lea esi, [ebp - 0x218]
xor eax, eax
mov word [esi + 0x208], ax
mov word [esi], ax
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x4026d6
mov bl, 1
push dword [ebp + 0x10]
push edi
push esi
call fcn.00402512
add esp, 0xc
test al, al
jne 0x40271e
push 0x104
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x40271c
push eax
push esi
call fcn.00402e93
add esp, 8
xor ebx, ebx
cmp eax, esi
je 0x40271e
mov word [eax], 0
mov eax, dword [ebp + 0x10]
mov dword [eax + 4], ebx
mov dword [eax], ebx
push eax
push edi
push esi
call fcn.00402512
add esp, 0xc
mov ebx, eax
jmp 0x40271e
xor ebx, ebx
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40272b
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x254
mov ebx, dword [ebp + 8]
mov esi, 0x104
push esi
push ebx
call fcn.00402c46
add esp, 8
mov edi, eax
push 0x404468
push esi
push ebx
call fcn.00402ca9
add esp, 0xc
test al, al
je 0x402847
mov dword [ebp - 0x10], edi
lea esi, [ebp - 0x260]
push 0x250
push 0
push esi
call fcn.00401020
add esp, 0xc
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x402830
mov ecx, dword [ebp - 0x10]
mov edi, eax
lea esi, [ecx + 1]
cmp word [ebp - 0x2c], 0
mov ecx, 0x234
mov eax, 0x2c
lea edx, [ebp - 0x234]
cmove ecx, eax
lea eax, [ebp - 0x2c]
cmove eax, edx
cmp word [ebp + ecx - 0x260], 0x2e
jne 0x4027d3
movzx ecx, word [eax + 2]
test cx, cx
je 0x402813
cmp cx, 0x2e
jne 0x4027d3
cmp word [eax + 4], 0
je 0x402813
cmp esi, 0x103
ja 0x4027e5
mov ecx, dword [ebp - 0x10]
mov word [ebx + ecx*2 + 2], 0
push eax
push 0x104
push ebx
call fcn.00402ca9
add esp, 0xc
test al, al
je 0x402813
test byte [ebp - 0x260], 0x10
jne 0x40280a
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x402813
push ebx
call fcn.0040272b
add esp, 4
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402794
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x10]
cmp eax, 0x103
ja 0x402840
mov word [ebx + eax*2], 0
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esp, 0x254
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402852
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x668
lea esi, [ebp - 0x674]
xor eax, eax
mov word [esi + 0x208], ax
mov word [esi], ax
push dword [ebp + 8]
push 0x104
push esi
call fcn.00402c6e
add esp, 0xc
test al, al
je 0x4029ac
push dword [ebp + 0xc]
push 0x104
push esi
call fcn.00402ca9
add esp, 0xc
test al, al
je 0x4029ac
push 0x404472
push 0x104
push esi
call fcn.00402ca9
add esp, 0xc
test al, al
je 0x4029ac
xor edi, edi
lea ebx, [ebp - 0x25c]
push 0x250
push edi
push ebx
call fcn.00401020
add esp, 0xc
push edi
push edi
push 1
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
cmp eax, 0xffffffff
je 0x4029ac
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
xor eax, eax
lea ecx, [ebp - 0x468]
mov word [ecx + 0x208], ax
mov word [ecx], ax
test byte [ebp - 0x25c], 0x10
je 0x402993
cmp word [ebp - 0x28], 0
mov eax, 0x234
mov ecx, 0x2c
lea ebx, [ebp - 0x28]
lea edx, [ebp - 0x230]
cmove eax, ecx
cmove ebx, edx
cmp word [ebp + eax - 0x25c], 0x2e
jne 0x402950
movzx eax, word [ebx + 2]
test ax, ax
je 0x402993
cmp ax, 0x2e
jne 0x402950
cmp word [ebx + 4], 0
je 0x402993
push dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x468]
push eax
call fcn.00402c6e
add esp, 0xc
test al, al
je 0x402993
push ebx
push 0x104
lea eax, [ebp - 0x468]
push eax
call fcn.00402ca9
add esp, 0xc
test al, al
je 0x402993
lea eax, [ebp - 0x468]
push eax
call fcn.0040272b
add esp, 4
lea eax, [ebp - 0x25c]
push eax
push esi
call edi
test eax, eax
jne 0x402904
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
add esp, 0x668
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4029b7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
xor esi, esi
lea edi, [ebp - 0x218]
mov word [edi + 0x208], si
mov word [edi], si
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x402a02
xor ebx, ebx
inc ebx
push dword [esi*4 + 0x40447c]
push edi
call fcn.00402852
add esp, 8
test esi, esi
mov esi, ebx
je 0x4029ec
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402a0d
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x660
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
call fcn.004029b7
lea edi, [esp + 0x1c]
xor eax, eax
mov ecx, edi
mov dword [esp], eax
mov dword [esp + 4], eax
call fcn.00401040
mov ecx, edi
push ebx
call fcn.00401096
test al, al
je 0x402a60
cmp byte [esp + 0x32], 0
je 0x402a74
mov dword [esi], 0x76
mov dword [esi + 4], 0
jmp 0x402bce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], 0x65
mov dword [esi + 4], eax
jmp 0x402bce
cmp dword [esp + 0x2c], 1
jne 0x402a8c
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], eax
mov dword [esi + 4], eax
jmp 0x402bc1
xor eax, eax
lea ecx, [esp + 0x450]
mov word [ecx + 0x208], ax
mov word [ecx], ax
mov eax, esp
push eax
push ecx
push ebx
call fcn.0040268e
add esp, 0xc
test al, al
je 0x402bc5
push edi
call fcn.00401932
add esp, 4
lea edx, [esp + 0x38]
xor eax, eax
lea ecx, [esp + 0x244]
mov word [ecx + 0x208], ax
mov word [edx + 0x208], ax
mov word [ecx], ax
mov word [edx], ax
push edx
push ecx
lea eax, [esp + 0x458]
push eax
push ebx
push edi
lea ebx, [esp + 0x1c]
push ebx
call fcn.00401dd4
add esp, 0x18
mov eax, ebx
mov ebx, dword [ebx]
mov eax, dword [eax + 4]
mov dword [esp], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
dec ecx
push ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
test ebx, ebx
jne 0x402b4d
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x248]
push eax
push edi
lea eax, [esp + 0x14]
push eax
call fcn.00402152
add esp, 0x10
mov ebx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 8], 0
push 2
lea eax, [esp + 0xc]
push eax
push 0x404568
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallGoogle_Chrome
push 0x80000001
call fcn.00403162
add esp, 0x14
test al, al
je 0x402b83
cmp word [esp + 8], 0x30
je 0x402ba8
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x244]
push eax
call ebx
lea eax, [esp + 0x38]
push eax
call ebx
lea eax, [esp + 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, dword [esp + 0x14]
push ebx
push dword [esp + 0x1c]
push edi
call fcn.004018a3
add esp, 0xc
mov eax, dword [esp + 0x18]
mov dword [esi + 4], ebx
mov dword [esi], eax
jmp 0x402bce
movsd xmm0, qword [esp]
movsd qword [esi], xmm0
lea ecx, [esp + 0x1c]
call fcn.00401062
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402f2e
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, ecx
push dword [ecx]
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402fdf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
xor ebx, ebx
test eax, eax
mov dword [ebp - 0x14], eax
je 0x402fe1
mov edi, dword [ebp + 8]
push dword [esi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x402fe1
test esi, esi
je 0x402fc6
xor ebx, ebx
mov edi, esi
mov eax, 0x800000
sub edi, ebx
cmp edi, eax
cmovae edi, eax
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
add eax, ebx
push ecx
lea ecx, [ebp - 0x18]
push ecx
push edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fd6
add ebx, edi
cmp esi, ebx
ja 0x402f94
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne bl
jmp 0x402fe1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x40304a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x10]
xor eax, eax
add edx, edx
mov dword [ebx], edx
lea edx, [ebp - 0x14]
mov dword [edx], eax
push ebx
push edi
push edx
push eax
push esi
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4030b3
cmp dword [ebp - 0x14], 1
mov eax, 0x32
jne 0x4030b3
mov ecx, dword [ebp - 0x10]
cmp ecx, 1
ja 0x403095
mov word [edi], 0
jmp 0x4030b1
shr ecx, 1
xor eax, eax
cmp word [edi + ecx*2 - 2], 0
je 0x4030b3
cmp ecx, dword [ebp + 0x10]
mov eax, 0xea
jae 0x4030b3
mov word [edi + ecx*2], 0
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x4030be
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea edi, [ebp - 0x10]
xor edx, edx
lea esi, [ebp - 0x14]
mov dword [esi], edx
mov dword [edi], 4
push edi
push ebx
push esi
push edx
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403107
cmp dword [ebp - 0x14], 4
mov eax, 0x32
jne 0x403107
xor ecx, ecx
cmp dword [ebp - 0x10], 4
mov eax, 0xe8
cmove eax, ecx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427004]
jne 0x401010
repz ret
jmp fcn.0040176d

Function at 0x40655b
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.004032f4
and dword [ebp - 4], 0
cmp dword [0x4290dc], 0
mov ebx, eax
jne 0x40660c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4066bd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4066bd
push eax
call fcn.00403282
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4290dc], eax
call esi
push eax
call fcn.00403282
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4290e0], eax
call esi
push eax
call fcn.00403282
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4290e4], eax
call esi
push eax
call fcn.00403282
pop ecx
mov dword [0x4290ec], eax
test eax, eax
je 0x40660c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403282
pop ecx
mov dword [0x4290e8], eax
mov eax, dword [0x4290e8]
cmp eax, ebx
je 0x406664
cmp dword [0x4290ec], ebx
je 0x406664
push eax
call fcn.004032fd
push dword [0x4290ec]
mov esi, eax
call fcn.004032fd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406664
test edi, edi
je 0x406664
call esi
test eax, eax
je 0x40665b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40665b
test byte [ebp - 0xc], 1
jne 0x406664
or dword [ebp + 0x10], 0x200000
jmp 0x40669d
mov eax, dword [0x4290e0]
cmp eax, ebx
je 0x40669d
push eax
call fcn.004032fd
pop ecx
test eax, eax
je 0x40669d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40669d
mov eax, dword [0x4290e4]
cmp eax, ebx
je 0x40669d
push eax
call fcn.004032fd
pop ecx
test eax, eax
je 0x40669d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4290dc]
call fcn.004032fd
pop ecx
test eax, eax
je 0x4066bd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4066bf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x420d89
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [0x437044]
push dword [0x436d60]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret

Function at 0x420e18
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
jle 0x420e42
push esi
and dword [ebp - 4], 0
lea esi, [ebp - 4]
call fcn.00420e0d
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, edi
xor byte [eax], cl
inc edi
cmp edi, dword [ebp + 0xc]
jl 0x420e25
pop esi
cmp dword [ebp + 0xc], 0x2d
pop edi
jne 0x420e5a
or dword [0x437054], 0xffffffff
mov dword [0x437050], 0xa62e7790
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cf00
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 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
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 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
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 0x41cf28
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 0x41f05c
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], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x112854a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ab
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
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 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
mov eax, edx
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 0x1128551
ret