joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1e662358
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x563e4ac5
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, 8
sub esp, 0x18
push esi
push edi
test eax, eax
jne 0x401a29
call fcn.00403710
jge 0x40161b
ror byte [ebx + 0x75c675ff], 0x89
inc dword [eax - 1]
mov ecx, dword [ebx - 0x7f00af83]
push edx
int3
inc eax
jne 0x401626
push eax
outsd dx, dword [esi]
add byte [eax], al
add byte [eax], al
mov dword [eax + 0x4f53e850], eax
inc eax
inc ebp
push eax
call 0x4580657f
invalid
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0xc], esi
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, eax
mov esi, dword [ebp + 0xc]
lodsb al, byte [esi]
inc ecx
test eax, eax
jne 0x401961
dec ecx
mov dword [ebp - 0x10], ecx
test ecx, ecx
jne 0x401edb
daa
push 4
push 1
push eax
call 0x4463fd
mov eax, dword [esi + 0x14]
push 3
push 1
push eax
call 0x4463fd
mov ecx, dword [esi + 0x14]
push 2
push 1
push ecx
call 0x4463fd
add esp, 0x24
mov eax, esi
pop esi
pop ebx
ret
mov edi, dword [0x4051a1]
push 0x10000
mov edx, dword [ebp + 8]
pop esi
mov eax, dword [0x40514a]
and edx, eax
mov eax, dword [edx]
cmp ax, di
je 0x401a4a
sub edx, esi
jmp 0x401a3f
mov dword [ebp - 8], edx
mov eax, edx
mov ecx, dword [eax + 0x3c]
add eax, 0x78
and ecx, 0xffff
add eax, ecx
mov eax, dword [eax]
mov esi, dword [ebp - 8]
push esi
add esi, eax
mov eax, dword [esi + 0x20]
pop edi
add edi, eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
jmp 0x401954
push dword [ebp - 0x14]
pop ecx
mov eax, dword [edi]
mov esi, dword [ebp - 8]
add esi, eax
xor eax, eax
push ecx
mov ecx, eax
push esi
add edi, 4
lodsb al, byte [esi]
add ecx, 1
test eax, eax
jne 0x401eef
dec ecx
pop esi
cmp ecx, dword [ebp - 0x10]
je 0x401f04
inc dword [ebp - 4]
pop ecx
loop 0x401edf
push esi
push dword [ebp + 0xc]
call fcn.00403710
test eax, eax
jne 0x401efe
je 0x403460
add dword [ebx + ecx - 0x73], esi
lea eax, [edi + edi*8 - 1]
invalid
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov ecx, dword [esi + 0x24]
add eax, eax
add ecx, dword [ebp - 8]
add ecx, eax
movzx eax, word [ecx]
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + eax]
add eax, ecx
test eax, eax
jne 0x4018e0
pop esi
and byte [eax + 0x68b105e], cl
cmp eax, ebx
je 0x40349d
push eax
call 0x469f09
add esp, 4
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
pop esi
pop ebx
ret
Function at 0x4034ea
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4046b8
push 0x403d84
push eax
mov eax, dword [0x4053e4]
mov dword fs:[0], esp
mov ecx, dword [sym.imp.CRTDLL.dll__fmode_dll]
sub esp, 0x6c
mov dword [ecx], eax
mov edx, dword [0x4053e0]
mov eax, dword [sym.imp.CRTDLL.dll__commode_dll]
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [eax], edx
call fcn.004019a0
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x2c]
push dword [0x4053dc]
push edx
push eax
lea ecx, [ebp - 0x30]
push ecx
call sub.CRTDLL.dll___GetMainArgs
add esp, 0x10
push 0x4040d8
push 0x4040d4
call sub.CRTDLL.dll__initterm
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [sym.imp.CRTDLL.dll__acmdln_dll]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x403585
mov al, byte [ebp - 0x34]
inc esi
mov al, byte [esi]
test al, al
je 0x40357d
cmp al, 0x22
jne 0x403572
cmp byte [esi], 0x22
jne 0x40358f
inc esi
jmp 0x40358f
cmp al, 0x20
jbe 0x40358f
inc esi
cmp byte [esi], 0x20
ja 0x403589
cmp byte [esi], 0
je 0x40359f
cmp byte [esi], 0x20
ja 0x40359f
inc esi
cmp byte [esi], 0
jne 0x403594
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x50], 1
mov eax, 0xa
je 0x4035bf
movzx eax, word [ebp - 0x4c]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call sub.CRTDLL.dll_exit
jmp 0x4035fb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x76af7926
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..rdata
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x580055a5
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x529489
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov ecx, dword [0x529028]
mov eax, dword [ecx + 0x3c]
push ebx
push esi
push edi
mov edi, dword [0x529024]
add eax, ecx
cmp dword [edi + 0x78], ecx
mov dword [ebp - 0x18], eax
je 0x529596
mov esi, dword [edi + 0x88]
test esi, esi
je 0x529596
add esi, ecx
jmp 0x52958a
and dword [ebp - 0x10], 0
lea eax, [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
sub eax, 8
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x529587
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
mov ebx, eax
and ebx, 0xfff
add ebx, dword [esi]
add ebx, ecx
shr eax, 0xc
mov dword [ebp - 0x20], ebx
je 0x52956c
cmp eax, 3
jne 0x52959e
mov eax, dword [ebx]
mov dword [ebp - 4], eax
mov eax, ecx
sub eax, dword [edi + 0x78]
add dword [ebp - 4], eax
cmp dword [ebp - 4], ecx
jb 0x52959e
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x50]
add eax, ecx
cmp dword [ebp - 4], eax
ja 0x52959e
lea eax, [ebp - 8]
push eax
push 0x40
push 4
pop esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cld
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [0x529028]
mov edi, dword [0x529024]
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 4]
add dword [ebp - 0xc], 2
inc dword [ebp - 0x10]
sub eax, 8
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x10], eax
jl 0x5294e1
add esi, dword [esi + 4]
cmp dword [esi], 0
mov dword [ebp - 0x14], esi
jne 0x5294c4
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x529599

