joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40af10
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.00429660
mov eax, dword [0x44cba0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov edi, ecx
mov dword [ebp - 0x1024], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x40af7b
push 1
lea ebx, [edi + 0x40]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x40af6a
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40af70
mov edi, dword [ebp - 0x1024]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x40af91
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429468
mov esp, ebp
pop ebp
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40afeb
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0xd80a
call fcn.004098b0
add esp, 0xc
test eax, eax
jne 0x40afdc
push str.Could_not_open_Service_Manager
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call fcn.00409690
add esp, 0xc
push 0
push ebx
lea edx, [ebp - 0x804]
push edx
jmp 0x40b128
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40b049
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0xd80c
call fcn.004098b0
add esp, 0xc
test eax, eax
jne 0x40afdc
push str.Could_not_open_service
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call fcn.00409690
add esp, 0xc
push esi
push ebx
lea edx, [ebp - 0x804]
push edx
jmp 0x40b128
lea eax, [ebp - 0x1020]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40b0c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x40b0c2
cmp eax, 0x425
jne 0x40b07a
cmp dword [ebp - 0x101c], 3
je 0x40b0c2
push 0x400
lea ecx, [ebp - 0x804]
push ecx
push 0xd80e
call fcn.004098b0
add esp, 0xc
test eax, eax
jne 0x40b0b0
push str.Could_not_stop_service
lea edx, [ebp - 0x804]
push 0x400
push edx
call fcn.00409690
add esp, 0xc
push 0
push ebx
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x1024], eax
call esi
push edi
call esi
cmp dword [ebp - 0x1024], 0
jne 0x40af7b
push 0x400
lea ecx, [ebp - 0x1004]
push ecx
push 0xd80d
call fcn.004098b0
add esp, 0xc
test eax, eax
jne 0x40b11e
push str.Could_not_delete_service
lea edx, [ebp - 0x1004]
push 0x400
push edx
call fcn.00409690
add esp, 0xc
push 0
push ebx
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00429468
mov esp, ebp
pop ebp
ret
Function at 0x40bf20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x40bf41
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x40ad20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x40bf68
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d240
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a3c6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x44cba0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x430], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x418], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
jne 0x40d2bd
call fcn.00407cc0
mov edi, eax
jmp 0x40d3a2
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40d2d6
call fcn.00407cc0
jmp 0x40d399
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x40d2f4
call fcn.00407cc0
jmp 0x40d399
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x41c], edi
cmp eax, edi
jae 0x40d315
mov edi, 0x8007000e
jmp 0x40d39b
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040bd90
mov dword [ebp - 4], 1
jmp 0x40d34d
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x40d35e
mov edi, 0x8007000e
jmp 0x40d39b
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40d377
call fcn.00407cc0
jmp 0x40d399
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x418]
push eax
push ecx
lea ecx, [ebp - 0x42c]
call fcn.0040ce90
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x40d3c0
lea ecx, [ebp - 0x418]
call fcn.0040a750
jmp 0x40d3c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00429468
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40d9e0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
call fcn.0040af10
test eax, eax
jne 0x40d9fe
mov eax, 0x80004005
pop edi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x44e06c]
push ebx
lea eax, [ebp - 0x1c]
push eax
push 1
push 0x65
xor ebx, ebx
push ecx
mov dword [ebp - 0x1c], str.APPID
mov dword [ebp - 0x18], str.545C8D56_7A88_492D_B38D_559657A3DD4C
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0040d4a0
cmp eax, ebx
jl 0x40db30
push esi
push 0x20006
push str.AppID
push SysReAllocString
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00409d50
cmp eax, ebx
je 0x40da7a
push eax
call fcn.00407ce0
mov esi, eax
mov eax, dword [ebp - 0x18]
add esp, 4
cmp eax, ebx
je 0x40da6f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x18]
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push str.545C8D56_7A88_492D_B38D_559657A3DD4C
push esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.00409cb0
cmp eax, ebx
je 0x40dad0
push eax
call fcn.00407ce0
mov edi, eax
mov eax, dword [ebp - 0xc]
add esp, 4
cmp eax, ebx
je 0x40daba
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x40dac5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0xc]
push str.LocalService
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0xc]
cmp byte [ebp + 8], bl
je 0x40db20
push 1
lea eax, [edi + 0x40]
push eax
push str.LocalService
call fcn.00409ea0
mov ecx, edi
call fcn.0040ad60
lea ecx, [ebp - 0xc]
test eax, eax
jne 0x40db20
call fcn.0040a800
lea ecx, [ebp - 0x18]
call fcn.0040a800
pop esi
pop ebx
mov eax, 0x80004005
pop edi
mov esp, ebp
pop ebp
ret 4
call fcn.0040a800
lea ecx, [ebp - 0x18]
call fcn.0040a800
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x40db50
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call fcn.0040af10
test eax, eax
jne 0x40db68
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x20006
xor esi, esi
push str.AppID
push SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.00409d50
cmp eax, esi
je 0x40dbb1
push eax
call fcn.00407ce0
mov edi, eax
mov eax, dword [ebp - 0x10]
add esp, 4
cmp eax, esi
je 0x40dba9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 0x10]
push 0x20006
push str.545C8D56_7A88_492D_B38D_559657A3DD4C
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.00409d50
cmp eax, esi
je 0x40dc02
push eax
call fcn.00407ce0
mov edi, eax
mov eax, dword [ebp - 0x1c]
add esp, 4
cmp eax, esi
je 0x40dbee
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x40dbf9
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1c]
push str.LocalService
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [0x44e06c]
lea eax, [ebp - 0x20]
push eax
push esi
push 0x65
push ecx
mov dword [ebp - 0x20], str.APPID
mov dword [ebp - 0x1c], str.545C8D56_7A88_492D_B38D_559657A3DD4C
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.0040d4a0
mov dword [ebp - 4], eax
cmp edi, esi
je 0x40dc46
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x40dc51
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40eca0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x44cba0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push 0x44dcd4
call fcn.0040ba30
mov dword [ebp - 0x808], eax
test eax, eax
js 0x40ed0d
mov ecx, dword [0x44e060]
test ecx, ecx
je 0x40eceb
mov edx, dword [0x44dca0]
push edx
call ecx
add esp, 4
mov dword [ebp - 0x808], eax
test eax, eax
js 0x40ed0d
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
call sym.LMS.exe_public:_static_long_int___cdecl_NAP_SHA::ShaModule::InitializeSecurity_void_
test eax, eax
js 0x40ed07
call sym.LMS.exe_public:_static_long_int___cdecl_NAP_SHA::ShaModule::RegisterSdkSha_void_
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40edbb
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0xd80a
call fcn.004098b0
add esp, 0xc
test eax, eax
jne case.0x40ed6a.0
push str.Could_not_open_Service_Manager
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
cmp eax, 0x50
ja case.0x40ed6a.1
movzx edx, byte [eax + 0x40ee5c]
jmp dword [edx*4 + 0x40ee4c]
push 0x8007000e
call fcn.00402660
push 0x80070057
call fcn.00402660
push 0x80004005
call fcn.00402660
push 0
push 0x436994
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429468
mov esp, ebp
pop ebp
ret 8
push ebx
push esi
push 0xf01ff
push 0x436994
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push 0x432a10
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov ebx, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
lea ecx, [ebp - 0x80c]
push ecx
push 1
push esi
mov dword [ebp - 0x80c], str.Intel_R__Management_and_Security_Application_Local_Management_Service___Provides_OS_related_Intel_R__ME_functionality.
call ebx
lea edx, [ebp - 0x810]
push edx
push 3
push esi
mov dword [ebp - 0x810], 1
call ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
call fcn.0040de10
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x808]
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.00429468
mov esp, ebp
pop ebp
ret 8
Function at 0x40f100
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [sym.imp.MSVCR100.dll__wcsicmp]
push 0x432284
push esi
call edi
add esp, 8
test eax, eax
je 0x40f17b
push str.console
push esi
call edi
add esp, 8
test eax, eax
jne 0x40f17b
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp + 0x10]
push ecx
call fcn.00409440
add esp, 8
push 0x1d4c0
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.MSVCR100.dll_getchar]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40f16c
call fcn.00403d00
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40f16c
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x40f17b
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
cmp byte [0x44e05c], 0
pop edi
pop esi
je 0x40f18f
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp + 0x10]
push ecx
push eax
mov ecx, 0x44d810
call fcn.0040f030
cmp al, 1
jne 0x40f1c3
mov edx, dword [ebp + 0x14]
push edx
mov ecx, 0x44d810
call fcn.0040dc60
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x417700
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x44cba0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x44
xor edi, edi
push edi
mov dword [ebp - 0x23c], eax
mov byte [ebp - 0x229], 0
mov dword [ebp - 0x248], 0x44
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [ebp - 0x230], esi
cmp esi, edi
je 0x417768
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x248]
push ecx
push esi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x41777b
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00429468
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x234], edi
cmp dword [ebx], edi
jbe 0x417868
lea esp, [esp]
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ebx + edi*8 + 4]
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x228]
lea esi, [ebx + edi*8 + 4]
push ecx
push edx
push 0
mov dword [ebp - 0x238], 0x100
mov dword [ebp - 0x24c], 0xf
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
mov eax, dword [ebp - 0x240]
cmp eax, 2
je 0x4177e5
cmp eax, 4
jne 0x417841
test byte [ebx + edi*8 + 8], 7
je 0x417841
mov ecx, dword [esi]
lea eax, [ebp - 0x244]
push eax
push ecx
call sub.ADVAPI32.dll_ConvertSidToStringSidW
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 0x23c]
push 0
lea eax, [ebp - 0x228]
push eax
mov ecx, edi
call fcn.004173a0
push eax
lea ecx, [ebp - 0x254]
push ecx
mov ecx, edi
call fcn.00416c80
mov edx, dword [ebp - 0x230]
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x41785b
mov eax, dword [ebp - 0x234]
inc eax
movzx edi, ax
mov dword [ebp - 0x234], eax
cmp edi, dword [ebx]
jb 0x417790
jmp 0x417862
mov byte [ebp - 0x229], 1
mov esi, dword [ebp - 0x230]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x229]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429468
mov esp, ebp
pop ebp
ret
Function at 0x41c600
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bd6b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x44cba0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], vtable.ATL::CComAggObject_class_CUNSAlert_.0
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov byte [esi + 0x3c], al
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], vtable.CProxy_IUNSAlertEvents_class_CUNSAlert_.0
mov dword [esi + 0xc], vtable.ATL::CComContainedObject_class_CUNSAlert_.2.0
mov dword [esi + 0x10], vtable.ATL::CComContainedObject_class_CUNSAlert_.1.0
mov dword [esi + 0x1c], vtable.ATL::CComContainedObject_class_CUNSAlert_.0
mov dword [esi + 0x20], ecx
mov ecx, dword [0x44e06c]
mov edx, dword [ecx]
mov dword [ebp - 4], eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41d840
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov ebx, ecx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [ebp + 0xc]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebx + 0x1c]
push edx
push eax
push ecx
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x41d892
cmp eax, 0x3e5
jne 0x41d8c5
mov edx, dword [ebp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41d8ad
mov dword [ebp - 4], 0
jmp 0x41d8cc
mov edx, dword [ebx + 0x1c]
push 1
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x41d8cc
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x41d8d7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
test eax, eax
jne 0x41d8ea
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41d900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov ebx, ecx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [ebp + 0xc]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebx + 0x1c]
push edx
push eax
push ecx
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x41d952
cmp eax, 0x3e5
jne 0x41d985
mov edx, dword [ebp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41d96d
mov dword [ebp - 4], 0
jmp 0x41d98c
mov edx, dword [ebx + 0x1c]
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x41d98c
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x41d997
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
test eax, eax
jne 0x41d9aa
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x428f70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push 4
mov dword [esi], vtable.Thread.0
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
push 0
push 4
push esi
push 0x428f50
push 0
push 0
mov dword [esi + 0x10], eax
call dword [sym.imp.MSVCR100.dll__beginthreadex]
mov edx, dword [esi + 0x10]
add esp, 0x1c
mov dword [edx], eax
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x429080
Capabilities:
Create thread
Print debug messages
Resume thread

Disassembly:
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
mov dword [esi + 0xc], eax
call fcn.00429020
test al, al
jne 0x4290bf
push 0
push 0
push esi
push 0x428f50
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
mov ecx, dword [esi + 0x10]
mov dword [ecx], eax
mov edx, dword [esi + 0x10]
add esp, 0x18
cmp dword [edx], 0
jne 0x4290de
xor al, al
pop esi
ret
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x4290de
push str.__ResumeThread_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
pop esi
ret
mov al, 1
pop esi
ret

Function at 0x429468
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44cba0]
jne 0x429472
repz ret
jmp fcn.00429ab9
Function at 0x41d75a
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4b31f4
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x41d7da
arpl word [edx + esi], si
xor byte [ebx], 0xe3
dec eax
test edx, ebx
insd dword es:[edi], dx
invalid
iretd
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4042e8
Capabilities:
Encode data using xor

Disassembly:
push 0x56c8361d
mov esi, 0x56c9341d
pop eax
xor esi, eax
mov edx, 0x4014c6f3
xor edx, 0x4414c6f3
xor esi, edx
mov ecx, 0x800
mov edx, 0xc02002
xor ecx, edx
push 0x5e27b367
mov eax, 0x5e07b3ef
pop edx
xor eax, edx
xor ecx, eax
xor esi, ecx
mov eax, 0x9e06276
mov edi, 0x9a0b3f6
xor edi, eax
mov ecx, dword [edi]
mov edx, ecx
add edx, 0x62
dec edx
mov edi, dword [edx - 0x61]
mov eax, 0xd5e36143
xor edi, eax
mov esi, edi
push esi
pop eax
xor ecx, ecx
add ecx, eax
push ecx
pop ebx
mov esi, 4
mov edi, 0
add byte [eax], al
mov ecx, 0x7d70f9d4
xor ecx, 0x7d70f9d4
mov edi, 0x4a5183db
xor edi, 0x4a5183db
xor ecx, edi
mov edx, 0x14111021
mov edi, 0xca4e98
xor edx, edi
push edx
mov esi, 0x10001891
mov eax, 0x4db4628
xor esi, eax
pop ebx
xor esi, ebx
xor ecx, esi
mov esi, ecx
sub esi, 0
je 0x403f00
add byte [eax], al
xor eax, eax
mov dword [0x40c02c], eax
mov byte [0x40c033], 2
mov byte [0x40c034], 2
mov byte [0x40c035], 3
mov word [0x40c3dc], 0
mov word [0x40c3ec], 1
call fcn.0040285c
mov eax, 0x40c038
mov edx, 0x404398
call fcn.00403c25
mov eax, 0x40c204
mov edx, 0x404398
call fcn.00403c25
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404391
ret

Function at 0x40520c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405258
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405279
mov al, byte [esp]
jmp 0x40527b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret