joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4411b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4411e3
push esi
call fcn.004442c0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4411dc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x441269
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x441252
mov eax, dword [esi + 8]
test eax, eax
je 0x441207
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44124e
cmp eax, 2
je 0x441252
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4411fa
cmp eax, 3
je 0x44122d
cmp eax, 1
jne 0x4411fa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4411fa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4411fa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00441290
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x441278
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00441290
add esp, 4
pop esi
ret

Function at 0x44cfb0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x44d053
test eax, eax
jbe 0x44d053
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44d053
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x44cffe
xor esi, esi
jmp 0x44d004
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44d02f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00403750
add esi, eax
push esi
mov ebx, esi
call fcn.00403750
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44d010
pop ebp
test edi, edi
pop edi
jne 0x44d053
test ebx, ebx
je 0x44d053
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00451450
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44d195
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x44d2ad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44d2ad
mov eax, dword [esi + 0x3c]
push eax
call fcn.00461bba
mov esi, eax
test esi, esi
je 0x44d2ad
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x44d2ad
mov ecx, esi
call fcn.0044d100
cmp edi, eax
jge 0x44d2ad
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x44d233
mov dword [esp + 0x34], 1
jmp 0x44d28e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44d2ad
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0044c6f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x46255d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x462595
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00460614
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004605ec
jmp 0x4625a1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x463c4b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x463c8d
call fcn.0046974f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x463c8d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x463c84
xor eax, eax
jmp 0x463c95
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00463c9b
pop edi
pop esi
pop ebx
ret 4
Function at 0x469c7f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x469cad
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x469ccb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00469be5
jmp 0x469ccb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x469ccb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00469be5
test edi, edi
mov eax, edi
jne 0x469cb5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x47f676eb
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x20092081
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4052ef
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x422468], 0x44
push eax
xor eax, eax
push 0x422468
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40532a
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4053d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x7546afe3
xor ecx, ebp
loop 0x4053d8
pop ebp
ret

Function at 0x405686
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421868
push esi
call fcn.00405aba
push esi
call fcn.00405637
mov edi, eax
test edi, edi
jne 0x4056a7
xor eax, eax
jmp 0x4056f9
push edi
call fcn.00405d46
test byte [0x423e78], 0x80
je 0x4056c0
mov al, byte [edi]
test al, al
je 0x4056a3
cmp al, 0x5c
je 0x4056a3
sub edi, esi
push esi
call fcn.00405ad0
cmp eax, edi
push esi
jle 0x4056e3
call fcn.00405ddf
test eax, eax
je 0x4056db
test byte [eax], 0x10
je 0x4056a3
push esi
call fcn.004055ea
jmp 0x4056c2
call fcn.004055a3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405770
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40578c
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40578f
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4057be
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405803
mov eax, edi
dec edi
test eax, eax
jne 0x4057c9
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4057fd
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4053b1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420c20]
jne 0x4053bb
repz ret
jmp fcn.0040a042

Function at 0x41457f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040af73
and dword [ebp - 4], 0
cmp dword [0x2358148], 0
mov ebx, eax
jne 0x414630
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4146e1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4146e1
push eax
call fcn.0040af01
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x2358148], eax
call esi
push eax
call fcn.0040af01
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x235814c], eax
call esi
push eax
call fcn.0040af01
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x2358150], eax
call esi
push eax
call fcn.0040af01
pop ecx
mov dword [0x2358158], eax
test eax, eax
je 0x414630
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040af01
pop ecx
mov dword [0x2358154], eax
mov eax, dword [0x2358154]
cmp eax, ebx
je 0x414688
cmp dword [0x2358158], ebx
je 0x414688
push eax
call fcn.0040af7c
push dword [0x2358158]
mov esi, eax
call fcn.0040af7c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x414688
test edi, edi
je 0x414688
call esi
test eax, eax
je 0x41467f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41467f
test byte [ebp - 0xc], 1
jne 0x414688
or dword [ebp + 0x10], 0x200000
jmp 0x4146c1
mov eax, dword [0x235814c]
cmp eax, ebx
je 0x4146c1
push eax
call fcn.0040af7c
pop ecx
test eax, eax
je 0x4146c1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4146c1
mov eax, dword [0x2358150]
cmp eax, ebx
je 0x4146c1
push eax
call fcn.0040af7c
pop ecx
test eax, eax
je 0x4146c1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x2358148]
call fcn.0040af7c
pop ecx
test eax, eax
je 0x4146e1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4146e3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408928
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
mov ebx, ebx
add eax, 0xf59cb0bb
call fcn.00408956
add ebx, 0xd889122e
xor dword [edx], ecx
add ebx, ebx
inc edx
sub eax, 1
sub eax, 0x24d60325
cmp edx, edi
jne fcn.00408928
ret
Function at 0x4010d0
Capabilities:
Delete file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp dword [0x8c076c], 0x594
mov dword [ebp - 8], eax
jne 0x4010f9
push ebx
call dword [sym.imp.KERNEL32.dll_AddAtomW]
mov ecx, dword [str.R_a_W]
mov edx, dword [0x4a0f6c]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edx
call fcn.004010c0
mov eax, dword [0x4a0f70]
mov ecx, dword [0x4a0f74]
add dword [ebp - 0x18], 0x23f
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov ecx, dword [0x8c076c]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x40118e
push ebx
lea edx, [ebp - 0x38]
push edx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push ebx
call dword [sym.imp.KERNEL32.dll_SetCommBreak]
xor eax, eax
xor ecx, ecx
lea edx, [ebp - 0x3c]
push edx
mov word [ebp - 0x1c], ax
mov word [ebp - 0x1a], cx
mov eax, dword [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
mov eax, dword [ebp - 4]
mov ecx, dword [0x8c076c]
add eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x4011a8
mov dword [0x8c0768], 0xedeb2e40
jmp 0x4011c8
cmp ecx, 0x3eb
jne 0x4011c8
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [0x8c011c], ebx
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
add edx, edi
mov dword [ebp - 0x14], edx
mov edx, edi
shr edx, cl
mov dword [0x8c0764], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 4]
shr esi, cl
mov ecx, dword [ebp - 0x14]
push ecx
push edx
add esi, dword [ebp - 0x34]
call fcn.004010a0
cmp dword [0x8c076c], 0xb03
mov dword [ebp - 4], eax
jne 0x401251
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 4]
xor eax, esi
mov dword [ebp - 4], eax
sub edi, eax
lea eax, [ebp - 0x18]
call fcn.00401090
sub dword [ebp - 0x20], 1
jne 0x401135
cmp dword [0x8c076c], 0xa6d
mov esi, dword [ebp + 8]
mov dword [esi], edi
jne 0x401297
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
pop edi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401680
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x8c076c], 0x400
push esi
push edi
jne 0x4016a4
lea eax, [ebp - 0x24]
call fcn.00401760
lea esi, [ebp - 0x24]
call fcn.00401780
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov ebx, dword [ebp - 4]
xor esi, esi
call edi
cmp esi, 0x2af055
jle 0x4016c2
cmp ebx, 0x787e04e5
jne 0x4016cb
inc esi
cmp esi, 0x1d97
jl 0x4016b0
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
lea esp, [esp]
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x206d47
jg 0x4016fd
inc esi
cmp esi, 0x4f6a4
jl 0x4016e0
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
pop ebx
push 0
call edi
cmp esi, 0x2b2589
jg 0x40171b
inc esi
cmp esi, 0x11915
jl 0x401706
mov eax, dword [0x4a11ac]
mov dword [0x8c076c], eax
call fcn.00401400
mov esi, dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edi, 0x3078f
jmp 0x401740
cmp dword [0x8c076c], 0x51f
jne 0x401750
push 0
call esi
sub edi, 1
jne 0x401740
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404210
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a0538]
jne 0x40421a
repz ret
jmp fcn.00407b30
Function at 0x407853
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404c77
and dword [ebp - 4], 0
cmp dword [0x4a2b64], 0
mov ebx, eax
jne 0x407904
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4079b5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4079b5
push eax
call fcn.00404c05
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4a2b64], eax
call esi
push eax
call fcn.00404c05
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4a2b68], eax
call esi
push eax
call fcn.00404c05
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4a2b6c], eax
call esi
push eax
call fcn.00404c05
pop ecx
mov dword [0x4a2b74], eax
test eax, eax
je 0x407904
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404c05
pop ecx
mov dword [0x4a2b70], eax
mov eax, dword [0x4a2b70]
cmp eax, ebx
je 0x40795c
cmp dword [0x4a2b74], ebx
je 0x40795c
push eax
call fcn.00404c80
push dword [0x4a2b74]
mov esi, eax
call fcn.00404c80
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40795c
test edi, edi
je 0x40795c
call esi
test eax, eax
je 0x407953
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407953
test byte [ebp - 0xc], 1
jne 0x40795c
or dword [ebp + 0x10], 0x200000
jmp 0x407995
mov eax, dword [0x4a2b68]
cmp eax, ebx
je 0x407995
push eax
call fcn.00404c80
pop ecx
test eax, eax
je 0x407995
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407995
mov eax, dword [0x4a2b6c]
cmp eax, ebx
je 0x407995
push eax
call fcn.00404c80
pop ecx
test eax, eax
je 0x407995
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a2b64]
call fcn.00404c80
pop ecx
test eax, eax
je 0x4079b5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4079b7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40218f
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push esi
push edi
call 0x4040f4
lea eax, [ebp - 0x104]
push eax
push 0x104
call 0x4040e8

Function at 0x4021b0
Capabilities:
Enumerate pe sections

Disassembly:
cmp byte [ebp - 0x104], 0
jne 0x4022ff
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
rcl byte [edi - 0x73], cl
inc esp
or byte [eax], bl
cmp byte [ebp - 0x104], 0
jne 0x40248e
add byte [eax], al
add byte [ebx - 0x3ca2e73c], al
int3
push 0
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x104]
push eax
call 0x4040ac
call 0x4040b8
mov esi, eax
mov ecx, dword [0x423dd2]
inc ecx
cdq
idiv ecx
mov edi, eax
and edi, 0xffffffa8
mov dword [ebp - 0x108], edi
or esi, esi
jne 0x4025d7
or ebp, dword [eax]
add dword [eax], eax
add bh, bh
jne 0x4024dc
push edx
jmp 0x4024e6
pop ss
push 0x100
push dword [ebp + 0xc]
push ecx
push dword [0x662a2010]
call dword [0x662a1034]
jmp 0x4024fc
pop esi
pop ebp
ret 8
mov eax, dword [ebp - 0x108]
pop edi
pop esi
leave
ret
Function at 0x40104b
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x41b8e0
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x472058
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, dword [esp + 0x18]
mov ebx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41b95d
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
push 0x3d
push esi
call edi
add esp, 8
test eax, eax
jne 0x41b95d
push 0x3b
push esi
call edi
add esp, 8
test eax, eax
jne 0x41b95d
lea ecx, [esp + 0x1c]
call fcn.0041fb60
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
push esi
mov dword [esp + 0x1c], 0
call fcn.00401384
test eax, eax
jne 0x41b973
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00420610
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 8]
cdq
sub eax, edx
sar eax, 1
inc eax
lea ebx, [eax + eax]
push ebx
call sub.MFC42u.DLL_operatornew
mov ecx, ebx
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
push ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
push eax
call fcn.00434fb0
mov ecx, dword [esp + 0x30]
add esp, 0x10
push esi
call fcn.004262d0
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00420610
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x401249
Capabilities:
Copy file

Disassembly:
jmp 0x406710
push 0xffffffffffffffff
push 0x470678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
mov esi, ecx
call fcn.004012d0
push esi
lea ecx, [esp + 0xc]
mov edi, eax
call sub.MFC42u.DLL_CString::CString_2
push 0x4819e8
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0
call fcn.0041f1ac
cmp edi, 0xffffffff
je 0x406772
mov eax, dword [esp + 8]
mov ecx, esi
push eax
push edi
push str.RT_LICENSE
call fcn.004012ad
test eax, eax
jne 0x406802
push 0x486f38
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 1
push ecx
mov ecx, esi
call fcn.0040147e
cmp eax, 0xffffffff
je 0x4067f4
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x10]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4067f4
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_4
mov byte [esp + 0x1c], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 8]
push eax
push ecx
lea edx, [esp + 0x14]
push str.Copy_File_failed__ErrPath_:_s__LastError:_d_r_n
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x1c]
push 0
push 1
push eax
call fcn.004012bc
add esp, 0x1c
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x40124e
Capabilities:
Get file size

Disassembly:
jmp 0x41c580
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0xffffffff
jne 0x41c5f9
mov eax, dword [esi + 0x28]
test eax, eax
je 0x41c5ac
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x41c5b8
xor eax, eax
pop esi
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x500000
jbe 0x41c5e9
mov eax, dword [esi + 0x24]
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, 1
pop esi
ret
mov edx, dword [esi + 0x24]
push 2
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, 1
pop esi
ret