joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005345
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
sub esp, 0xc
mov byte [0x7bf728], 0
mov esi, str.._settings.ini
push esi
push dword [0x10009020]
push str.EmissionRate
push str.ParticleEmitter
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x10009020], eax
push esi
push 0x200
push 0x7fcbc8
push 0
push str.LanguageID
push str.Scarface
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [0x7fcbc8]
test al, al
je 0x100053ae
lea ecx, [esp + 3]
mov byte [ecx], al
push 1
push ecx
push 0x6deaae
call fcn.100026a0
add esp, 0xc
push str.._settings.ini
push 0
push str.Mode
push str.Windowed
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x10005460
mov esi, eax
lea eax, [esp + 8]
mov dword [eax], 1
push 4
push eax
push 0x4586f2
call fcn.100026a0
add esp, 0xc
cmp esi, 2
jne 0x10005405
push 0x10004c14
push 0x45728f
push 0xe9
call fcn.1000279b
add esp, 0xc
lea eax, [esp + 4]
mov byte [eax], 0xbd
xor esi, esi
inc esi
push esi
push eax
push 0x6546f1
call fcn.100026a0
add esp, 0xc
lea eax, [esp + 5]
mov byte [eax], 0x9d
push esi
push eax
push 0x6546f7
call fcn.100026a0
add esp, 0xc
mov bl, 1
lea eax, [esp + 6]
mov byte [eax], bl
push esi
push eax
push 0x65495a
call fcn.100026a0
add esp, 0xc
lea eax, [esp + 7]
mov byte [eax], bl
push esi
push eax
push 0x654abc
call fcn.100026a0
add esp, 0xc
push str.._settings.ini
push 0
push str.DebugMenu
push 0x1000734c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x10005487
xor eax, eax
mov byte [0x7c1c54], al
mov byte [0x7c1c55], al
add esp, 0xc
pop esi
pop ebx
ret
Function at 0x1000548d
Capabilities:
Read .ini file

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov eax, dword fs:[0x30]
and byte [eax + 0x68], 0x8f
xor eax, eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
test eax, eax
je 0x10005509
mov esi, eax
lea eax, [eax*4]
xor edi, edi
dec edi
cmp esi, 0x40000000
cmovb edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
test eax, eax
je 0x100054f5
xor eax, eax
mov ecx, dword [edi + eax*4]
and dword [ecx + 0x40], 0xbfffff9f
mov dword [ecx + 0x44], 0
inc eax
cmp esi, eax
jne 0x100054df
test edi, edi
je 0x10005509
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push str.._settings.ini
push 1
push str.TapePlayerAuto
push str.Scarface
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, esp
test eax, eax
jne 0x1000553a
mov byte [esp], 0
push 1
push edi
push 0x43274f
call fcn.100026a0
add esp, 0xc
push str.._settings.ini
push 2
push str.Captions
push str.Scarface
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jg 0x10005577
mov esi, eax
mov word [esp], 0x35eb
push 2
push edi
push 0x4bd08a
call fcn.100026a0
add esp, 0xc
test esi, esi
setne byte [0x81d844]
mov ebp, str.._settings.ini
mov esi, str.Scarface
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebp
push dword [0x10009004]
push str.RefreshRate
push esi
call ebx
mov edx, ebx
xor ecx, ecx
test eax, eax
setne cl
mov dword [0x10009004], ecx
mov ebx, edi
xor edi, edi
inc edi
push ebp
push edi
push str.VSync
push esi
call edx
test eax, eax
mov eax, 0x80000000
cmovne eax, edi
mov dword [0x10009008], eax
mov dword [esp], 0x10009104
mov esi, 4
push esi
push ebx
push 0x70791b
call fcn.100026a0
add esp, 0xc
mov dword [esp], 0x100091fc
push esi
push ebx
push 0x657346
call fcn.100026a0
add esp, 0xc
mov dword [esp], 0x10009744
push esi
push ebx
push 0x708899
call fcn.100026a0
add esp, 0xc
mov esi, 0x6ddb15
push 7
push esi
call fcn.100026e8
add esp, 8
mov word [esp], 0x6a
push 2
push ebx
push esi
call fcn.100026a0
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10005646
Capabilities:
Set current directory

