joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4070cd
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407112
push esi
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x407111
push 0xc00
mov ecx, esi
call dword [0x41b2b0]
call esi
pop esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004095f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x40714f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x421398
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407989
leave
ret

Function at 0x4071e7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x20a
lea eax, [ebp - 0x41c]
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call fcn.004095f0
push edi
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.004095f0
add esp, 0x18
mov dword [ebp - 0x420], ebx
mov ecx, 0x105
mov dword [ebp - 0x428], ebx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], ebx
push ecx
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x420]
push eax
push ecx
lea eax, [ebp - 0x41c]
push eax
push 0x42280c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov edi, 0x104
test eax, eax
je 0x407287
push 0xa
push edi
push esi
push dword [ebp - 0x420]
call fcn.0040cf82
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x4072a1
push str.thsnYaViMRAeBoda
mov edx, edi
mov ecx, esi
call fcn.00403aa0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407989
leave
ret

Function at 0x407640
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004095f0
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.004072b0
lea eax, [ebp - 0x20c]
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test eax, eax
jne 0x4076ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4076aa
push ecx
push eax
mov edx, str.Could_not_open_file_mapping_object
mov ecx, str.ReleaseSharedMemory__
call fcn.00407340
pop ecx
pop ecx
xor eax, eax
jmp 0x4076b8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407989
leave
ret
Function at 0x4076c4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], ecx
lea eax, [ebp - 0x20c]
mov esi, edx
push edi
push eax
call fcn.004095f0
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.004072b0
lea eax, [ebp - 0x20c]
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x407756
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_open_file_mapping_object.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x410], eax
xor eax, eax
jmp 0x407820
push 0x1e78
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4077aa
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_map_view_of_file.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x410], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40774f
mov eax, dword [ebp - 0x210]
test eax, eax
jne 0x4077c6
call fcn.0040d306
mov dword [eax], 0x16
call fcn.0040d23a
jmp 0x4077d5
push 0x1034
push edi
push eax
call fcn.00408e00
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push str.ReadSharedMemory__:
push ecx
mov edx, 0x82
mov ecx, esi
call fcn.00403b0e
lea eax, [ebp - 0x20c]
push eax
push str.succeeded._mapping_obj_name:__s
lea eax, [esi + 0x208]
push 0x104
push eax
call fcn.00406b11
and dword [esi + 0x410], 0
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407989
leave
ret
Function at 0x401650
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 0x40166b
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 0x4016a2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40169e
jmp 0x401690
cmp esi, eax
jae 0x4016a2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401690
cmp esi, eax
jb 0x4016a9
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 0x401f00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 2]
lea ecx, [eax + 1]
sub edi, eax
mov dword [ebp - 4], 4
jmp 0x401f20
movzx eax, byte [ecx - 1]
movzx edx, byte [ecx]
movzx ebx, byte [edi + ecx]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 1]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 2]
shl eax, 8
or eax, edx
movzx edx, byte [esi - 2]
shl edx, 8
or edx, ebx
movzx ebx, byte [esi]
shl edx, 8
or edx, ebx
movzx ebx, byte [esi + 1]
shl edx, 8
or edx, ebx
xor eax, edx
mov edx, eax
shr edx, 0x18
mov byte [esi - 2], dl
mov edx, eax
shr edx, 0x10
mov byte [edi + ecx], dl
mov edx, eax
shr edx, 8
mov byte [esi], dl
mov byte [esi + 1], al
add ecx, 4
add esi, 4
dec dword [ebp - 4]
jne 0x401f20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401f90
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x56d3f0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
push edi
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], eax
push str.ivector
mov eax, 7
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x58], 0x67452301
mov dword [ebp - 0x54], 0xefcdab89
mov dword [ebp - 0x50], 0x98badcfe
mov dword [ebp - 0x4c], 0x10325476
call fcn.00402d30
add esp, 4
lea esi, [ebx + 0xc4]
push esi
lea edi, [ebp - 0x60]
call fcn.00402e10
add esp, 4
cmp byte [ebx + 0xe4], 0
jne 0x40200d
lea esi, [ebx + 0xe8]
mov edi, 0x1f
mov eax, str.The_RoundKey_did_not_generation
call fcn.00402500
jmp 0x402016
lea eax, [ebx + 4]
push esi
call fcn.00402f80
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov byte [ebx + 0xe5], 1
pop esi
call fcn.004feee9
mov esp, ebp
pop ebp
ret
Function at 0x4068b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523fdb
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x56d3f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x4069af
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push ebx
push esi
call fcn.0040eca4
test eax, eax
jne 0x406911
push 0x54eb90
jmp 0x4069b4
push 0x104
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.005028d0
lea ecx, [ebp - 0x13c]
add esp, 0xc
mov dword [0x57786c], ecx
mov dword [ebp - method.CService.virtual_0], 0x54ebec
cmp dword [ebp + 8], 2
mov dword [ebp - 4], 0
jne 0x406991
mov eax, dword [edi + 4]
push 0x54ebbc
push eax
call fcn.0050073a
add esp, 8
test eax, eax
jne 0x40696b
call fcn.0040a2c0
mov eax, 1
jmp 0x4069c3
mov edi, dword [edi + 4]
push 0x54ebc0
push edi
call fcn.0050073a
add esp, 8
test eax, eax
jne 0x40698a
push str.SmartPCControlSvc
call fcn.0040a3a0
mov eax, 1
jmp 0x4069c3
lea ecx, [ebp - 0x13c]
call fcn.0040a410
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx + 8]
lea ecx, [ebp - 0x13c]
call eax
jmp 0x4069c1
push 0x54ebc4
call fcn.0050057e
mov ebx, 1
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004feee9
mov esp, ebp
pop ebp
ret
Function at 0x407960
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5239f8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x56d3f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x54ec14
lea eax, [ebp - 0x10]
push 0x577960
push eax
mov dword [ebp - 4], 0
call fcn.0040aaa0
add esp, 0xc
push 7
push str.wcl.ini
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004012a0
cmp dword [ebp + 0xc], 0
je 0x4079d3
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4079d3
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x24]
call fcn.004103ac
push 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
push 0x3001
push eax
lea ecx, [ebp - 0x24]
call fcn.0041081a
lea ecx, [ebp - 0x24]
call fcn.0040c120
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.004100e3
lea ecx, [ebp - 0x24]
call fcn.00410347
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004104dc
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407a41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407a67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40a2c0
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x56d3f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
call fcn.005028d0
add esp, 0xc
push 0x103
lea ecx, [ebp - 0x107]
push ecx
push 0
mov byte [ebp - 0x108], 0x22
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [ebp - 0x108]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a310
mov dx, word [0x54ee38]
push 2
push 0
push 0
mov word [edi], dx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x40a36c
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push str.SmartPCControlSvc
push str.SmartPCControlSvc
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x40a37e
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004feee9
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004feee9
mov esp, ebp
pop ebp
ret

Function at 0x40a3a0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push esi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x40a3bb
pop esi
pop ebp
ret 4
mov eax, dword [ebp + 8]
push edi
push 0x10000
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x40a3e1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x40a400
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
pop ebp
ret 4

Function at 0x40c190
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c1f3
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40c1cf
cmp eax, 2
jne 0x40c1e1
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x40c1ef
test eax, eax
je 0x40c1ec
cmp byte [eax + esi - 1], 0
je 0x40c1ef
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
mov byte [esi], 0
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40df75
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x56d3f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x40dfbd
push 0x528230
push 4
push eax
call fcn.0050233e
push eax
call fcn.00401360
add esp, 0x10
jmp 0x40dfd3
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x40e056
push edi
call fcn.0050222e
mov edi, dword [eax]
call fcn.0050222e
and dword [eax], 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0050076f
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.0050222e
cmp dword [eax], 0
je 0x40e02a
call fcn.0050222e
push dword [eax]
call fcn.0040cfb0
pop ecx
jmp 0x40e031
call fcn.0050222e
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x40e056
cmp dword [ebp - 0x11c], esi
jae 0x40e056
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x40e058
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004feee9
leave
ret
Function at 0x40e065
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x56d3f0]
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.0040de4d
pop ecx
cmp eax, esi
je 0x40e14f
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x40e14f
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.005028d0
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 0x40e14f
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x40e14f
cmp esi, 0x14
jge 0x40e14f
push 0x10
push 0
push edi
call fcn.005028ab
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40e13e
call fcn.0050222e
cmp dword [eax], 0x22
je 0x40e13e
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00501722
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x40e114
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 [0x5704ac], 0
jne 0x40e1da
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x40e203
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0040df75
pop ecx
pop ecx
test eax, eax
jne 0x40e205
inc edi
cmp edi, esi
jl 0x40e1e0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004feee9
leave
ret 8

Function at 0x4141e9
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x56d3f0]
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 0x41421e
xor eax, eax
jmp 0x414271
lea eax, [ebp - 0x210]
push eax
call fcn.00501722
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x41424f
push 0x5289d0
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005057c2
add esp, 0xc
test eax, eax
jne 0x41421a
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005057c2
add esp, 0xc
test eax, eax
jne 0x41421a
lea eax, [ebp - 0x210]
push eax
call fcn.00410b8a
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004feee9
leave
ret
Function at 0x4219f8
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 0x421a3f
call fcn.004115d4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x421a3f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x421a5b
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004214fd
mov esi, eax
test edi, edi
je 0x421a59
test ebx, ebx
je 0x421a59
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x421e3a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x51d304
call fcn.00501c5c
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x421e5f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x421eb1
call fcn.0040c47c
push eax
lea ecx, [ebp - 0x10]
call fcn.00401c60
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.00501d66
push eax
call fcn.00401360
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401c90
mov eax, esi
call fcn.00501d34
ret 8

Function at 0x4223fe
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.004220bd
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x422448
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040c200
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040c140
jmp 0x422453
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004171d9
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x422459
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.00421b04
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x422496
call fcn.004220bd
mov dword [esi + 0xc], 1
jmp 0x42249b
call fcn.004220bd
cmp dword [esi], 0
je 0x4224e4
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x4224bc
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040c200
jmp 0x4224ce
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401ad0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040c140
jmp 0x422508
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x422508
push dword [esi]
push dword [ebp + 8]
call fcn.004171d9
pop esi
pop ebp
ret 0xc

Function at 0x42ea64
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x42ea9f
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x42ea86
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x42ea97
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x42eaa1
inc edi
add eax, 0x28
cmp edi, esi
jb 0x42ea7c
xor eax, eax
pop edi
pop esi
ret

Function at 0x42f127
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x42f0fb
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x42f119
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x42f177
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x42f15e
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x42f167
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x42f171
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x42f153
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x42f0dd
mov dword [ebp + 8], esi
xor edi, edi