joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4064d2
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov eax, 0x417b5c
call fcn.00407c70
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x18], ecx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, ebx
jl 0x4065f4
mov ecx, dword [ebp - 0x18]
call fcn.0040678f
push ebx
push ebx
push 1
push 0x64
push dword [ebp - 0x18]
call dword [sym.imp.ATL.DLL_AtlModuleUpdateRegistryFromResourceD]
mov dword [ebp - 0x14], ebx
mov esi, 0x20006
lea ecx, [ebp - 0x14]
push esi
push str.AppID
push 0x80000000
mov dword [ebp - 4], ebx
call fcn.004069f9
mov edi, eax
cmp edi, ebx
je 0x406548
cmp dword [ebp - 0x14], ebx
je 0x4065f2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4065f2
mov dword [ebp - 0x10], ebx
push esi
push str.D8B3816B_85A2_4A55_BD84_3C2DF1B49C9B
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004069f9
mov edi, eax
cmp edi, ebx
jne 0x4065d5
push str.LocalService
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp dword [ebp + 0xc], ebx
je 0x4065c0
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, 0x41e85c
push edi
call esi
inc eax
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push ebx
push str.LocalService
push dword [ebp - 0x10]
call edi
mov ebx, str._Service
push ebx
call esi
inc eax
push eax
push ebx
push 1
push 0
push str.ServiceParameters
push dword [ebp - 0x10]
call edi
mov ecx, dword [ebp - 0x18]
call fcn.004066e2
xor ebx, ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.ATL.DLL_AtlModuleRegisterServer]
mov edi, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4065e8
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x4065f2
push dword [ebp - 0x14]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4066e2
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov edi, ecx
call fcn.00406017
test eax, eax
jne 0x406787
xor esi, esi
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, esi
jne 0x406721
add edi, 0x84
push esi
push edi
push str.Couldnt_open_service_manager
jmp 0x406770
lea eax, [ebp - 0x104]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push esi
push str.RPCSS
push esi
lea eax, [ebp - 0x104]
push esi
push eax
push 1
push 2
add edi, 0x84
push 0x10
push 0xf01ff
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, esi
jne 0x40677b
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
push edi
push str.Couldnt_create_service
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40678a
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push ebx
call esi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40678f
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00406017
test eax, eax
je 0x406816
xor ebp, ebp
push 0xf003f
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebp
jne 0x4067c5
add esi, 0x84
push ebp
push esi
push str.Couldnt_open_service_manager
jmp 0x4067ec
lea ebx, [esi + 0x84]
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebp
jne 0x4067ef
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
push ebx
push str.Couldnt_open_service
push ebp
jmp 0x406825
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, eax
call esi
push edi
call esi
test ebp, ebp
je 0x40681b
push 1
pop eax
jmp 0x40682d
push 0
push ebx
push str.Service_could_not_be_deleted
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x4088ab
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4088cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004099a8
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4088ee
test byte [esp + 8], 2
je 0x4088ee
call fcn.00409a1b
mov dword [eax], 0xd
call fcn.00409a24
mov dword [eax], 5
jmp 0x4088c7
xor eax, eax
ret
Function at 0x40cb7b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41f978
cmp edx, dword [eax]
je 0x40cb9d
add eax, 8
inc ecx
cmp eax, 0x41fa08
jl 0x40cb8e
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41f978]
jne 0x40cccb
mov eax, dword [0x4225f0]
cmp eax, 1
je 0x40cca5
test eax, eax
jne 0x40cbce
cmp dword [0x41eed4], 1
je 0x40cca5
cmp edx, 0xfc
je 0x40cccb
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40cc05
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408280
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407d30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40cc48
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407d30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x419dc8
push edi
call fcn.0040da50
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408280
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408290
lea eax, [ebp - 0xa0]
push 0x419da8
push eax
call fcn.00408290
push dword [esi + 0x41f97c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408290
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040de82
add esp, 0x2c
pop edi
jmp 0x40cccb
lea eax, [ebp + 8]
lea esi, [esi + 0x41f97c]
push 0
push eax
push dword [esi]
call fcn.00407d30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x4131c7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x413209
call fcn.00416108
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x413209
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x413200
xor eax, eax
jmp 0x413211
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00413217
pop edi
pop esi
pop ebx
ret 4
Function at 0x414166
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x417ecc
call fcn.00407c70
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00416108
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x4141a5
call fcn.00416108
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
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 0x4141b3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4141c1
or eax, 0xffffffff
jmp 0x4142a9
mov ecx, esi
call fcn.004140dc
mov dword [ebp - 0x14], eax
call fcn.0041184f
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4141f8
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4141f8
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00411803
push dword [ebp - 0x14]
call fcn.00411350
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00413e69
cmp eax, edi
je 0x41426b
test byte [esi + 0x24], 0x10
je 0x414239
push 4
mov ecx, esi
pop ebx
call fcn.00413a1e
test ah, 1
je 0x414231
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00413319
cmp dword [esi + 0x1c], edi
je 0x41426b
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00413a52
jmp 0x41426b
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x41427f
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x414298
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x414298
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00414116
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x403340
Capabilities:
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc40
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
xor esi, esi
cmp dword [0x4f7590], 0x594
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
jne 0x40337a
push 0x402b40
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x446d28]
mov edi, dword [0x446d2c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
call fcn.00403339
mov eax, dword [0x446d30]
add dword [ebp - 0x14], 0x23f
mov ebx, dword [0x446d34]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, dword [ebp - 0xc]
mov ecx, eax
shl ecx, 4
cmp dword [0x4f7590], 0xc
mov dword [ebp - 4], ecx
jne 0x403417
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x440]
push eax
push esi
push 0x402b64
push 0x402b6c
push 0x402b74
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push esi
lea eax, [ebp - 0x840]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x28]
push eax
push esi
lea eax, [ebp - 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
add dword [ebp - 4], ecx
mov ecx, dword [0x4f7590]
cmp ecx, 0xfa9
jne 0x403435
mov dword [0x4f6b2c], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x403443
mov dword [0x4f64dc], esi
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x10]
shr eax, cl
mov dword [0x4f6b28], 0xf4ea3dee
add eax, ebx
mov ecx, eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x4f7590], 0x213
mov dword [ebp - 0x18], ecx
jne 0x403482
push esi
push 0x402b98
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
cmp dword [0x4f7590], 0xc
jne 0x4034b5
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push esi
lea eax, [ebp - 0xc40]
push eax
push 0x402c10
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x10]
shr eax, cl
add eax, edi
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
call fcn.00403332
dec dword [ebp - 0x1c]
jne 0x4033af
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x403505
Capabilities:
Create pipe
Get common file path
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4f7590]
mov ecx, dword [0x4f64e0]
sub esp, 0x42c
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x4035fa
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 4], eax
cmp dword [0x4f7590], 0x959
jne 0x4035e6
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402bd4
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0x402cbc
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402cd8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.00403340
add ebx, 8
dec dword [ebp - 4]
jne 0x40352e
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4036cc
Capabilities:
Get common file path