Disassembly:
push esi
sub esp, 0x104
cmp dword [esp + 0x110], 1
jne 0x100057de
mov esi, dword [esp + 0x10c]
call fcn.10004d40
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [0x400128], 0x455cad51
jne 0x100057eb
mov esi, esp
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x100056b7
mov cl, byte [esp]
test cl, cl
je 0x100056ab
cmp cl, 0x5c
cmove eax, esi
mov cl, byte [esi + 1]
inc esi
test cl, cl
jne 0x10005699
test eax, eax
je 0x100056b7
mov byte [eax], 0
mov eax, esp
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor esi, esi
test eax, eax
je 0x100056dc
push str.wine_get_version
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100056dc
call eax
mov esi, eax
mov dword [0x10009f04], esi
sub esp, 0x1c
movaps xmm0, xmmword [0x10007220]
movups xmmword [esp + 4], xmm0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
mov dword [esp], str.GangstaPatch.log
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [section..data], eax
call fcn.1000268d
mov esi, 0xe8
push 0x10005631
push 0x702bac
push esi
call fcn.1000279b
add esp, 0xc
call 0x10005804
call fcn.10004e36
call fcn.10005345
call fcn.1000548d
push 0x10001f89
push 0x401167
push esi
call fcn.1000279b
add esp, 0xc
call fcn.1000485f
mov ecx, section..data
push str.INFO
call fcn.10002002
mov ecx, section..data
push 1
push 0x57
push str.GangstaPatch_has_been_successfully_initialized.__Build_Date:_Mon_Sep_23_12:27:34_2024__n
call fcn.10001fac
cmp dword [0x10009f04], 0
je 0x100057de
mov ecx, section..data
push str.INFO
call fcn.10002002
mov ecx, section..data
push 0
push 0x27
push str.Running_under_Linux_with_Wine_version:
call fcn.10001fac
xor edx, edx
dec edx
mov eax, dword [0x10009f04]
cmp byte [eax + edx + 1], 0
lea edx, [edx + 1]
jne 0x100057b1
mov ecx, section..data
push 0
push edx
push eax
call fcn.10001fac
mov eax, esp
mov byte [eax], 0xa
xor edx, edx
inc edx
mov ecx, section..data
push edx
push edx
push eax
call fcn.10001fac
xor eax, eax
inc eax
add esp, 0x104
pop esi
ret 0xc
push 0x10
push str.GangstaPatch
push str.Youre_using_wrong_game_version__only_v1.00.2_is_usable__nVisit_abandonware_site_for_download_or_find_alternative_way_to_obtain_this_version.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
inc ecx
int 0x29
push esi
call fcn.10005844
cmp dword [0x10009f80], 0
je 0x10005818
xor esi, esi
inc esi
jmp 0x10005838
xor esi, esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x10009f80], eax
test eax, eax
je 0x10005833
call fcn.10005c84
jmp 0x10005838
mov esi, 8
xor eax, eax
xchg dword [0x10009f7c], eax
mov eax, esi
pop esi
ret
Function at 0x10005b93
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov dword [esp + 8], edx
mov edi, dword [0x10009f84]
imul ebp, ecx, 0x2c
mov ebx, dword [edi + ebp]
movzx eax, byte [edi + ebp + 0x14]
lea esi, [ebx - 5]
and eax, 1
test al, al
cmove esi, ebx
lea eax, [eax + eax + 5]
sete byte [esp + 3]
lea ecx, [esp + 4]
push ecx
push 0x40
mov dword [esp + 0x14], eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10005c1c
lea ecx, [edi + ebp]
add ecx, 0x14
mov eax, dword [esp + 8]
test eax, eax
je 0x10005c23
xor eax, eax
mov dl, byte [esp + 3]
mov al, dl
lea eax, [eax + eax*4]
add eax, 0xfffffffb
mov byte [ebx + eax], 0xe9
mov eax, dword [edi + ebp + 4]
sub eax, esi
add eax, 0xfffffffb
mov dword [esi + 1], eax
mov ebx, ecx
test byte [ecx], 1
lea edx, [esp + 4]
je 0x10005c48
add edi, ebp
mov eax, dword [edi]
mov word [eax], 0xf9eb
jmp 0x10005c48
mov eax, 9
jmp 0x10005c7b
mov ebx, ecx
test byte [ecx], 1
lea eax, [edi + ebp + 0xc]
lea edx, [esp + 4]
jne 0x10005c3e
mov cl, byte [eax + 4]
mov byte [esi + 4], cl
mov eax, dword [eax]
mov dword [esi], eax
jmp 0x10005c48
mov ecx, dword [eax]
mov eax, dword [eax + 3]
mov dword [esi + 3], eax
mov dword [esi], ecx
push edx
push dword [esp + 8]
mov edi, dword [esp + 0x14]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, byte [ebx]
mov ecx, dword [esp + 8]
add cl, cl
and cl, 2
and al, 0xfd
or al, cl
mov byte [ebx], al
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401eeb
Capabilities:
Delete directory
Delete file

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.0040143d
mov ecx, esi
call fcn.00401452
mov edi, eax
test edi, edi
jne 0x401f24
mov ecx, esi
call fcn.004018ee
mov edi, eax
test edi, edi
jne 0x401f24
mov ecx, esi
call fcn.004016ea
mov edi, eax
test edi, edi
jne 0x401f24
mov ecx, esi
call fcn.00401ba3
mov edi, eax
cmp dword [0x40d024], 0
jne 0x401f4f
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esi + 0x1224]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esi, 0x1328
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, edi
pop edi
pop esi
ret

Function at 0x401fda
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c020]
jne 0x401fe4
repz ret
jmp fcn.00401000

Function at 0x404219
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40c820]
je 0x404234
inc edi
cmp edi, 0x17
jb 0x404225
cmp edi, 0x17
jae 0x4043b4
push ebp
push 3
call fcn.00407201
cmp eax, 1
pop ecx
je 0x404380
push 3
call fcn.00407201
test eax, eax
pop ecx
jne 0x404268
cmp dword [0x40c05c], 1
je 0x404380
cmp ebx, 0xfc
je 0x4043b3
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x40d228
push ebp
call fcn.00406499
add esp, 0xc
test eax, eax
je 0x40429e
push esi
push esi
push esi
push esi
push esi
call fcn.0040110a
add esp, 0x14
push 0x104
mov esi, 0x40d241
push esi
push 0
mov byte [0x40d345], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4042e2
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00406499
add esp, 0xc
test eax, eax
je 0x4042e2
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040110a
add esp, 0x14
push esi
call fcn.00406500
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x404327
push esi
call fcn.00406500
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x40d53c
push 0x409b0c
sub ecx, eax
push ecx
push eax
call fcn.004063e6
add esp, 0x14
test eax, eax
je 0x404327
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040110a
add esp, 0x14
jmp 0x404329
xor esi, esi
push 0x409b08
push ebx
push ebp
call fcn.0040632a
add esp, 0xc
test eax, eax
je 0x404349
push esi
push esi
push esi
push esi
push esi
call fcn.0040110a
add esp, 0x14
push dword [edi*8 + 0x40c824]
push ebx
push ebp
call fcn.0040632a
add esp, 0xc
test eax, eax
je 0x40436b
push esi
push esi
push esi
push esi
push esi
call fcn.0040110a
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00407044
add esp, 0xc
jmp 0x4043b3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4043b3
cmp ebp, 0xffffffff
je 0x4043b3
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40c824]
push dword [esi]
call fcn.00406500
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x407044
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004020c3
xor ebx, ebx
cmp dword [0x40d698], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40711a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4071fa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40a510
push edi
call esi
cmp eax, ebx
je 0x4071fa
push eax
call fcn.00402055
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40d698], eax
call esi
push eax
call fcn.00402055
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40d69c], eax
call esi
push eax
call fcn.00402055
mov dword [0x40d6a0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040264e
test eax, eax
pop ecx
pop ecx
je 0x4070e8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040110a
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40711a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00402055
cmp eax, ebx
pop ecx
mov dword [0x40d6a8], eax
je 0x40711a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402055
pop ecx
mov dword [0x40d6a4], eax
mov eax, dword [0x40d6a4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40719f
cmp dword [0x40d6a8], ecx
je 0x40719f
push eax
call fcn.004020cc
push dword [0x40d6a8]
mov esi, eax
call fcn.004020cc
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40719f
cmp edi, ebx
je 0x40719f
call esi
cmp eax, ebx
je 0x40716c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40716c
test byte [ebp - 0x18], 1
jne 0x40719f
lea eax, [ebp - 0x10]
push eax
call fcn.00402685
test eax, eax
pop ecx
je 0x407187
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040110a
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x407196
or dword [ebp + 0x10], 0x200000
jmp 0x4071da
or dword [ebp + 0x10], 0x40000
jmp 0x4071da
mov eax, dword [0x40d69c]
cmp eax, dword [ebp - 8]
je 0x4071da
push eax
call fcn.004020cc
cmp eax, ebx
pop ecx
je 0x4071da
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4071da
mov eax, dword [0x40d6a0]
cmp eax, dword [ebp - 8]
je 0x4071da
push eax
call fcn.004020cc
cmp eax, ebx
pop ecx
je 0x4071da
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40d698]
call fcn.004020cc
cmp eax, ebx
pop ecx
je 0x4071fa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4071fc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4da07a
Capabilities:
Encode data using xor

Disassembly:
jmp 0x61b71d
jmp fcn.0061b77e
Function at 0x4053b7
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, 0x4000000
je 0x4053ca
mov eax, 0x200
push esi
mov esi, ecx
and esi, 0x20000000
push edi
mov edx, 0x40000000
mov edi, 0x80000000
je 0x4053e8
test edx, ecx
je 0x4053e8
test edi, ecx
jne 0x405416
test esi, esi
je 0x4053f5
test edx, ecx
je 0x4053f5
or eax, 0x20
jmp 0x405419
mov esi, ecx
and esi, edx
je 0x405404
test edi, ecx
je 0x40540d
or eax, 4
jmp 0x405419
test edi, ecx
je 0x40540d
or eax, 8
jmp 0x405419
test esi, esi
je 0x405416
or eax, 2
jmp 0x405419
or eax, 0x40
pop edi
pop esi
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x1004cc0
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x101441b
call fcn.010083b3
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ebx, [esi + 4]
xor edi, edi
mov ecx, ebx
mov dword [esi], edi
call fcn.01002ff5
push 0x101746c
mov dword [ebp - 4], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push edi
push 0xa
mov ecx, ebx
call fcn.010030ba
cmp eax, edi
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jl 0x1004d64
mov ebx, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push edi
push 0x64
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi], eax
jne 0x1004d37
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1004d30
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x1004d64
push edi
push 1
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x48], eax
je 0x1004d1c
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push 0x1004caa
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x4c], eax
je 0x1004d1c
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, esi
call fcn.01008426
ret 4

