joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f180
Capabilities:
Get common file path

Disassembly:
cmp dword [edi], 0
push esi
jne 0x42f222
cmp dword [edi + 4], 0xffffffff
jne 0x42f222
lea esi, [edi + 0x244]
push esi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
jmp 0x42f1b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f1b0
sub eax, edx
sar eax, 1
movzx ecx, word [edi + eax*2 + 0x242]
cmp cx, 0x5c
je 0x42f1e7
cmp cx, 0x2f
je 0x42f1e7
mov word [edi + eax*2 + 0x244], 0x2f
mov word [edi + eax*2 + 0x246], 0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
lea esi, [esp + 0x14]
call fcn.0042e170
add esp, 8
test eax, eax
jne 0x42f209
mov eax, dword [esp + 0xc]
pop esi
ret 8
call fcn.0042e550
mov dword [edi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop esi
ret 8
mov eax, 0x1000000
pop esi
ret 8

Function at 0x42fa90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x45be46
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x478354]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov eax, 0xf
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], ebx
mov byte [esi + 0x14], bl
lea edi, [esi + 0x30]
mov dword [esp + 0x18], ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
mov byte [esp + 0x18], 1
push ebx
mov dword [esi], 1
call fcn.0043cb8e
add esp, 4
push 0xffffffffffffffff
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov eax, dword [0x47de9c]
push ebx
push 0x47dea4
mov ecx, edi
mov dword [esi + 0x2c], eax
call fcn.00406a20
mov ecx, dword [0x47dea0]
mov dword [esi + 0x4c], ecx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x42fb30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x45c269
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x478354]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [esp + 0x40]
lea esi, [edi + 0x10]
xor ebx, ebx
mov eax, 0xf
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea ebp, [edi + 0x2c]
mov dword [esp + 0x38], ebx
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
mov dword [edi + 0x60], eax
mov dword [edi + 0x5c], ebx
mov byte [edi + 0x4c], bl
mov byte [esp + 0x38], 2
push ebx
mov dword [edi], 1
call fcn.0043cb8e
add esp, 4
push 4
push str.lock
mov ecx, esi
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
call fcn.00406100
mov eax, dword [0x47de9c]
push eax
lea esi, [esp + 0x18]
call fcn.0042fd60
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
mov ecx, ebp
mov byte [esp + 0x44], 3
call fcn.00406a20
cmp dword [esp + 0x2c], 0x10
jb 0x42fbe5
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043c992
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x42fde0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push 0
mov edi, eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push esi
mov dword [esp + 0x1c], 0
call ebp
test eax, eax
je 0x42fe5f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x42fe5f
mov ecx, dword [edi + 0x14]
cmp eax, ecx
ja 0x42fe25
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.00407050
jmp 0x42fe2e
push 0
sub eax, ecx
call fcn.00406980
mov eax, dword [edi + 0x14]
push 0
lea ecx, [esp + 0xc]
push ecx
push eax
mov eax, edi
mov dword [esp + 0x14], 0
call fcn.00406200
push eax
push esi
call ebp
test eax, eax
je 0x42fe5f
mov edx, dword [edi + 0x14]
cmp edx, dword [esp + 8]
jne 0x42fe5f
pop edi
mov al, 1
pop ebp
pop ecx
ret
pop edi
xor al, al
pop ebp
pop ecx
ret

Function at 0x42fe70
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45cc68
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
mov eax, dword [0x478354]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x3c], 0x10
mov eax, dword [esp + 0x28]
jae 0x42fead
lea eax, [esp + 0x28]
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x42ff28
cmp dword [esp + 0x3c], 0x10
mov eax, dword [esp + 0x28]
jae 0x42fecc
lea eax, [esp + 0x28]
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42ff28
mov eax, dword [edi + 0x14]
push ebx
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, edi
mov dword [esp + 0x1c], ebx
call fcn.00406200
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42ff21
mov edx, dword [edi + 0x14]
cmp edx, dword [esp + 0x10]
jne 0x42ff21
mov eax, ebp
call fcn.0042fde0
test al, al
je 0x42ff21
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x3c], 0x10
jb 0x42ff3c
mov eax, dword [esp + 0x28]
push eax
call fcn.0043c992
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x431530
Capabilities:
Create thread

Disassembly:
push ebx
push 0
xor bl, bl
call fcn.0043cb8e
push eax
call fcn.0043cbca
add esp, 8
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esi], eax
je 0x431576
push 0
push 0
push eax
push 0x431210
push 0
push 0
call fcn.0043c645
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
mov al, 1
jne 0x431578
mov al, bl
pop ebx
ret

Function at 0x434570
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45e2e8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x478354]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x13]
push ecx
push 0x47b428
push str.InsertLineBreaks
mov ecx, esi
call edx
test al, al
mov bl, byte [esp + 0x13]
jne 0x4345c3
mov bl, 1
mov eax, dword [esi]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x14]
push ecx
push 0x47b434
push str.MaxLineLength
mov ecx, esi
call edx
test al, al
mov eax, dword [esp + 0x14]
jne 0x4345e8
mov eax, 0x48
test bl, bl
mov esi, 0x467bec
jne 0x4345f6
mov esi, 0x463d0b
neg bl
mov dword [esp + 0x20], 6
mov dword [esp + 0x14], str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sbb ebx, ebx
and ebx, eax
lea eax, [esp + 0x54]
mov dword [esp + 0x18], ebx
mov ebx, dword [edi + 0x44]
push eax
call fcn.00431680
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x7c], 0
call fcn.00431680
mov esi, eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x34]
push eax
mov ecx, str.EncodingLookupArray
mov byte [esp + 0x80], 1
call fcn.00434790
add esp, 8
mov byte [esp + 0x78], 2
movzx ecx, byte [eax + 8]
push ecx
push str.PaddingByte
mov edi, eax
call fcn.004348e0
movzx edx, byte [eax + 8]
push edx
lea ecx, [esp + 0x1c]
push ecx
push str.GroupSize
mov edi, eax
call fcn.00417080
movzx edx, byte [eax + 8]
push edx
push esi
push str.Separator
mov edi, eax
call fcn.00416fc0
movzx ecx, byte [eax + 8]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push str.Terminator
mov edi, eax
call fcn.00416fc0
push 1
lea ecx, [esp + 0x24]
push ecx
push str.Log2Base
mov edi, eax
call fcn.00417080
mov edx, dword [ebp + 8]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], vtable.CryptoPP::CombinedNameValuePairs.0
mov dword [esp + 0x2c], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
call edx
mov byte [esp + 0x78], 1
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4346f3
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov edx, edi
xor al, al
push edx
rep stosb byte es:[edi], al
call fcn.0043d55d
mov edi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edx, edi
xor al, al
push edx
rep stosb byte es:[edi], al
call fcn.0043d55d
add esp, 8
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x434790
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45de31
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x478354]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], vtable.CryptoPP::AlgorithmParameters.0
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 1
mov eax, dword [esp + 0x30]
push eax
push ecx
lea edi, [esp + 0x18]
mov dword [esp + 0x2c], 1
call fcn.00434830
push eax
push esi
call fcn.004344c0
mov byte [esp + 0x24], 0
mov ecx, dword [esp + 0x14]
test ecx, ecx
mov dword [esp + 0xc], 1
je 0x434811
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x434b80
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov edx, edi
xor eax, eax
shr edx, 2
je 0x434bc4
mov edi, ebx
sub esi, ecx
mov eax, ecx
sub edi, ecx
mov dword [esp + 0xc], edx
push ebp
mov ebp, dword [esi + eax]
xor ebp, dword [eax]
add eax, 4
sub edx, 1
mov dword [edi + eax - 4], ebp
jne 0x434ba6
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
pop ebp
add eax, eax
add eax, eax
sub edi, eax
je 0x434bf1
add ebx, eax
add esi, eax
add ecx, eax
test edi, edi
jbe 0x434bf1
mov edx, esi
mov esi, ebx
sub edx, ecx
mov eax, ecx
sub esi, ecx
mov cl, byte [eax + edx]
xor cl, byte [eax]
add eax, 1
sub edi, 1
mov byte [eax + esi - 1], cl
jne 0x434be0
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x437640
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x45dc88
mov eax, dword fs:[0]
push eax
mov eax, dword [0x478354]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
mov dword [eax + 0xc], ecx
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
or edx, 0xffffffff
mov dword [eax], vtable.CryptoPP::FilterWithBufferedInput.1.0
mov dword [eax + 4], vtable.CryptoPP::FilterWithBufferedInput.0
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], edx
mov byte [eax + 0x24], cl
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4

Function at 0x438970
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45de31
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x478354]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], vtable.CryptoPP::AlgorithmParameters.0
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 1
mov eax, dword [esp + 0x30]
push eax
push ecx
lea edi, [esp + 0x18]
mov dword [esp + 0x2c], 1
call fcn.00438a10
push eax
push esi
call fcn.004344c0
mov byte [esp + 0x24], 0
mov ecx, dword [esp + 0x14]
test ecx, ecx
mov dword [esp + 0xc], 1
je 0x4389f1
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x4392c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45e510
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x478354]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x478354]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ecx]
xor edx, edx
push 1
push 0x479a9c
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
push eax
lea edx, [esp + 0x1c]
mov dword [esp + 0x34], eax
push edx
mov edx, dword [esi + 0x80]
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], vtable.CryptoPP::ArraySink.0
mov dword [esp + 0x30], vtable.CryptoPP::ArraySink.1.0
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0043c23a
mov esp, ebp
pop ebp
ret 8
Function at 0x439730
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45e4e0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x478354]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [0x478354]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
push 1
mov dword [esp + 0x20], eax
mov dword [esp + 8], eax
push 0x479a9c
lea eax, [esp + 0xc]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], edx
mov edx, dword [ecx]
mov edx, dword [edx + 0x7c]
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], vtable.CryptoPP::ArraySink.0
mov dword [esp + 0x20], vtable.CryptoPP::ArraySink.1.0
call edx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0043c23a
mov esp, ebp
pop ebp
ret 8

Function at 0x43c23a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x478354]
jne 0x43c244
repz ret
jmp fcn.0043e8a9
Function at 0x444dc4
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 + 0x478cf8]
je 0x444ddf
inc edi
cmp edi, 0x17
jb 0x444dd0
cmp edi, 0x17
jae 0x444f5f
push ebp
push 3
call fcn.00452728
cmp eax, 1
pop ecx
je 0x444f2b
push 3
call fcn.00452728
test eax, eax
pop ecx
jne 0x444e13
cmp dword [0x478350], 1
je 0x444f2b
cmp ebx, 0xfc
je 0x444f5e
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x47c608
push ebp
call fcn.0043ea2c
add esp, 0xc
test eax, eax
je 0x444e49
push esi
push esi
push esi
push esi
push esi
call fcn.0043c6fd
add esp, 0x14
push 0x104
mov esi, 0x47c621
push esi
push 0
mov byte [0x47c725], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x444e8d
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0043ea2c
add esp, 0xc
test eax, eax
je 0x444e8d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043c6fd
add esp, 0x14
push esi
call fcn.0043eaa0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x444ed2
push esi
call fcn.0043eaa0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x47c91c
push 0x461bcc
sub ecx, eax
push ecx
push eax
call fcn.00450343
add esp, 0x14
test eax, eax
je 0x444ed2
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043c6fd
add esp, 0x14
jmp 0x444ed4
xor esi, esi
push 0x461bc8
push ebx
push ebp
call fcn.004502d2
add esp, 0xc
test eax, eax
je 0x444ef4
push esi
push esi
push esi
push esi
push esi
call fcn.0043c6fd
add esp, 0x14
push dword [edi*8 + 0x478cfc]
push ebx
push ebp
call fcn.004502d2
add esp, 0xc
test eax, eax
je 0x444f16
push esi
push esi
push esi
push esi
push esi
call fcn.0043c6fd
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0045256b
add esp, 0xc
jmp 0x444f5e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x444f5e
cmp ebp, 0xffffffff
je 0x444f5e
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x478cfc]
push dword [esi]
call fcn.0043eaa0
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 0x45256b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043efef
xor ebx, ebx
cmp dword [0x47caac], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x452641
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x452721
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x452721
push eax
call fcn.0043ef81
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x47caac], eax
call esi
push eax
call fcn.0043ef81
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x47cab0], eax
call esi
push eax
call fcn.0043ef81
mov dword [0x47cab4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043f754
test eax, eax
pop ecx
pop ecx
je 0x45260f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043c6fd
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x452641
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043ef81
cmp eax, ebx
pop ecx
mov dword [0x47cabc], eax
je 0x452641
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043ef81
pop ecx
mov dword [0x47cab8], eax
mov eax, dword [0x47cab8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4526c6
cmp dword [0x47cabc], ecx
je 0x4526c6
push eax
call fcn.0043eff8
push dword [0x47cabc]
mov esi, eax
call fcn.0043eff8
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4526c6
cmp edi, ebx
je 0x4526c6
call esi
cmp eax, ebx
je 0x452693
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x452693
test byte [ebp - 0x18], 1
jne 0x4526c6
lea eax, [ebp - 0x10]
push eax
call fcn.0043f78b
test eax, eax
pop ecx
je 0x4526ae
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043c6fd
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4526bd
or dword [ebp + 0x10], 0x200000
jmp 0x452701
or dword [ebp + 0x10], 0x40000
jmp 0x452701
mov eax, dword [0x47cab0]
cmp eax, dword [ebp - 8]
je 0x452701
push eax
call fcn.0043eff8
cmp eax, ebx
pop ecx
je 0x452701
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x452701
mov eax, dword [0x47cab4]
cmp eax, dword [ebp - 8]
je 0x452701
push eax
call fcn.0043eff8
cmp eax, ebx
pop ecx
je 0x452701
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47caac]
call fcn.0043eff8
cmp eax, ebx
pop ecx
je 0x452721
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x452723
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d7a
nop
sub eax, 0x403d20
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
mov ecx, 0x64d753ba
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x730b4dc8
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
jmp 0x401219