joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445f49
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x4577c0]
xor eax, ebp
mov dword [ebp + 0x2a4], eax
and dword [ebp - 0x80], 0
push ebx
push 0x4c
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.004420a0
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x84], ecx
mov dword [ebp + 0x80], edx
mov dword [ebp + 0x7c], ebx
mov dword [ebp + 0x78], esi
mov dword [ebp + 0x74], edi
mov word [ebp + 0xa0], ss
mov word [ebp + 0x94], cs
mov word [ebp + 0x70], ds
mov word [ebp + 0x6c], es
mov word [ebp + 0x68], fs
mov word [ebp + 0x64], gs
pushfd
pop dword [ebp + 0x98]
mov eax, dword [ebp + 0x2ac]
lea ecx, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov dword [ebp + 0x90], eax
mov dword [ebp + 0x9c], ecx
mov ecx, dword [ecx - 4]
mov dword [ebp + 0x8c], ecx
mov dword [ebp - 0x80], 0xc0000417
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x74], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x446028
test ebx, ebx
jne 0x446028
push 2
call fcn.0044a827
pop ecx
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
xor ecx, ebp
pop ebx
call fcn.00441b8e
add ebp, 0x2a8
leave
ret

Function at 0x446050
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [0x4673cc]
call fcn.0044728d
pop ecx
test eax, eax
je 0x446066
pop ebp
jmp eax
push 2
call fcn.0044a827
pop ecx
pop ebp
jmp fcn.00445f49
Function at 0x446074
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 + 0x457ac8]
je 0x44608f
inc edi
cmp edi, 0x17
jb 0x446080
cmp edi, 0x17
jae 0x44620f
push ebp
push 3
call fcn.0044b660
pop ecx
cmp eax, 1
je 0x4461db
push 3
call fcn.0044b660
pop ecx
test eax, eax
jne 0x4460c3
cmp dword [0x457820], 1
je 0x4461db
cmp ebx, 0xfc
je 0x44620e
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4673d0
push ebp
call fcn.004486f0
add esp, 0xc
test eax, eax
je 0x4460f9
push esi
push esi
push esi
push esi
push esi
call fcn.00445f49
add esp, 0x14
push 0x104
mov esi, 0x4673e9
push esi
push 0
mov byte [0x4674ed], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44613d
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004486f0
add esp, 0xc
test eax, eax
je 0x44613d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00445f49
add esp, 0x14
push esi
call fcn.004485d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x446182
push esi
call fcn.004485d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4676e4
push 0x45156c
sub ecx, eax
push ecx
push eax
call fcn.0044b5ad
add esp, 0x14
test eax, eax
je 0x446182
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00445f49
add esp, 0x14
jmp 0x446184
xor esi, esi
push 0x451568
push ebx
push ebp
call fcn.0044b53c
add esp, 0xc
test eax, eax
je 0x4461a4
push esi
push esi
push esi
push esi
push esi
call fcn.00445f49
add esp, 0x14
push dword [edi*8 + 0x457acc]
push ebx
push ebp
call fcn.0044b53c
add esp, 0xc
test eax, eax
je 0x4461c6
push esi
push esi
push esi
push esi
push esi
call fcn.00445f49
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044b3d5
add esp, 0xc
jmp 0x44620e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x44620e
cmp ebp, 0xffffffff
je 0x44620e
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x457acc]
push dword [esi]
call fcn.004485d0
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 0x447619
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
push edi
mov esi, str.KERNEL32.DLL
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x447632
push esi
call fcn.0044330f
pop ecx
mov edi, eax
test edi, edi
je 0x44779a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FlsAlloc
push edi
call esi
push str.FlsGetValue
push edi
mov dword [0x4676e4], eax
call esi
push str.FlsSetValue
push edi
mov dword [0x4676e8], eax
call esi
push str.FlsFree
push edi
mov dword [0x4676ec], eax
call esi
cmp dword [0x4676e4], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x4676f0], eax
je 0x44769b
cmp dword [0x4676e8], 0
je 0x44769b
cmp dword [0x4676ec], 0
je 0x44769b
test eax, eax
jne 0x4476bf
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x4676e8], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x4676e4], 0x4472fc
mov dword [0x4676ec], esi
mov dword [0x4676f0], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x457ba8], eax
cmp eax, 0xffffffff
je 0x44779f
push dword [0x4676e8]
push eax
call esi
test eax, eax
je 0x44779f
call fcn.0044361b
push dword [0x4676e4]
call fcn.00447215
push dword [0x4676e8]
mov dword [0x4676e4], eax
call fcn.00447215
push dword [0x4676ec]
mov dword [0x4676e8], eax
call fcn.00447215
push dword [0x4676f0]
mov dword [0x4676ec], eax
call fcn.00447215
add esp, 0x10
mov dword [0x4676f0], eax
call fcn.00444482
test eax, eax
je 0x44779a
push 0x4474ea
push dword [0x4676e4]
call fcn.0044728d
pop ecx
call eax
mov dword [0x457ba4], eax
cmp eax, 0xffffffff
je 0x44779a
push 0x214
push 1
call fcn.00448a5c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x44779a
push esi
push dword [0x457ba4]
push dword [0x4676ec]
call fcn.0044728d
pop ecx
call eax
test eax, eax
je 0x44779a
push 0
push esi
call fcn.00447374
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x4477a1
call fcn.00447337
xor eax, eax
pop edi
pop esi
ret

