joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462070
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [0x4ca3b0]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
push ebx
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x30]
mov ebx, ecx
test eax, eax
ja 0x4620a9
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004a3c63
add esp, 0x18
ret 0xc
mov ecx, dword [esi + 4]
xor ecx, dword [ebx + 8]
mov edx, dword [esi + 8]
xor edx, dword [ebx + 0xc]
shr eax, 4
push ebp
mov ebp, eax
mov eax, dword [esi]
xor eax, dword [ebx + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
xor eax, dword [ebx + 0x10]
push edi
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.00460ee0
add esi, 0x10
add ebp, 0xffffffff
je 0x46212e
nop
mov edx, dword [edi]
xor edx, dword [esi]
mov eax, dword [edi + 4]
xor eax, dword [esi + 4]
mov ecx, dword [edi + 8]
xor ecx, dword [esi + 8]
mov dword [esp + 0x14], edx
mov edx, dword [edi + 0xc]
xor edx, dword [esi + 0xc]
mov dword [esp + 0x18], eax
add edi, 0x10
push edi
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x28], edx
call fcn.00460ee0
add esi, 0x10
sub ebp, 1
jne 0x4620f0
mov ecx, dword [edi]
mov dword [ebx + 4], ecx
mov edx, dword [edi + 4]
mov dword [ebx + 8], edx
mov eax, dword [edi + 8]
mov dword [ebx + 0xc], eax
mov ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [ebx + 0x10], ecx
mov ecx, dword [esp + 0x1c]
pop esi
pop ebx
xor ecx, esp
shl eax, 4
call fcn.004a3c63
add esp, 0x18
ret 0xc
Function at 0x462170
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x4ca3b0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x44]
mov ebx, ecx
test esi, esi
je 0x462265
mov eax, dword [esp + 0x40]
test eax, eax
jbe 0x462265
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
shr eax, 4
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 0x10]
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
test eax, eax
jbe 0x462235
lea edx, [esp + 0x28]
push edx
push esi
mov ecx, ebx
call fcn.004615e0
mov edx, dword [esp + 0x20]
xor dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
xor dword [esp + 0x34], edx
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x2c]
xor ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
xor eax, ebp
mov ebp, dword [esi]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 8]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0xc]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x34]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
add esi, 0x10
add edi, 0x10
sub dword [esp + 0x10], 1
mov dword [esp + 0x24], edx
jne 0x4621c7
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [ebx + 4], ebp
pop ebp
mov dword [ebx + 8], edx
mov edx, dword [esp + 0x20]
pop edi
mov dword [ebx + 0xc], ecx
pop esi
mov dword [ebx + 0x10], edx
shl eax, 4
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004a3c63
add esp, 0x2c
ret 0xc
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004a3c63
add esp, 0x2c
ret 0xc
Function at 0x464380
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
push ebx
push 0x4b8a34
push eax
call fcn.00484900
mov ebx, eax
test ebx, ebx
je 0x46455f
push ebx
push 1
lea ecx, [esp + 0x18]
push 0x16
push ecx
call fcn.004a5982
add esp, 0x10
cmp word [esp + 0x10], 0
jne 0x464556
cmp word [esp + 0x12], 1
jne 0x464556
push ebp
push esi
push edi
push 0
push 0
push ebx
call fcn.004a5c2e
movzx edx, word [esp + 0x2c]
dec edx
shl edx, 4
add edx, 0x16
push edx
call fcn.004a3d3c
mov esi, eax
movzx eax, word [esp + 0x30]
dec eax
lea ecx, [eax*8]
sub ecx, eax
lea edx, [ecx + ecx + 0x14]
push edx
call fcn.004a3d3c
mov edi, eax
movzx eax, word [esp + 0x34]
dec eax
push ebx
shl eax, 4
push 1
add eax, 0x16
push eax
push esi
mov dword [esp + 0x3c], edi
call fcn.004a5982
mov ecx, dword [esi]
mov dword [edi], ecx
mov edx, dword [esi + 4]
mov dword [edi + 4], edx
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov ecx, dword [esi + 0xc]
mov dword [edi + 0xc], ecx
mov edx, dword [esi + 0x10]
xor eax, eax
add esp, 0x24
mov dword [edi + 0x10], edx
mov dword [esp + 0x10], 0
cmp ax, word [esp + 0x20]
jae 0x4644fb
lea eax, [edi + 0x12]
lea ebp, [esi + 0xe]
mov dword [esp + 0x14], eax
jmp 0x464464
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax - 0xc], ecx
mov edx, dword [ebp - 4]
mov dword [eax - 8], edx
mov ecx, dword [ebp]
mov dword [eax - 4], ecx
mov ecx, dword [esp + 0x10]
inc ecx
mov word [eax], cx
mov edi, dword [ebp]
push edi
call fcn.004a3d3c
mov esi, eax
add esp, 4
test esi, esi
je 0x464541
mov edx, dword [ebp + 4]
push 0
push edx
push ebx
call fcn.004a5c2e
push ebx
push 1
push edi
push esi
call fcn.004a5982
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x54]
add esp, 0x1c
push edi
push esi
inc eax
push 0x400
movzx eax, ax
push eax
push 3
push ecx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push esi
mov edi, eax
call fcn.004a3dff
add esp, 4
test edi, edi
je 0x464541
mov eax, dword [esp + 0x10]
movzx edx, word [esp + 0x20]
add dword [esp + 0x14], 0xe
inc eax
add ebp, 0x10
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x464460
mov edi, dword [esp + 0x18]
push ebx
call fcn.004a5d25
movzx eax, word [esp + 0x24]
dec eax
add esp, 4
lea ecx, [eax*8]
sub ecx, eax
movzx eax, word [esp + 0x3c]
lea edx, [ecx + ecx + 0x14]
mov ecx, dword [esp + 0x38]
push edx
push edi
push 0x400
push eax
push 0xe
push ecx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x24
ret 8
push ebx
call fcn.004a5d25
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x24
ret 8
push ebx
call fcn.004a5d25
add esp, 4
xor al, al
pop ebx
add esp, 0x24
ret 8
Function at 0x464570
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push 0x4b8a34
push eax
call fcn.00484900
mov esi, eax
test esi, esi
je 0x464670
push esi
call fcn.004a778c
add esp, 4
cmp eax, 0x42
jne 0x464667
push esi
call fcn.004a778c
add esp, 4
cmp eax, 0x4d
jne 0x464667
push edi
push 0
push 2
push esi
call fcn.004a5c2e
push esi
push 1
lea ecx, [esp + 0x1c]
push 4
push ecx
call fcn.004a5982
mov eax, dword [esp + 0x24]
sub eax, 0xe
push eax
mov dword [esp + 0x28], eax
call fcn.004a3d3c
mov edi, eax
add esp, 0x20
test edi, edi
jne 0x4645f0
push esi
call fcn.004a5d25
add esp, 4
pop edi
xor al, al
pop esi
pop ecx
ret 8
push 0
push 0xe
push esi
call fcn.004a5c2e
mov edx, dword [esp + 0x14]
push esi
push edx
push 1
push edi
call fcn.004a5982
add esp, 0x1c
cmp eax, dword [esp + 8]
je 0x464628
push edi
call fcn.004a3dff
push esi
call fcn.004a5d25
add esp, 8
pop edi
xor al, al
pop esi
pop ecx
ret 8
push esi
call fcn.004a5d25
mov eax, dword [esp + 0xc]
movzx ecx, word [esp + 0x18]
mov edx, dword [esp + 0x14]
add esp, 4
push eax
push edi
push 0x400
push ecx
push 2
push edx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push edi
mov esi, eax
call fcn.004a3dff
add esp, 4
xor eax, eax
test esi, esi
pop edi
setne al
pop esi
pop ecx
ret 8
push esi
call fcn.004a5d25
add esp, 4
xor al, al
pop esi
pop ecx
ret 8

Function at 0x4646e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x4ca3b0]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x408]
push esi
push 0x4b8a34
push eax
call fcn.00484900
mov esi, eax
test esi, esi
jne 0x464727
mov al, 1
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.004a3c63
add esp, 0x404
ret 4
push edi
push esi
push 0x400
lea eax, [esp + 0x10]
push 1
push eax
call fcn.004a5982
push esi
mov edi, eax
call fcn.004a5d25
lea ecx, [edi - 4]
add esp, 0x14
xor eax, eax
pop edi
test ecx, ecx
jle 0x464771
mov dl, 0x55
cmp byte [esp + eax + 4], dl
jne 0x46476c
cmp byte [esp + eax + 5], 0x50
jne 0x46476c
cmp byte [esp + eax + 6], 0x58
jne 0x46476c
cmp byte [esp + eax + 7], 0x30
je 0x46470d
inc eax
cmp eax, ecx
jl 0x464751
mov ecx, dword [esp + 0x404]
pop esi
xor ecx, esp
xor al, al
call fcn.004a3c63
add esp, 0x404
ret 4

Function at 0x464790
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x2004
call fcn.004a4490
mov eax, dword [0x4ca3b0]
xor eax, esp
mov dword [esp + 0x2000], eax
mov eax, dword [esp + 0x2008]
push esi
push 0x4b8a34
push eax
call fcn.00484900
mov esi, eax
test esi, esi
jne 0x4647db
xor al, al
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.004a3c63
add esp, 0x2004
ret 4
push esi
push 0x2000
lea eax, [esp + 0xc]
push 1
push eax
call fcn.004a5982
add esp, 0x10
test eax, eax
je 0x46481b
push edi
push eax
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.004a5f54
push esi
push 0x2000
lea edx, [esp + 0x1c]
push 1
push edx
call fcn.004a5982
add esp, 0x20
test eax, eax
jne 0x4647f4
push esi
call fcn.004a5d25
mov ecx, dword [esp + 0x2008]
add esp, 4
pop esi
xor ecx, esp
mov al, 1
call fcn.004a3c63
add esp, 0x2004
ret 4
Function at 0x464840
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2008
call fcn.004a4490
mov eax, dword [0x4ca3b0]
xor eax, esp
mov dword [esp + 0x2004], eax
mov eax, dword [esp + 0x200c]
push edi
push 0x4b8a34
push eax
mov dword [esp + 0xc], ecx
call fcn.00484900
mov edi, eax
test edi, edi
jne 0x46488d
pop edi
mov ecx, dword [esp + 0x2004]
xor ecx, esp
call fcn.004a3c63
add esp, 0x2008
ret 8
push ebx
push ebp
push esi
push edi
push 0x2000
lea edx, [esp + 0x1c]
push 1
push edx
xor ebx, ebx
call fcn.004a5982
mov ebp, eax
add esp, 0x10
cmp ebp, 0x20
jbe 0x464917
mov edi, edi
lea eax, [ebp - 0x20]
xor esi, esi
test eax, eax
jbe 0x4648ee
lea esp, [esp]
cmp byte [esp + esi + 0x14], 0x2a
jne 0x4648e6
cmp byte [esp + esi + 0x15], 0x2a
jne 0x4648e6
push 0xc
lea eax, [esp + esi + 0x1a]
push str.messages
push eax
call fcn.004a601d
add esp, 0xc
test eax, eax
je 0x464924
inc esi
lea eax, [ebp - 0x20]
cmp esi, eax
jb 0x4648c0
push 0
lea ebx, [ebx + ebp - 0x20]
push ebx
push edi
call fcn.004a5c2e
push edi
push 0x2000
lea ecx, [esp + 0x28]
push 1
push ecx
call fcn.004a5982
mov ebp, eax
add esp, 0x1c
cmp ebp, 0x20
ja 0x4648b0
push edi
call fcn.004a5d25
add esp, 4
xor eax, eax
jmp 0x464951
push 0
add esi, ebx
push esi
push edi
call fcn.004a5c2e
mov edx, dword [esp + 0x202c]
mov eax, dword [esp + 0x1c]
push edi
push edx
push 1
push eax
call fcn.004a5982
push edi
mov esi, eax
call fcn.004a5d25
add esp, 0x20
mov eax, esi
mov ecx, dword [esp + 0x2014]
pop esi
pop ebp
pop ebx
pop edi
xor ecx, esp
call fcn.004a3c63
add esp, 0x2008
ret 8

Function at 0x464970
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x2004
call fcn.004a4490
mov eax, dword [0x4ca3b0]
xor eax, esp
mov dword [esp + 0x2000], eax
mov eax, dword [esp + 0x2008]
push ebp
push 0x4bc44c
push eax
call fcn.00484900
mov ebp, eax
test ebp, ebp
jne 0x4649bb
xor al, al
pop ebp
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.004a3c63
add esp, 0x2004
ret 4
push ebx
push esi
push edi
push ebp
push 0x2000
lea eax, [esp + 0x18]
push 1
push eax
xor ebx, ebx
call fcn.004a5982
mov edi, eax
add esp, 0x10
cmp edi, 0x20
jbe 0x464a47
lea esp, [esp]
lea eax, [edi - 0x20]
xor esi, esi
test eax, eax
jle 0x464a1e
lea esp, [esp]
cmp byte [esp + esi + 0x10], 0x61
jne 0x464a16
cmp byte [esp + esi + 0x11], 0x73
jne 0x464a16
push 0x14
lea ecx, [esp + esi + 0x16]
push str.Invoker_
push ecx
call fcn.004a601d
add esp, 0xc
test eax, eax
je 0x464a54
inc esi
lea eax, [edi - 0x20]
cmp esi, eax
jl 0x4649f0
push 0
lea ebx, [ebx + edi - 0x20]
push ebx
push ebp
call fcn.004a5c2e
push ebp
push 0x2000
lea edx, [esp + 0x24]
push 1
push edx
call fcn.004a5982
mov edi, eax
add esp, 0x1c
cmp edi, 0x20
ja 0x4649e0
push ebp
call fcn.004a5d25
add esp, 4
xor al, al
jmp 0x464a7f
push 0
add esi, ebx
push esi
push ebp
call fcn.004a5c2e
push ebp
push 0x15
push 1
push str.requireAdministrator_
call fcn.004a5f54
cmp eax, 0x15
push ebp
sete bl
call fcn.004a5d25
add esp, 0x20
mov al, bl
mov ecx, dword [esp + 0x2010]
pop edi
pop esi
pop ebx
pop ebp
xor ecx, esp
call fcn.004a3c63
add esp, 0x2004
ret 4
Function at 0x465870
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x200c
call fcn.004a4490
mov eax, dword [0x4ca3b0]
xor eax, esp
mov dword [esp + 0x2008], eax
mov eax, dword [esp + 0x2010]
push ebx
push esi
xor ebx, ebx
push ebx
push 0x4b8a34
push eax
call fcn.00431b90
mov esi, eax
mov dword [esp + 8], esi
cmp esi, ebx
jne 0x4658b0
xor al, al
jmp 0x465940
push ebp
push edi
mov dword [esp + 0x14], ebx
push esi
push 0x2000
lea eax, [esp + 0x20]
push 1
push eax
call fcn.004a5982
mov edi, eax
add esp, 0x10
cmp edi, 0x20
jle 0x465933
lea ebp, [edi - 0x20]
xor esi, esi
test ebp, ebp
jle 0x46590b
jmp 0x4658e0
cmp byte [esp + esi + 0x18], 0x72
jne 0x465906
cmp byte [esp + esi + 0x19], 0x65
jne 0x465906
push 0x14
lea ecx, [esp + esi + 0x1e]
push str.quireAdministrator_
push ecx
call fcn.004a601d
add esp, 0xc
test eax, eax
je 0x465959
inc esi
cmp esi, ebp
jl 0x4658e0
mov edx, dword [esp + 0x10]
push 0
lea ebx, [ebx + edi - 0x20]
push ebx
push edx
call fcn.004a5c2e
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
inc eax
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, 0x80
jb 0x4658b6
push esi
call fcn.004a5d25
add esp, 4
xor al, al
pop edi
pop ebp
mov ecx, dword [esp + 0x2010]
pop esi
pop ebx
xor ecx, esp
call fcn.004a3c63
add esp, 0x200c
ret 4
mov eax, dword [esp + 0x10]
push eax
call fcn.004a5d25
add esp, 4
mov al, 1
jmp 0x46593e
Function at 0x469110
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
ret 4
Function at 0x4697f0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret 4

