joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001beb
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1007e83d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1020
call fcn.10061440
push ebx
push edi
mov eax, dword [0x100a82b0]
xor eax, esp
push eax
lea eax, [esp + 0x1030]
mov dword fs:[0], eax
mov eax, dword [esi + 0x38]
xor ebx, ebx
cmp dword [ebp + 8], eax
jne 0x10001dcf
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [esi + 0x38], ebx
mov byte [esp + 0xe], bl
call fcn.10016053
cmp dword [eax + 0x11c], ebx
sete al
cmp al, bl
sete byte [esp + 0xf]
cmp byte [esi + 0x40], bl
jne 0x10001dbb
cmp byte [esp + 0xf], bl
jne 0x10001d50
mov edi, 0x1000
push edi
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.1005c860
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push edi
lea eax, [esp + 0x34]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x10001dd4
mov eax, dword [esp + 0x28]
shr eax, 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1038], ebx
mov edi, dword [esi + 0x2c]
lea eax, [esp + 0x18]
call fcn.10039d88
cmp al, bl
jne 0x10001cd0
push 0x8007000e
call fcn.10002a17
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
mov edi, dword [esp + 0x18]
cmp ecx, ebx
jbe 0x10001cf4
mov eax, edi
sub edx, edi
mov dword [esp + 0x10], ecx
mov ecx, dword [edx + eax]
mov dword [eax], ecx
add eax, 4
dec dword [esp + 0x10]
jne 0x10001ce6
xor eax, eax
cmp dword [esp + 0x1c], ebx
jbe 0x10001d3d
cmp eax, dword [esp + 0x1c]
jae 0x10001db1
mov ecx, dword [edi + eax*4]
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x14], ebx
jbe 0x10001d36
mov edx, dword [esp + 0x10]
cmp dword [esp + edx*4 + 0x2c], ecx
je 0x10001d2d
inc dword [esp + 0x10]
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x10], edx
jb 0x10001d13
jmp 0x10001d36
mov eax, dword [esp + 0x1c]
mov byte [esp + 0xe], 1
inc eax
cmp eax, dword [esp + 0x1c]
jb 0x10001d06
or dword [esp + 0x1038], 0xffffffff
cmp edi, ebx
je 0x10001d50
push edi
call fcn.1005a0d8
pop ecx
cmp byte [esi + 0x40], bl
jne 0x10001dbb
cmp byte [esp + 0xf], bl
jne 0x10001dbb
cmp byte [esp + 0xe], bl
jne 0x10001dbb
call fcn.10016053
push eax
call fcn.1001af74
push ebx
test al, al
jne 0x10001dbc
push ebx
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
push eax
mov edi, str.CAPIMessageWindow_calling_PostQuitMessage
call fcn.100022a8
push ebx
push 0x13
push ecx
mov dword [esp + 0x1050], 1
call fcn.10016053
or dword [esp + 0x1050], 0xffffffff
pop ecx
mov ecx, eax
call fcn.1001ae54
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x10001dcf
push 0x80070057
jmp 0x10001ccb
push ebx
push 0xbb8
push 0xa
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
xor eax, eax
mov ecx, dword [esp + 0x1030]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10001f1b
Capabilities:
Create thread

Disassembly:
push 0x2c
mov eax, 0x1007c00a
call fcn.10063ebe
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
push ecx
mov byte [ebp - 4], 1
mov eax, esp
mov dword [ebp - 0x18], esp
push eax
mov edi, 0x10095ad4
call fcn.100022a8
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x14], esp
mov esi, esp
call fcn.1000296d
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 1
call fcn.1000782d
add esp, 0xc
cmp dword [ebp - 0x24], 5
jb 0x10002052
cmp dword [ebp - 0x24], ebx
ja 0x10001f90
push 0x80070057
call fcn.10002a17
mov esi, dword [ebp - 0x28]
mov eax, dword [esi]
sub eax, 0x10
call fcn.1000296d
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x24], 1
jbe 0x10001f86
push dword [esi + 4]
call fcn.10059e1b
cmp dword [ebp - 0x24], 2
pop ecx
mov edi, eax
jbe 0x10001f86
push dword [esi + 8]
call fcn.10059e1b
cmp dword [ebp - 0x24], 3
pop ecx
mov dword [ebp - 0x18], eax
jbe 0x10001f86
push dword [esi + 0xc]
call fcn.10059e1b
cmp dword [ebp - 0x24], 4
pop ecx
jbe 0x10001f86
mov ecx, dword [esi + 0x10]
mov esi, dword [ebp - 0x18]
add eax, edi
push ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], eax
call fcn.10059e1b
add eax, esi
pop ecx
mov dword [ebp - 0x2c], eax
call fcn.10016053
mov edi, eax
add edi, 0x60
lea esi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 8
movsd dword es:[edi], dword [esi]
call fcn.10059e60
mov esi, eax
pop ecx
cmp esi, ebx
je 0x10002024
call fcn.10002a02
mov edi, esi
jmp 0x10002026
xor edi, edi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
lea eax, [ebp - 0x14]
call fcn.100022f6
push ebx
push ebx
push edi
push 0x10002112
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.100029ea
lea esi, [ebp - 0x28]
call fcn.100025d5
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.100029ea
xor eax, eax
call fcn.10063f96
ret 8

Function at 0x10002670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100026c7
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x100026b9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x100026b5
cmp edi, eax
jae 0x100026b9
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x100026a7
cmp edi, eax
jb 0x100026bd
xor eax, eax
jmp 0x100026c6
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x100039e4
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push 0x128
mov eax, 0x1007bc64
call fcn.10063f27
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x128], esi
cmp byte [eax + 0x40], 0
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x134], ebx
je 0x10003a1a
push str.DownloadManagerXMLLog
jmp 0x10003a1f
push str.SDKXMLLog
push ecx
call fcn.100027a0
push ebx
mov edi, str.__xml_version_1.0____r_n
call fcn.100022a8
mov dword [ebp - 4], esi
xor esi, esi
push str._session__r_n
inc esi
push ebx
mov dword [ebp - 0x128], esi
call fcn.100040d1
push 0x80
lea eax, [ebp - 0x114]
push eax
push 0x59
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov eax, dword [0x100aa3bc]
mov ecx, 0x100aa3bc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 4], esi
call fcn.100087a7
pop ecx
mov edi, eax
mov byte [ebp - 4], 2
call fcn.10016053
lea esi, [ebp - 0x11c]
call fcn.1001b5ef
mov dword [ebp - 0x12c], eax
mov byte [ebp - 4], 3
call fcn.10016053
lea esi, [ebp - 0x130]
call fcn.1001a3a9
lea ecx, [ebp - 0x114]
push ecx
mov ecx, dword [ebp - 0x12c]
mov byte [ebp - 4], 4
push dword [edi]
push dword [ecx]
push dword [eax]
lea eax, [ebp - 0x118]
push 0x10095fec
push str._clientv__s__clientv__r_n_sessionid__s__sessionid__r_n_ProductID__s__ProductID__r_n_cltzone__s__cltzone__r_n_oslang__s__oslang__r_n
call fcn.100027be
mov eax, dword [ebp - 0x130]
add esp, 0x18
add eax, 0xfffffff0
call fcn.100029ea
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
call fcn.100029ea
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x120]
add eax, 0xfffffff0
call fcn.100029ea
push ebx
lea eax, [ebp - 0x118]
call fcn.100040b9
mov eax, dword [ebp - 0x124]
add eax, 0x28
push ebx
call fcn.100040b9
push str.__session_
push ebx
call fcn.100040d1
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
call fcn.100029ea
mov eax, ebx
call fcn.10063faa
ret 4
Function at 0x10003c3a
Capabilities:
Enumerate processes
Get process image filename

Disassembly:
push 0x25c
mov eax, 0x1007bbee
call fcn.10063f27
mov edi, ecx
lea ebx, [edi + 0x4c]
mov eax, dword [ebx]
xor esi, esi
mov dword [ebp - 0x258], edi
cmp eax, esi
je 0x10003c65
push eax
call fcn.1005a0d8
pop ecx
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x260], esi
mov dword [ebp - 0x25c], esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x248], eax
mov eax, dword [0x100aa3bc]
mov ecx, 0x100aa3bc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x248], esi
je 0x10003cee
mov eax, 0x104
push eax
push eax
lea esi, [ebp - 0x24c]
call fcn.100028e3
push eax
push dword [ebp - 0x248]
call sub.PSAPI.DLL_GetProcessImageFileNameW
call fcn.1000292d
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea eax, [ebp - 0x24c]
call fcn.1000411c
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x23c]
push esi
push eax
call fcn.1005c860
add esp, 0xc
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x250]
mov dword [ebp - 0x240], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10003de9
lea eax, [ebp - 0x248]
push eax
lea edi, [ebp - 0x21c]
call fcn.100022a8
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.1000411c
lea eax, [ebp - 0x254]
push 0x10094c6c
push eax
lea ecx, [ebp - 0x248]
call fcn.10004145
pop ecx
pop ecx
push dword [eax]
lea esi, [ebp - 0x24c]
call fcn.100040ef
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x254]
setne byte [ebp - 0x241]
add eax, 0xfffffff0
call fcn.100029ea
cmp byte [ebp - 0x241], 0
je 0x10003db5
push dword [ebp - 0x238]
mov eax, ebx
call fcn.10002597
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x248]
add eax, 0xfffffff0
call fcn.100029ea
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x250]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10003d40
mov edi, dword [ebp - 0x258]
xor esi, esi
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0x48]
cmp eax, esi
je 0x10003e06
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push esi
push 0x64
push 0xb
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [edi + 0x48], eax
mov eax, dword [ebp - 0x24c]
add eax, 0xfffffff0
call fcn.100029ea
call fcn.10063faa
ret 4
Function at 0x10003ecf
Capabilities:
Get graphical window text
Open clipboard
Write clipboard data

