joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b5d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [0x428028]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
mov ebx, edx
test al, 7
je 0x40b60a
mov eax, 0xffffffce
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0040bba8
add esp, 0x14
ret
cmp dword [esp + 0x24], 1
jne 0x40b6a5
test eax, eax
jbe 0x40b712
lea ebp, [eax - 1]
shr ebp, 3
inc ebp
movzx edx, byte [ebx]
xor dl, byte [esi]
mov byte [edi], dl
movzx eax, byte [ebx + 1]
xor al, byte [esi + 1]
mov byte [edi + 1], al
movzx ecx, byte [ebx + 2]
xor cl, byte [esi + 2]
mov byte [edi + 2], cl
movzx edx, byte [ebx + 3]
xor dl, byte [esi + 3]
mov byte [edi + 3], dl
movzx eax, byte [ebx + 4]
xor al, byte [esi + 4]
mov byte [edi + 4], al
movzx ecx, byte [ebx + 5]
xor cl, byte [esi + 5]
mov byte [edi + 5], cl
movzx edx, byte [ebx + 6]
xor dl, byte [esi + 6]
mov ecx, edi
mov byte [edi + 6], dl
movzx eax, byte [ebx + 7]
xor al, byte [esi + 7]
mov byte [edi + 7], al
mov eax, dword [esp + 0x10]
call fcn.0040b130
mov ecx, dword [edi]
mov dword [esi], ecx
mov edx, dword [edi + 4]
add ebx, 8
add edi, 8
sub ebp, 1
mov dword [esi + 4], edx
jne 0x40b624
xor eax, eax
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0040bba8
add esp, 0x14
ret
test eax, eax
jbe 0x40b712
dec eax
shr eax, 3
inc eax
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 4]
mov ebp, dword [ebx]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov ecx, ebx
call fcn.0040b130
movzx ecx, byte [esi]
xor byte [edi], cl
movzx edx, byte [esi + 1]
xor byte [edi + 1], dl
movzx eax, byte [esi + 2]
xor byte [edi + 2], al
movzx ecx, byte [esi + 3]
xor byte [edi + 3], cl
movzx edx, byte [esi + 4]
xor byte [edi + 4], dl
movzx eax, byte [esi + 5]
xor byte [edi + 5], al
movzx ecx, byte [esi + 6]
xor byte [edi + 6], cl
movzx edx, byte [esi + 7]
xor byte [edi + 7], dl
mov eax, dword [esp + 0x18]
add ebx, 8
add edi, 8
sub dword [esp + 0xc], 1
mov dword [esi], ebp
mov dword [esi + 4], eax
jne 0x40b6b2
mov ecx, dword [esp + 0x1c]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040bba8
add esp, 0x14
ret

Function at 0x40bba8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428028]
jne 0x40bbb2
repz ret
jmp fcn.0040c61a
Function at 0x414dc5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040d19a
and dword [ebp - 4], 0
cmp dword [0x42b3b4], 0
mov ebx, eax
jne 0x414e76
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x414f27
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x414f27
push eax
call fcn.0040d128
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42b3b4], eax
call esi
push eax
call fcn.0040d128
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42b3b8], eax
call esi
push eax
call fcn.0040d128
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42b3bc], eax
call esi
push eax
call fcn.0040d128
pop ecx
mov dword [0x42b3c4], eax
test eax, eax
je 0x414e76
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040d128
pop ecx
mov dword [0x42b3c0], eax
mov eax, dword [0x42b3c0]
cmp eax, ebx
je 0x414ece
cmp dword [0x42b3c4], ebx
je 0x414ece
push eax
call fcn.0040d1a3
push dword [0x42b3c4]
mov esi, eax
call fcn.0040d1a3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x414ece
test edi, edi
je 0x414ece
call esi
test eax, eax
je 0x414ec5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x414ec5
test byte [ebp - 0xc], 1
jne 0x414ece
or dword [ebp + 0x10], 0x200000
jmp 0x414f07
mov eax, dword [0x42b3b8]
cmp eax, ebx
je 0x414f07
push eax
call fcn.0040d1a3
pop ecx
test eax, eax
je 0x414f07
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x414f07
mov eax, dword [0x42b3bc]
cmp eax, ebx
je 0x414f07
push eax
call fcn.0040d1a3
pop ecx
test eax, eax
je 0x414f07
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42b3b4]
call fcn.0040d1a3
pop ecx
test eax, eax
je 0x414f27
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x414f29
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ac30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push esi
push edi
lea edi, [ebp - 0xb4]
mov ecx, 0x2d
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x428028]
xor eax, ebp
mov dword [ebp - 4], eax
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp esi, esp
call fcn.0041f4fc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
and eax, 0xffff
movzx ecx, ax
and ecx, 0xff
movzx edx, cl
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
and eax, 0xffff
movzx ecx, ax
shr ecx, 8
and ecx, 0xff
movzx edx, cl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 8], 0x80000000
jae 0x41ad01
push 0x9c
push 0
lea eax, [ebp - 0xb0]
push eax
call fcn.0040e390
add esp, 0xc
mov dword [ebp - 0xb0], 0x9c
mov esi, esp
lea ecx, [ebp - 0xb0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp esi, esp
call fcn.0041f4fc
cmp dword [ebp - 0xac], 5
jne 0x41acf8
cmp dword [ebp - 0xa8], 0
jne 0x41acf8
movzx edx, word [ebp - 0x1c]
cmp edx, 4
jge 0x41acf8
xor eax, eax
jmp 0x41ad0d
mov eax, 2
jmp 0x41ad0d
mov eax, 1
jmp 0x41ad0d
push edx
mov ecx, ebp
push eax
lea edx, [0x41ad3c]
call fcn.0041f51f
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bba8
add esp, 0xb4
cmp ebp, esp
call fcn.0041f4fc
mov esp, ebp
pop ebp
ret
Function at 0x41c240
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push esi
push edi
lea edi, [ebp - 0x64]
mov ecx, 0x19
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
push 1
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
cmp esi, esp
call fcn.0041f4fc
mov dword [ebp - 0x34], eax
mov esi, esp
push 0
push 0
push 1
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
cmp esi, esp
call fcn.0041f4fc
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x60], 0
push 0
lea edx, [ebp - 0x3c]
push edx
push 1
push str.S:_ML__NW___LW_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x41c30c
mov esi, esp
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
cmp esi, esp
call fcn.0041f4fc
test eax, eax
je 0x41c306
mov esi, esp
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorSacl]
cmp esi, esp
call fcn.0041f4fc
jmp 0x41c30a
xor eax, eax
jmp 0x41c371
jmp 0x41c310
xor eax, eax
jmp 0x41c371
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 8], 1
lea edx, [ebp - 0x2c]
mov dword [ebp - 0xc], edx
mov esi, esp
lea eax, [ebp - 0x10]
push eax
push 0
push 0x8400
push 0x8400
push 0xff
push 6
push 3
push 0x42d990
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
cmp esi, esp
call fcn.0041f4fc
mov dword [0x42a8e0], eax
cmp dword [0x42a8e0], 0xffffffff
je 0x41c368
mov eax, 1
jmp 0x41c371
xor eax, eax
jmp 0x41c371
push edx
mov ecx, ebp
push eax
lea edx, [0x41c394]
call fcn.0041f51f
pop eax
pop edx
pop edi
pop esi
add esp, 0x64
cmp ebp, esp
call fcn.0041f4fc
mov esp, ebp
pop ebp
ret
Function at 0x41c420
Capabilities:
Create pipe
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4dc
push esi
push edi
lea edi, [ebp - 0x4dc]
mov ecx, 0x137
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x428028]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x438]
mov dword [ebp - 0x440], eax
lea ecx, [ebp - 0x4a8]
mov dword [ebp - 0x4b0], ecx
mov dword [ebp - 0x4b8], 0x64
push 0x50
call fcn.00416a33
add esp, 4
mov dword [ebp - 0x4dc], eax
mov edx, dword [ebp - 0x4dc]
mov dword [ebp - 0x4c0], edx
mov dword [ebp - 0x4c8], 0x50
mov esi, esp
push 1
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
cmp esi, esp
call fcn.0041f4fc
mov esi, esp
push 2
push 0x400
mov ecx, dword [ebp - 0x440]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
cmp esi, esp
call fcn.0041f4fc
mov esi, esp
lea edx, [ebp - 0x4d4]
push edx
lea eax, [ebp - 0x4c8]
push eax
mov ecx, dword [ebp - 0x4c0]
push ecx
lea edx, [ebp - 0x4b8]
push edx
mov eax, dword [ebp - 0x4b0]
push eax
push str.Everyone
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
cmp esi, esp
call fcn.0041f4fc
mov esi, esp
mov ecx, dword [ebp - 0x4b0]
push ecx
push 0x10000000
push 2
mov edx, dword [ebp - 0x440]
push edx
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
cmp esi, esp
call fcn.0041f4fc
mov esi, esp
push 0
mov eax, dword [ebp - 0x440]
push eax
push 1
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
cmp esi, esp
call fcn.0041f4fc
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0xc], 1
lea edx, [ebp - 0x30]
mov dword [ebp - 0x10], edx
mov esi, esp
lea eax, [ebp - 0x14]
push eax
push 0
push 0x8400
push 0x8400
push 0xff
push 6
push 3
push 0x42d990
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
cmp esi, esp
call fcn.0041f4fc
mov dword [0x42a8e0], eax
cmp dword [0x42a8e0], 0xffffffff
je 0x41c594
mov eax, 1
jmp 0x41c59d
xor eax, eax
jmp 0x41c59d
push edx
mov ecx, ebp
push eax
lea edx, [0x41c5cc]
call fcn.0041f51f
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bba8
add esp, 0x4dc
cmp ebp, esp
call fcn.0041f4fc
mov esp, ebp
pop ebp
ret

Function at 0x41c670
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], 0
call fcn.0041c210
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp esi, esp
call fcn.0041f4fc
and eax, 0xffff
movzx eax, ax
and eax, 0xff
movzx ecx, al
cmp ecx, 6
jne 0x41c6c0
call fcn.0041c240
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41c6be
xor eax, eax
jmp 0x41c6cb
jmp 0x41c6c8
call fcn.0041c420
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop esi
add esp, 4
cmp ebp, esp
call fcn.0041f4fc
mov esp, ebp
pop ebp
ret
Function at 0x403518
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.0042807e
push 0x5c42e4
mov edi, dword [eax + 0xc]
movzx eax, si
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4035d2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4035d2
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.0054db60
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [ebp - 4]
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x4035b6
lea ecx, [esi + 4]
mov dword [esi], vtable.Gdiplus::Image.0
and dword [ecx], 0
push ecx
push ebx
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
jmp 0x4035b8
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
inc eax
jmp 0x4035d4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415229
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x41527c
push esi
push dword [ebp + 8]
call fcn.0041540f
mov edi, eax
test edi, edi
je 0x415277
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x415277
mov eax, dword [ebp - 8]
jmp 0x41528e
mov eax, dword [ebp + 0x10]
jmp 0x41528e
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc

Function at 0x41832c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x418371
call fcn.0042807e
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x418371
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x41838d
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004263d6
mov ebx, eax
test edi, edi
je 0x41838b
test esi, esi
je 0x41838b
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x418dad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x418e6b
cmp dword [esi + 0x20], 0
je 0x418e6b
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x418e6b
cmp dword [ebp + 8], 0
je 0x418e6b
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0042807e
push 0x591bd8
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x418e3c
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x418e6b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.00497fa3
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x418e5c
test edi, edi
je 0x418e5c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x418e67
mov ecx, esi
call fcn.00418b4f
mov eax, ebx
jmp 0x418e6d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41d80b
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x580f74
call fcn.0054b1e1
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x41d831
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41d891
call fcn.0041f477
push eax
lea ecx, [ebp - 0x10]
call fcn.00402af2
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x58fa44]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.005550ef
push eax
call fcn.00403046
add esp, 0x14
test esi, esi
je 0x41d884
push esi
call fcn.00554300
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402468
mov eax, ebx
call fcn.0054b1aa
ret 8

Function at 0x41e0e9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x41e114
cmp dword [ebx + 0x80], 0
jne 0x41e114
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.0042807e
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.0041e3a5
push edi
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 0x41e14e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0042807e
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41e185
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0041e1a4
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 0x42075d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov eax, ecx
push edi
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x4207a7
call fcn.0042807e
push 0xf0
push dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4207a4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4207f7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test esi, esi
je 0x4207d4
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x58fa44]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
test edi, edi
je 0x4207d4
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x4207f5
mov eax, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [eax + 0xa0]
mov ecx, esi
call dword [0x58fa44]
mov ecx, edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42ee7a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push edi
test esi, esi
jne 0x42ee94
call fcn.0042807e
mov esi, dword [eax + 0xc]
push 0x5c42e4
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x42eeea
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42eeea
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x42eec9
xor esi, esi
jmp 0x42eedf
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.0042eef3
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x42eeec
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4999d9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x499a2f
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x499a08
call fcn.004068ef
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x499a1d
call fcn.004068ef
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x499a2f
call fcn.004068ef
call fcn.0042807e
cmp dword [eax + 0x3c], 0
je 0x499a44
push edi
mov ecx, ebx
call fcn.00499109
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00499c16
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x499a6d
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x499a79
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4c2f35
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [edi + 4]
call fcn.0041d3e8
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
and esi, 3
call fcn.004c314e
cmp esi, 3
je 0x4c2f73
mov dword [edi + 0xc], 1
cmp dword [edi], 0
je 0x4c2fbc
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4c2f96
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00418401
jmp 0x4c2fa7
push 0xff
mov ecx, esi
call fcn.00402ab6
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041554b
jmp 0x4c2fe0
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4c2fe0
push dword [esi]
push dword [ebp - 4]
call fcn.004291cd
pop edi
pop esi
leave
ret 0xc

Function at 0x4c30a5
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004c314e
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4c30ed
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00418401
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041554b
jmp 0x4c30f8
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004291cd
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x512897
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00545dd6
call fcn.004280d2
cmp dword [eax + 0x14], 0
jne 0x5128b2
mov ecx, esi
pop esi
jmp fcn.00511bc2
pop esi
ret

Function at 0x514a66
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0055cb02
pop ecx
test eax, eax
jne 0x514aa8
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004157ad
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x514a6e
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

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

Disassembly:
push esi
mov esi, ecx
call fcn.00402019
call fcn.004280d2
cmp dword [eax + 0x14], 0
jne 0x52d2e3
mov ecx, esi
pop esi
jmp fcn.0052cb44
pop esi
ret

Function at 0x56569d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056535d
Function at 0x56a92a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret