joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fdb8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x467224]
cmp byte [eax + 0xc], 0
je 0x43ff25
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43ff1e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x468b94], 0
jne 0x43fe0c
push 0x43ff2c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43ff34
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468b94], eax
cmp dword [0x466b68], 0
jne 0x43ff07
push 0x43ff44
call sub.kernel32.dll_LoadLibraryA
mov dword [0x466b68], eax
cmp dword [0x466b68], 0
je 0x43ff07
push 0x43ff50
mov eax, dword [0x466b68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468b98], eax
push 0x43ff60
mov eax, dword [0x466b68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468b9c], eax
push 0x43ff74
mov eax, dword [0x466b68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468ba0], eax
push 0x43ff8c
mov eax, dword [0x466b68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468ba4], eax
push 0x43ffa4
mov eax, dword [0x466b68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468ba8], eax
push 0x43ffb8
mov eax, dword [0x466b68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468bac], eax
push 0x43ffd0
mov eax, dword [0x466b68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468bb0], eax
push 0x43ffe8
mov eax, dword [0x466b68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468bb4], eax
push 0x440004
mov eax, dword [0x466b68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468bb8], eax
push 0x440010
mov eax, dword [0x466b68]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x468bbc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ff25
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x443db0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403f20
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x443dff
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404190
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44b514
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44b564]
test si, 4
je 0x44b528
or bl, 1
test si, 8
je 0x44b532
or bl, 4
test si, 1
je 0x44b53c
or bl, 8
test si, 2
je 0x44b546
or bl, 0x10
test si, 0x10
je 0x44b550
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b55f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44b568
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44b5a0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b581
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b590
or bl, 4
test esi, 0x20000000
je 0x44b59b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x451c48
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x451c5a
add esp, 0xfffffff0
call fcn.004034f4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cb54
mov eax, dword [0x466ed4]
mov dword [eax + 4], ebx
mov dword [eax], 0x451fec
mov eax, dword [0x466ee0]
mov dword [eax + 4], ebx
mov dword [eax], 0x451ff8
mov eax, ebx
call fcn.00452004
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x414e28]
call fcn.004031a0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x414e28]
call fcn.004031a0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x414e28]
call fcn.004031a0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x414e28]
call fcn.004031a0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x414e28]
call fcn.004031a0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44e420
push eax
push 0
push 0
mov eax, dword [0x46702c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e5b0]
call fcn.0041fd24
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e5b0]
call fcn.0041fd24
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e5b0]
call fcn.0041fd24
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00452424
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452300
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452300
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452300
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x451d97
call fcn.0040354c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4520e4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45228f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x452270
mov dl, 1
mov eax, dword [0x415244]
call fcn.004031a0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f20
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45225f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00440118
test al, al
je 0x452252
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4522a0
lea eax, [ebp - 0x254]
call fcn.00408e60
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x452252
xor eax, eax
push ebp
push 0x45224b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4522d8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x452234
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404190
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x452234
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404190
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452252
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x452155
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00418d44
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452296
lea eax, [ebp - 0x260]
call fcn.00403f20
ret

Function at 0x452bc4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x468be0]
cmp byte [eax + 0xa5], 0
jne 0x452c35
cmp dword [0x468bf8], 0
jne 0x452bf6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x452b80
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x468bf8], eax
cmp dword [0x468bf4], 0
jne 0x452c11
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x468bf4], eax
cmp dword [0x468bfc], 0
jne 0x452c35
push esp
push 0
push 0
push 0x452b24
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x468bfc], eax
pop edx
ret
Function at 0x452d2c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x452d43
add esp, 0xfffffff0
call fcn.004034f4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cb54
mov eax, dword [0x467018]
cmp word [eax + 2], 0
jne 0x452d6b
mov eax, dword [0x467018]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00454404
mov eax, dword [0x4670c8]
cmp word [eax + 2], 0
jne 0x452d85
mov eax, dword [0x4670c8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004545fc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x414e28]
call fcn.004031a0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x414e28]
call fcn.004031a0
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41f090]
call fcn.0042642c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x452f0c
mov eax, dword [0x466f38]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004267fc
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x454b9c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x466f38]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c5ac
test eax, eax
je 0x452e7a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408854
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c5d4
test eax, eax
je 0x452e8e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404190
mov eax, dword [0x466e10]
cmp byte [eax], 0
jne 0x452ec2
mov eax, ebx
call fcn.00453034
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00454d78
mov eax, ebx
call fcn.0045573c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x452f02
call fcn.0040354c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4532b4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x468be0]
cmp dword [eax + 0x30], 0
je 0x45335e
cmp dword [ebx + 0x94], 0
jne 0x453358
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x453244
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x453358
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45331e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x453358
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004171b4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45332d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x453ec0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x453ef5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404010
jmp 0x453f02
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f74
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x454f54
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454f95
mov eax, esi
call fcn.0043b7d8
test al, al
je 0x454f95
mov eax, dword [ebx + 0x84]
call fcn.0043b500
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454f95
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043b500
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4614dc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x4615b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x78]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
dec eax
test eax, eax
jb 0x4615b4
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
add eax, dword [edx + 0x20]
mov edx, dword [ebp - 0x20]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
jne 0x4615ac
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
add eax, dword [edx + 0x24]
mov edx, dword [ebp - 0x20]
add edx, edx
add eax, edx
mov ax, word [eax]
mov word [ebp - 0x2e], ax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
movzx edx, word [ebp - 0x2e]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
jmp 0x4615b4
inc dword [ebp - 0x20]
dec dword [ebp - 0x38]
jne 0x461543
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4626e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
test dl, dl
je 0x4626fa
add esp, 0xfffffff0
call fcn.004034f4
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push 0x4627ec
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4627ca
mov dword [ebp - 0x1c], 0x105
mov eax, dword [ebp - 0x1c]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00406bd4
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x462828
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4627c1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x4627b8
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x4153f0]
call fcn.004191e4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00462844
mov eax, dword [ebp - 0x10]
call fcn.004031d0
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree_1
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x4627e2
call fcn.0040354c
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4017fa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401811
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401846
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401842
cmp edi, eax
jae 0x401846
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401834
cmp edi, eax
jb 0x40184a
xor eax, eax
jmp 0x401853
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x402a05
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x402a13
push 0xd
pop eax
jmp 0x402a46
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x402a1a
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x402e9b
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x42e070]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
push ecx
push dword [esi]
mov dword [ebp - 0x21c], ecx
xor edi, edi
or eax, 0x2001f
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
call fcn.00402e5d
mov ebx, eax
cmp ebx, edi
je 0x402f01
cmp dword [ebp - 0x214], edi
je 0x402efa
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x402f99
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x402f29
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.00402e9b
mov dword [ebp - 0x220], eax
cmp eax, edi
jne 0x402faa
lea eax, [ebp - 0x228]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call ebx
test eax, eax
je 0x402f09
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], edi
je 0x402f74
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], edi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], edi
call fcn.00403017
mov esi, eax
cmp dword [ebp - 0x214], edi
je 0x402f97
push dword [ebp - 0x214]
call ebx
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041110d
leave
ret 4
cmp dword [ebp - 0x214], edi
je 0x402fbe
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x402f99

Function at 0x403017
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x4306d0], 0
jne 0x403047
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403040
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4306d4], eax
mov byte [0x4306d0], 1
mov eax, dword [0x4306d4]
test eax, eax
je 0x40305f
push 0
push dword [esi + 4]
push dword [esp + 0xc]
push dword [esi]
call eax
jmp 0x40306b
push dword [esp + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
ret 4
Function at 0x403eb3
Capabilities:
Identify system language via api

Disassembly:
push 0
mov eax, 0x4246f4
call fcn.0041fef5
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 4], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [edi + 0x28]
mov dword [edi + 0x20], vtable.IArkEvent.0
push eax
mov dword [edi], vtable.CMainDlg.0
mov dword [edi + 0x20], vtable.CMainDlg.1.0
call fcn.0040ce04
lea eax, [edi + 0x1e8]
call fcn.004091a8
lea esi, [edi + 0x268]
call fcn.00401c52
lea eax, [edi + 0x270]
or dword [eax + 0x14], 0xffffffff
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], 0x1f4
mov dword [eax + 0x10], ebx
lea eax, [edi + 0x288]
or dword [eax + 4], 0xffffffff
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov byte [ebp - 4], 5
mov dword [edi + 0x248], ebx
mov dword [edi + 0x24c], ebx
mov dword [edi + 0x250], ebx
mov dword [edi + 0x264], ebx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
xor edx, edx
mov ecx, 0x412
cmp ax, cx
sete dl
push 0x6b
push dword [0x42f9ac]
mov dword [0x4305d8], edx
call esi
push 0x82
mov dword [edi + 0x25c], eax
push dword [0x42f9ac]
call esi
mov dword [edi + 0x260], eax
cmp dword [0x4305d8], ebx
jne 0x403f9c
call fcn.0040f38a
mov eax, edi
call fcn.0041ff94
ret 4
Function at 0x4046be
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4247df
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x42e070]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [0x42f98c]
mov ecx, 0x42f98c
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
lea edi, [ebx + 4]
xor esi, esi
lea ecx, [esp + 0x14]
mov eax, edi
mov dword [esp + 0x80], esi
call fcn.004050e6
push 0x3eb
push dword [edi]
mov dword [ebx + 0x248], 1
mov dword [ebx + 0x250], esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push esi
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov dword [ebx + 0x264], eax
call fcn.00404643
push dword [esp + 0x14]
lea edi, [ebx + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
test eax, eax
jne 0x40479f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
cmp eax, 0x17
je 0x40486a
cmp eax, 0x59
je 0x40486a
cmp eax, esi
je 0x40486a
mov eax, 0x42970c
cmp dword [0x4305d8], esi
jne 0x404793
mov eax, str.Bandizip_SFX
push esi
push eax
push str.ERR_ERROR_OCCURRED
jmp 0x40484c
mov eax, dword [ebx + 0x268]
cmp dword [eax - 0xc], esi
je 0x40481c
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x40
lea eax, [esp + 0x34]
push esi
push eax
call fcn.00413c20
mov eax, dword [ebx + 0x268]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x30]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push esi
mov dword [esp + 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x404802
push dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esp + 0x20]
call edi
jmp 0x40481c
mov eax, dword [ebx + 0x268]
push 5
push dword [esp + 0x18]
push esi
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebx + 0x26c], esi
je 0x404833
push esi
push esi
push 0x10
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40486a
mov eax, 0x42970c
cmp dword [0x4305d8], esi
jne 0x404845
mov eax, str.Bandizip_SFX
push esi
push eax
push str.MSG_COMPLETED
call fcn.0040105d
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
mov edi, eax
call fcn.00401bca
push dword [ebx + 4]
call fcn.0040f44c
add esp, 0x10
push 1
call fcn.00404643
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [ebx + 0x248], esi
call fcn.00401c3a
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret