joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013d0
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0xd0
push ebx
push ebp
push esi
push edi
push 0x40217c
push 0x65
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push 4
push 0x1000
mov ebx, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
push esi
mov edi, eax
push 0
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push ebx
push eax
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push str.CE_9YC.dll
push section..data
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov ebp, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
xor edi, edi
xor esi, esi
test edi, edi
jne 0x40145f
push section..data
call ebp
push 0x3e8
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc esi
cmp esi, 3
jl 0x401441
push section..data
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0
push 2
push 2
push 0
push 2
push 0x40000000
push section..data
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0
lea ecx, [esp + 0x14]
push ecx
push ebx
mov esi, eax
push edx
push esi
call edi
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [esp + 0x14]
push eax
push 2
push 0x40218c
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call fcn.00401280
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0
ret

Function at 0x4014e0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x1d4
mov ax, word [0x402190]
mov cl, byte [0x402192]
push esi
push 0x104
lea edx, [esp + 0xd8]
push edx
push 0
mov word [esp + 0x10], ax
mov byte [esp + 0x12], cl
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xd8]
push ecx
mov edx, ecx
push edx
lea eax, [esp + 0x18]
push str.:try_r_ndel___s___r_n_if_exist___s__goto_try_r_n_del__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push str.c:_test.bat
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401561
push 0
lea ecx, [esp + 0xc]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0
push 0
push 0
push str.c:_test.bat
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
add esp, 0x1d4
ret
Function at 0x4015b0
Capabilities:
Query or enumerate registry value
Terminate process

Disassembly:
sub esp, 0x1a0
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
push str.SoftwareMicrosoftWindowsShellNoRoamMUICache
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
xor esi, esi
push esi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0xfc]
push edx
push esi
mov ebx, 0xc8
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
call edi
cmp eax, 0x103
je 0x401669
mov ebp, dword [sym.imp.MSVCRT.dll_strstr]
lea ebx, [ebx]
lea ecx, [esp + 0x20]
push 0x40220c
push ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call ebp
add esp, 8
test eax, eax
jne 0x40167f
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0xfc]
push eax
inc esi
push esi
push ecx
call edi
cmp eax, 0x103
jne 0x401620
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a0
ret
lea edx, [esp + 0xe8]
push edx
push section..data
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push section..data
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
call fcn.004013d0
call fcn.004014e0
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x4016b0
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
sub esp, 0x420
push ebx
lea eax, [esp + 4]
push eax
push 0x320
lea ecx, [esp + 0x10c]
push ecx
call sub.PSAPI.DLL_EnumProcesses
xor ebx, ebx
test dword [esp + 4], 0xfffffffc
jbe 0x401768
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_OpenProcess]
push esi
push edi
jmp 0x4016f0
mov edx, dword [esp + ebx*4 + 0x110]
push edx
push 0
push 0x411
call ebp
mov esi, eax
test esi, esi
je 0x401752
push 0xfa
lea eax, [esp + 0x18]
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x401752
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_CharLowerA]
lea edx, [esp + 0x14]
push str.game.exe
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x401752
push 0
push str.TianLongBaBu_WndClass
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
jne 0x401770
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
inc ebx
shr eax, 2
cmp ebx, eax
jb 0x4016f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x420
ret
lea ecx, [esp + 0x14]
push ecx
push section..data
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push section..data
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov edx, section..data
push 0
sub edx, 8
push esi
mov dword [eax + edx], 0
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 2
push edi
call esi
push 0
push 0
push 0x10
push edi
call esi
call fcn.004013d0
call fcn.004014e0
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x401810
Capabilities:
Check if file exists
Enumerate process modules
Get common file path
Terminate process

Disassembly:
sub esp, 0x54c
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_OpenProcess]
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x320
lea ecx, [esp + 0x244]
push ecx
call sub.PSAPI.DLL_EnumProcesses
push 0x12c
lea edx, [esp + 0x114]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push str._tlbb0226c.Fe
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea ecx, [esp + 0x110]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x401904
xor edi, edi
test dword [esp + 0x10], 0xfffffffc
jbe 0x4018f4
mov edx, dword [esp + edi*4 + 0x23c]
push edx
push 0
push 0x411
call ebx
mov esi, eax
test esi, esi
je 0x4018e5
push 0xfa
lea eax, [esp + 0x18]
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x4018e5
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_CharLowerA]
lea edx, [esp + 0x14]
push str.game.exe
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x4018e5
push 0
push str.TianLongBaBu_WndClass
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x401911
push esi
call ebp
mov eax, dword [esp + 0x10]
inc edi
shr eax, 2
cmp edi, eax
jb 0x401885
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x401826
call fcn.004014e0
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
lea ecx, [esp + 0x14]
push ecx
push section..data
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push section..data
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov edx, section..data
push 0
sub edx, 8
push esi
mov dword [eax + edx], 0
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
call fcn.004013d0
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x401960
Capabilities:
Check if file exists
Enumerate processes
Get common file path
Terminate process

