joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b7786
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bbc6e
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x100e93e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov byte [ebp - 0x31], 0
push 0
lea eax, [ebp - 0x30]
push eax
call fcn.100b752f
pop ecx
pop ecx
and dword [ebp - 4], 0
or dword [ebp - 0x10], 0xffffffff
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x30]
call fcn.10004e3f
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x100b787a
push 1
lea eax, [ebp - 0x50]
push eax
call fcn.100b752f
pop ecx
pop ecx
lea eax, [ebp - 0x30]
push eax
call fcn.100b4e11
pop ecx
movzx eax, al
test eax, eax
jne 0x100b7851
lea eax, [ebp - 0x50]
push eax
call fcn.100b4e11
pop ecx
movzx eax, al
test eax, eax
je 0x100b7851
push 0
lea ecx, [ebp - 0x30]
call fcn.10004e3f
push eax
lea ecx, [ebp - 0x50]
call fcn.10004e3f
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x100b7851
lea ecx, [ebp - 0x50]
call fcn.10004e3f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x50]
call fcn.10004e3f
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x50]
call fcn.1000176a
cmp dword [ebp - 0x10], 0xffffffff
je 0x100b78c8
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0x10
jb 0x100b78bf
cmp dword [ebp - 0x54], 0xffffffff
je 0x100b78bf
push 0
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x54]
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100b78bf
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x54]
jne 0x100b78bf
mov byte [ebp - 0x31], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x31]
mov byte [ebp - 0x59], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.1000176a
mov al, byte [ebp - 0x59]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10070c21
leave
ret 4
Function at 0x100b7f51
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100e93e0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x21c], 0
mov eax, dword [0x10105850]
and eax, 1
jne 0x100b7f97
mov eax, dword [0x10105850]
or eax, 1
mov dword [0x10105850], eax
mov ecx, 0x1010584c
call fcn.10003c04
push 0x100c1c8f
call fcn.1007118b
pop ecx
mov ecx, 0x1010584c
call fcn.10003bee
movzx eax, al
test eax, eax
je 0x100b7fea
and word [ebp - 0x218], 0
push 0x20a
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.100738a0
add esp, 0xc
push 1
push 0x24
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
mov ecx, 0x1010584c
call fcn.10003cbb
push 0x1010584c
mov ecx, dword [ebp + 8]
call fcn.10003c1e
mov eax, dword [ebp - 0x21c]
or eax, 1
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10070c21
leave
ret

Function at 0x100b8015
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100e93e0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x21c], 0
mov eax, dword [0x10105858]
and eax, 1
jne 0x100b805b
mov eax, dword [0x10105858]
or eax, 1
mov dword [0x10105858], eax
mov ecx, 0x10105854
call fcn.10003c04
push 0x100c1c80
call fcn.1007118b
pop ecx
mov ecx, 0x10105854
call fcn.10003bee
movzx eax, al
test eax, eax
je 0x100b80ae
and word [ebp - 0x218], 0
push 0x20a
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.100738a0
add esp, 0xc
push 1
push 0x25
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
mov ecx, 0x10105854
call fcn.10003cbb
push 0x10105854
mov ecx, dword [ebp + 8]
call fcn.10003c1e
mov eax, dword [ebp - 0x21c]
or eax, 1
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10070c21
leave
ret
Function at 0x100b84d4
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 0x74
call fcn.100018a0
movzx eax, al
test eax, eax
jne 0x100b8503
push 4
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x74
call fcn.10004e3f
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
leave
ret 4
Function at 0x11528370
Capabilities:
Decompress data using aplib