Disassembly:
push 0x10
mov eax, 0x1007b502
call fcn.10063ebe
mov ebx, ecx
mov eax, dword [0x100aa3bc]
mov ecx, 0x100aa3bc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
xor esi, esi
push 0x3f9
mov dword [ebp - 4], esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push esi
push 0xe
push eax
mov dword [ebp - 0x14], eax
call edi
mov dword [ebp - 0x18], eax
inc eax
push eax
lea esi, [ebp - 0x10]
call fcn.100028e3
push eax
push dword [ebp - 0x18]
push 0xd
push dword [ebp - 0x14]
call edi
call fcn.1000292d
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne al
test al, al
je 0x10003fe0
call dword [sym.imp.USER32.dll_EmptyClipboard]
and dword [ebp - 0x18], 0
push 0xfde9
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
mov dword [ebp - 0x1c], eax
call fcn.1000296d
add eax, 0x10
mov dword [esi], eax
call fcn.10006e80
mov esi, dword [ebp - 0x18]
add esp, 0xc
lea edi, [esi + 1]
push edi
push 2
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x10003f9d
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0x1c]
jmp 0x10003fe6
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push edi
push eax
call fcn.1005a1db
mov eax, dword [ebp - 0x1c]
add esp, 0xc
push ebx
mov byte [eax + esi], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp - 0x14], 0
je 0x10003fe0
push dword [ebp - 0x14]
call fcn.1005a1d0
pop ecx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.100029ea
xor eax, eax
call fcn.10063f96
ret
Function at 0x10003ff3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push 0x3f9
push dword [eax + 4]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100040ac
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x18]
push ebx
push edi
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10059bd9
mov edi, eax
xor eax, eax
mov word [edi], ax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x1c]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
pop ecx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
xor ebx, ebx
push ebx
push 0x44b
push dword [ebp - 4]
mov dword [ebp - 0x10], edi
call esi
cmp eax, ebx
jle 0x10004082
push 5
push ebx
push ebx
push edi
push 0x10094dc4
xor ecx, ecx
push ebx
mov word [edi + eax*2], cx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
call fcn.1005a1d0
or dword [ebp - 8], 0xffffffff
or dword [ebp - 0xc], 0xffffffff
pop ecx
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x437
push dword [ebp - 4]
call esi
mov ecx, dword [ebp + 8]
xor eax, eax
inc eax
pop edi
mov dword [ecx], eax
pop ebx
jmp 0x100040b4
mov eax, dword [ebp + 8]
and dword [eax], 0
xor eax, eax
pop esi
leave
ret 4

Function at 0x100046b3
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0xa
push ebx
push edi
jne 0x1000470f
push dword [esi + 0x28]
mov edi, dword [sym.imp.USER32.dll_KillTimer]
push dword [esi + 4]
call edi
and dword [esi + 0x28], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [sym.imp.USER32.dll_SetTimer]
cmp eax, dword [esi + 0x30]
je 0x100046ff
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x100046f1
push eax
push dword [esi + 4]
call edi
push 0
push 0x64
push 0xb
push dword [esi + 4]
call ebx
mov dword [esi + 0x2c], eax
push 0
push 0x64
push 0xa
push dword [esi + 4]
call ebx
mov dword [esi + 0x28], eax
jmp 0x1000476d
cmp dword [ebp + 8], 0xb
jne 0x1000476d
push dword [esi + 0x2c]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
and dword [esi + 0x2c], 0
push 1
call ebx
mov edi, 0x8000
mov ecx, edi
and ax, cx
cmp ax, cx
je 0x1000475b
push 2
call ebx
mov ecx, edi
and ax, cx
cmp ax, di
je 0x1000475b
push 1
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x1000476d
push 0
push 0x64
push 0xb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0xc]
pop edi
mov dword [eax], 1
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x10004a78
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x10004a86
push 0xd
pop eax
jmp 0x10004ab9
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 0x10004a8d
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 0x10004abd
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x100a82b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
mov dword [ebp - 0x21c], eax
xor esi, esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.1000445a
mov ebx, eax
cmp ebx, esi
je 0x10004b28
lea esi, [ebp - 0x214]
call fcn.1000448d
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10059ccb
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x10004b46
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.10004abd
cmp eax, esi
jne 0x10004b8e
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], pe_nt_image_headers32
call ebx
test eax, eax
je 0x10004b30
lea esi, [ebp - 0x214]
call fcn.1000448d
push dword [ebp - 0x21c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea esi, [ebp - 0x214]
mov edi, eax
call fcn.1000448d
mov eax, edi
jmp 0x10004b17
Function at 0x10004f4b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1007b937
call fcn.10063f5d
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x10004fa3
call fcn.100048de
mov esi, eax
jmp 0x100050bc
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x10004fbc
call fcn.100048de
jmp 0x100050ae
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x10004fb2
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x10005012
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10005008
lea eax, [ebp - 0x418]
call fcn.10006d75
mov eax, 0x8007000e
jmp 0x100050d7
push 2
push eax
mov byte [ebp - 4], 2
call fcn.10006dd5
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x10005036
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.10006d9b
jmp 0x10005042
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
jmp 0x10005060
cmp dword [ebp - 0x418], esi
jne 0x1000506f
mov esi, 0x8007000e
jmp 0x100050b0
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x10004fb2
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.100059df
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100050d5
lea eax, [ebp - 0x418]
call fcn.10006d75
mov eax, esi
call fcn.10063fb9
ret 0xc
Function at 0x100071d8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc
mov eax, 0x1007a278
call fcn.10063ebe
movzx eax, word [ebp + 8]
mov esi, dword [0x100aa3e8]
push 0x10093704
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [ebp + 8]
push ecx
push eax
xor edi, edi
push ebx
lea esi, [ebp - 0x18]
mov dword [ebp + 8], edi
call fcn.1003a18a
add esp, 0xc
cmp eax, edi
jne 0x10007250
push 0x30
call fcn.10059e60
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
cmp eax, edi
je 0x10007250
push ebx
push dword [ebp + 8]
mov ebx, esi
push eax
call fcn.1003a114
mov edi, eax
mov eax, edi
call fcn.10063f96
ret

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x1000770a
xor al, al
pop ebp
ret
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push 1
call esi
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
mov ebx, eax
call esi
cmp ebx, 0xffffffff
je 0x10007736
test bl, 0x10
jne 0x10007736
xor eax, eax
inc eax
jmp 0x10007738
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
push ebx
jne 0x100077a1
xor bl, bl
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.100029ea
mov al, bl
pop ebx
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
push 1
call esi
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
mov ebx, eax
call esi
pop edi
pop esi
cmp ebx, 0xffffffff
je 0x1000778f
test bl, 0x10
je 0x1000778f
mov bl, 1
jmp 0x10007791
Function at 0x1000795a
Capabilities:
Get common file path
Query environment variable

Disassembly:
push 8
mov eax, 0x1007bb7e
call fcn.10063ebe
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x100aa3bc]
mov ecx, 0x100aa3bc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x104
lea esi, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.100028e3
push eax
push ebx
push ebx
push 0x801a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
setge byte [ebp - 0xd]
call fcn.1000292d
cmp byte [ebp - 0xd], bl
jne 0x100079e2
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebx
push ebx
push 0x10093738
call edi
push eax
push eax
call fcn.100028e3
push eax
push 0x10093748
call edi
mov edi, eax
call fcn.1000292d
mov eax, dword [ebp - 0x14]
cmp edi, ebx
jbe 0x10007a40
cmp dword [eax - 0xc], ebx
je 0x10007a40
push str.OpenCandy
lea eax, [ebp - 0x14]
push eax
call fcn.100040d1
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], ebx
je 0x10007a15
push 0x10093770
lea eax, [ebp - 0x14]
push eax
call fcn.100040d1
mov eax, dword [ebp + 0xc]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
call fcn.1000419a
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
mov eax, esi
call fcn.1000296d
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.100029ea
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.100029ea
mov eax, edi
jmp 0x10007a66
add eax, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.100029ea
push dword [ebp + 8]
mov edi, str.C:OpenCandy
call fcn.100022a8
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.100029ea
mov eax, dword [ebp + 8]
call fcn.10063f96
ret