joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c990
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 0x46cb3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46cb1c
mov dl, 1
mov eax, dword [0x419408]
call fcn.00403c54
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404a6c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46cb0b
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.00459f00
test al, al
je 0x46cafe
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, 0x46cb4c
lea eax, [ebp - 0x254]
call fcn.0040b628
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46cafe
xor eax, eax
push ebp
push 0x46caf7
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 0x46cb84
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46cae0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404cec
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 0x46cae0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404cec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46cafe
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46ca01
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041da88
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 0x46cb42
lea eax, [ebp - 0x260]
call fcn.00404a6c
ret

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

Disassembly:
push ecx
mov eax, dword [0x497bc4]
cmp byte [eax + 0xa5], 0
jne 0x46d4f5
cmp dword [0x497bdc], 0
jne 0x46d4b6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46d440
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x497bdc], eax
cmp dword [0x497bd8], 0
jne 0x46d4d1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x497bd8], eax
cmp dword [0x497be0], 0
jne 0x46d4f5
push esp
push 0
push 0
push 0x46d3e4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x497be0], eax
pop edx
ret
Function at 0x46db80
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x497bc4]
cmp dword [eax + 0x30], 0
je 0x46dc2a
cmp dword [ebx + 0x94], 0
jne 0x46dc24
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46db10
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46dc24
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 0x46dbea
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46dc24
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.0041b5f4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46dbf9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46e78c
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 0x46e7c1
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.00404b5c
jmp 0x46e7ce
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404ac0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46f8c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46f901
mov eax, esi
call fcn.0045557c
test al, al
je 0x46f901
mov eax, dword [ebx + 0x84]
call fcn.00455278
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46f901
push 0
mov eax, dword [ebx + 0x84]
call fcn.00455278
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x471614
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x471874
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x471677
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004710dc
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040f01c
cmp al, 1
jne 0x471677
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004713f4
test al, al
je 0x471803
cmp dword [ebp - 8], 0
jge 0x471695
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004710dc
mov eax, dword [ebp - 0x210]
call fcn.00404d3c
cmp ebx, eax
jge 0x4716df
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004710dc
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x496694]
and eax, 0xff
bt dword [edx], eax
jae 0x4716df
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4716f3
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004715f0
cmp ebx, dword [ebp - 8]
je 0x4717f5
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x47171f
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403e8c
and eax, 0x7f
movzx eax, word [eax*2 + 0x496078]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4717e2
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403e8c
and eax, 0x7f
movzx eax, word [eax*2 + 0x496078]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00455278
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403e8c
and eax, 0x7f
movzx eax, word [eax*2 + 0x496078]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00455278
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4717e9
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x471856
cmp dword [ebp - 8], 0
jge 0x47180e
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004710dc
mov eax, dword [ebp - 0x218]
call fcn.00404d3c
cmp eax, dword [ebp - 8]
jg 0x471848
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004710dc
mov eax, dword [ebp - 0x21c]
call fcn.00404d3c
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004715f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47187b
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404a90
ret
Function at 0x47c374
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x418570]
call fcn.004057d0
xor eax, eax
push ebp
push 0x47c4b8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x496084], 0
jne 0x47c3c7
mov ecx, dword [0x496220]
mov dl, 1
mov eax, dword [0x409470]
call fcn.0040e6cc
call fcn.00404464
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403304
mov eax, ebx
call fcn.004053f0
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x47c4c8
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406810
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00405400
test eax, eax
jle 0x47c45f
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x47c458
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404d04
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404cec
mov eax, dword [ebp - 0x48]
pop edx
call fcn.0040a414
test eax, eax
jne 0x47c458
mov ebx, 0x15
jmp 0x47c464
mov ebx, 0x10
jmp 0x47c464
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x496084]
call fcn.0047c2cc
mov eax, dword [ebp - 8]
call fcn.0047c2cc
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406828
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c4bf
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404a90
lea eax, [ebp - 0x10]
mov edx, dword [0x418570]
call fcn.004058a0
ret

Function at 0x480cac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
xor esi, esi
mov eax, ebx
call fcn.00407df4
cmp ax, 0xffff
jne 0x480ccd
neg ebx
mov eax, ebx
shr eax, 4
and eax, 0xffff
inc eax
and ebx, 0xf
push 6
push eax
push edi
call sub.kernel32.dll_FindResourceA
test eax, eax
je 0x480d59
push eax
push edi
call sub.kernel32.dll_LoadResource
mov edi, eax
test edi, edi
je 0x480d59
push edi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
mov eax, ebx
dec eax
test eax, eax
jl 0x480d1a
inc eax
mov edx, dword [ebp - 8]
movzx edx, word [edx]
add edx, edx
add edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 8], edx
dec eax
jne 0x480d06
mov eax, dword [ebp - 8]
movzx esi, word [eax]
add dword [ebp - 8], 2
cmp dword [ebp - 4], 0
je 0x480d59
cmp dword [ebp + 8], 0
jle 0x480d59
mov eax, dword [ebp + 8]
dec eax
mov edx, esi
call fcn.0042e288
mov esi, eax
test esi, esi
jle 0x480d50
mov ecx, esi
add ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00407e08
mov eax, dword [ebp - 4]
mov word [eax + esi*2], 0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x481a50
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x481ab4
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404cec
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040aa64
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481abb
lea eax, [ebp - 0xc]
call fcn.00404a6c
ret

Function at 0x481b3c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x481b98
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x481b67
call fcn.0040fad8
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.00402ce8
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x481b98
call fcn.0040fad8
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x488f78
Capabilities:
Set global application hook

Disassembly:
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
push 0x488f18
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x497f9c], eax
cmp dword [0x497f9c], 0
jne 0x488f9f
call fcn.0040fad8
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004051c4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x48b03b
push 0x200
lea edx, [ebp - 0x202]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00405358
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48b040
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, eax
push 2
movzx eax, bx
push eax
call sub.user32.dll_MapVirtualKeyW
pop ebx
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x43b644
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
sub edx, edx
sub eax, edx
call fcn.0043b677
or edx, edx
and eax, eax
xor dword [ecx], ebx
or eax, edx
mov eax, eax
add edx, 0xec111e3b
inc ecx
sub edx, 0x9f4e9a50
sub edx, edx
cmp ecx, esi
jne fcn.0043b644
add eax, edx
and eax, eax
ret
Function at 0x715d4084
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
cmp dword [ebp + 0xc], 0xe
push esi
mov esi, dword [ebp + 0x10]
push edi
jne 0x715d4117
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
jle 0x715d4117
push 4
lea eax, [ebp - 8]
push dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [ebp - 7], 0x3a
jne 0x715d4117
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x715d4117
push dword [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10c]
push eax
call edi
mov eax, dword [esi + 4]
test eax, eax
je 0x715d40eb
cmp byte [eax], 0
je 0x715d40eb
push eax
jmp 0x715d40ee
push dword [esi + 0x10]
lea eax, [ebp - 0x10c]
push eax
call fcn.715e1804
lea eax, [ebp - 0x10c]
push eax
call fcn.715e17e6
test eax, eax
je 0x715d4117
push dword [esi + 0xc]
push dword [ebp + 0x14]
call edi
push 4
pop eax
jmp 0x715d4127
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x715e44d8]
pop edi
pop esi
leave
ret 0x10

Function at 0x715d418a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
mov esi, dword [ebp + 8]
push edi
and byte [esi], 0
cmp word [0x715e4520], 3
jb 0x715d41b7
push dword [ebp + 0xc]
push esi
push 0x715d1500
call ebx
test eax, eax
jne 0x715d4201
push 0x715d14f0
push 0x715d14c4
push 0x715d14bc
push dword [ebp + 0xc]
push esi
call fcn.715d7920
test eax, eax
je 0x715d4206
cmp word [0x715e4520], 2
jb 0x715d4201
and byte [ebp - 8], 0
xor eax, eax
lea edi, [ebp - 7]
push 5
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
push 0x715d14b0
call ebx
test eax, eax
je 0x715d4201
mov al, byte [ebp - 8]
test al, al
je 0x715d4201
mov byte [esi], al
push 1
pop eax
jmp 0x715d4208
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x715d420f
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [ebp + 0x10]
or dword [ebp - 4], 0xffffffff
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [ebp - 8], 0x80004005
je 0x715d4231
mov dword [eax], esi
lea eax, [ebp - 0x110]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, edi
ja 0x715d4314
lea eax, [ebp - 0x110]
push eax
call fcn.715d7586
test eax, eax
jne 0x715d426a
lea eax, [ebp - 0x110]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push esi
push 0x715d1518
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x715d4314
mov eax, 0x715d1510
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, esi
je 0x715d4314
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, esi
je 0x715d4314
push dword [ebp + 0xc]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x715d4314
lea eax, [ebp - 0xc]
push esi
push eax
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x715d4314
mov ecx, dword [ebp - 0xc]
cmp ecx, ebx
jne 0x715d4314
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x715d4311
mov dword [eax], ecx
mov dword [ebp - 8], esi
cmp dword [ebp - 4], 0xffffffff
je 0x715d4323
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x715d44be
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp dword [ebp + 0x18], 0xfbc1
push esi
push edi
mov dword [ebp - 4], ebx
ja 0x715d44ee
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ebx, eax
jmp 0x715d45a6
mov eax, dword [0x715d1564]
mov esi, 0x715d1558
lea edi, [ebp - 0x18]
mov dword [ebp - 0xc], eax
movsd dword es:[edi], dword [esi]
mov eax, dword [0x715d1568]
push 0x400
movsd dword es:[edi], dword [esi]
push 0x40
mov dword [ebp - 8], eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
je 0x715d4544
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x40000000
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x14], eax
jne 0x715d4548
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x715d45a8
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x715d4596
mov eax, dword [ebp + 0x10]
push eax
cmp byte [eax], 0x22
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
jne 0x715d456a
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea eax, [ebp - 4]
push ebx
push eax
push esi
push edi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor ebx, ebx
cmp esi, dword [ebp - 4]
sete bl
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x715d473f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push edi
lea eax, [ebp - 0x10c]
push 0x715d15a8
push eax
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call fcn.715e1804
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20019
push ebx
push ebx
lea eax, [ebp - 0x10c]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x715d47ca
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
push ebx
push ebx
push 0x715d1594
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x715d47c0
cmp byte [esi], bl
je 0x715d47c0
push 1
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 0xc
Function at 0x715d4903
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x715d1614
call fcn.715dd74c
pop ecx
lea eax, [ebp - 4]
pop ecx
mov byte [ebp - 0x108], bl
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.715d420f
mov esi, eax
cmp esi, ebx
jl 0x715d499a
push dword [ebp - 4]
lea eax, [ebp - 0x108]
push dword [ebp + 8]
push eax
call fcn.715d45af
mov esi, eax
cmp esi, ebx
jl 0x715d499a
cmp dword [ebp + 0x10], ebx
je 0x715d4979
push dword [ebp - 4]
lea eax, [ebp - 0x108]
push dword [ebp + 0x10]
push dword [ebp + 8]
push eax
call fcn.715d467e
mov esi, eax
cmp esi, ebx
jl 0x715d499a
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
call fcn.715d47d2
mov esi, eax
cmp byte [ebp - 0x108], bl
je 0x715d49af
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push dword [ebp + 0xc]
push 0x715d15ec
call fcn.715dd74c
add esp, 0xc
mov eax, esi
pop esi
pop ebx
leave
ret 0xc