joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4585ff
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x22c
push ebx
push ebp
push esi
push edi
xor eax, eax
lea edi, [esp + 0x14]
stosd dword es:[edi], eax
xor ebx, ebx
push 0x40
mov esi, ecx
mov dword [esp + 0x14], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push eax
call fcn.004014c0
cmp eax, 0x40
jne 0x458763
mov eax, 0x5a4d
cmp word [esp + 0x28], ax
jne 0x458763
mov eax, dword [esp + 0x64]
mov ecx, esi
push ebx
cdq
push edx
push eax
call fcn.00401474
mov ecx, eax
mov edi, edx
mov eax, dword [esp + 0x64]
cdq
cmp ecx, eax
jne 0x458763
cmp edi, edx
jne 0x458763
push 4
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.004014c0
cmp eax, 4
jne 0x458763
cmp dword [esp + 0x10], 0x4550
jne 0x458763
push 0x14
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.004014c0
cmp eax, 0x14
jne 0x458763
mov eax, 0x14c
cmp word [esp + 0x14], ax
je 0x4586c1
mov eax, 0x8664
cmp word [esp + 0x14], ax
jne 0x458763
mov edi, 0xe0
lea eax, [esp + 0x68]
push edi
push ebx
push eax
call fcn.0041c3f0
add esp, 0xc
lea ebp, [edi + 0x10]
lea eax, [esp + 0x148]
push ebp
push ebx
push eax
call fcn.0041c3f0
add esp, 0xc
lea eax, [edi + 0x6c]
mov ecx, esi
push 1
push ebx
push ebx
cmp word [esp + 0x20], ax
jne 0x45872c
call fcn.00401474
push edi
lea eax, [esp + 0x6c]
mov ecx, esi
push eax
call fcn.004014c0
cmp eax, edi
jne 0x458763
mov eax, dword [esp + 0x240]
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xec]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x45875f
call fcn.00401474
push ebp
lea eax, [esp + 0x14c]
mov ecx, esi
push eax
call fcn.004014c0
cmp eax, ebp
jne 0x458763
mov ecx, dword [esp + 0x240]
mov edx, dword [esp + 0x1d8]
mov esi, dword [esp + 0x1dc]
mov dword [ecx], edx
mov dword [ecx + 4], esi
mov al, 1
jmp 0x458765
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret 8
Function at 0x458b30
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebx
xor ebx, ebx
push ebp
cmp dword [esp + 0x28], ebx
je 0x458bfa
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
je 0x458bfa
push edi
push 0xf01ff
push dword [esp + 0x30]
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x458bee
push esi
mov esi, ebx
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x458be6
cmp dword [esp + 0x14], 1
je 0x458be4
cmp dword [esp + 0x14], 4
je 0x458baa
cmp dword [esp + 0x14], 7
je 0x458baa
push 0xfa
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc esi
cmp esi, 0x3c
jb 0x458b72
jmp 0x458be6
lea eax, [esp + 0x10]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x458bdd
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x458be6
cmp dword [esp + 0x14], 1
je 0x458be4
push 0xfa
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc esi
cmp esi, 0x3c
jb 0x458bba
jmp 0x458be6
mov bl, 1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
pop edi
jmp 0x458bfc
xor al, al
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x458c04
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
cmp dword [ebp + 8], esi
je 0x458d53
push 4
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x458d53
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push 3
push 0x30
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
test eax, eax
jne 0x458c69
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xea
jne 0x458d4c
mov eax, dword [ebp - 8]
xor edx, edx
push 0x45a8ac
push 0x24
pop edi
div edi
xor ecx, ecx
inc eax
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a51d
mov edi, eax
mov dword [ebp - 0x18], edi
pop ecx
pop ecx
test edi, edi
je 0x458d4c
mov eax, dword [ebp - 8]
xor edx, edx
push 0x24
pop ecx
div ecx
inc eax
imul eax, eax, 0x24
push eax
push esi
push edi
call fcn.0041c3f0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push 3
push 0x30
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
test eax, eax
je 0x458d45
cmp dword [ebp - 0xc], esi
jbe 0x458d45
push 0x24
pop ebx
lea ecx, [ebp - 0x234]
call fcn.00403195
cmp dword [edi], 0
je 0x458d37
mov eax, ecx
push eax
push dword [edi]
call fcn.004589d4
test al, al
je 0x458d37
mov ecx, dword [ebp + 8]
call fcn.00411b53
cmp dword [ebp - 0x230], 0
je 0x458d1c
push eax
push dword [ebp + 8]
push dword [ebp - 0x230]
call fcn.0042b93a
add esp, 0xc
jmp 0x458d26
cmp dword [ebp - 0x22c], 1
sbb eax, eax
inc eax
test eax, eax
jne 0x458d37
cmp dword [edi + 0xc], 1
je 0x458d37
push dword [edi]
call fcn.00458b30
inc esi
add edi, ebx
cmp esi, dword [ebp - 0xc]
jb 0x458cd9
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
push edi
call fcn.0041a526
pop ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x458d5a
Capabilities:
Enumerate processes
Get process image filename

Disassembly:
sub esp, 0x438
lea eax, [esp + 8]
push 0x228
push 0
push eax
call fcn.0041c3f0
add esp, 0xc
cmp dword [esp + 0x43c], 0
je 0x458e79
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x458e78
lea eax, [esp + 8]
mov dword [esp + 8], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_Process32FirstW]
test eax, eax
je 0x458e71
push ebp
push edi
push dword [esp + 0x18]
push 0
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov ebp, eax
test ebp, ebp
je 0x458e5b
push 0x104
lea eax, [esp + 0x240]
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_K32GetProcessImageFileNameW]
test eax, eax
je 0x458e54
lea eax, [esp + 0x23c]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
push dword [esp + 0x448]
lea eax, [esp + 0x240]
push eax
call fcn.0041b6ce
pop ecx
pop ecx
test eax, eax
je 0x458e54
push 0
call dword [sym.imp.USER32.dll_GetTopWindow]
jmp 0x458e3f
and dword [esp + 0xc], 0
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x18]
je 0x458e47
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
jne 0x458e1b
jmp 0x458e54
push 0
push 0
push 0x12
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_Process32NextW]
test eax, eax
jne 0x458db6
pop edi
pop ebp
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
add esp, 0x438
ret 4
Function at 0x458e88
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88c
lea ecx, [esp + 4]
push ebx
push esi
push edi
call fcn.00403195
lea ecx, [esp + 0x680]
call fcn.00403195
push 0x208
xor edi, edi
lea eax, [esp + 0x22c]
push edi
push eax
call fcn.0041c3f0
add esp, 0xc
lea eax, [esp + 0x228]
push 0x103
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
mov esi, dword [ebp + 8]
test esi, esi
je 0x458fb7
cmp word [esi], di
je 0x458fb7
push esi
lea eax, [esp + 0x684]
push 0x47254c
push eax
call fcn.004011fb
add esp, 0xc
lea eax, [esp + 0x430]
push eax
push dword [esp + 0x688]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x458fb7
test byte [esp + 0x430], 0x10
jne 0x458f9d
lea eax, [esp + 0x45c]
push eax
push esi
lea eax, [esp + 0x18]
push str._s_s
push eax
call fcn.004011fb
mov ebx, dword [esp + 0x24]
add esp, 0x10
test ebx, ebx
je 0x458f6f
mov eax, dword [esp + 0x18]
inc eax
push eax
push ebx
call fcn.0042a3af
mov ebx, dword [esp + 0x1c]
pop ecx
pop ecx
lea eax, [esp + 0x228]
push eax
lea ecx, [esp + 0x14]
call fcn.0041666d
test eax, eax
je 0x458f9d
push 0x467ef4
push ebx
call fcn.0041b6ce
pop ecx
pop ecx
push eax
call fcn.00458d5a
push esi
call fcn.00458c04
lea eax, [esp + 0x430]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x458f30
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402c70
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x576f00]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00508de0
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, 1
jne 0x402d2c
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x402cdc
cmp dword [ebp - 0x118], 1
jb 0x402d2c
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507644
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x118]
cmp eax, 6
jne 0x402d12
test ecx, ecx
jne 0x402cfc
lea eax, [ecx + 2]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507644
mov esp, ebp
pop ebp
ret
cmp ecx, 1
jne 0x402d14
lea eax, [ecx + 2]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507644
mov esp, ebp
pop ebp
ret
jb 0x402d2c
cmp ecx, 2
jb 0x402d2c
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507644
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00507644
mov esp, ebp
pop ebp
ret

Function at 0x403790
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 0x4037ab
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 0x4037e2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4037de
jmp 0x4037d0
cmp esi, eax
jae 0x4037e2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4037d0
cmp esi, eax
jb 0x4037e9
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 0x4040ec
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x576f00]
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 0x404131
push 0x52ce18
push 4
push eax
call fcn.00507dba
push eax
call fcn.00403840
add esp, 0x10
jmp 0x404147
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4041c7
push edi
call fcn.00507e9e
mov edi, dword [eax]
call fcn.00507e9e
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.00507e3b
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00507e9e
cmp dword [eax], 0
je 0x40419b
call fcn.00507e9e
push dword [eax]
call fcn.0040408e
pop ecx
jmp 0x4041a2
call fcn.00507e9e
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x4041c7
cmp dword [ebp - 0x234], esi
jae 0x4041c7
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4041c9
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00507644
leave
ret
Function at 0x404895
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x576f00]
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.00404730
pop ecx
cmp eax, esi
je 0x40497f
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x40497f
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.00508de0
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 0x40497f
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x40497f
cmp esi, 0x14
jge 0x40497f
push 0x10
push 0
push edi
call fcn.00508dbb
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40496e
call fcn.00507e9e
cmp dword [eax], 0x22
je 0x40496e
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.005089d4
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x404944
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 [0x57832c], 0
jne 0x404a0a
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x404a33
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.004040ec
pop ecx
pop ecx
test eax, eax
jne 0x404a35
inc edi
cmp edi, esi
jl 0x404a10
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00507644
leave
ret 8
Function at 0x406d31
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 0x406d79
call fcn.0040a91e
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 0x406d79
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x406dbc
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 0x406da5
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 0x406da5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x406db9
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 0x408775
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.0040a91e
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 0x4087ae
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.004083b2
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 0x40880c
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 0x408830
cmp dword [edi + 0x74], 0
jne 0x408830
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0040a91e
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.004087cd
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 0x413d6f
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 0x413db6
call fcn.0040a91e
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 0x413db6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x413dd2
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041386f
mov esi, eax
test edi, edi
je 0x413dd0
test ebx, ebx
je 0x413dd0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x414589
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x528ef3
call fcn.005082cb
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x4145ae
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x414600
call fcn.0040a9fd
push eax
lea ecx, [ebp - 0x10]
call fcn.00403fa0
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.0050a788
push eax
call fcn.00403840
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.00403fd0
mov eax, esi
call fcn.005083a3
ret 8

Function at 0x414f36
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x576f00]
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 0x414f6b
xor eax, eax
jmp 0x414fbe
lea eax, [ebp - 0x210]
push eax
call fcn.005089d4
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x414f9c
push 0x5573bc
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00508e5a
add esp, 0xc
test eax, eax
jne 0x414f67
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00508e5a
add esp, 0xc
test eax, eax
jne 0x414f67
lea eax, [ebp - 0x210]
push eax
call fcn.00404730
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00507644
leave
ret
Function at 0x43e3bf
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 0x43e3d9
call fcn.0040a91e
mov esi, dword [eax + 0xc]
push dword [0x57b0d0]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x43e3f7
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 0x43e3ef
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x43e424
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x43e3f1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0043e2ed
mov esi, eax
jmp 0x43e416
Function at 0x46bced
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00412302
call fcn.004047b6
cmp eax, esi
pop esi
jne 0x46bd09
mov ecx, 0x57a088
jmp fcn.00415d96
ret

Function at 0x4c1e3d
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.004c1ae1
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4c1e87
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040b817
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00403740
jmp 0x4c1e92
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00416bb8
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4c1e98
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.00413e7b
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 0x4c1ed5
call fcn.004c1ae1
mov dword [esi + 0xc], 1
jmp 0x4c1eda
call fcn.004c1ae1
cmp dword [esi], 0
je 0x4c1f23
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x4c1efb
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040b817
jmp 0x4c1f0d
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00403dd0
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00403740
jmp 0x4c1f47
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 0x4c1f47
push dword [esi]
push dword [ebp + 8]
call fcn.00416bb8
pop esi
pop ebp
ret 0xc
Function at 0x4e570c
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 0x4e5724
mov edi, dword [esi + 0xc]
jmp 0x4e5764
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4e573d
call fcn.0040c44b
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e5752
call fcn.0040c44b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e5764
call fcn.0040c44b
call fcn.0040a91e
cmp dword [eax + 0x3c], 0
je 0x4e5779
push edi
mov ecx, ebx
call fcn.004e453e
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e5626
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4e5797
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e57a3
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 0x507644
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x576f00]
jne 0x50764e
repz ret
jmp fcn.0050e323