Function at 0x46ad90
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebp
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x46adf7
push esi
push edi
lea edi, [eax + 1]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a4a54
mov esi, eax
add esp, 4
test esi, esi
je 0x46adf5
push edi
push esi
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esp + 0x18]
push 0
push 0
push eax
push esi
call fcn.0046ac00
push esi
call fcn.004a48a5
add esp, 4
pop edi
pop esi
pop ebp
ret 0x14

Function at 0x46b060
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x46b0b3
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0x80000000
push 0xd
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret
Function at 0x46ccf0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x30
push esi
push edi
mov edi, dword [esp + 0x3c]
mov esi, ecx
cmp edi, 0xa8
jne 0x46cd47
push 1
push str.Settings
call fcn.0041f040
test eax, eax
je 0x46cd3d
mov eax, dword [0x4e8cd4]
mov ecx, dword [0x4d56b0]
add esi, 0x8cc
push esi
push 0x46c920
push eax
push str.ORGTHEMES
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov dword [esi], 0
pop edi
mov al, 1
pop esi
add esp, 0x30
ret 4
cmp edi, 0xa9
jne 0x46cd77
push 1
push 0x4b8d34
push 0
push 0x4f8
call fcn.00460a30
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
mov al, 1
pop esi
add esp, 0x30
ret 4
mov edx, dword [0x4e8cd4]
push ebx
push 4
push edx
call dword [sym.imp.USER32.dll_GetMenu]
mov ebx, dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call ebx
push 5
push eax
call ebx
mov ebx, eax
cmp edi, 0xaa
jne 0x46cdb0
mov dword [esi + 0xc4], 0xffffffff
push 0x4b8d34
jmp 0x46ce18
lea eax, [edi - 0x3e8]
cmp eax, 0x7f
ja 0x46ce60
push 0x30
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.004a44c0
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0
push edi
push ebx
mov dword [esp + 0x1c], 0x30
mov dword [esp + 0x20], 0x20
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x46ce60
mov eax, dword [esp + 0x2c]
cmp eax, dword [esi + 0xbc]
jae 0x46ce60
mov dword [esi + 0xc4], eax
imul eax, eax, 0xa04
add eax, dword [esi + 0xb8]
push eax
call fcn.004515b0
push eax
push str.ActivePath
push str.InterfaceThemes
call fcn.0045b130
mov eax, dword [esi + 0x8c8]
push ebp
mov ebp, dword [sym.imp.USER32.dll_CheckMenuItem]
cmp eax, 0xffffffff
je 0x46ce3f
push 0
push eax
push ebx
call ebp
push 8
push edi
push ebx
call ebp
push 0
mov ecx, esi
mov dword [esi + 0x8c8], edi
call fcn.0046c430
pop ebp
pop ebx
pop edi
mov al, 1
pop esi
add esp, 0x30
ret 4
pop ebx
pop edi
xor al, al
pop esi
add esp, 0x30
ret 4
Function at 0x46df90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
mov ebx, dword [sym.imp.COMCTL32.dll_CreateMappedBitmap]
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], ecx
xor esi, esi
jmp 0x46dfb5
xor edi, edi
push 0xf
call ebp
mov edx, dword [0x4d56b0]
push 1
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x4c95f4]
push edi
push eax
push edx
mov dword [esp + 0x34], edi
call ebx
push 0xf
mov dword [esi + 0x4c9618], eax
call ebp
mov dword [esp + 0x18], edi
mov edi, dword [esi + 0x4c95f8]
push 2
mov dword [esp + 0x20], eax
mov eax, dword [0x4d56b0]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, dword [0x4d56b0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46e01b
movzx eax, word [eax + 0xe]
cmp eax, 8
je 0x46e023
mov dword [esp + 0x18], 0x800080
mov eax, dword [0x4d56b0]
push 1
lea edx, [esp + 0x1c]
push edx
push 0
push edi
push eax
call ebx
mov dword [esi + 0x4c961c], eax
add esi, 0x38
cmp esi, 0x460
jb 0x46dfb3
push 0xf
mov dword [esp + 0x2c], 0xc0c0c0
call ebp
mov edx, dword [0x4d56b0]
push 1
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0x67
push edx
mov dword [esp + 0x40], eax
call ebx
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x18], eax
cmp byte [0x4d56dc], 0
je 0x46e084
push eax
call fcn.00483e30
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46f510
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x70
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x46f52b
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 4], 0
push 1
push str.ViewSmall
push str.GeneralToolbar
call fcn.0045b230
test eax, eax
je 0x46f6e3
mov eax, dword [0x4d56ac]
mov ecx, dword [0x4e8cd4]
push ebx
push ebp
push edi
push 0
push eax
push 0xd
push ecx
push 0
push 0
push 0
push 0
push 0x56000944
push 0
push str.ToolbarWindow32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x14
push 0x41e
push eax
mov dword [esi + 4], eax
call ebp
call fcn.00484890
mov ebx, 0x10
mov byte [esp + 0x13], al
mov dword [esp + 0x14], ebx
test al, al
je 0x46f5b2
push ebx
call fcn.004847f0
push 0x10
mov ebx, eax
call fcn.004847f0
mov dword [esp + 0x14], eax
movzx edi, word [esp + 0x14]
mov eax, dword [esi + 4]
movzx edx, bx
shl edi, 0x10
or edi, edx
push edi
push 0
push 0x41f
push eax
call ebp
mov ecx, dword [esi + 4]
push edi
push 0
push 0x420
push ecx
call ebp
push 0
push 0xf
push str.FolderUp.bmp
mov ecx, 0x4f03b0
call fcn.0046c810
mov edi, eax
test edi, edi
jne 0x46f5f7
mov edi, dword [esi + 0x18]
cmp byte [esp + 0x13], 0
je 0x46f617
mov edx, dword [esp + 0x14]
push edx
push ebx
push edi
call fcn.00483f20
mov edi, eax
push edi
mov ecx, 0x4f03b0
call fcn.0046c600
mov ecx, dword [esi + 4]
lea eax, [esp + 0x18]
push eax
push 1
push 0x413
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], edi
call ebp
mov edx, dword [esi + 4]
push 0x4c9a50
push 1
push 0x444
push edx
call ebp
lea eax, [esp + 0x30]
push eax
push 2
mov ecx, esi
call fcn.0046e7e0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], 0x38
mov dword [esp + 0x34], 0x173
test eax, eax
jne 0x46f672
mov eax, 1
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
or eax, 4
push 0x12
mov dword [esp + 0x3c], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x68], 2
mov dword [esp + 0x58], 0
call edi
push 0xf
mov dword [esp + 0x40], eax
call edi
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x40], eax
jne 0x46f6b5
mov dword [esp + 0x5c], 0x28
mov eax, dword [0x4ee468]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x30]
push edx
push 0xffffffffffffffff
push 0x40a
push eax
mov dword [esp + 0x68], ecx
call ebp
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x70
ret

Function at 0x471f40
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x4e7920]
mov eax, dword [esp + 4]
mov edx, ecx
shr ecx, 8
xor edx, eax
and edx, 0xff
xor ecx, dword [edx*4 + 0x4d1b58]
mov edx, dword [0x4e7928]
mov dword [0x4e7920], ecx
movzx ecx, cl
add ecx, dword [0x4e7924]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [0x4e7924], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
shr edx, 8
xor edx, dword [ecx*4 + 0x4d1b58]
mov dword [0x4e7928], edx
ret 4
Function at 0x471fa0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov eax, 0x12345678
mov edx, 0x23456789
mov esi, 0x34567890
mov dword [0x4e7920], eax
mov dword [0x4e7924], edx
mov dword [0x4e7928], esi
mov cl, byte [edi]
test cl, cl
je 0x472020
lea esp, [esp]
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4d1b58]
inc edi
movzx ecx, al
add ecx, edx
imul ecx, ecx, 0x8088405
inc ecx
mov edx, ecx
shr ecx, 0x18
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x4d1b58]
mov dword [0x4e7920], eax
mov dword [0x4e7924], edx
mov dword [0x4e7928], esi
mov cl, byte [edi]
test cl, cl
jne 0x471fd0
pop edi
pop esi
ret 4