joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ee0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
push edi
push esi
push ebx
push eax
mov eax, 0x2278
call fcn.0040f2e0
sub esp, eax
mov eax, dword [esp + eax]
lea ebp, [esp + 0x270]
mov dword [esp + 8], str._s
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.msvcrt.dll__snwprintf]
mov dword [esp + 4], 0x1000
mov dword [esp], ebp
mov dword [esp + 0x14], eax
call eax
cmp eax, 0xfff
jg 0x40804e
lea ebx, [eax - 1]
mov eax, 0x1000
lea esi, [esp + 0x20]
mov dword [esp], ebp
sub eax, ebx
mov dword [esp + 4], esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
sub esp, 8
mov edi, eax
cmp eax, 0xffffffff
je 0x40804e
lea eax, [ebp + ebx*2]
lea ebx, [esp + 0x4c]
mov dword [esp + 0x18], eax
mov dword [esp + 4], 0x41bd66
mov dword [esp], ebx
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x407fe0
mov dword [esp + 4], 0x41bd6a
mov dword [esp], ebx
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x407fe0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x41bd70
mov dword [esp], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 4], eax
call ecx
mov edx, dword [esp + 0x10]
cmp eax, edx
jge 0x407fe0
mov eax, dword [esp + 0x20]
test al, 0x10
je 0x408030
test ah, 4
je 0x407fcd
cmp dword [esp + 0x44], 0xa000000c
je 0x408040
mov eax, ebp
call fcn.00407ee0
lea esi, cs:[esi]
lea esi, [esi]
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
sub esp, 8
test eax, eax
jne 0x407f65
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
sub esp, 4
cmp eax, 1
setne al
movzx eax, al
neg eax
add esp, 0x227c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 4
jmp 0x407fe0
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
sub esp, 4
jmp 0x407fe0
mov eax, 0xffffffff
jmp 0x40801f

Function at 0x4083c0
Capabilities:
Query environment variable

Disassembly:
push esi
mov eax, 0x4014
push ebx
call fcn.0040f2e0
sub esp, eax
mov eax, dword [esp + 0x4020]
mov dword [esp + 8], 0
lea ebx, [esp + 0x10]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004094e0
mov dword [esp + 8], 0x1000
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub eax, 1
sub esp, 0xc
cmp eax, 0xffe
ja 0x408460
lea esi, [esp + 0x2010]
mov dword [esp + 8], 0x1000
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
sub eax, 1
sub esp, 0xc
cmp eax, 0xffe
ja 0x408460
mov dword [esp], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.004093c0
add esp, 0x4014
pop ebx
pop esi
ret
add esp, 0x4014
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4091c0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov eax, 0x403c
push edi
push esi
push ebx
call fcn.0040f2e0
sub esp, eax
mov dword [esp + 0x2c], 0
mov ebp, dword [esp + 0x4050]
lea esi, [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov ebx, eax
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_K32EnumProcessModules
sub esp, 0x10
test eax, eax
je 0x409216
mov edx, dword [esp + 0x2c]
test edx, edx
jne 0x409228
add esp, 0x403c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 1
mov dword [esp], edx
mov dword [esp + 0x14], edx
call sub.msvcrt.dll_calloc
mov edi, eax
test eax, eax
je 0x409216
mov edx, dword [esp + 0x14]
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], ebx
call sub.KERNEL32.dll_K32EnumProcessModules
sub esp, 0x10
test eax, eax
jne 0x409280
mov dword [esp + 0x4050], edi
add esp, 0x403c
pop ebx
pop esi
pop edi
pop ebp
jmp sub.msvcrt.dll_free
add ebp, 0x2012
lea esi, [esp + 0x2030]
mov dword [esp + 8], 0x1000
mov dword [esp + 4], esi
mov dword [esp], ebp
call fcn.004094e0
test eax, eax
je 0x409261
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
mov ecx, eax
mov eax, dword [esp + 0x2c]
shr eax, 2
mov dword [esp + 0x18], eax
je 0x409261
mov dword [esp + 0x14], 0
xor ebp, ebp
mov dword [esp + 0x1c], ecx
lea esi, [esi]
lea eax, [esp + 0x30]
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov eax, dword [edi + ebp*4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_K32GetModuleFileNameExW
sub esp, 0x10
test eax, eax
je 0x409324
mov eax, dword [esp + 0x1c]
mov dword [esp], esi
mov dword [esp + 8], eax
lea eax, [esp + 0x30]
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x409324
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + ebp*4]
mov dword [edi + ecx*4], eax
lea eax, [ecx + 1]
mov dword [esp + 0x14], eax
add ebp, 1
cmp dword [esp + 0x18], ebp
jne 0x4092d0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x409261
mov ebp, edi
xor eax, eax
mov dword [esp + 0x18], ebx
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 0x1c], edi
mov ebx, ebp
mov edi, eax
jmp 0x409364
add edi, 1
add ebx, 4
cmp dword [esp + 0x14], edi
je 0x4093b0
lea eax, [esp + 0x30]
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sub.KERNEL32.dll_K32GetModuleFileNameExW
sub esp, 0x10
test eax, eax
je 0x409358
xor ebp, ebp
jmp 0x40939c
test eax, eax
je 0x409358
mov eax, dword [ebx]
add ebp, 1
mov dword [esp], eax
call esi
sub esp, 4
cmp ebp, 0x20
jne 0x409398
jmp 0x409358
mov edi, dword [esp + 0x1c]
jmp 0x409261
Function at 0x40e5b0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00417fb0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00417fb0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x40e610
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4271fc]
test esi, esi
jle 0x40e730
mov eax, dword [0x427200]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x40e644
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40e6c7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40e630
mov dword [esp], ebx
call fcn.0040f010
mov edi, eax
test eax, eax
je 0x40e757
mov eax, dword [0x427200]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0040f150
mov edx, dword [0x427200]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40e737
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40e6c0
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x40e6d0
add dword [0x4271fc], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x427200]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40e6c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040e5b0
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x40e64e
mov eax, dword [0x427200]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0040e5b0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040e5b0
lea esi, cs:[esi]
nop
Function at 0x40ec80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x427218
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x427210]
sub esp, 4
test ebx, ebx
je 0x40ecd5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x40ecce
test eax, eax
jne 0x40ecce
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40ecb0
mov dword [esp], 0x427218
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40f010
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x40f035
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x40f040
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x40f035
push esi
push ebx
mov ebx, dword [esp + 0xc]
movzx eax, word [ecx + 0x400014]
movzx esi, word [ecx + 0x400006]
sub ebx, 0x400000
lea eax, [edx + eax + 0x18]
test si, si
je 0x40f088
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40f07e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40f08a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x40f070
xor eax, eax
pop ebx
pop esi
ret
Function at 0x5825c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xea000]
push edi
jmp 0x5825da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5825e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5825d0
mov eax, 1
add ebx, ebx
jne 0x5825f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x582604
jne 0x582623
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x582623
dec eax
add ebx, ebx
jne 0x582610
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5825e8
add ebx, ebx
jne 0x58261f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x582675
xor ecx, ecx
sub eax, 3
jb 0x58263b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5826aa
sar eax, 1
mov ebp, eax
jmp 0x582646
add ebx, ebx
jne 0x582646
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x582614
inc ecx
add ebx, ebx
jne 0x582654
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x582614
add ebx, ebx
jne 0x582661
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x582656
jne 0x582672
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x582656
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x582694
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x582686
jmp 0x5825d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x582694
add edi, ecx
jmp 0x5825d6
pop esi
mov edi, esi
mov ecx, 0x1436
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5826b2
cmp byte [edi], 0x1a
jne 0x5826b2
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 0x5826b7
lea edi, [esi + 0x17f000]
mov eax, dword [edi]
or eax, eax
je 0x58272f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x182ee4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x182f94]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5826e4
mov ecx, edi
jns 0x582713
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 + 0x182f9c]
or eax, eax
je 0x582729
mov dword [ebx], eax
add ebx, 4
jmp 0x582701
call dword [esi + 0x182f98]
mov ebp, dword [esi + 0x182fa0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x582763
sub esp, 0xffffff80
jmp 0x42e5e6
Function at 0x401190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
mov eax, dword [0x4295c0]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [str.ZKhSEl]
mov cx, word [0x423230]
mov dl, byte [0x423232]
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], eax
mov word [esp + 8], cx
mov byte [esp + 0xa], dl
cmp esi, 1
jne 0x4011d3
lea eax, [esp + 4]
push eax
push str.PsrGIm
jmp 0x4011dd
lea ecx, [esp + 4]
push ecx
push str.vkkpHE
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
mov dword [0x42ae1c], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, dword [0x42ae1c]
push edx
push 0
mov dword [0x42adb0], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov eax, dword [0x42adb0]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x42adb4], eax
cmp esi, 1
jne 0x40123e
mov ecx, dword [0x42adb0]
mov dword [0x42a9a4], ecx
mov dword [0x42ada0], eax
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0040d639
add esp, 0xc
ret
cmp esi, 2
jne 0x401254
mov edx, dword [0x42adb0]
mov dword [0x42ada4], edx
mov dword [0x42ae30], eax
mov ecx, dword [esp + 0xc]
pop esi
xor ecx, esp
call fcn.0040d639
add esp, 0xc
ret

Function at 0x401380
Capabilities:
Read file on windows

Disassembly:
push esi
push 0x429008
push 0x42ae40
call fcn.0040d327
push 2
push 0
push eax
mov dword [0x42ae14], eax
call fcn.0040db2d
mov eax, dword [0x42ae14]
push eax
call fcn.0040da3e
mov ecx, dword [0x42ae14]
push ecx
mov dword [0x42ad9c], eax
call fcn.0040d7ec
mov esi, dword [0x42ad9c]
push esi
call fcn.0040d5a5
mov edx, dword [0x42ae14]
push edx
push esi
push 1
push eax
mov dword [0x42b644], eax
call fcn.0040d588
add esp, 0x30
mov dword [0x42ad90], eax
pop esi
ret
Function at 0x4035b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42169b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4295c0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040bdd2
push 4
mov dword [esp + 0x24], 0
call fcn.0040dbe3
mov edi, eax
add esp, 4
test edi, edi
je 0x403632
call fcn.0040b95e
mov dword [edi], eax
call fcn.0040b71d
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0040b652
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x403627
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0040b67a
jmp 0x403634
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x4067a0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x421a88
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4295c0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4295c0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x44], 0
je 0x4068ed
cmp byte [edi + 0x49], 0
je 0x4068ed
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x4068e0
mov eax, 0xf
mov byte [esp + 0x18], 0
pxor xmm0, xmm0
mov dword [esp + 0x2c], eax
movq qword [esp + 0x18], xmm0
cmp eax, 0x10
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], 8
jae 0x406827
lea eax, [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
lea ebx, [edi + 0x4c]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x2c]
mov edx, eax
cmp ebp, 0x10
jae 0x40684b
lea edx, [esp + 0x18]
mov eax, edx
add edx, dword [esp + 0x28]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebp, [esp + 0x14]
push ebp
push edx
push eax
mov eax, dword [esi + 0x18]
push ebx
call eax
sub eax, 0
je 0x406874
dec eax
je 0x406878
sub eax, 2
lea ecx, [esp + 0x18]
jne 0x4068db
jmp 0x4068e8
mov byte [edi + 0x49], 0
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov ecx, eax
cmp ebp, 0x10
jae 0x40688b
lea ecx, [esp + 0x18]
mov esi, dword [esp + 0x14]
sub esi, ecx
je 0x4068b8
cmp ebp, 0x10
jae 0x40689c
lea eax, [esp + 0x18]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0040ebea
add esp, 0x10
cmp esi, eax
jne 0x4068d7
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
cmp byte [edi + 0x49], 0
je 0x4068e4
test esi, esi
jne 0x40683e
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00404c40
jmp 0x406836
lea ecx, [esp + 0x18]
call fcn.00403e60
xor al, al
jmp 0x4068ef
lea ecx, [esp + 0x18]
call fcn.00403e60
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0040d639
add esp, 0x30
ret
Function at 0x40d639
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4295c0]
jne 0x40d643
repz ret
jmp fcn.0041426e

Function at 0x41b9d5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4295c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00412917
and dword [ebp - 0x14], 0
cmp dword [0x42ca60], 0
mov dword [ebp - 0x18], eax
jne 0x41ba88
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41bb30
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41bb30
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42ca60], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42ca64], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42ca68], eax
call edi
push eax
call esi
mov dword [0x42ca70], eax
test eax, eax
je 0x41ba88
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42ca6c], eax
mov eax, dword [0x42ca6c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41bae1
cmp dword [0x42ca70], ecx
je 0x41bae1
push eax
call esi
push dword [0x42ca70]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41bae1
test ebx, ebx
je 0x41bae1
call edi
test eax, eax
je 0x41bad8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41bad8
test byte [ebp - 8], 1
jne 0x41bae1
or dword [ebp + 0x10], 0x200000
jmp 0x41bb14
mov eax, dword [0x42ca64]
cmp eax, dword [ebp - 0x18]
je 0x41bb14
push eax
call esi
test eax, eax
je 0x41bb14
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41bb14
mov eax, dword [0x42ca68]
cmp eax, dword [ebp - 0x18]
je 0x41bb14
push eax
call esi
test eax, eax
je 0x41bb14
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42ca60]
call esi
test eax, eax
je 0x41bb30
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41bb32
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d639
leave
ret
Function at 0x4024a7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ea
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
je 0x40262e
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push esi
call ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0xd0]
push 0x7f
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowTextA]
call esi
push 0x3eb
push dword [ebp + 8]
call edi
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x40262e
push edi
call ebx
cmp dword [ebp - 4], eax
jge 0x402519
lea eax, [ebp - 0xd0]
push 0x7f
push eax
push edi
call esi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x40262e
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0xd0]
push eax
push esi
call fcn.004071dd
push 1
push 0x40f060
push esi
mov edi, eax
call fcn.004071dd
push esi
push dword [ebp - 8]
movzx ebx, ax
call dword [sym.imp.USER32.dll_ReleaseDC]
and dword [ebp + 8], 0
movzx esi, di
add esi, ebx
shr edi, 0x10
test esi, esi
mov dword [ebp - 0x14], edi
je 0x40262e
test edi, edi
je 0x40262e
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
sub eax, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x20]
cmp eax, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
jge 0x4025b8
mov edi, esi
push 1
sub edi, eax
add edi, ebx
add esi, ebx
pop ebx
mov dword [ebp - 4], esi
mov dword [ebp + 8], ebx
jmp 0x4025be
mov edi, dword [ebp + 8]
push 1
pop ebx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jge 0x4025ce
add eax, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x40262e
mov esi, dword [sym.imp.USER32.dll_GetWindowPlacement]
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0x2c
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x34]
push ebx
push dword [ebp - 0xc]
mov ebx, dword [sym.imp.USER32.dll_MoveWindow]
sub eax, edi
push dword [ebp - 4]
push dword [ebp - 0x30]
push eax
push dword [ebp - 0x10]
call ebx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x2c
push eax
push dword [ebp - 8]
call esi
mov ecx, dword [ebp - 0x34]
push 1
push dword [ebp - 0xc]
lea eax, [edi + edi]
sub ecx, eax
push dword [ebp - 4]
push dword [ebp - 0x30]
push ecx
push dword [ebp - 8]
call ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402964
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x410f20
lea eax, [ebp - 0x14]
push 0x13
push eax
push 0x410790
push str.Default
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x402993
push 0xfffffffffffffffa
pop eax
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push 0x40f090
push eax
call fcn.00407964
add esp, 0xc
xor eax, eax
leave
ret