joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4173d0
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0xa14
mov eax, dword [0x4630e0]
xor eax, esp
mov dword [esp + 0xa10], eax
mov eax, dword [0x464c00]
push esi
push edi
mov edi, dword [esp + 0xa20]
imul edi, edi, 0x1008
cmp byte [0x464aec], 0
mov dword [esp + 8], edi
lea esi, [edi + eax]
je 0x41761e
cmp byte [esi + 0x84], 0
je 0x41761e
mov eax, dword [esi + 0x5a4]
test eax, eax
je 0x4175fa
cmp dword [eax + 0x104], 1
jl 0x4175fa
cmp byte [esi + 0x6ac], 0
push ebx
lea ebx, [esi + 0x6ac]
jne 0x41748d
lea ecx, [esp + 0x318]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push ebx
push 0
push 0x453b90
lea edx, [esp + 0x324]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, ebx
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x417472
mov ecx, dword [0x453b88]
mov dword [eax], ecx
mov dl, byte [0x453b8c]
mov byte [eax + 4], dl
push 0
push ebx
push esi
call fcn.00414220
add esp, 0xc
test eax, eax
je 0x4174c2
push 0xb6
call fcn.0040ab70
add esp, 4
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0xa10]
xor ecx, esp
call fcn.0043b76b
add esp, 0xa14
ret
lea eax, [esp + 0x214]
push eax
push str..htm
call fcn.0040dc90
add esp, 8
test eax, eax
je 0x4174e2
push 0xa5
jmp 0x4174a2
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebp
push 0
call esi
push 1
mov ebp, eax
call esi
mov dword [esp + 0x14], eax
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x464aec]
mov byte [esp + eax + 0x18], cl
add eax, 1
test cl, cl
jne 0x417500
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x417518
lea ecx, [esp + 0x18]
sub eax, edx
push 0x3f
push ecx
mov esi, eax
call fcn.0043afd0
add esp, 8
test eax, eax
je 0x41755c
cmp byte [esp + esi + 0x17], 0x26
je 0x41757a
lea edi, [esp + 0x18]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x417546
mov dx, word [0x453824]
mov word [edi], dx
jmp 0x417576
lea edi, [esp + 0x18]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x417563
mov ax, word [0x453820]
mov word [edi], ax
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x820]
push ecx
push ebx
call fcn.004086b0
mov edx, dword [0x464c00]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [edi + edx + 0x84]
push eax
lea ecx, [esp + 0x430]
push str.C_s_uploadfieldmarkup_s
push ecx
call esi
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x438]
push edx
push eax
push ebp
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x240]
push edx
lea eax, [esp + 0x64c]
push str._s__ssdx_dsdy_dvectorid_s
push eax
call esi
add esp, 0x34
push 1
lea ecx, [esp + 0x624]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
pop ebp
jae 0x4174aa
push 0x7a
jmp 0x4174a2
push 0xb5
call fcn.0040ab70
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0xa10]
xor ecx, esp
call fcn.0043b76b
add esp, 0xa14
ret
push 0x95
call fcn.0040ab70
mov ecx, dword [esp + 0xa1c]
add esp, 4
pop edi
pop esi
xor ecx, esp
call fcn.0043b76b
add esp, 0xa14
ret
Function at 0x418100
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4630e0]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [esp + 0x218]
imul esi, esi, 0x1008
add esi, dword [0x464c00]
push edi
cmp dword [esi + 0x804], 0
mov dword [esp + 8], 0
je 0x4182b6
mov edi, 1
cmp dword [esi + 0x808], edi
jl 0x4182b6
push ebp
lea eax, [esp + 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x453c44
lea edx, [esp + 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x10]
push 0x1000
push eax
call fcn.0040a330
mov ebp, eax
add esp, 8
test ebp, ebp
jge 0x41819e
mov dword [esp + 0xc], edi
jmp 0x41827a
push ebx
push 0x4000
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
jne 0x4181c2
mov dword [esp + 0x10], edi
jmp 0x41825b
mov ecx, dword [esi + 0x804]
mov edx, dword [0x460004]
push 0
push ecx
push edx
call fcn.0040a3a0
add esp, 0xc
cmp eax, dword [esi + 0x804]
je 0x4181e8
mov dword [esp + 0x10], edi
jmp 0x41825b
mov edi, dword [esi + 0x808]
test edi, edi
jle 0x41822a
cmp edi, 0x4000
mov esi, edi
jl 0x418201
mov esi, 0x4000
mov eax, dword [0x460004]
push esi
push ebx
push eax
call fcn.0040a3c0
add esp, 0xc
cmp eax, esi
jne 0x418253
push esi
push ebx
push ebp
call fcn.0040a3f0
add esp, 0xc
cmp eax, esi
jne 0x418253
sub edi, esi
test edi, edi
jg 0x4181f2
push ebp
call fcn.0040a380
add esp, 4
or ebp, 0xffffffff
test eax, eax
jne 0x418253
mov edx, dword [esp + 0x224]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.00417830
add esp, 8
test eax, eax
je 0x41825b
mov dword [esp + 0x10], 1
test ebx, ebx
je 0x418279
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
cmp ebp, 0xffffffff
jle 0x418288
push ebp
call fcn.0040a380
add esp, 4
cmp byte [esp + 0x10], 0
pop ebp
je 0x41829b
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 8]
pop edi
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0043b76b
add esp, 0x210
ret
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0043b76b
add esp, 0x210
ret
Function at 0x428290
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push 1
lea eax, [esp + 0xb]
push 1
push eax
call fcn.0043d673
add esp, 0x10
cmp eax, 1
jne 0x4282b7
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 8]
mov dword [edx], ecx
xor eax, eax
pop ecx
ret
push esi
call fcn.0043df03
add esp, 4
neg eax
sbb eax, eax
pop ecx
ret

Function at 0x4283a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, dword [esp + 0x18]
push 2
push 0
mov ebp, 0xffff
push esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], 0
call fcn.0043e1bf
add esp, 0xc
test eax, eax
je 0x4283d3
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
push edi
push esi
call fcn.0043e0ca
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x14], edi
jae 0x4283ed
mov dword [esp + 0xc], edi
mov ebp, eax
push 0x404
call fcn.0043cde4
mov esi, eax
add esp, 4
test esi, esi
jne 0x428407
pop edi
pop esi
pop ebp
add esp, 0xc
ret
push ebx
mov ebx, 4
cmp ebp, ebx
jbe 0x4284b6
jmp 0x428428
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
lea eax, [ebx + 0x400]
cmp eax, ebp
mov ebx, ebp
ja 0x428436
mov ebx, eax
mov ebp, edi
sub ebp, ebx
mov eax, edi
sub eax, ebp
cmp eax, 0x404
mov edi, 0x404
ja 0x42844c
mov edi, eax
mov eax, dword [esp + 0x20]
push 0
push ebp
push eax
call fcn.0043e1bf
add esp, 0xc
test eax, eax
jne 0x4284b6
mov ecx, dword [esp + 0x20]
push ecx
push 1
push edi
push esi
call fcn.0043d673
add esp, 0x10
cmp eax, 1
jne 0x4284b6
lea eax, [edi - 3]
test eax, eax
jle 0x4284ac
lea ecx, [ecx]
sub eax, 1
cmp byte [eax + esi], 0x50
jne 0x42849e
cmp byte [eax + esi + 1], 0x4b
jne 0x42849e
cmp byte [eax + esi + 2], 5
jne 0x42849e
cmp byte [eax + esi + 3], 6
je 0x4284a4
test eax, eax
jg 0x428480
jmp 0x4284ac
add eax, ebp
mov dword [esp + 0x14], eax
jne 0x4284b6
cmp ebx, dword [esp + 0x10]
jb 0x428420
push esi
call fcn.0043cd07
mov eax, dword [esp + 0x18]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x428ad0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 4], 0
mov dword [esp], 0
jne 0x428af3
mov eax, 0xffffff9a
add esp, 8
ret
push esi
mov esi, dword [eax + 0x7c]
test esi, esi
jne 0x428b05
mov eax, 0xffffff9a
pop esi
add esp, 8
ret
cmp dword [esi], 0
jne 0x428b14
mov eax, 0xffffff9c
pop esi
add esp, 8
ret
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x428b23
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x5c]
cmp ecx, eax
mov dword [esi + 0x14], ecx
jbe 0x428b37
mov dword [esi + 0x14], eax
cmp dword [esi + 0x14], 0
push ebx
push ebp
push edi
jbe 0x428c51
cmp dword [esi + 8], 0
jne 0x428baa
mov eax, dword [esi + 0x58]
test eax, eax
jbe 0x428baa
mov edi, 0x4000
cmp eax, edi
jae 0x428b64
mov edi, eax
test edi, edi
je 0x428c5d
mov ecx, dword [esi + 0x68]
add ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x60]
push 0
push ecx
push edx
call fcn.0043e1bf
add esp, 0xc
test eax, eax
jne 0x428c67
mov eax, dword [esi + 0x60]
mov ecx, dword [esi]
push eax
push 1
push edi
push ecx
call fcn.0043d673
add esp, 0x10
cmp eax, 1
jne 0x428c67
mov edx, dword [esi]
add dword [esi + 0x3c], edi
sub dword [esi + 0x58], edi
mov dword [esi + 4], edx
mov dword [esi + 8], edi
cmp dword [esi + 0x64], 0
jne 0x428c01
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 8]
cmp eax, edi
jae 0x428bbc
mov edi, eax
xor eax, eax
test edi, edi
jbe 0x428bd5
mov ecx, dword [esi + 4]
mov cl, byte [eax + ecx]
mov edx, dword [esi + 0x10]
mov byte [eax + edx], cl
add eax, 1
cmp eax, edi
jb 0x428bc2
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x50]
push edi
push edx
push eax
call fcn.00429b00
sub dword [esi + 0x5c], edi
sub dword [esi + 8], edi
sub dword [esi + 0x14], edi
add dword [esi + 0x10], edi
add dword [esi + 4], edi
add dword [esi + 0x18], edi
add esp, 0xc
add dword [esp + 0x10], edi
mov dword [esi + 0x50], eax
jmp 0x428c40
mov ebx, dword [esi + 0x18]
mov ebp, dword [esi + 0x10]
lea ecx, [esi + 4]
push 2
push ecx
call fcn.00429720
mov edi, dword [esi + 0x18]
mov edx, dword [esi + 0x50]
sub edi, ebx
push edi
push ebp
push edx
mov dword [esp + 0x28], eax
call fcn.00429b00
sub dword [esi + 0x5c], edi
add dword [esp + 0x24], edi
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x28]
add esp, 0x14
cmp eax, 1
je 0x428c51
test eax, eax
jne 0x428c72
cmp dword [esi + 0x14], 0
ja 0x428b44
cmp dword [esp + 0x14], 0
jne 0x428c72
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 8
ret
pop edi
pop ebp
pop ebx
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x429080
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x14
push ebp
push esi
xor esi, esi
push edi
push 0x4000
mov edi, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], esi
call fcn.0043cde4
mov ebp, eax
add esp, 4
cmp ebp, esi
jne 0x4290b9
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x14
ret
push ebx
push esi
push 0x80
push 1
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x40000000
push edi
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x429152
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push edi
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4291cc
push edi
lea ecx, [esp + 0x18]
call fcn.00428fe0
add esp, 4
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esp + 0x2c]
jne 0x42912f
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x30]
jne 0x42912f
mov dword [esp + 0x10], 0
jmp 0x4291d4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4291cc
mov esi, dword [esp + 0x28]
push esi
call fcn.00428ec0
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4291cc
push 0x4000
push ebp
push esi
mov dword [esp + 0x28], 1
call fcn.00428ad0
mov edi, eax
add esp, 0xc
test edi, edi
jl 0x4291cc
je 0x4291d4
xor esi, esi
test edi, edi
jbe 0x4291b3
lea esp, [esp]
push 0
lea edx, [esp + 0x1c]
push edx
mov eax, edi
sub eax, esi
push eax
lea ecx, [esi + ebp]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4291cc
add esi, dword [esp + 0x18]
cmp esi, edi
jb 0x429190
mov edx, dword [esp + 0x28]
push 0x4000
push ebp
push edx
call fcn.00428ad0
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x429184
mov dword [esp + 0x10], 1
push ebp
call fcn.0043cd07
add esp, 4
cmp dword [esp + 0x1c], 0
je 0x4291f1
mov eax, dword [esp + 0x28]
push eax
call fcn.00428c80
add esp, 4
test ebx, ebx
je 0x429201
cmp ebx, 0xffffffff
je 0x429201
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x429b00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x429b0b
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 8
not esi
jb 0x429c07
push ebp
mov ebp, edi
shr ebp, 3
jmp 0x429b30
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x454198]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x454198]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x454198]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x454198]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x454198]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x454198]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x454198]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x454198]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x429b30
pop ebp
test edi, edi
je 0x429c2c
jmp 0x429c10
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x454198]
add ecx, 1
sub edi, 1
jne 0x429c10
mov eax, esi
pop edi
not eax
pop esi
ret
Function at 0x42a870
Capabilities:
Compute adler32 checksum

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
movzx ecx, di
shr edi, 0x10
test esi, esi
jne 0x42a88c
pop edi
mov eax, 1
pop esi
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
jbe 0x42a99c
push ebp
lea ebx, [ebx]
cmp ebx, 0x15b0
mov eax, ebx
jb 0x42a8af
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
jl 0x42a95b
mov edx, eax
shr edx, 4
mov ebp, edx
neg ebp
shl ebp, 4
add eax, ebp
jmp 0x42a8d0
movzx ebp, byte [esi]
add ecx, ebp
movzx ebp, byte [esi + 1]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 2]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 3]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 4]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 5]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 6]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 7]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 8]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 9]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xa]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xb]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xc]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xd]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xe]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xf]
add edi, ecx
add ecx, ebp
add edi, ecx
add esi, 0x10
sub edx, 1
jne 0x42a8d0
test eax, eax
je 0x42a96f
nop
movzx edx, byte [esi]
add ecx, edx
add esi, 1
add edi, ecx
sub eax, 1
jne 0x42a960
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
ja 0x42a8a0
pop ebp
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
ret
Function at 0x43b76b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4630e0]
jne 0x43b775
repz ret
jmp fcn.00441776

Function at 0x44d38e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004411f0
xor ebx, ebx
cmp dword [0x465dfc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x44d463
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x44d3ce
xor eax, eax
jmp 0x44d527
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45d3a4
push edi
call esi
cmp eax, ebx
je 0x44d3c7
push eax
call fcn.0044118d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x465dfc], eax
call esi
push eax
call fcn.0044118d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x465e00], eax
call esi
push eax
call fcn.0044118d
mov dword [0x465e04], eax
lea eax, [ebp - 8]
push eax
call fcn.0044403e
test eax, eax
pop ecx
pop ecx
je 0x44d431
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043f94c
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x44d463
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0044118d
cmp eax, ebx
pop ecx
mov dword [0x465e0c], eax
je 0x44d463
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044118d
pop ecx
mov dword [0x465e08], eax
mov eax, dword [0x465e08]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x44d4dc
cmp dword [0x465e0c], esi
je 0x44d4dc
push eax
call fcn.004411f9
pop ecx
call eax
cmp eax, ebx
je 0x44d4a9
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x465e0c]
call fcn.004411f9
pop ecx
call eax
test eax, eax
je 0x44d4a9
test byte [ebp - 0x18], 1
jne 0x44d4dc
lea eax, [ebp - 0xc]
push eax
call fcn.00444075
test eax, eax
pop ecx
je 0x44d4c4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043f94c
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x44d4d3
or dword [ebp + 0x10], 0x200000
jmp 0x44d50d
or dword [ebp + 0x10], 0x40000
jmp 0x44d50d
mov eax, dword [0x465e00]
cmp eax, esi
je 0x44d50d
push eax
call fcn.004411f9
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x44d50d
mov eax, dword [0x465e04]
cmp eax, esi
je 0x44d50d
push dword [ebp - 4]
push eax
call fcn.004411f9
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x465dfc]
call fcn.004411f9
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x445008], 0x8088405
inc edx
mov dword [ebx + 0x445008], 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 0x41d438
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x41d44d
add esp, 0xfffffff0
call fcn.00403da8
mov edi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x427b1f
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.00403b30
mov byte [ebx + 8], 0
mov esi, edi
mov dword [ebx + 4], esi
mov eax, esi
call fcn.004300a0
cmp edx, 0
jne 0x41d48b
cmp eax, 0x40
jb 0x41d711
jmp 0x41d491
jl 0x41d711
lea eax, [ebx + 0x10]
mov edx, 0x40
call fcn.00406ec8
push 0
push 0
push 0
push 0x40
lea edx, [ebx + 0x10]
mov eax, dword [ebx + 4]
call fcn.0043053c
test al, al
je 0x41d711
cmp word [ebx + 0x10], 0x5a4d
jne 0x41d711
mov eax, dword [ebx + 0x4c]
test eax, eax
jle 0x41d711
cmp eax, 0x10000
jge 0x41d711
mov eax, dword [ebx + 4]
call fcn.004300a0
push edx
push eax
mov eax, dword [ebx + 0x4c]
add eax, 4
add eax, 0x14
cdq
cmp edx, dword [esp + 4]
jne 0x41d502
cmp eax, dword [esp]
pop edx
pop eax
ja 0x41d711
jmp 0x41d50a
pop edx
pop eax
jg 0x41d711
pop es
add al, byte [eax]
invalid
lea eax, [ebx + 0x50]
mov edx, 4
call fcn.00406ec8
mov eax, dword [ebx + 0x4c]
cdq
push edx
push eax
push 0
push 4
lea edx, [ebx + 0x50]
push eax

Function at 0x41e5c4
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
add edx, edx
inc edx
test edx, edx
js 0x41e5e0
mov ecx, dword [eax + edx*4]
dec edx
push ecx
jns 0x41e5d9
mov dword [ebp + 0x10], esp
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
lea ebx, [ecx + 1]
mov eax, ebx
cdq
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ebx, ebx
jle 0x41e61a
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], eax
sub dword [ebp - 0x30], 1
sbb dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp ebx, 1
jle 0x41e641
mov eax, dword [esi + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x14], eax
sub dword [ebp - 0x30], 1
sbb dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp ebx, 2
jle 0x41e668
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x1c], eax
sub dword [ebp - 0x30], 1
sbb dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
cmp ebx, 3
jle 0x41e68f
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x24], eax
sub dword [ebp - 0x30], 1
sbb dword [ebp - 0x2c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
lea eax, [esi + 0x20]
xor edx, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
xor eax, eax
mov dword [ebp - 8], eax
mov word [ebp - 2], 0
mov word [ebp - 2], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 8], esp
and esp, 0xfffffff0
push 0x33
call fcn.0041e6cf