Disassembly:
mov eax, 0x444704
call fcn.00444610
mov eax, 0x1428
call fcn.0040ba60
push ebx
push esi
xor esi, esi
cmp dword [0x4f7590], 0x5b1
push edi
jne 0x403761
push esi
lea eax, [ebp - 0xc34]
push eax
push esi
push 0x402d60
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
push esi
push esi
call sub.KERNEL32.dll_GetSystemTimes
lea eax, [ebp - 0x34]
call fcn.004039c3
push esi
mov dword [ebp - 4], esi
call fcn.0040455f
call fcn.004044fd
lea ecx, [ebp - 0x18]
mov dword [esp], 0x402da0
call fcn.00403210
lea ecx, [ebp - 0x18]
call fcn.0040322c
lea ecx, [ebp - 0x18]
call fcn.00403272
lea ecx, [ebp - 0x18]
call fcn.0040328b
push esi
push esi
call fcn.0040487c
push esi
call fcn.0040484d
add esp, 0xc
push esi
call fcn.00404c95
add dword [0x4f7590], 0x1134b
push dword [0x4f7590]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4f64e0], eax
call fcn.00403617
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x206d47
jg 0x4037aa
inc edi
cmp edi, 0x4f6a4
jl 0x40378a
mov eax, dword [0x4f7590]
xor ecx, ecx
cmp eax, esi
jbe 0x4037d0
mov edx, dword [0x4f7594]
mov dl, byte [edx + ecx + 0x1134b]
mov edi, dword [0x4f64e0]
mov byte [edi + ecx], dl
inc ecx
cmp ecx, eax
jb 0x4037b5
xor edi, edi
lea ecx, [eax + edi]
cmp ecx, 0xe
jne 0x40381b
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push esi
lea eax, [ebp - 0x434]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x402db0
push 0x402dbc
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
push esi
lea eax, [ebp - 0xc34]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
mov eax, dword [0x4f7590]
inc edi
cmp edi, 0x39621
jl 0x4037d2
call fcn.00403505
xor edi, edi
call ebx
cmp edi, 0x26
jne 0x403837
call fcn.004035fd
inc edi
cmp edi, 0x6753f
jl 0x40382b
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x7b
pop ebx
cmp dword [0x4f7590], 0x86
jne 0x403892
push 0x402de8
push 0x402e1c
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push esi
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push esi
lea eax, [ebp - 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp dword [0x4f7590], 0xf
jne 0x4038ba
push esi
push esi
call edi
push esi
lea eax, [ebp - 0x1434]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0x402e34
push 0x402e78
call edi
dec ebx
jne 0x403849
push 0x402ec8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40541b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x446494]
jne 0x405425
repz ret
jmp fcn.00408c3c
Function at 0x40aa5b
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.004069e6
and dword [ebp - 4], 0
cmp dword [0x448108], 0
mov ebx, eax
jne 0x40ab0c
push 0x4021ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40abbd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4021a0
push edi
call esi
test eax, eax
je 0x40abbd
push eax
call fcn.00406974
mov dword [esp], 0x402190
push edi
mov dword [0x448108], eax
call esi
push eax
call fcn.00406974
mov dword [esp], 0x40217c
push edi
mov dword [0x44810c], eax
call esi
push eax
call fcn.00406974
mov dword [esp], 0x402160
push edi
mov dword [0x448110], eax
call esi
push eax
call fcn.00406974
pop ecx
mov dword [0x448118], eax
test eax, eax
je 0x40ab0c
push 0x402148
push edi
call esi
push eax
call fcn.00406974
pop ecx
mov dword [0x448114], eax
mov eax, dword [0x448114]
cmp eax, ebx
je 0x40ab64
cmp dword [0x448118], ebx
je 0x40ab64
push eax
call fcn.004069ef
push dword [0x448118]
mov esi, eax
call fcn.004069ef
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ab64
test edi, edi
je 0x40ab64
call esi
test eax, eax
je 0x40ab5b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ab5b
test byte [ebp - 0xc], 1
jne 0x40ab64
or dword [ebp + 0x10], 0x200000
jmp 0x40ab9d
mov eax, dword [0x44810c]
cmp eax, ebx
je 0x40ab9d
push eax
call fcn.004069ef
pop ecx
test eax, eax
je 0x40ab9d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ab9d
mov eax, dword [0x448110]
cmp eax, ebx
je 0x40ab9d
push eax
call fcn.004069ef
pop ecx
test eax, eax
je 0x40ab9d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x448108]
call fcn.004069ef
pop ecx
test eax, eax
je 0x40abbd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40abbf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c50e
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jge 0x41c530
mov eax, 0xfffffffd
jmp 0x41c5a8
mov ebx, dword [0x65b6d0]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x41c576
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x65b6d0]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x41c59e
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x41c5a8
mov esp, ebp
pop ebp
ret 4
Function at 0x443e1a
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jge 0x443e3c
mov eax, 0xfffffffd
jmp 0x443eb4
mov ebx, dword [0x65b6d0]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x443e82
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x65b6d0]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x443eaa
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x443eb4
mov esp, ebp
pop ebp
ret 4

Function at 0x447e74
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
mov ecx, dword fs:[0x30]
mov al, byte [ecx + 2]
leave
ret
Function at 0x4a30cc
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x567778
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, [edi + 0x104]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.0049e00c
test eax, eax
jne 0x4a3138
push ebp
push 0x643fa8
mov ecx, edi
call fcn.004a234c
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.0049da3c
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.004891bc
push ebx
mov dword [esp + 0x4c], ebp
call fcn.0049e1bc
add esp, 4
test eax, eax
je 0x4a31db
add esi, 0x18
push esi
call fcn.00489bec
add esi, eax
push esi
call fcn.00489bec
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x4a34de
jmp dword [ecx*4 + 0x47bc10]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.004a248c
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call fcn.00489bec
add esi, eax
push esi
call fcn.00489bec
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x4a322c
mov ecx, dword [esi + 0x1c]
push ecx
call dword [0x56d6fc]
test eax, eax
je 0x4a322c
mov eax, 1
jmp 0x4a322e
xor eax, eax
cmp ebx, 8
jge 0x4a3493
cmp ebx, 7
ja 0x4a34de
jmp dword [ebx*4 + 0x47bc20]
test eax, eax
jne 0x4a34a6
mov ecx, dword [esp + 0x10]
push eax
push 0x643f94
call fcn.004a234c
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.004a39ec
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x610dc0
call fcn.004893bc
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov edx, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10