Function at 0x1004e8e
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x1017068]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x10174e4], 1
push ebx
push esi
push edi
jne 0x1004ebd
or dword [0x10174e4], 1
call fcn.01004e2d
mov dword [0x10174e0], eax
push 4
pop eax
call fcn.01008470
mov esi, esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1004edf
xor eax, eax
jmp 0x1004f9b
mov ebx, dword [ebp - 0x28]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x4c]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x1017420]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x1004ed8
cmp eax, 1
je 0x1004f7c
mov dword [ebp - 8], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1004ed8
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], eax
test dword [ebp - 0x1c], ebx
je 0x1004f26
test word [ebp - 0x18], 0x100
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
je 0x1004f57
xor eax, eax
inc eax
jmp 0x1004f9b
cmp edi, eax
jb 0x1004ed8
cmp eax, esi
jae 0x1004f66
mov dword [ebp - 8], esi
push 4
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1017420]
jmp 0x1004f7f
mov dword [ebp - 8], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0x10]
push ecx
inc eax
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01008397
leave
ret
Function at 0x1007a3c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x14
mov eax, 0x1014628
call fcn.010083eb
xor edi, edi
mov dword [ebp - 0x14], edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edi
je 0x1007a9c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
cmp esi, 0x400
jg 0x1007a85
push esi
call fcn.01004fb2
test al, al
je 0x1007a85
mov eax, esi
call fcn.010085d0
mov eax, esp
jmp 0x1007a8e
push esi
lea ecx, [ebp - 0x14]
call fcn.010062c8
push esi
push dword [ebp + 8]
push eax
call fcn.010050e1
cmp eax, edi
jne 0x1007ab6
mov esi, 0x8007000e
lea ecx, [ebp - 0x14]
call fcn.01005e3c
mov eax, esi
lea esp, [ebp - 0x30]
call fcn.0100843f
ret 0x10
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x18], ebx
jne 0x1007ae3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jg 0x1007ad7
mov esi, eax
jmp 0x1007aa1
and eax, 0xffff
or eax, 0x80070000
jmp 0x1007ad3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, edi
jne 0x1007b10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1007b8a
and eax, 0xffff
or eax, 0x80070000
jmp 0x1007b8a
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x1007af6
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp byte [esi + ebx], 0
mov edi, ebx
je 0x1007b7a
lea edi, [esi + 1]
cmp edi, 0x400
ja 0x1007b52
push edi
call fcn.01004fb2
test al, al
je 0x1007b52
mov eax, edi
call fcn.010085d0
mov edi, esp
jmp 0x1007b5d
push edi
lea ecx, [ebp - 0x14]
call fcn.010062c8
mov edi, eax
test edi, edi
jne 0x1007b68
mov esi, 0x8007000e
jmp 0x1007b8c
lea eax, [esi + 1]
push eax
push ebx
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [edi + esi], 0
test edi, edi
je 0x1007b61
push dword [ebp + 0x14]
lea ecx, [ebp - 0x20]
push edi
call fcn.01007704
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1007aa1