joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420620
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push eax
push edx
push esi
call fcn.00420150
lea edi, [eax*4]
xor ebx, ebx
test edi, edi
mov dword [esp + 0x18], eax
jle 0x420691
lea edx, [esi + edi*4 + 8]
lea ecx, [esi + 8]
push ebp
mov eax, dword [edx - 8]
mov ebp, dword [ecx - 8]
mov dword [ecx - 8], eax
mov dword [edx - 8], ebp
mov ebp, dword [edx - 4]
mov eax, dword [ecx - 4]
mov dword [ecx - 4], ebp
mov ebp, dword [edx]
mov dword [edx - 4], eax
mov eax, dword [ecx]
mov dword [ecx], ebp
mov ebp, dword [edx + 4]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [ecx + 4], ebp
mov dword [edx + 4], eax
add ebx, 4
sub edi, 4
add ecx, 0x10
sub edx, 0x10
cmp ebx, edi
jl 0x420650
mov eax, dword [esp + 0x1c]
pop ebp
cmp eax, 1
jle 0x42084f
lea edx, [eax - 1]
lea ecx, [ecx]
mov ecx, dword [esi + 0x10]
movzx ebx, byte [esi + 0x11]
mov ebx, dword [ebx*4 + str.ccccwwww]
add esi, 0x10
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x44e2d0]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x44ead0]
movzx ebx, byte [esi + 2]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x44e6d0]
movzx ebx, byte [esi + 5]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x44eed0]
mov ecx, dword [esi + 4]
mov dword [esi], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x44e2d0]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x44ead0]
movzx ebx, byte [esi + 6]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x44e6d0]
movzx ebx, byte [esi + 9]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x44eed0]
mov ecx, dword [esi + 8]
mov dword [esi + 4], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x44e2d0]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x44ead0]
movzx ebx, byte [esi + 0xa]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x44e6d0]
movzx ebx, byte [esi + 0xd]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x44eed0]
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x44e2d0]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x44ead0]
movzx ebx, byte [esi + 0xe]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x44e6d0]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x44eed0]
sub edx, 1
mov dword [esi + 0xc], edi
jne 0x4206a0
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x4228d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x134
mov eax, dword [0x4630d0]
xor eax, esp
mov dword [esp + 0x130], eax
mov eax, dword [esp + 0x13c]
push esi
mov esi, ecx
mov edx, dword [esi + 0x10]
push edi
mov edi, dword [esp + 0x140]
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], esi
xor ecx, ecx
lea eax, [edx + 2]
cmp byte [eax - 2], 0
jne 0x422937
cmp byte [eax - 1], 0
jne 0x42292a
cmp byte [eax], 0
jne 0x42292f
cmp byte [eax + 1], 0
jne 0x422934
add ecx, 4
add eax, 4
cmp ecx, 0x20
jl 0x422906
jmp 0x422937
add ecx, 1
jmp 0x422937
add ecx, 2
jmp 0x422937
add ecx, 3
cmp ecx, 0x20
jne 0x422944
lea eax, [ecx + 0x4c]
jmp 0x422a93
push ebp
push pe_nt_image_headers32
push edx
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00420150
mov ebp, eax
mov eax, dword [esp + 0x14c]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x10c], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x110], ecx
mov dword [esp + 0x114], edx
mov dword [esp + 0x118], eax
push ebx
jmp 0x422990
xor ebx, ebx
mov edx, dword [edi]
mov eax, dword [edx + 0xa4]
mov ecx, edi
call eax
test eax, eax
jne 0x4229c3
mov edx, dword [edi]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x13]
push eax
mov ecx, edi
call edx
mov al, byte [esp + 0x13]
mov byte [esp + ebx + 0x130], al
add ebx, 1
cmp ebx, 0x10
jb 0x422992
cmp ebx, 0x10
sbb esi, esi
mov cl, 0x10
sub cl, bl
neg esi
cmp ebx, 0x10
mov byte [esp + 0x18], cl
jae 0x4229f4
mov ecx, dword [esp + 0x18]
mov edx, 0x10
sub edx, ebx
push edx
lea eax, [esp + ebx + 0x134]
push ecx
push eax
call fcn.00432d00
add esp, 0xc
xor eax, eax
jmp 0x422a00
mov dl, byte [esp + eax + 0x110]
xor byte [esp + eax + 0x130], dl
add eax, 1
cmp eax, 0x10
jb 0x422a00
lea eax, [esp + 0x120]
push eax
lea ecx, [esp + 0x134]
push ecx
mov ecx, dword [esp + 0x24]
push ebp
lea edx, [esp + 0x2c]
push edx
call fcn.00420860
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
mov edx, dword [esp + 0x128]
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x12c]
mov dword [esp + 0x114], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x118], edx
mov edx, dword [ecx]
mov edx, dword [edx + 0x84]
mov dword [esp + 0x11c], eax
push 0x10
lea eax, [esp + 0x124]
push eax
call edx
test eax, eax
jne 0x422a91
test esi, esi
je 0x422990
pop ebx
pop ebp
mov ecx, dword [esp + 0x138]
pop edi
pop esi
xor ecx, esp
call fcn.00431df7
add esp, 0x134
ret 0xc
Function at 0x422ab0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x124
mov eax, dword [0x4630d0]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x138]
push edi
mov edi, dword [esp + 0x138]
mov ebx, ecx
mov eax, dword [ebx + 0x10]
push pe_nt_image_headers32
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.00420620
mov ebp, eax
mov eax, dword [esp + 0x140]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x100], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x104], ecx
mov dword [esp + 0x108], edx
mov dword [esp + 0x10c], eax
lea ecx, [ecx]
mov edx, dword [edi]
mov edx, dword [edx + 0x40]
xor eax, eax
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], eax
push 0x10
lea eax, [esp + 0x114]
push eax
mov ecx, edi
call edx
lea eax, [esp + 0x120]
push eax
lea ecx, [esp + 0x114]
push ecx
push ebp
lea edx, [esp + 0x1c]
push edx
mov ecx, ebx
call fcn.00421940
xor eax, eax
movzx ecx, byte [esp + eax + 0x100]
movzx edx, byte [esp + eax + 0x101]
xor byte [esp + eax + 0x120], cl
xor byte [esp + eax + 0x121], dl
movzx ecx, byte [esp + eax + 0x102]
movzx edx, byte [esp + eax + 0x103]
xor byte [esp + eax + 0x122], cl
xor byte [esp + eax + 0x123], dl
add eax, 4
cmp eax, 0x10
jl 0x422b70
mov eax, dword [esp + 0x110]
mov edx, dword [esp + 0x118]
mov ecx, dword [esp + 0x114]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x11c]
mov dword [esp + 0x108], edx
mov edx, dword [esi]
mov edx, dword [edx + 0x84]
mov dword [esp + 0x10c], eax
push 0x10
lea eax, [esp + 0x124]
mov dword [esp + 0x108], ecx
push eax
mov ecx, esi
call edx
test eax, eax
jne 0x422c7a
mov eax, dword [edi]
mov edx, dword [eax + 0xa4]
mov ecx, edi
call edx
test eax, eax
je 0x422b20
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x422c25
xor edi, edi
jmp 0x422c28
mov edi, dword [eax + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 0xb0]
mov ecx, esi
call edx
mov bl, byte [eax + edi - 1]
cmp bl, 0x10
ja 0x422c75
mov eax, dword [esi]
mov edx, dword [eax + 0xb0]
mov ecx, esi
call edx
mov edi, dword [esi]
mov eax, edi
mov edx, dword [eax + 0xb0]
push 1
mov ecx, esi
call edx
mov ecx, eax
mov ebp, edx
movsx eax, bl
cdq
sub ecx, eax
sbb ebp, edx
mov edx, dword [edi + 0xb8]
push ebp
push ecx
mov ecx, esi
call edx
xor eax, eax
jmp 0x422c7a
mov eax, 0x6a
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00431df7
add esp, 0x124
ret 0xc
Function at 0x423a80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esi + 0x2c]
push edi
lea esp, [esp]
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea edx, [ecx + ebp - 0x106]
cmp eax, edx
mov dword [esp + 0xc], edi
jb 0x423b10
mov eax, dword [esi + 0x38]
push ebp
lea ecx, [eax + ebp]
push ecx
push eax
call fcn.004343c0
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebp
sub dword [esi + 0x6c], ebp
add esp, 0xc
sub dword [esi + 0x5c], ebp
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x423adf
sub eax, ebp
jmp 0x423ae1
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x423ad0
mov ecx, dword [esi + 0x40]
mov edx, ebp
lea ecx, [ecx + ebp*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x423b00
sub eax, ebp
jmp 0x423b02
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x423af1
add edi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x423bc7
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [esp + 0xc]
mov ebx, ecx
cmp ebx, edx
mov dword [esp + 0x10], eax
jbe 0x423b38
mov ebx, edx
test ebx, ebx
je 0x423b89
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
mov ecx, dword [edx + 0x18]
cmp ecx, 1
jne 0x423b5b
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
push eax
push ecx
call fcn.00426390
jmp 0x423b6d
cmp ecx, 2
jne 0x423b77
mov edx, dword [edi]
mov eax, dword [edi + 0x30]
push ebx
push edx
push eax
call fcn.00426370
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [edi]
push ebx
push ecx
push eax
call fcn.004343c0
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x423bb3
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x423bc7
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x423a90
pop edi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x431df7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4630d0]
jne 0x431e01
repz ret
jmp fcn.00439e74
Function at 0x4338d3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x433910
cmp dword [ebp + 0x14], edi
je 0x433910
cmp ecx, edi
jne 0x433917
call fcn.004352e5
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00437fd8
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43392b
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43394c
cmp ebx, 0xffffffff
je 0x43393b
push ebx
push edi
push ecx
call fcn.00432d00
add esp, 0xc
cmp esi, edi
je 0x4338f8
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4338f8
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x433968
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43396f
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x433a60
test word [esi + 0xc], 0x10c
je 0x4339c3
mov eax, dword [esi + 4]
test eax, eax
je 0x4339c3
jl 0x433ac1
cmp ebx, eax
mov edi, ebx
jb 0x433994
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x433a68
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00431aff
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x433a58
cmp ebx, dword [ebp - 0xc]
jb 0x433a30
cmp dword [ebp - 0xc], 0
je 0x4339ed
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x4339e2
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4339e9
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4339f8
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x4339f8
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x433a94
push eax
push dword [ebp - 8]
push esi
call fcn.00433501
pop ecx
push eax
call fcn.0043f713
add esp, 0xc
test eax, eax
je 0x433ad3
cmp eax, 0xffffffff
je 0x433ac1
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x433a58
push esi
call fcn.0043f032
cmp eax, 0xffffffff
pop ecx
je 0x433ac5
cmp dword [ebp - 4], 0
je 0x433a94
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x433977
mov eax, dword [ebp + 0x14]
jmp 0x433912
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x433a7f
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00432d00
add esp, 0xc
call fcn.004352e5
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x433908
cmp dword [ebp + 0xc], 0xffffffff
je 0x433aaa
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00432d00
add esp, 0xc
call fcn.004352e5
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x433908
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x433912
or dword [esi + 0xc], 0x10
jmp 0x433ac5
Function at 0x434b58
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x434b85
call fcn.004352f8
mov dword [eax], esi
call fcn.004352e5
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00437fd8
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x434b61
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x434bb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043530b
pop ecx
call fcn.004352e5
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x434bdb
test al, 1
je 0x434bdb
test byte [esp + 0xc], 2
je 0x434bdb
call fcn.004352f8
mov dword [eax], 5
call fcn.004352e5
mov dword [eax], 0xd
jmp 0x434bab
xor eax, eax
pop esi
ret

Function at 0x43a089
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x463c58]
je 0x43a0a4
inc edi
cmp edi, 0x17
jb 0x43a095
cmp edi, 0x17
jae 0x43a224
push ebp
push 3
call fcn.00441fdd
cmp eax, 1
pop ecx
je 0x43a1f0
push 3
call fcn.00441fdd
test eax, eax
pop ecx
jne 0x43a0d8
cmp dword [0x4630cc], 1
je 0x43a1f0
cmp ebx, 0xfc
je 0x43a223
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4675e8
push ebp
call fcn.00441387
add esp, 0xc
test eax, eax
je 0x43a10e
push esi
push esi
push esi
push esi
push esi
call fcn.00437edc
add esp, 0x14
push 0x104
mov esi, 0x467601
push esi
push 0
mov byte [0x467705], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43a152
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00441387
add esp, 0xc
test eax, eax
je 0x43a152
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00437edc
add esp, 0x14
push esi
call fcn.0043e290
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43a197
push esi
call fcn.0043e290
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4678fc
push 0x454a2c
sub ecx, eax
push ecx
push eax
call fcn.00441d26
add esp, 0x14
test eax, eax
je 0x43a197
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00437edc
add esp, 0x14
jmp 0x43a199
xor esi, esi
push 0x454a28
push ebx
push ebp
call fcn.00441c66
add esp, 0xc
test eax, eax
je 0x43a1b9
push esi
push esi
push esi
push esi
push esi
call fcn.00437edc
add esp, 0x14
push dword [edi*8 + 0x463c5c]
push ebx
push ebp
call fcn.00441c66
add esp, 0xc
test eax, eax
je 0x43a1db
push esi
push esi
push esi
push esi
push esi
call fcn.00437edc
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00441e20
add esp, 0xc
jmp 0x43a223
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x43a223
cmp ebp, 0xffffffff
je 0x43a223
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x463c5c]
push dword [esi]
call fcn.0043e290
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x441e20
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004398e5
xor ebx, ebx
cmp dword [0x467c58], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x441ef6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x441fd6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x441fd6
push eax
call fcn.00439877
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x467c58], eax
call esi
push eax
call fcn.00439877
mov dword [esp], 0x455c48
push edi
mov dword [0x467c5c], eax
call esi
push eax
call fcn.00439877
mov dword [0x467c60], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00436ea9
test eax, eax
pop ecx
pop ecx
je 0x441ec4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00437edc
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x441ef6
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00439877
cmp eax, ebx
pop ecx
mov dword [0x467c68], eax
je 0x441ef6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00439877
pop ecx
mov dword [0x467c64], eax
mov eax, dword [0x467c64]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x441f7b
cmp dword [0x467c68], ecx
je 0x441f7b
push eax
call fcn.004398ee
push dword [0x467c68]
mov esi, eax
call fcn.004398ee
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x441f7b
cmp edi, ebx
je 0x441f7b
call esi
cmp eax, ebx
je 0x441f48
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x441f48
test byte [ebp - 0x18], 1
jne 0x441f7b
lea eax, [ebp - 0x10]
push eax
call fcn.00436ee0
test eax, eax
pop ecx
je 0x441f63
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00437edc
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x441f72
or dword [ebp + 0x10], 0x200000
jmp 0x441fb6
or dword [ebp + 0x10], 0x40000
jmp 0x441fb6
mov eax, dword [0x467c5c]
cmp eax, dword [ebp - 8]
je 0x441fb6
push eax
call fcn.004398ee
cmp eax, ebx
pop ecx
je 0x441fb6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x441fb6
mov eax, dword [0x467c60]
cmp eax, dword [ebp - 8]
je 0x441fb6
push eax
call fcn.004398ee
cmp eax, ebx
pop ecx
je 0x441fb6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x467c58]
call fcn.004398ee
cmp eax, ebx
pop ecx
je 0x441fd6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x441fd8
xor eax, 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 + 0xc85008], 0x8088405
inc edx
mov dword [ebx + 0xc85008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d1c0
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 0x41d1f1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d1d9
add dl, dl
jne 0x41d1fc
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d24d
xor eax, eax
add dl, dl
jne 0x41d209
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2ea
add dl, dl
jne 0x41d218
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d223
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d22e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d239
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d243
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d1e8
mov eax, 1
add dl, dl
jne 0x41d25b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d266
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d252
sub eax, ebx
mov ebx, 1
jne 0x41d299
mov ecx, 1
add dl, dl
jne 0x41d27f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d28a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d276
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d1e8
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d2b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d2bb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2a7
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 0x41d1e8
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d30b
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 0x41d1e8
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 0x41f31c
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 0xc6880a
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 0x41f36b
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 0x41f38a
mov ecx, edx
add ecx, ebx
jmp 0x41f38a
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 0x41f38a
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f3fc
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 0x41f3e5
test esi, esi
jbe 0x41f3fc
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f3d7
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 0x41f3fc
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f3b4
jmp 0x41f3fc
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f3fc
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 0xc68811
ret