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

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x10206870]
xor eax, ebp
mov dword [ebp + 0x188], eax
mov eax, dword [ebp + 0x194]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x198]
push edi
mov esi, ecx
mov dword [ebp - 0x80], eax
lea eax, [esi + 4]
push eax
mov edi, 0x200
push edi
call ebx
push edi
lea eax, [ebp - 0x78]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, esi
call fcn.1001aea3
cmp dword [ebp - 0x7c], 0
mov eax, dword [ebp + 0x19c]
mov dword [esi + 0x20c], eax
lea eax, [esi + 0x410]
je 0x10019237
push dword [ebp - 0x7c]
push edi
push eax
call fcn.1003dc98
add esp, 0xc
jmp 0x1001923b
push eax
push edi
call ebx
push str.cpuz158
push 0x40
push dword [esi + 0xb3c]
call fcn.1013b440
mov eax, dword [esi + 0xb3c]
mov dword [eax + 0x40], 0x158
mov eax, dword [esi + 0xb3c]
mov ecx, dword [esi + 0xd48]
mov dword [eax + 0x4c], ecx
mov eax, dword [esi + 0xb3c]
mov ecx, dword [esi + 0xd4c]
mov dword [eax + 0x44], ecx
mov eax, dword [esi + 0xb3c]
mov ecx, dword [esi + 0xd50]
mov dword [eax + 0x48], ecx
mov eax, dword [esi + 0xb3c]
mov ecx, dword [esi + 0xd54]
mov dword [eax + 0x50], ecx
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push dword [esi + 0xb3c]
mov ecx, esi
call fcn.10019024
xor ebx, ebx
mov edi, eax
inc ebx
test edi, edi
jne 0x10019346
cmp dword [ebp - 0x7c], 0x241
jne 0x10019346
mov ecx, esi
call fcn.10018fd5
push edi
push ebx
push ebx
mov ecx, esi
call fcn.10018e98
push str.cpuz152
push 0x40
push dword [esi + 0xb3c]
call fcn.1013b440
mov eax, dword [esi + 0xb3c]
mov dword [eax + 0x40], 0x152
mov eax, dword [esi + 0xb3c]
mov ecx, dword [esi + 0xd48]
mov dword [eax + 0x4c], ecx
mov eax, dword [esi + 0xb3c]
mov ecx, dword [esi + 0xd58]
mov dword [eax + 0x44], ecx
mov eax, dword [esi + 0xb3c]
mov ecx, dword [esi + 0xd5c]
mov dword [eax + 0x48], ecx
mov eax, dword [esi + 0xb3c]
mov ecx, dword [esi + 0xd54]
mov dword [eax + 0x50], ecx
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push dword [esi + 0xb3c]
mov ecx, esi
call fcn.10019024
mov edi, eax
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
mov dword [eax], ecx
mov ecx, esi
call fcn.10018fd5
test edi, edi
jne 0x10019367
push edi
push ebx
push ebx
mov ecx, esi
call fcn.10018e98
xor eax, eax
jmp 0x10019370
and dword [esi + 0xd44], 0
mov eax, edi
mov ecx, dword [ebp + 0x188]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003dc89
add ebp, 0x18c
leave
ret 0xc
Function at 0x1001aea3
Capabilities:
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xd4
mov eax, dword [0x10206870]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
mov edi, 0x9c
push edi
lea eax, [ebp - 0x28]
push 0
push eax
mov esi, ecx
call fcn.1003f7d0
add esp, 0xc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call edi
test eax, eax
jne 0x1001af08
mov ebx, 0x94
push ebx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1003f7d0
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], ebx
call edi
test eax, eax
je 0x1001b015
mov eax, dword [ebp - 0x18]
mov dword [esi + 0xb10], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0xb14], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0xb18], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x101787ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x1001af80
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10178398
push ebx
call edi
test eax, eax
je 0x1001af63
lea ecx, [ebp - 0x5c]
push ecx
call eax
push str.IsWow64Process
push ebx
call edi
push 0x10179340
push ebx
mov dword [ebp - 0x2c], eax
call edi
push ebx
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, word [ebp - 0x5c]
mov dword [esi + 0xb2c], eax
dec eax
dec eax
push 1
pop edi
je 0x1001afd4
sub eax, 3
je 0x1001afa5
dec eax
je 0x1001afcc
dec eax
je 0x1001afd4
dec eax
dec eax
je 0x1001afad
sub eax, 3
jne 0x1001afda
mov dword [esi + 0xb28], edi
jmp 0x1001afda
cmp dword [ebp - 0x2c], 0
je 0x1001afda
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x30]
call dword [ebp - 0x2c]
test eax, eax
je 0x1001afda
mov eax, dword [ebp - 0x38]
mov dword [esi + 0xb1c], eax
jmp 0x1001afda
mov dword [esi + 0xb20], edi
jmp 0x1001afda
mov dword [esi + 0xb24], edi
xor eax, eax
cmp dword [ebp - 0x34], eax
je 0x1001b015
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x34]
test eax, eax
je 0x1001b015
mov eax, 0xaa64
cmp word [ebp - 0x2c], ax
jne 0x1001b015
and dword [esi + 0xb1c], 0
mov dword [esi + 0xb28], edi
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003dc89
add ebp, 0x78
leave
ret
Function at 0x1001b365
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0x228]
sub esp, 0x2a8
mov eax, dword [0x10206870]
xor eax, ebp
mov dword [ebp + 0x224], eax
and dword [ebp - 0x7c], 0
push esi
push edi
mov edi, dword [ebp + 0x234]
mov esi, 0x9c
push esi
lea eax, [ebp - 0x78]
push 0
push eax
mov dword [ebp - 0x80], ecx
call fcn.1003f7d0
add esp, 0xc
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x1001b3d5
push 0x94
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.1003f7d0
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], 0x94
call esi
push edi
mov esi, 0x200
lea eax, [ebp + 0x24]
push esi
push eax
call fcn.1013b440
mov eax, dword [ebp - 0x68]
add esp, 0xc
dec eax
je 0x1001b463
dec eax
jne 0x1001b478
cmp dword [ebp - 0x74], 4
push edi
push 0x101793f8
lea eax, [ebp + 0x24]
push esi
push eax
ja 0x1001b459
call fcn.1013b440
add esp, 0x10
lea eax, [ebp + 0x24]
push eax
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x1001b43e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x24]
mov ecx, dword [ebp - 0x80]
push eax
push dword [ebp + 0x230]
call fcn.1001b093
jmp 0x1001b475
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
lea eax, [ebp + 0x24]
je 0x1001b42d
push edi
push esi
push eax
call fcn.1013b440
add esp, 0xc
jmp 0x1001b42a
call fcn.1013b440
add esp, 0x10
jmp 0x1001b42a
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x230]
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp + 0x224]
mov eax, dword [ebp - 0x7c]
pop edi
xor ecx, ebp
pop esi
call fcn.1003dc89
add ebp, 0x228
leave
ret 8
Function at 0x1001b5ca
Capabilities:
Create service