Disassembly:
sub esp, 0x260
push ebx
push esi
push edi
push 0
mov ebx, 0x128
push 2
mov dword [esp + 0x18], ebx
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4019cd
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], ebx
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x4019c6
mov edi, dword [sym.imp.MSVCRT.dll__stricmp]
jmp 0x4019a0
lea ecx, [esp + 0x34]
push ecx
push str.game.exe
call edi
add esp, 8
test eax, eax
je 0x4019d9
lea edx, [esp + 0x10]
push edx
push esi
mov dword [esp + 0x18], ebx
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x4019a0
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x260
ret
push 0x12c
lea eax, [esp + 0x13c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push str._tlbb0226c.Fe
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea edx, [esp + 0x138]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x401a1f
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
add esp, 0x260
ret
call fcn.004014e0
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x401a30
Capabilities:
Enumerate threads
Terminate thread

Disassembly:
sub esp, 0x1c
push ebp
push esi
push 0
mov ebp, 0x1c
push 4
mov dword [esp + 0x10], ebp
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x401aaa
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], ebp
call sub.KERNEL32.DLL_Thread32First
test eax, eax
je 0x401aa3
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_TerminateThread]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_OpenThread]
nop
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x1c], ecx
jne 0x401a8e
mov edx, dword [esp + 0x18]
push edx
push 0
push 1
call edi
test eax, eax
je 0x401a8e
push 1
push eax
call ebx
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], ebp
call sub.KERNEL32.DLL_Thread32Next
test eax, eax
jne 0x401a70
pop edi
pop ebx
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop ebp
add esp, 0x1c
ret

Function at 0x401ab0
Capabilities:
Copy file
Create process on windows
Create thread
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x734
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 0x12c
lea eax, [esp + 0xc]
push eax
push 0
call esi
lea ecx, [esp + 8]
push str.Help360
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x401b02
push 0
push 0
push 0
push 0x4017d0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
call fcn.00401810
call fcn.004016b0
call fcn.00401960
test eax, eax
je 0x401b19
push eax
call fcn.00401a30
add esp, 4
call fcn.00401960
test eax, eax
je 0x401b2b
push eax
call fcn.00401a30
add esp, 4
call fcn.004015b0
push 0x12c
lea edx, [esp + 0x43c]
push edx
push 0
call esi
lea eax, [esp + 0x138]
push eax
push 0x300
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
push str.Help360TLBB3.exe
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0
lea edx, [esp + 0x13c]
push edx
lea eax, [esp + 0x440]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
push 0
push 0
push 0
lea ecx, [esp + 0x144]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.004014e0
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x406371
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x238
mov eax, 0x40e86a
call fcn.0040d30f
mov dword [ebp - 0x21c], ecx
movzx eax, word [ebp + 8]
xor edi, edi
mov esi, dword [0x4166e8]
inc edi
push 0xf0
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x4064e2
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x4064e2
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4064e2
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4064e2
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x220], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x40645b
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], eax
call main
push dword [ebp - 0x114]
mov eax, dword [ebp - 0x21c]
and dword [ebp - 4], 0
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
lea eax, [ebp - 0x110]
cmove edi, ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x114], eax
je 0x4064d4
push dword [ebp - 0x114]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x4064d4
mov ecx, 0x1234
cmp cx, ax
jne 0x4064d4
or dword [ebp - 0x240], 0xffffffff
lea eax, [ebp - 0x214]
push 3
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x244], 1
mov dword [ebp - 0x218], eax
call main
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x23c], eax
cmp eax, ecx
je 0x4064ae
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x21c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
add esi, dword [ebp - 0x220]
test edi, edi
jne 0x4063c9
mov eax, edi
call fcn.0040d2ca
ret 4

Function at 0x409413
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x409422
pop dword [ebp - 0xc]
mov eax, 0x409422
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x3ab52
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x516d
mov edi, eax
mov ebx, 0x472e6059
add ebx, 0xb91349a7
add ebx, dword [ebp - 0xc]
mov esi, 0x3005661e
mov edx, dword [ebx]
add dword [ebp - 4], esi
xor edx, esi
mov dword [edi], edx
xor dword [ebp - 8], ecx
add edi, 0x84b780c9
sub edi, 0x84b780c5
add ebx, 4
loop 0x40946b
add eax, 0x87123f4
sub eax, 0x86feb6d
mov ebx, eax
add eax, 0xa193435e
sub eax, 0xa1934359
mov ecx, 0xdd54d7f3
sub ecx, 0xdd14d7f3
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x100023c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1029912c]
xor eax, ebp
mov dword [ebp - 4], eax
sub dword [ebp + 0xc], 1
push esi
mov esi, dword [ebp + 8]
jne 0x1000244a
call fcn.1000c590
push esi
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push str.FC3BA882_AAED_4E7F_8C6B_1224A40646D3
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
call fcn.101f0e88
add esp, 0xc
test eax, eax
jne 0x1000244a
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1000244a
push str.E7539593_2191_4A9D_ABC4_3940BD6E6279
push eax
call fcn.101f087a
add esp, 8
test eax, eax
jne 0x1000244a
push eax
push eax
push eax
push 0x100023b0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call fcn.101f0951
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.101d506b
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10002460
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, ecx
xor edx, edx
mov ecx, dword [edi]
lea eax, [edi + 4]
test ecx, ecx
je 0x10002487
push esi
nop
lea ecx, [edx + 0x49]
xor byte [edx + eax], cl
lea esi, [edx + eax]
mov ecx, dword [edi]
inc edx
cmp edx, ecx
jb 0x10002470
pop esi
mov byte [ecx + eax], 0
pop edi
ret
mov byte [ecx + eax], dl
pop edi
ret

Function at 0x10005f30
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jl 0x10005f50
pop edi
mov dword [ecx], 0x270
mov eax, ecx
pop esi
pop ebp
ret 4
Function at 0x10009750
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x100097ae
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x10009770
mov eax, dword [edi]
jmp 0x10009899
cmp eax, 0x4e0
jb 0x10009899
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x100097d0
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x10009820
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000ba00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
cmp dword [eax + 0x14], 0x10
jb 0x1000ba2d
mov eax, dword [eax]
mov esi, dword [ebp + 8]
push eax
movzx eax, word [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push dword [edi]
mov dword [edi + 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [edi + 4]
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [edi + 0xc], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1000bbb0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.101d5b20
mov eax, dword [0x1029912c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1000
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.101ee530
push str._KityDbg_
lea eax, [ebp - 0x1004]
push 0xff5
push eax
call fcn.101f62d0
push 0x102682ac
lea eax, [ebp - 0xffb]
push 0xff6
push eax
call fcn.101f62d0
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0xffa]
push 0xff6
push eax
call fcn.1000b910
add esp, 0x38
test eax, eax
jle 0x1000bc45
mov ecx, 0xff6
sub ecx, eax
push 0x102682b0
push ecx
lea ecx, [ebp - 0xffa]
add eax, ecx
push eax
call fcn.101f62d0
add esp, 0xc
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x1004]
push eax
push 0x102682b4
call fcn.1000b8e0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
Function at 0x1000eed0
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xc0000001
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1000ea60
add esp, 0x20
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x1000ef44
jmp 0x1000eff4
push 1
lea edx, [ebp - 0xc]
push edx
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov ecx, dword [ebp + 8]
call fcn.100061f0
push eax
mov ecx, dword [ebp + 8]
call fcn.10006200
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.bcrypt.dll_BCryptDecrypt]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x1000ef7f
jmp 0x1000eff4
mov eax, dword [ebp - 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000ef9d
jmp 0x1000eff4
push 1
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0
mov ecx, dword [ebp + 8]
call fcn.100061f0
push eax
mov ecx, dword [ebp + 8]
call fcn.10006200
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.bcrypt.dll_BCryptDecrypt]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x1000efdc
jmp 0x1000eff4
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.100025c0
xor eax, eax
jne 0x1000ef0e
cmp dword [ebp - 0x1c], 0
je 0x1000f006
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
cmp dword [ebp - 0x10], 0
je 0x1000f016
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.bcrypt.dll_BCryptDestroyKey]
cmp dword [ebp - 8], 0
je 0x1000f02f
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x14], 0
je 0x1000f048
mov ecx, dword [ebp - 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x20], 0
je 0x1000f061
mov edx, dword [ebp - 0x20]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], 0
jl 0x1000f070
mov dword [ebp - 0x24], 1
jmp 0x1000f077
mov dword [ebp - 0x24], 0
mov al, byte [ebp - 0x24]
mov esp, ebp
pop ebp
ret