joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x1001609
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1001a90
call fcn.010017b4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1002370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10013c4
cmp eax, esi
jne 0x10013b7
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10013c7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100139e
xor esi, esi
inc esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x10013da
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001409
mov eax, dword [0x100236c]
test eax, eax
jne 0x1001403
mov dword [0x100236c], esi
push 0x10010b8
push 0x10010ac
call fcn.01001300
pop ecx
pop ecx
test eax, eax
je 0x1001409
jmp 0x100152d
mov dword [0x1002034], esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x100142d
push 0x10010a8
push 0x10010a0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100236c], 2
cmp dword [ebp - 0x20], ebx
jne 0x100143a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1002374], ebx
je 0x100145b
push 0x1002374
call fcn.01001729
pop ecx
test eax, eax
je 0x100145b
push ebx
push 2
push ebx
call dword [0x1002374]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100152d
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x10014c5
cmp cx, bx
je 0x1001480
cmp dword [ebp - 0x1c], ebx
jne 0x10014c5
movzx ecx, word [eax]
cmp cx, bx
je 0x1001495
cmp cx, 0x20
ja 0x1001495
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1001480
test byte [ebp - 0x40], 1
je 0x10014a1
movzx ecx, word [ebp - 0x3c]
jmp 0x10014a4
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1002030], eax
cmp dword [0x1002024], ebx
jne 0x100150a
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x10014d6
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x100146a
cmp dword [0x1002034], ebx
jne 0x1001518
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1002030]
jmp 0x1001539
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010017f9
ret
call fcn.01001901
jmp 0x1001361
Function at 0x49c51d
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0049c59c
jae 0x49c529
xor ecx, ecx
call fcn.0049c59c
jae 0x49c553
xor eax, eax
call fcn.0049c59c
jae 0x49c564
mov al, 0x10
call fcn.0049c59c
adc al, al
jae 0x49c545
jne 0x49c591
stosb byte es:[edi], al
jmp 0x49c52a
call fcn.0049c5a8
dec ecx
loop 0x49c570
mov eax, ebp
call fcn.0049c5a6
jmp 0x49c592
lodsb al, byte [esi]
shr eax, 1
je 0x49c5b8
adc ecx, 2
mov ebp, eax
jmp 0x49c592
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0049c5a6
cmp eax, 0x7d00
jae 0x49c590
cmp eax, 0x500
jae 0x49c591
cmp eax, 0x7f
ja 0x49c592
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x49c52a
pop ebp
ret 8
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
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
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x552430
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xda000]
push edi
or ebp, 0xffffffff
jmp 0x552452
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x552459
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x552448
mov eax, 1
add ebx, ebx
jne 0x55246b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x55247c
jne 0x55249b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55249b
dec eax
add ebx, ebx
jne 0x552488
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x552460
add ebx, ebx
jne 0x552497
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5524ed
xor ecx, ecx
sub eax, 3
jb 0x5524b3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x552522
sar eax, 1
mov ebp, eax
jmp 0x5524be
add ebx, ebx
jne 0x5524be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55248c
inc ecx
add ebx, ebx
jne 0x5524cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55248c
add ebx, ebx
jne 0x5524d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5524ce
jne 0x5524ea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5524ce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x55250c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5524fe
jmp 0x55244e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x55250c
add edi, ecx
jmp 0x55244e
pop esi
mov edi, esi
mov ecx, 0x6ad9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x55252a
cmp byte [edi], 0x1e
jne 0x55252a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x55252f
lea edi, [esi + 0x14f000]
mov eax, dword [edi]
or eax, eax
je 0x5525a7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1538b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1539b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x55255c
mov ecx, edi
jns 0x55258b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1539bc]
or eax, eax
je 0x5525a1
mov dword [ebx], eax
add ebx, 4
jmp 0x552579
call dword [esi + 0x1539cc]
mov ebp, dword [esi + 0x1539c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5525db
sub esp, 0xffffff80
jmp 0x40cfd2
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4738c8
Capabilities:
Encode data using xor

Disassembly:
push 0x4735cc
pop ecx
sub esp, 4
mov dword [esp], ebx
pop edx
call fcn.00473913
mov ebx, 0x5e59a91d
dec edx
xor dword [edi], ecx
sub ebx, 0xfdcdcbeb
and ebx, ebx
or edx, ebx
add edi, 2
sub ebx, edx
cmp edi, eax
jl fcn.004738c8
add edx, 0xc5f5250f
sub edx, 0x94f77c2d
sub ebx, 0x8b623cf3
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401608
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
test esi, esi
sete dl
test ebx, ebx
sete al
xor ecx, ecx
or dl, al
jne 0x401727
mov edx, dword [ebp + 0xc]
lea eax, [edx*4 + 0xb]
mov edx, 0xc
mov ecx, edx
cdq
idiv ecx
lea eax, [eax*4 + 1]
cmp dword [ebp + 0x14], eax
jge 0x40168f
push 0x6f
call sub.KERNEL32.DLL_SetLastError
xor ecx, ecx
jmp 0x401727
and eax, 3
shl eax, 4
movzx eax, byte [eax + section.2h73cdou]
mov byte [ecx + 2], 0x3d
mov byte [ecx + 3], 0x3d
mov byte [ecx + 1], al
add ecx, 4
jmp 0x40171f
and eax, 0xf
movzx eax, byte [eax*4 + section.2h73cdou]
mov byte [ecx + 3], 0x3d
mov byte [ecx + 2], al
mov ecx, esi
jmp 0x40171f
xor edi, edi
cmp edi, dword [ebp + 0xc]
mov ecx, esi
jge 0x40171f
movzx eax, byte [ebx]
shr al, 2
movzx eax, al
movzx eax, byte [eax + section.2h73cdou]
mov byte [esi], al
mov esi, dword [ebp + 0xc]
movzx eax, byte [ebx]
sub esi, edi
cmp esi, 1
je 0x401656
mov edx, eax
and edx, 3
shl edx, 4
movzx eax, byte [ebx + 1]
shr al, 4
movzx eax, al
or edx, eax
cmp esi, 2
lea esi, [ecx + 4]
movzx eax, byte [edx + section.2h73cdou]
mov byte [ecx + 1], al
movzx eax, byte [ebx + 1]
je 0x401676
mov edx, eax
movzx eax, byte [ebx + 2]
and edx, 0xf
add edi, 3
shl edx, 2
shr al, 6
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.2h73cdou]
mov byte [ecx + 2], al
movzx eax, byte [ebx + 2]
add ebx, 3
and eax, 0x3f
movzx eax, byte [eax + section.2h73cdou]
mov byte [ecx + 3], al
jmp 0x401691
mov byte [ecx], 0
mov ecx, 1
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401732
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
push 0
push 0xa7
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 0x10], 0
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
sete dl
test eax, eax
sete al
xor ecx, ecx
or dl, al
jne 0x401818
push 0
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_GetFileSize
push eax
push 0
mov dword [ebp - 0x14], eax
call sub.KERNEL32.DLL_GetProcessHeap
push eax
call sub.KERNEL32.DLL_HeapAlloc
test eax, eax
mov edi, eax
je 0x4017b9
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x4017c5
push edi
push 0
call sub.KERNEL32.DLL_GetProcessHeap
push eax
call sub.KERNEL32.DLL_HeapFree
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_CloseHandle
xor ecx, ecx
jmp 0x401818
mov eax, dword [ebp - 0x14]
mov edx, 0xc
mov ebx, edx
xor edx, edx
lea ecx, [eax*4 + 0xb]
mov eax, ecx
div ebx
lea esi, [eax*4 + 1]
push esi
push 0x40
call sub.KERNEL32.DLL_GlobalAlloc
push esi
mov ebx, eax
push eax
push dword [ebp - 0x14]
push edi
call fcn.00401608
mov edx, dword [ebp + 0xc]
add esp, 0x10
mov dword [edx], eax
push edi
push 0
call sub.KERNEL32.DLL_GetProcessHeap
push eax
call sub.KERNEL32.DLL_HeapFree
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_CloseHandle
mov ecx, ebx
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401409
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47ec48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_4
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
push eax
mov ecx, ebx
mov dword [esp + 0x2c], 0
call sub.MFC42u.DLL_CWnd::GetDlgItem
mov edi, eax
lea ecx, [esp + 0x10]
push ecx
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call sub.MFC42u.DLL_CWnd::ScreenToClient
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call sub.MFC42u.DLL_CWnd::GetWindowTextW
push 0
mov ecx, edi
call sub.MFC42u.DLL_CWnd::ShowWindow
mov eax, dword [esp + 0xc]
push 0
push 0
lea edx, [esp + 0x18]
push ebx
push edx
push 0x50000000
push eax
push 0
mov ecx, esi
call sub.MFC42u.DLL_CWnd::Create
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub ecx, eax
push 1
push ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CWnd::MoveWindow
lea eax, [esp + 0xc]
lea ecx, [esi + 0x40]
push eax
call sub.MFC42u.DLL_CString::operator_1
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x5c], ecx
lea ecx, [esp + 0xc]
mov dword [esi + 0x58], edx
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x402710
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x47ee88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_4
mov edi, dword [esp + 0x20]
push 0x49e204
mov ecx, edi
mov dword [esp + 0x1c], 0
call sub.MFC42u.DLL_CString::TrimLeft
push 0x49e200
mov ecx, edi
call sub.MFC42u.DLL_CString::TrimLeft
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4027c3
mov esi, dword [0x513c9c]
mov eax, dword [0x513ca0]
cmp eax, esi
je 0x4027c3
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esi]
mov edx, dword [edi]
push edx
mov eax, dword [ecx - 8]
mov ecx, esi
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
lea eax, [esp + 0x14]
push 0x49e21c
push eax
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
add esp, 0x10
push ecx
call ebx
test eax, eax
jne 0x4027b0
mov eax, dword [0x513ca0]
add esi, 4
cmp eax, esi
jne 0x402774
jmp 0x4027c3
mov edx, dword [esp + 0xc]
push edx
push 0x49e1d8
push edi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402e50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488e10
push 0x47e2ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov ecx, 9
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x4c], ebx
mov esi, dword [ebp + 8]
mov eax, esi
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax]
mov dword [ecx], edx
mov al, byte [eax + 4]
mov byte [ecx + 4], al
lea edi, [ebp - 0x40]
lea ecx, [ebx + esi]
push ecx
call fcn.00402980
add esp, 4
test eax, eax
je 0x402f7e
mov dword [edi], ebx
add ebx, dword [0x513cf4]
add edi, 4
cmp ebx, 5
jl 0x402e9f
mov dword [ebp - 0x50], ebx
mov ecx, ebx
mov ebx, dword [ebp + 0x10]
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x40]
cmp ecx, 5
jg 0x402f0c
lea edx, [ebp - 0x40]
mov al, byte [ecx + ebx]
cmp al, 0xe8
je 0x402ef1
cmp al, 0xe9
jne 0x402efe
mov eax, dword [ecx + ebx + 1]
sub eax, ebx
add eax, dword [ebp + 8]
mov dword [ecx + ebx + 1], eax
add edx, 4
mov ecx, dword [edx]
test ecx, ecx
jle 0x402f0c
cmp ecx, 5
jle 0x402ee6
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4c]
push eax
push 0x40
mov edi, dword [ebp - 0x50]
lea ecx, [edi + 5]
push ecx
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call esi
lea edx, [ebp - 0x4c]
push edx
push 0x40
push 5
mov eax, dword [ebp + 8]
push eax
call esi
mov ecx, dword [ebp + 8]
mov eax, ecx
sub eax, ebx
sub eax, 5
mov dword [ebp - 0x48], eax
add ebx, edi
mov dword [ebp - 0x54], ebx
mov byte [ebx], 0xe9
mov dword [ebx + 1], eax
mov edx, dword [ebp + 0xc]
sub edx, ecx
sub edx, 5
mov dword [ebp - 0x64], edx
mov edi, dword [ebp + 8]
mov al, 0xe9
stosb byte es:[edi], al
mov eax, dword [ebp - 0x64]
stosd dword es:[edi], eax
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x50], ebx
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402fc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488e20
push 0x47e2ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
push 0x40
push 5
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [esi], edx
mov al, byte [ecx + 4]
mov byte [esi + 4], al
jmp 0x403016
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403310
Capabilities:
Check os version
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47eedc
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor ecx, ecx
mov esi, eax
mov cl, ah
and esi, 0xff
and ecx, 0xff
cmp esi, 6
mov edi, ecx
jne 0x403417
push 0x513cb0
mov dword [0x513d0c], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 4
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x21c], 0
je 0x40338b
mov ecx, eax
call sub.MFC42u.DLL_CString::CString_4
jmp 0x40338d
xor eax, eax
test eax, eax
mov dword [esp + 0x21c], 0xffffffff
mov dword [0x513d10], eax
je 0x4033a8
mov ecx, eax
call sub.MFC42u.DLL_CString::Empty
push 4
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x21c], 1
je 0x4033ce
mov ecx, eax
call sub.MFC42u.DLL_CString::CString_4
jmp 0x4033d0
xor eax, eax
test eax, eax
mov dword [esp + 0x21c], 0xffffffff
mov dword [0x513d14], eax
je 0x403417
lea edx, [esp + 0xc]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [0x513d14]
lea eax, [esp + 0xc]
push eax
push str._simageres.dll
push ecx
mov word [esp + 0x21e], 0
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
cmp esi, 5
mov dword [0x513d08], 0x90000
jne 0x403436
test edi, edi
jne 0x40345a
mov dword [0x513d08], 0x70000
jmp 0x40345a
cmp esi, 6
jne 0x40345a
test edi, edi
jne 0x40344b
mov dword [0x513d08], 0xa0000
jmp 0x40345a
cmp edi, 1
jne 0x40345a
mov dword [0x513d08], 0xd0000
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
pop edi
mov dword [0x513d04], eax
test eax, eax
pop esi
je 0x4034bb
mov eax, dword [0x513cf8]
test eax, eax
jne 0x4034bb
push 0x44
call sub.MFC42u.DLL_operatornew
add esp, 4
test eax, eax
je 0x40349f
push 0x4032e0
push str.LoadLibraryExW
push str.kernel32.dll
mov ecx, eax
call fcn.00403030
jmp 0x4034a1
xor eax, eax
lea edx, [eax + 0x1c]
mov ecx, eax
mov dword [0x513cf8], eax
mov dword [0x513cfc], edx
call fcn.004030d0
mov dword [0x513d00], eax
mov ecx, dword [esp + 0x20c]
mov dword fs:[0], ecx
add esp, 0x218
ret
Function at 0x407ca0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x47f196
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_4
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], ebx
call sub.MFC42u.DLL_CString::Empty
mov esi, dword [esp + 0x230]
mov ebp, dword [sym.imp.MSVCRT.dll__wcsnicmp]
mov eax, dword [esi]
mov edi, dword [eax - 8]
cmp edi, 9
jbe 0x407d46
push 9
push str.system32_
push edi
mov ecx, esi
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call ebp
add esp, 0xc
test eax, eax
jne 0x407d46
lea ecx, [esp + 0x18]
push 0x104
push ecx
mov word [esp + 0x20], bx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edx, dword [esi]
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x18]
push 0x49e21c
push ecx
mov word [esp + 0x22e], bx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
jmp 0x407e07
cmp edi, 0xc
jbe 0x407db0
mov edx, dword [esi]
push 0xc
push str.SystemRoot_
mov ecx, esi
mov eax, dword [edx - 8]
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call ebp
add esp, 0xc
test eax, eax
jne 0x407db0
lea eax, [esp + 0x18]
push 0x104
push eax
mov word [esp + 0x20], bx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, dword [esi]
mov word [esp + 0x21e], bx
mov eax, dword [ecx - 8]
mov ecx, esi
push eax
call sub.MFC42u.DLL_CString::GetBuffer
add eax, 0x18
lea edx, [esp + 0x18]
push eax
push edx
lea eax, [esp + 0x18]
push 0x49e21c
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
jmp 0x407e07
cmp edi, 4
jbe 0x407e07
mov ecx, dword [esi]
push 4
push 0x49f1e0
mov eax, dword [ecx - 8]
mov ecx, esi
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x407e07
lea edx, [esp + 0x14]
push 4
push edx
mov ecx, esi
call sub.MFC42u.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x22c], 1
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], bl
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x10]
push eax
push 0x49e1d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret 4
Function at 0x40eb20
Capabilities:
Query environment variable

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47f69b
push eax
mov dword fs:[0], esp
sub esp, 0x210
push esi
mov esi, dword [esp + 0x224]
push edi
mov edi, ecx
mov eax, dword [esi]
mov eax, dword [eax - 8]
test eax, eax
je 0x40ec3c
cmp eax, 4
jle 0x40ebaa
push 4
push 0x49f1e0
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x40ebaa
lea ecx, [esp + 8]
push 4
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CString::Mid
push eax
mov ecx, esi
mov dword [esp + 0x224], 0
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 8]
mov dword [esp + 0x220], 0xffffffff
call sub.MFC42u.DLL_CString::CString
push 0x25
mov ecx, esi
call sub.MFC42u.DLL_CString::Find
test eax, eax
jl 0x40ec01
mov edx, dword [edi]
push esi
mov ecx, edi
call dword [edx + 0xf4]
test al, al
jne 0x40ec01
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jbe 0x40ec01
cmp eax, 0x103
jae 0x40ec01
lea edx, [esp + 0xc]
mov word [esp + 0x214], 0
push edx
push 0x49e1d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jbe 0x40ec3c
cmp eax, 0x103
jae 0x40ec3c
lea edx, [esp + 0xc]
mov word [esp + 0x214], 0
push edx
push 0x49e1d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov ecx, dword [esp + 0x218]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret 4