Disassembly:
push ebp
lea ebp, [esp - 0x98c]
sub esp, 0xa0c
mov eax, dword [0x10206870]
xor eax, ebp
mov dword [ebp + 0x988], eax
mov eax, dword [ebp + 0x998]
and dword [ebp - 0x7c], 0
push ebx
mov ebx, dword [ebp + 0x994]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x80], eax
lea eax, [edi + 0x610]
push eax
mov esi, 0x200
lea eax, [ebp + 0x788]
push esi
push eax
call fcn.1003dc98
lea eax, [ebp + 0x788]
push eax
call fcn.1003fbf0
lea eax, [ebp + eax + 0x788]
add esp, 0x10
cmp byte [eax - 1], 0x5c
je 0x1001b639
mov byte [eax], 0x5c
mov byte [eax + 1], 0
lea eax, [edi + 0xa10]
push eax
lea eax, [ebp + 0x788]
push esi
push eax
call fcn.1013b3b0
add esp, 0xc
push esi
lea eax, [ebp + 0x388]
push eax
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 1
push 0
call ebx
push esi
lea eax, [ebp - 0x78]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x788]
push eax
push 1
xor esi, esi
push esi
call ebx
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
push 1
push 3
push 1
push 0xf01ff
lea eax, [ebp + 0x388]
push eax
push eax
push dword [edi + 0x208]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, esi
jne 0x1001b6c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x7c], eax
xor edi, edi
sub eax, 5
je 0x1001b6de
sub eax, 0x42b
je 0x1001b6de
dec eax
jne 0x1001b6de
inc edi
mov dword [ebp - 0x7c], esi
jmp 0x1001b6de
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, esi
jne 0x1001b6de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x988]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003dc89
add ebp, 0x98c
leave
ret 8

Function at 0x1001b7fc
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push ebx
push esi
push 0xf01ff
push dword [ebp + 8]
mov esi, ecx
push dword [esi + 0x208]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
jne 0x1001b82c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1001b896
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_ControlService]
lea eax, [ebp - 0x20]
push eax
push 4
push ebx
call edi
test eax, eax
je 0x1001b875
cmp dword [ebp - 0x1c], 1
je 0x1001b87e
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call edi
test eax, eax
je 0x1001b875
cmp dword [ebp - 0x1c], 3
jne 0x1001b87e
add esi, 0x204
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call edi
jmp 0x1001b87e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
test eax, eax
jne 0x1001b893
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4
Function at 0x1001bb00
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x10206870]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x610]
push edi
call fcn.1003fbf0
pop ecx
test eax, eax
jle 0x1001bb5d
cmp byte [esi + eax + 0x60f], 0x5c
lea eax, [esi + 0xa10]
push eax
push edi
lea eax, [ebp - 0x204]
jne 0x1001bb48
push 0x10179484
jmp 0x1001bb4d
push 0x1017947c
push 0x200
push eax
call fcn.1013b440
add esp, 0x14
jmp 0x1001bb7d
lea eax, [esi + 0xa10]
push eax
push 0x10179478
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.1013b440
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, eax
test ebx, ebx
jne 0x1001bb96
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esi, 0x410
push esi
call fcn.1003fbf0
push edi
mov esi, eax
call fcn.1003fbf0
pop ecx
pop ecx
cmp eax, esi
jbe 0x1001bbc3
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ebx, eax
test ebx, ebx
jne 0x1001bbc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1003dc89
leave
ret
Function at 0x1003b8da
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.rootwmi
mov ebx, ecx
call esi
push str.MSSmBios_RawSMBiosTables
mov dword [ebp - 0x18], eax
call esi
push str.SMBiosData
mov dword [ebp - 0x14], eax
call esi
xor esi, esi
push 2
push esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x1003ba77
push esi
push 2
push esi
push 3
push 6
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, esi
jge 0x1003b949
cmp eax, 0x80010119
jne 0x1003ba2c
lea eax, [ebp - 4]
push eax
push 0x1017637c
push 1
push esi
push 0x1017643c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1003ba2c
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x18]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x1003ba2c
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push esi
push esi
push dword [ebp - 0x14]
push eax
call dword [ecx + 0x48]
test eax, eax
jl 0x1003ba2c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x10]
push edx
push 1
push 0xfa0
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x20], 1
jne 0x1003ba2c
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x38]
push edx
push esi
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x10]
mov eax, 0x2011
cmp word [ebp - 0x38], ax
jne 0x1003ba2c
mov eax, dword [ebp - 0x30]
push edi
mov edi, dword [eax + 0x10]
mov dword [ebp - 0x24], eax
cmp edi, esi
je 0x1003ba2b
cmp edi, 0x4000
jle 0x1003ba12
push dword [ebx + 0x18]
call fcn.1003e211
push edi
call fcn.1003de3e
pop ecx
pop ecx
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x24]
push edi
push dword [eax + 0xc]
push dword [ebx + 0x18]
call fcn.1003fdf0
mov eax, dword [ebx + 0x1c]
add esp, 0xc
mov word [eax + 6], di
pop edi
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x1003ba3c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], esi
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x1003ba4c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 8], esi
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x1003ba5c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0xc], esi
push dword [ebp - 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x1c]
call esi
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x1003dc89
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10206870]
jne 0x1003dc93
repz ret
jmp fcn.10040293
Function at 0x1004f6fd
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.10044ba0
and dword [ebp - 4], 0
cmp dword [0x102284d8], 0
mov ebx, eax
jne 0x1004f7ae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1004f85f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1004f85f
push eax
call fcn.10044b2e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x102284d8], eax
call esi
push eax
call fcn.10044b2e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x102284dc], eax
call esi
push eax
call fcn.10044b2e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x102284e0], eax
call esi
push eax
call fcn.10044b2e
pop ecx
mov dword [0x102284e8], eax
test eax, eax
je 0x1004f7ae
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10044b2e
pop ecx
mov dword [0x102284e4], eax
mov eax, dword [0x102284e4]
cmp eax, ebx
je 0x1004f806
cmp dword [0x102284e8], ebx
je 0x1004f806
push eax
call fcn.10044ba9
push dword [0x102284e8]
mov esi, eax
call fcn.10044ba9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1004f806
test edi, edi
je 0x1004f806
call esi
test eax, eax
je 0x1004f7fd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1004f7fd
test byte [ebp - 0xc], 1
jne 0x1004f806
or dword [ebp + 0x10], 0x200000
jmp 0x1004f83f
mov eax, dword [0x102284dc]
cmp eax, ebx
je 0x1004f83f
push eax
call fcn.10044ba9
pop ecx
test eax, eax
je 0x1004f83f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1004f83f
mov eax, dword [0x102284e0]
cmp eax, ebx
je 0x1004f83f
push eax
call fcn.10044ba9
pop ecx
test eax, eax
je 0x1004f83f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x102284d8]
call fcn.10044ba9
pop ecx
test eax, eax
je 0x1004f85f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1004f861
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10050079
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x100500bc
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x100500b7
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
dec ebp
or byte [edi], cl
mov bh, 9
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x100500a1
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x100500a9
cmp edx, ebx
jne 0x100501f7
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x10050078
add eax, dword [eax + 4]
jmp 0x10050065
mov dword [ebp + 0xc], ebx
jmp 0x100500c7
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x100500df
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x100500fd
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 0x1005015b
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 0x10050142
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1005014b
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10050155
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10050137
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x100500c1
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x100501a8
dec eax
je 0x1005019f
sub eax, 3
je 0x10050196
mov dword [ebp - 4], 0x40
jmp 0x100501c5
mov dword [ebp - 4], 4
jmp 0x100501ab
mov dword [ebp - 4], 0x20
jmp 0x100501ab
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x100501f7
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x10050177
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1004fa08
in al, dx
inc ecx
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100508d2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
Function at 0x1005091d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.1004f9e6
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
test dword [ecx + 0x2cfffffc], ebp
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.1004fa18
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1004f9cd
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.1004fa08
pushfd
mov ah, 0x4b
push 0x104
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.1004fa08
rcr al, cl
test eax, 0xe06580a5
add byte [eax - 0x39ff1e9b], al
inc ebp
loop 0x10050a4b
and byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0xa5
mov byte [ebp - 0x1b], 0x87
mov byte [ebp - 0x1a], 0x96
mov byte [ebp - 0x19], 0xb6
mov byte [ebp - 0x18], 0x87
mov byte [ebp - 0x17], 0x8f
mov byte [ebp - 0x16], 0x92
mov byte [ebp - 0x15], 0xb2
mov byte [ebp - 0x14], 0x83
mov byte [ebp - 0x13], 0x96
mov byte [ebp - 0x12], 0x8a
mov byte [ebp - 0x11], 0xa3
mov byte [ebp - 0x10], 0xe2
lea eax, [ebp - 0x20]
push eax
invalid
invalid
out dx, eax
inc ebp
ljmp 0xc6b2

Function at 0x10051bd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call fcn.1004fa08
enter 0xfffffffffffff1bd, 0x1d
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.1004fa08
cmc
add byte [edx], 0x42
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x10051bf5
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x10051bf5
call fcn.1004fa08
outsb dx, byte [esi]
movsb byte es:[edi], byte [esi]
xchg edx, eax
xchg esi, eax
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.1004fa08
aad 0xc6
std
invalid