Disassembly:
call 0x115284c0
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x11528396
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11528382
add dl, dl
jne 0x115283a1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x115283f4
xor eax, eax
add dl, dl
jne 0x115283ae
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11528495
add dl, dl
jne 0x115283bd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x115283c8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x115283d3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x115283de
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x115283ea
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1152838d
mov eax, 1
add dl, dl
jne 0x11528402
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1152840d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x115283f9
sub eax, ebx
mov ebx, 1
jne 0x11528440
mov ecx, 1
add dl, dl
jne 0x11528426
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x11528431
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1152841d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1152838d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x11528457
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x11528462
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1152844e
cmp eax, 0x7d00
jae 0x11528485
cmp eax, 0x500
jb 0x11528480
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1152838d
cmp eax, 0x7f
ja 0x11528488
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1152838d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x115284b6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1152838d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x406864
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406888
xor eax, eax
test eax, eax
je 0x40689b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40689b
xor ecx, ecx
jmp 0x40689e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4069c1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dac], 0
push esi
jne 0x4069f8
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4069d2
mov dword [ecx*4 + 0x427da8], eax
inc ecx
cmp ecx, 0x100
jl 0x4069cd
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a29
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427da8]
xor eax, esi
inc ecx
dec edx
jne 0x406a0b
pop edi
not eax
pop esi
ret 0xc

Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
add esp, 0xfffffffc
push esi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x4033fc], eax
mov eax, dword [ebp + 4]
mov dword [0x40323a], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401020
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x40323a]
mov dword [ebp - 0x48], eax
mov eax, 0x4016df
mov dword [ebp - 0x54], eax
mov ecx, str.Hello
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor ecx, ecx
push ecx
push dword [0x40323a]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.lukifas
push eax
mov eax, str.Hello
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403448], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403448]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x4010bc
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x4010b5
mov esp, ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x1000307e
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x100030b9
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x100030a0
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x100030b1
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x100030bb
inc edi
add eax, 0x28
cmp edi, esi
jb 0x10003096
xor eax, eax
pop edi
pop esi
ret

Function at 0x10003f8a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
test dword [esp + edi*8 - 0x39d30001], ebx
test dword [ebp + 0x26fffffc], ebx
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.1000304e
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10003003
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.1000303e
into
invalid

Function at 0x10003fa0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [esp + edi*8 - 0x39d30001], ebx
test dword [ebp + 0x26fffffc], ebx
Function at 0x49dc40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x95000]
push edi
or ebp, 0xffffffff
jmp 0x49dc62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x49dc69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x49dc58
mov eax, 1
add ebx, ebx
jne 0x49dc7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x49dc70
jne 0x49dc8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x49dc70
xor ecx, ecx
sub eax, 3
jb 0x49dca0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x49dd12
mov ebp, eax
add ebx, ebx
jne 0x49dcab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x49dcb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x49dcdc
inc ecx
add ebx, ebx
jne 0x49dcc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x49dcbd
jne 0x49dcd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x49dcbd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x49dcfc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x49dced
jmp 0x49dc5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x49dcfc
add edi, ecx
jmp 0x49dc5e
pop esi
mov edi, esi
mov ecx, 0xab6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x49dd1a
cmp byte [edi], 6
jne 0x49dd1a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x49dd1f
lea edi, [esi + 0x9b000]
mov eax, dword [edi]
or eax, eax
je 0x49dd8e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9d0f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9d1ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x49dd4c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9d1b0]
or eax, eax
je 0x49dd88
mov dword [ebx], eax
add ebx, 4
jmp 0x49dd69
call dword [esi + 0x9d1b4]
popal
jmp 0x4134f8
Function at 0x10185d4
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_malloc]
push edi
mov ebx, ecx
mov edi, 0x2000
push edi
mov dword [ebp - 0x18], ebx
call esi
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jne 0x1018604
mov eax, 0x8007000e
jmp 0x101876d
push eax
mov ecx, ebx
call fcn.010184db
test eax, eax
jge 0x1018617
mov edi, eax
jmp 0x101875d
lea eax, [ebp - 2]
push eax
push dword [ebp - 0x10]
call fcn.01018351
test eax, eax
jne 0x1018631
mov edi, 0x80020009
jmp 0x101875d
push edi
call esi
mov esi, eax
test esi, esi
pop ecx
mov dword [ebp - 0xc], esi
jne 0x1018648
mov edi, 0x8007000e
jmp 0x101875d
mov ecx, ebx
call fcn.010184b2
push esi
mov ecx, ebx
call fcn.010184db
test eax, eax
jl 0x1018753
movzx eax, word [ebp - 2]
sub eax, 8
je 0x1018738
sub eax, 9
je 0x101869b
dec eax
dec eax
jne 0x1018744
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push esi
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.01017ff2
jmp 0x1018744
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 8], eax
je 0x10186b3
mov edi, 0x80004005
jmp 0x1018755
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.01026f20
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, esp
mov dword [ebp - 4], edi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp esp, edi
je 0x10186a9
cmp dword [ebp - 8], edi
jle 0x101871f
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + edi*2]
push eax
call fcn.010183db
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x10186e9
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 4]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1018744
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
call fcn.01018015
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
call fcn.010184db
test eax, eax
jge 0x101876b
mov edi, eax
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, edi
jmp 0x101876d
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1018c8c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x108c0da
call fcn.01026ef8
sub esp, 0x218
mov eax, dword [0x10a1e18]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x214], esi
push 0x2001f
push eax
push dword [ebx]
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], esi
call fcn.01017fb6
cmp eax, esi
jne 0x1018d35
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1018cec
lea eax, [ebp - 0x210]
push eax
call fcn.01018c8c
cmp eax, esi
jne 0x1018d34
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x214]
je 0x1018cdc
call fcn.01017f43
push dword [ebp - 0x21c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.01017f43
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0101cf4f
leave
ret 4
Function at 0x101988a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
push 2
push 0
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 4], ebx
jne 0x10198dc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10198c7
call esi
mov esi, eax
jmp 0x10199a2
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10199a2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x10198fd
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x1019922
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1019910
call esi
jmp 0x1019997
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1019999
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov edi, esi
je 0x1019961
lea edi, [ebx + 1]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.01026f20
mov ecx, edi
mov edx, ecx
mov eax, esp
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], eax
mov byte [eax + ebx], 0
mov edi, esp
test edi, edi
jne 0x1019969
xor eax, eax
jmp 0x101998b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.01026f20
mov eax, esp
push esi
push edi
push eax
call fcn.01017e80
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push eax
call fcn.01019590
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x101d63f
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov esi, dword [ebp + 8]
push edi
call ebx
mov dword [ebp + 8], eax
xor edi, edi
push edi
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
jb 0x101d6fc
cmp eax, 0x80
jb 0x101d67f
lea ecx, [esi + 0x80]
cmp eax, ecx
jb 0x101d6fc
push 1
push edi
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x101d6a8
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x101d658
push 0x4ff
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov edi, eax
call ebx
cmp edi, esi
jb 0x101d6fa
cmp edi, 0x80
jb 0x101d6d5
lea ecx, [esi + 0x80]
cmp edi, ecx
jb 0x101d6fa
cmp edi, esi
jne 0x101d6fa
cmp dword [ebp + 0x10], 0xffffffff
je 0x101d653
sub eax, dword [ebp + 8]
cmp dword [ebp + 0x10], eax
jb 0x101d6f3
sub dword [ebp + 0x10], eax
jmp 0x101d653
mov eax, 0x102
jmp 0x101d6fc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x101e1e0
Capabilities:
Get common file path
Query environment variable
Set environment variable

Disassembly:
mov eax, 0x108c68b
call fcn.01026ef8
sub esp, 0x218
mov eax, dword [0x10a1e18]
push ebx
xor ebx, ebx
cmp dword [0x10a6a54], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x220], ebx
jne 0x101e2cd
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push edi
mov edi, 0x10a6a58
jmp 0x101e223
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push edi
call esi
test eax, eax
jne 0x101e21c
cmp dword [0x10a6a54], ebx
jne 0x101e2c7
push 0x10a6a34
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0xc
call fcn.0101d067
pop ecx
mov dword [ebp - 0x224], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x101e268
lea ecx, [ebp - 0x219]
push ecx
mov ecx, eax
call fcn.01044c50
jmp 0x101e26a
xor eax, eax
cmp eax, ebx
mov dword [0x10a6a30], eax
je 0x101e2bd
push 0x103
lea eax, [ebp - 0x218]
push eax
mov ebx, 0x1002ad0
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x101e2af
lea eax, [ebp - 0x218]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [0x10a6a54], 1
xor ebx, ebx
jmp 0x101e2c7
mov dword [ebp - 0x220], 0x8007000e
push ebx
push edi
call esi
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x220]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0101cf4f
leave
ret