Function at 0x5295a2
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x8c
push ebx
push esi
push edi
push 6
pop ecx
mov esi, 0x5290fc
lea edi, [ebp + 0x50]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp + 0x50]
movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5295c6
sub eax, edx
mov edx, eax
mov eax, dword [0x529024]
add eax, 0x34
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5295dc
sub eax, esi
mov ebx, eax
lea eax, [ebp + 0x50]
mov dword [ebp + 0x74], eax
lea eax, [ebp - 0x14]
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x70], edx
mov esi, dword [ebp + 0x74]
mov edi, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x70]
cld
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x529024]
add eax, 0x34
push ebx
push eax
lea eax, [ebp + edx - 0x14]
push eax
call fcn.0052941c
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0
add ebx, edx
push 0
mov byte [ebp + ebx - 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
pop edi
pop esi
pop ebx
je 0x529647
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x529647
xor eax, eax
inc eax
jmp 0x529649
xor eax, eax
add ebp, 0x78
leave
ret
Function at 0x4011f9
Capabilities:
Create directory

Disassembly:
push 8
mov eax, 0x47c7f4
call fcn.00477fa0
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40122c
xor esi, esi
inc esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00403c45
mov eax, esi
call fcn.0047803f
ret
mov eax, dword [0x4a444c]
mov ecx, 0x4a444c
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov ebx, 0x483bec
push ebx
xor ecx, ecx
lea esi, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0040313f
inc eax
mov ecx, eax
jmp 0x40128f
mov ecx, esi
lea edx, [ebp - 0x14]
lea eax, [ebp + 8]
call fcn.00403298
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00402ed6
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00403c45
mov edi, dword [ebp - 0x10]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esi + 1]
push ebx
lea esi, [ebp + 8]
call fcn.0040313f
mov esi, eax
cmp esi, 0xffffffff
jne 0x401258
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov esi, eax
neg esi
sbb esi, esi
lea eax, [edi - 0x10]
neg esi
call fcn.00403c45
jmp 0x401219

Function at 0x4017d6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 8
mov eax, 0x47c186
call fcn.00477fa0
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call esi
cmp eax, 0xffffffff
jne 0x40188c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 3
jne 0x401874
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jl 0x401888
push 0x483bf0
lea eax, [ebp - 0x14]
push eax
call fcn.00403b58
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.00403373
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00403c45
push dword [ebp - 0x10]
call esi
mov ebx, eax
call edi
mov dword [ebp - 0x14], eax
cmp ebx, 0xffffffff
je 0x401866
test bl, 0x10
jne 0x401866
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00403c45
xor eax, eax
inc eax
jmp 0x401897
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00403c45
mov eax, dword [ebp - 0x14]
cmp eax, 2
je 0x401888
cmp eax, 3
je 0x401888
cmp eax, 0x7b
je 0x401888
cmp eax, 0x35
jne 0x401861
xor eax, eax
jmp 0x401897
not al
movzx eax, al
shr eax, 4
and eax, 1
call fcn.0047803f
ret

Function at 0x40189d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push str.C:Program_Files
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401902
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0
push str.ProgramFilesDir
push dword [ebp - 4]
mov dword [ebp - 8], 0x400
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x402822
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x4a1060]
xor eax, ebp
mov dword [ebp + 0x198], eax
push ebx
push esi
mov esi, dword [ebp + 0x1a4]
push edi
mov edi, dword [ebp + 0x1a8]
xor ebx, ebx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], edi
cmp dword [0x4a24f4], ebx
je 0x402882
push str.Advapi32.dll
mov dword [0x4a24f4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x402882
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4a58f0], eax
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp + 0x1ac]
or eax, 8
push eax
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402901
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4028c3
push dword [ebp + 0x1ac]
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call fcn.00402822
add esp, 0xc
test eax, eax
jne 0x4028d2
push edi
lea eax, [ebp - 0x74]
push eax
push ebx
push dword [ebp - 0x78]
call esi
test eax, eax
je 0x4028aa
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4a58f0]
cmp eax, ebx
je 0x4028f5
push ebx
push dword [ebp + 0x1ac]
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
call eax
jmp 0x402901
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a985
add ebp, 0x19c
leave
ret
Function at 0x402d47
Capabilities:
Enumerate files on windows

Disassembly:
push 0x25c
mov eax, 0x47d570
call fcn.00478009
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x402d67
mov ecx, ebx
call fcn.004035ae
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00403bb0
add eax, 0x10
mov dword [ebp - 0x264], eax
push 0x5c
push 0x2f
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.00402f5b
push 0x5c
lea esi, [ebp - 0x264]
call fcn.00403170
mov ecx, eax
inc ecx
lea edx, [ebp - 0x268]
mov eax, esi
call fcn.00403298
mov edi, esi
mov byte [ebp - 4], 2
call fcn.00402ed6
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.00403c45
lea eax, [ebp - 0x260]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402e4f
test byte [ebp - 0x260], 0x10
jne 0x402e36
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x264]
call fcn.00403373
pop ecx
pop ecx
mov byte [ebp - 4], 3
push dword [ebx + 4]
mov eax, dword [eax]
push eax
mov edi, ebx
call fcn.0040360b
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x402e1f
mov dword [ecx], eax
jmp 0x402e21
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.00403c45
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402ddf
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
call fcn.00403c45
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00403c45
call fcn.00478053
ret

Function at 0x4037e0
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 0x4037f7
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40382c
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x403828
cmp edi, eax
jae 0x40382c
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40381a
cmp edi, eax
jb 0x403830
xor eax, eax
jmp 0x403839
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x404ac4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x404ad2
push 0xd
pop eax
jmp 0x404b05
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 0x404ad9
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 0x404f7b
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4a1060]
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.00404f3d
mov ebx, eax
cmp ebx, edi
je 0x404fe1
cmp dword [ebp - 0x214], edi
je 0x404fda
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x405079
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x405009
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.00404f7b
mov dword [ebp - 0x220], eax
cmp eax, edi
jne 0x40508a
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 0x404fe9
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], edi
je 0x405054
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], edi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], edi
call fcn.004050f7
mov esi, eax
cmp dword [ebp - 0x214], edi
je 0x405077
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.0045a985
leave
ret 4
cmp dword [ebp - 0x214], edi
je 0x40509e
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x405079

Function at 0x4050f7
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x4a5fcc], 0
jne 0x405127
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405120
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4a5fd0], eax
mov byte [0x4a5fcc], 1
mov eax, dword [0x4a5fd0]
test eax, eax
je 0x40513f
push 0
push dword [esi + 4]
push dword [esp + 0xc]
push dword [esi]
call eax
jmp 0x40514b
push dword [esp + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
ret 4
Function at 0x406ce9
Capabilities:
Copy file
Create process on windows

Disassembly:
push 0x10
mov eax, 0x47e2da
call fcn.00477fa0
mov edi, ecx
lea esi, [ebp - 0x18]
call fcn.0040178d
lea eax, [ebp - 0x14]
push str.xinsttemp.exe
xor ebx, ebx
lea ecx, [edi + 0x470]
push eax
mov dword [ebp - 4], ebx
call fcn.00403373
lea esi, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00402b0f
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00403322
mov eax, dword [ebp - 0x1c]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00403c45
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x406d7f
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00403c45
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00403c45
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00403c45
mov eax, ebx
call fcn.0047803f
ret
mov edi, dword [edi + 0x4a0]
push 5
push ebx
push edi
push dword [ebp - 0x10]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x406d56
xor ebx, ebx
inc ebx
jmp 0x406d56

Function at 0x40b0d2
Capabilities:
Identify system language via api

Disassembly:
push 0xc
mov eax, 0x47db41
call fcn.00477fa0
mov esi, ecx
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
je 0x40b1f7
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
mov eax, dword [0x4a444c]
mov ecx, 0x4a444c
mov dword [ebp - 0x14], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push ebx
push edi
mov dword [ebp - 4], ebx
call fcn.0040c0a0
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040b34f
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
je 0x40b151
push ecx
lea edi, [eax - 0x10]
mov eax, edi
mov dword [ebp - 0x18], esp
mov ebx, esp
call fcn.00403bb0
add eax, 0x10
mov dword [ebx], eax
call fcn.0040b24e
test eax, eax
je 0x40b14f
mov eax, edi
jmp 0x40b1f2
xor ebx, ebx
push 1
push dword [ebp - 0x14]
call fcn.0040c0a0
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040b34f
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], ebx
je 0x40b192
push ecx
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x18], esp
mov ebx, esp
call fcn.00403bb0
add eax, 0x10
mov dword [ebx], eax
call fcn.0040b24e
test eax, eax
jne 0x40b148
mov edi, dword [ebp - 0x10]
xor ebx, ebx
push ecx
mov eax, esp
mov dword [ebp - 0x18], esp
cmp dword [esi + 0x14], ebx
je 0x40b1aa
push 0x489c40
push eax
call fcn.00403b58
jmp 0x40b1ea
push 0x489c50
push eax
cmp dword [esi + 0x18], ebx
jne 0x40b1a3
call fcn.00403b58
call fcn.0040b24e
cmp eax, ebx
jne 0x40b1ef
cmp dword [esi + 8], ebx
ja 0x40b1d2
push 0x80070057
call fcn.00403c12
mov eax, dword [esi + 4]
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [ebp - 0x18], esp
mov ebx, esp
call fcn.00403bb0
add eax, 0x10
mov dword [ebx], eax
call fcn.0040b24e
lea eax, [edi - 0x10]
call fcn.00403c45
call fcn.0047803f
ret