Function at 0x448c50
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x448c61
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x448c5e
xor edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete dl
mov eax, edx
ret

Function at 0x448c80
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x448cba
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x448cb2
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x448cbc
inc edx
add eax, 0x28
cmp edx, esi
jb 0x448ca2
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x44a2b6
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x467878]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebx, ebx
xor esi, esi
push 2
pop ebp
cmp eax, ebx
jne 0x44a2ff
call edi
mov esi, eax
cmp esi, ebx
je 0x44a2e6
mov dword [0x467878], 1
jmp 0x44a308
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x44a2fa
mov eax, ebp
mov dword [0x467878], eax
jmp 0x44a2ff
mov eax, dword [0x467878]
cmp eax, 1
jne 0x44a38c
cmp esi, ebx
jne 0x44a31b
call edi
mov esi, eax
cmp esi, ebx
jne 0x44a31b
xor eax, eax
jmp 0x44a3e4
mov eax, esi
cmp word [esi], bx
je 0x44a330
add eax, ebp
cmp word [eax], bx
jne 0x44a322
add eax, ebp
cmp word [eax], bx
jne 0x44a322
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x44a381
push ebp
call fcn.00448a1c
pop ecx
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x44a381
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
jne 0x44a37d
push dword [esp + 0x10]
call fcn.004418e5
pop ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x44a3e4
cmp eax, ebp
je 0x44a394
cmp eax, ebx
jne 0x44a314
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x44a314
cmp byte [esi], bl
je 0x44a3b2
inc eax
cmp byte [eax], bl
jne 0x44a3a8
inc eax
cmp byte [eax], bl
jne 0x44a3a8
sub eax, esi
inc eax
mov ebp, eax
push ebp
call fcn.00448a1c
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x44a3d0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x44a314
push ebp
push esi
push edi
call fcn.00441d30
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x44b3d5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00447284
and dword [ebp - 4], 0
cmp dword [0x467880], 0
mov ebx, eax
jne 0x44b484
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44b535
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x44b535
push eax
call fcn.00447215
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x467880], eax
call esi
push eax
call fcn.00447215
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x467884], eax
call esi
push eax
call fcn.00447215
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x467888], eax
call esi
push eax
call fcn.00447215
pop ecx
mov dword [0x467890], eax
test eax, eax
je 0x44b484
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00447215
pop ecx
mov dword [0x46788c], eax
mov eax, dword [0x46788c]
cmp eax, ebx
je 0x44b4dc
cmp dword [0x467890], ebx
je 0x44b4dc
push eax
call fcn.0044728d
push dword [0x467890]
mov esi, eax
call fcn.0044728d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44b4dc
test edi, edi
je 0x44b4dc
call esi
test eax, eax
je 0x44b4d3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44b4d3
test byte [ebp - 0xc], 1
jne 0x44b4dc
or dword [ebp + 0x10], 0x200000
jmp 0x44b515
mov eax, dword [0x467884]
cmp eax, ebx
je 0x44b515
push eax
call fcn.0044728d
pop ecx
test eax, eax
je 0x44b515
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44b515
mov eax, dword [0x467888]
cmp eax, ebx
je 0x44b515
push eax
call fcn.0044728d
pop ecx
test eax, eax
je 0x44b515
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x467880]
call fcn.0044728d
pop ecx
test eax, eax
je 0x44b535
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44b537
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403610
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, eax
xor eax, eax
cmp ebx, eax
jne 0x403639
mov dword [edi + 8], eax
mov dword [edi + 4], eax
mov dword [edi], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push eax
push eax
push ebx
call fcn.0041a3f7
push ebx
call fcn.00419b71
add esp, 0x14
push 0
push 0
push 0
push ebx
mov esi, eax
mov dword [ebp - 4], edx
call fcn.0041a3f7
mov eax, dword [ebp - 4]
xor ecx, ecx
add esp, 0x10
cmp eax, ecx
jg 0x403685
jl 0x40366f
cmp esi, ecx
jae 0x403685
mov eax, 2
mov dword [edi], eax
mov dword [edi + 8], ecx
mov dword [edi + 4], ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, esi
jne 0x40368d
cmp ecx, eax
je 0x4036a3
mov eax, 3
mov dword [edi], eax
mov dword [edi + 8], ecx
mov dword [edi + 4], ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 2]
push eax
call dword [0x4af708]
mov ebx, eax
xor eax, eax
add esp, 4
cmp ebx, eax
jne 0x4036cd
mov dword [edi + 8], eax
mov dword [edi + 4], eax
mov dword [edi], 3
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
push ecx
push esi
push 1
push ebx
call fcn.0041a93a
add esp, 0x10
cmp eax, esi
je 0x403702
push ebx
call dword [0x4af70c]
add esp, 4
xor eax, eax
mov dword [edi + 8], eax
mov dword [edi + 4], eax
mov dword [edi], 2
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
xor eax, eax
call fcn.00401d10
add esp, 8
cmp eax, 2
je 0x403718
cmp eax, 3
jne 0x403724
shr esi, 1
xor edx, edx
mov word [ebx + esi*2], dx
lea esi, [esi + esi + 2]
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
push 1
push 1
push 0x74
push ecx
push ecx
mov ecx, eax
mov eax, esi
mov edx, ebx
call fcn.00403510
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408720
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
cmp dword [eax + 0x14], 8
push esi
jb 0x40872b
mov ecx, dword [eax]
jmp 0x40872d
mov ecx, eax
mov edx, dword [eax + 0x10]
lea edx, [ecx + edx*2]
mov eax, 0x811c9dc5
cmp ecx, edx
je 0x408752
lea esp, [esp]
movzx esi, word [ecx]
imul eax, eax, 0x1000193
add ecx, 2
xor eax, esi
cmp ecx, edx
jne 0x408740
and eax, 0x7fffffff
push 0x1f31d
push eax
call fcn.0041b27a
imul eax, eax, 0xb14
imul edx, edx, 0x41a7
add esp, 8
sub edx, eax
mov eax, edx
jns 0x40877c
add eax, 0x7fffffff
pop esi
ret
Function at 0x409c70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48869b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push esi
push edi
push 4
call fcn.00434624
lea eax, [ebp - 0x94]
push eax
call fcn.00434536
add esp, 8
mov dword [ebp - 4], 0
call fcn.00434631
dec eax
cmp eax, 3
ja case.default.0x409cbc
jmp dword [eax*4 + 0x409e40]
push str.Res_skin_uninst_
lea ecx, [ebp - 0x94]
call fcn.004313b0
lea ecx, [ebp - 0x94]
call fcn.0043133d
push eax
call fcn.004345dd
add esp, 4
jmp case.default.0x409cbc
push str.Res_skin_uninst_
lea ecx, [ebp - 0x94]
call fcn.004313b0
lea ecx, [ebp - 0x94]
call fcn.0043133d
push eax
call fcn.004345dd
add esp, 4
push 0x4a05ac
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
mov dword [eax], str.IDR_RES
call fcn.00409be0
mov ecx, eax
call fcn.0043e771
jmp case.default.0x409cbc
push str.Res_skin_uninst_
lea ecx, [ebp - 0x94]
call fcn.004313b0
lea ecx, [ebp - 0x94]
call fcn.0043133d
push eax
call fcn.004345dd
push str.skin_uninst
push 1
push str.skin_uninst.zip
call fcn.0043711c
add esp, 0x10
push 0
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
mov dword [eax], str.res.xml
call fcn.00409be0
mov ecx, eax
call fcn.0043e771
jmp case.default.0x409cbc
push str.Res_skin_uninst_
lea ecx, [ebp - 0x94]
call fcn.004313b0
lea ecx, [ebp - 0x94]
call fcn.0043133d
push eax
call fcn.004345dd
add esp, 4
push str.ZIPRES
push 0x68
call fcn.004345a3
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je case.default.0x409cbc
push esi
call fcn.004345a3
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x409e14
push esi
call fcn.004345a3
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x409e14
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.0043708e
add esp, 0xc
push 0
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
mov dword [eax], str.res.xml
call fcn.00409be0
mov ecx, eax
call fcn.0043e771
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.004311e9
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409e50
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push str.3uToolsUnInstaller
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp + 8]
push eax
call fcn.004345d0
add esp, 4
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test edi, edi
je 0x409f1d
test esi, esi
jne 0x409f1d
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x409f1d
call fcn.00409c70
push 0x938
call fcn.0041ad51
add esp, 4
test eax, eax
je 0x409f1d
push eax
call fcn.00406b20
mov esi, eax
test esi, esi
je 0x409f1d
push 0
push 0x190
push 0x1f4
push 0
push 0
push 0x60000
push 0x10cf0000
push str.3uToolsUnInstaller
push 0
mov ecx, esi
call fcn.00430de1
mov ecx, esi
call fcn.004308bb
push 5
mov ecx, esi
call fcn.00430771
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0043b1f2
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x409f50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409f68
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409f9a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x409f96
cmp esi, eax
jae 0x409f9a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x409f88
cmp esi, eax
jb 0x409fa0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x40a490
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a4ce
lea eax, [ebp - 0x22c]
push eax
push esi
mov dword [ebp - 0x22c], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40a4d5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea esp, [esp]
lea ecx, [ebp - 0x208]
push ecx
push ebx
call fcn.0041aed4
add esp, 8
test eax, eax
je 0x40a511
lea edx, [ebp - 0x22c]
push edx
push esi
call edi
test eax, eax
jne 0x40a4e0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a530
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
mov esi, eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x212]
push ecx
mov word [ebp - 0x214], ax
call fcn.00420c90
mov edx, dword [ebp + 8]
push esi
push edx
push str._s_s
lea edx, [ebp - 0x214]
mov dword [ebp - 8], 0xffffffff
call fcn.00408780
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x214]
push ecx
mov eax, esi
call fcn.0040a5d0
add esp, 0x20
test eax, eax
je 0x40a5c3
mov eax, dword [ebp - 8]
test eax, eax
je 0x40a5c3
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40a5bc
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xfa0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40a5d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x65c
push ebx
push esi
push edi
push 0
push 2
mov edi, eax
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a6fd
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40a621
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x34]
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a64d
test dx, dx
je 0x40a649
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a64d
add eax, 4
add ecx, 4
test dx, dx
jne 0x40a627
xor eax, eax
jmp 0x40a652
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40a65a
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40a621
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a6fd
lea edx, [esp + 0x240]
push edx
push esi
mov dword [esp + 0x248], 0x428
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x40a6fa
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x460]
jmp 0x40a6b0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a6d6
test dx, dx
je 0x40a6d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a6d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40a6b0
xor eax, eax
jmp 0x40a6db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40a6fa
mov eax, dword [esp + 0x248]
mov ecx, dword [ebp + 0xc]
push esi
mov dword [ecx], eax
call edi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bde0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00420c90
add esp, 0xc
mov ecx, 0x4b3520
call fcn.0043133d
lea edx, [ebp - 0x20c]
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40be20
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40be76
lea ecx, [ebp - 0x20c]
push ecx
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x40be6c
xor al, al
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret