joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408280
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x453358]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4082d8
push 0x228
lea eax, [esp + 0x10]
push edi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4082f1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00434fc4
add esp, 0x230
ret
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll__wcsicmp]
push ebp
mov ebp, dword [sym.imp.MSVCR90.dll_wcsstr]
nop
lea edx, [esp + 0x34]
push str.360Inst.exe
push edx
call ebx
add esp, 8
test eax, eax
je 0x408326
lea eax, [esp + 0x34]
push 0x43982c
push eax
call ebp
add esp, 8
test eax, eax
je 0x408327
inc edi
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x408300
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x23c]
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00434fc4
add esp, 0x230
ret

Function at 0x408970
Capabilities:
Delete file
Move file

Disassembly:
push esi
push 0x8007
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push fcn.00408090
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4089ac
call fcn.0041e660
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4089a5
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
push 1
call edx
mov dword [esi + 0x10], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4089e0
push edi
call fcn.004312c0
mov ecx, dword [esi + 0x14]
call fcn.00431580
mov edi, dword [esi + 0x14]
test edi, edi
je 0x4089d8
mov ecx, edi
call fcn.00431ac0
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x14], 0
pop edi
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x408a02
call fcn.0041b440
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4089fb
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0x18], 0
lea ecx, [esi + 0x30]
call fcn.0042ef30
call fcn.00424d40
mov eax, dword [eax + 0x18]
call eax
push 0xdc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x453968
call fcn.00420820
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x408a44
mov ecx, dword [esi + 4]
push 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
ret
Function at 0x408e10
Capabilities:
Create process on windows
Initialize iwebbrowser2

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x435bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x453358]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x80c]
push 0x7fe
xor ebx, ebx
lea ecx, [ebp + 2]
xor eax, eax
push ebx
push ecx
mov word [ebp], ax
call sub.MSVCR90.dll_memset
push esi
push 0x43986c
lea edx, [ebp]
push 0x800
push edx
call dword [sym.imp.MSVCR90.dll__snwprintf]
add esp, 0x1c
push 5
push ebx
push 0x43becc
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x408fa4
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [ebp - 0x14]
push ecx
push 0x43b498
push 0x15
push ebx
push 0x43b4a8
mov byte [ebp - 4], 2
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x408f13
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x408eea
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.00434fc4
add ebp, 0x804
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x94]
call eax
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x408f42
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [ebp - 0x18]
push 3
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408f47
sub eax, edx
sar eax, 1
je 0x408f88
push esi
lea ecx, [ebp - 0x3c]
call fcn.00408a60
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0xd0]
lea ecx, [ebp - 0x28]
push ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push eax
mov byte [ebp - 4], 3
call edx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x408fa4
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, 1
jmp 0x408eec
Function at 0x409ca0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x2004]
mov eax, 0x2004
call fcn.004350b0
push 0xffffffffffffffff
push 0x435cc8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x453358]
xor eax, ebp
mov dword [ebp + 0x2000], 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 [0x4444f4]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
xor ecx, ecx
push 0xffe
push ecx
lea edx, [ebp + 2]
push edx
mov dword [ebp - 4], 0
mov word [ebp], cx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp + 0x1000]
push ecx
push 0
push 0x439a78
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp + 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x800
lea ecx, [ebp + 0x1000]
push str.360net.dll
push ecx
call dword [sym.imp.MSVCR90.dll_wcsncat]
add esp, 0xc
lea edx, [ebp + 0x1000]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push esi
lea ecx, [ebp - 0x14]
call fcn.00408db0
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x409d9b
lea ebx, [esi + esi]
lea eax, [ebx + 2]
cmp eax, ebx
jb 0x409d92
push ebx
lea ecx, [ebp + 0x1000]
push ecx
push edi
call sub.MSVCR90.dll_memcpy
add esp, 0xc
xor edx, edx
mov dword [edi - 8], esi
mov word [ebx + edi], dx
mov edi, dword [edi - 8]
push edi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00408cc0
push eax
push str.HttpDownLib
push 0xe4
call fcn.0040b000
add esp, 0xc
test eax, eax
jne 0x409de9
mov eax, dword [ebp - 0x14]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4444f0]
je 0x409e43
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x409e43
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
jmp 0x409e43
mov edi, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
lea esi, [edi + 4]
push edx
mov ecx, esi
call fcn.00409500
mov eax, dword [esi]
mov ecx, dword [edi + 0x18]
push eax
call fcn.0041bb70
test al, al
mov eax, dword [ebp - 0x14]
je 0x409dc5
lea edx, [eax - 0xc]
cmp edx, dword [0x4444f0]
je 0x409e2e
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x409e2e
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, 1
jmp 0x409e45
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2000]
xor ecx, ebp
call fcn.00434fc4
add ebp, 0x2004
mov esp, ebp
pop ebp
ret
Function at 0x40a080
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x435d06
mov eax, dword fs:[0]
push eax
sub esp, 0x924
mov eax, dword [0x453358]
xor eax, esp
mov dword [esp + 0x920], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x453358]
xor eax, esp
push eax
lea eax, [esp + 0x938]
mov dword fs:[0], eax
mov edi, dword [esp + 0x948]
xor ebx, ebx
mov eax, 0x5c
mov dword [esp + 0x18], ecx
mov word [esp + 0x478], ax
mov dword [esp + 0x47c], ebx
mov dword [esp + 0x480], ebx
push edi
lea ecx, [esp + 0x7a8]
push str._s.
push ecx
mov dword [esp + 0x94c], ebx
call fcn.00407f00
add esp, 0xc
lea edx, [esp + 0x7a4]
push edx
lea ecx, [esp + 0x24]
call fcn.00408730
test eax, eax
je 0x40a284
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x480]
jmp 0x40a130
mov ecx, dword [esp + 0x47c]
cmp ecx, ebx
jne 0x40a13f
xor esi, esi
jmp 0x40a15c
cmp eax, ebx
jne 0x40a147
xor esi, esi
jmp 0x40a193
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [esp + 0x480], eax
mov esi, eax
cmp eax, ebx
je 0x40a193
mov ecx, dword [esp + 0x20]
shr ecx, 4
and ecx, 1
je 0x40a193
cmp word [esp + 0x4c], 0x2e
jne 0x40a193
mov cx, word [esp + 0x4e]
cmp cx, bx
je 0x40a27c
cmp cx, 0x2e
jne 0x40a193
cmp word [esp + 0x50], bx
je 0x40a27c
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
call fcn.0040a010
push 0xc8
mov ecx, eax
mov byte [esp + 0x944], 1
call fcn.00408cc0
lea edx, [esp + 0x614]
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
cmp cx, bx
jne 0x40a1c0
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
mov byte [esp + 0x940], bl
cmp ecx, dword [0x4444f0]
je 0x40a205
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40a205
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
cmp dword [esp + 0x480], ebx
je 0x40a24d
mov eax, dword [esp + 0x20]
shr eax, 4
and eax, 1
cmp eax, ebx
je 0x40a24d
lea eax, [esp + 0x614]
push eax
push edi
lea ecx, [esp + 0x48c]
push str._s_s
push ecx
call fcn.00407f00
mov ecx, dword [esp + 0x28]
add esp, 0x10
lea edx, [esp + 0x484]
push edx
call fcn.0040a080
jmp 0x40a275
lea eax, [esp + 0x614]
push eax
push edi
lea ecx, [esp + 0x48c]
push str._s_s
push ecx
call fcn.00407f00
add esp, 0x10
lea edx, [esp + 0x484]
push edx
call ebp
mov eax, dword [esp + 0x480]
cmp esi, ebx
jne 0x40a130
mov eax, dword [esp + 0x47c]
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x480], ebx
cmp eax, ebx
je 0x40a2ab
cmp eax, 0xffffffff
je 0x40a2ab
push eax
call esi
mov dword [esp + 0x47c], ebx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x47c]
mov dword [esp + 0x480], ebx
cmp eax, ebx
je 0x40a2cc
cmp eax, 0xffffffff
je 0x40a2cc
push eax
call esi
mov eax, 1
mov ecx, dword [esp + 0x938]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x920]
xor ecx, esp
call fcn.00434fc4
add esp, 0x930
ret 4
Function at 0x40a300
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x435d58
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x453358]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x14]
call fcn.00409f80
mov eax, dword [0x4444f4]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x14], eax
mov bl, 1
push 0xba
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], bl
call fcn.00409a10
push 0x439a9c
push 0x439a9c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea ecx, [esp + 0x18]
call fcn.00408620
mov esi, dword [esp + 0x14]
mov ecx, dword [esi - 8]
push esi
push ecx
lea ecx, [esp + 0x18]
call fcn.00408620
mov eax, dword [edi + 0x14]
lea edx, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.0040e7e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.0040e830
lea ecx, [esp + 0x18]
mov edi, eax
mov byte [esp + 0x2c], bl
call fcn.0040e780
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [esi - 0xc]
cmp ecx, dword [0x4444f0]
je 0x40a3dc
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x40a3dc
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x10]
lea edx, [eax - 0xc]
cmp edx, dword [0x4444f0]
je 0x40a405
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x40a405
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret
Function at 0x40a900
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x435e78
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x453358]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
call fcn.00408210
test eax, eax
jne 0x40aa36
mov ecx, dword [ebx + 0x14]
call fcn.00430990
test eax, eax
jne 0x40aa36
lea eax, [esp + 0x18]
push eax
push 4
push ebx
xor edi, edi
push 0x40a8e0
push edi
push edi
mov dword [esp + 0x30], edi
call dword [sym.imp.MSVCR90.dll__beginthreadex]
mov esi, eax
add esp, 0x18
cmp esi, edi
je 0x40aa1f
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov dword [esp + 0x14], edi
lea esp, [esp]
push 0x14
call ebx
lea ecx, [esp + 0x14]
push ecx
push esi
call ebp
cmp dword [esp + 0x14], 0x103
jne 0x40aa14
inc edi
cmp edi, 0x32
jl 0x40a990
push esi
lea ecx, [esp + 0x24]
call fcn.00425490
mov ecx, 0x453828
mov dword [esp + 0x6c], 0
call fcn.00408080
mov ecx, eax
call fcn.004307d0
add eax, 4
push eax
lea ecx, [esp + 0x24]
call fcn.00425040
mov ecx, eax
call fcn.00409500
push 0xec54
lea ecx, [esp + 0x24]
call fcn.004250c0
push 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [esp + 0x28]
call fcn.00409eb0
lea ecx, [esp + 0x20]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004251a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x20]
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov ecx, ebx
call fcn.0040a5e0
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
Function at 0x40b000
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x435f3b
mov eax, dword fs:[0]
push eax
mov eax, 0x1285c
call fcn.004350b0
mov eax, dword [0x453358]
xor eax, esp
mov dword [esp + 0x12858], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x453358]
xor eax, esp
push eax
lea eax, [esp + 0x12870]
mov dword fs:[0], eax
mov eax, dword [esp + 0x12884]
mov ebp, dword [esp + 0x12888]
push eax
movzx eax, word [esp + 0x12884]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40b154
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40b154
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x18], eax
lea eax, [esi*4]
push eax
mov dword [esp + 0x18], eax
call fcn.004330c4
add esp, 4
lea ecx, [esp + 0x20]
mov edi, eax
call fcn.00410180
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push edi
push esi
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x12888], 0
call fcn.00410660
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 1
push 0
push 1
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or ebp, 0xffffffff
cmp esi, ebp
jne 0x40b10b
lea ecx, [esp + 0x20]
mov dword [esp + 0x12878], ebp
call fcn.0041c990
xor eax, eax
jmp 0x40b159
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x20]
push eax
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x12878], ebp
call fcn.0041c990
mov eax, 1
mov ecx, dword [esp + 0x12870]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x12858]
xor ecx, esp
call fcn.00434fc4
add esp, 0x12868
ret

Function at 0x40b5f0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x40b610
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x40b624
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc
Function at 0x40b650
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x40b666
lea eax, [ebp + 0xd]
pop ebp
pop ecx
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40b673
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8

Function at 0x40bd00
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x453358]
xor eax, esp
mov dword [esp + 0x220], eax
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [esp + 0x14]
push esi
xor edi, edi
or eax, 0x2001f
push eax
push edi
push edx
push ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
cmp esi, edi
jne 0x40bd76
xor eax, eax
cmp ecx, edi
je 0x40bd64
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], edi
mov esi, eax
mov dword [esp + 0xc], ecx
cmp eax, edi
je 0x40bd84
cmp ecx, edi
je 0x40be22
push ecx
jmp 0x40be1c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push edi
push edi
push edi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
push ecx
mov dword [esp + 0x38], pe_nt_image_headers32
call esi
test eax, eax
jne 0x40bdec
lea esp, [esp]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x10]
call fcn.0040bd00
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x40be3b
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x10]
push edi
push edi
push edi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edi
push edx
mov dword [esp + 0x38], pe_nt_image_headers32
call esi
test eax, eax
je 0x40bdb0
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x40bdff
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx]
push eax
push ecx
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x40be22
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00434fc4
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0xc]
cmp ecx, edi
je 0x40be24
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00434fc4
mov esp, ebp
pop ebp
ret 4
Function at 0x40d5c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x436120
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x453358]
xor eax, ebp
mov dword [ebp + 0x404], 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 + 0x410]
mov edi, dword [ebp + 0x414]
mov ebx, dword [ebp + 0x418]
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp], 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 - 0x1c], esi
test esi, esi
jne 0x40d642
call fcn.0040b470
mov edi, eax
jmp 0x40d724
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40d65b
call fcn.0040b470
jmp 0x40d71b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x40d676
call fcn.0040b470
jmp 0x40d71b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x18], edi
cmp eax, edi
jae 0x40d6ac
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40d69a
lea ecx, [ebp]
call fcn.0040bca0
lea ecx, [ebp - 0x20]
call fcn.0040bc30
mov eax, 0x8007000e
jmp 0x40d736
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.0040c610
mov dword [ebp - 4], 1
jmp 0x40d6d8
mov eax, dword [ebp]
test eax, eax
jne 0x40d6e6
mov edi, 0x8007000e
jmp 0x40d71d
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40d6ff
call fcn.0040b470
jmp 0x40d71b
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040d370
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x40d734
lea ecx, [ebp]
call fcn.0040bca0
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 + 0x404]
xor ecx, ebp
call fcn.00434fc4
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10