joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489ab0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bad68
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5603e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x14], 0x80004005
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [str.LicensesED4B87C4_9F76_11d1_8BF7_0000F8754DA1]
push 0x2001f
push eax
push 0x80000000
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.00412570
test eax, eax
je 0x489bd8
mov esi, dword [ebp - 0x1c]
mov eax, dword [str.LicensesED4B87C4_9F76_11d1_8BF7_0000F8754DA1]
mov edi, eax
mov dword [ebp - 0x10], ebx
cmp esi, ebx
je 0x489b71
cmp dword [esi], ebx
je 0x489b65
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
jne 0x489b36
lea eax, [ebx + 1]
jmp 0x489b8e
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x489b6a
mov ecx, dword [esi]
push ebx
push ecx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push edi
push 0x80000000
call eax
jmp 0x489b8e
cmp dword [esi + 4], ebx
jne 0x489b71
mov eax, 1
jmp 0x489b8e
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x489bd8
mov ecx, dword [ebp - 0x24]
xor eax, eax
cmp ecx, ebx
je 0x489ba2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x10]
cmp eax, ebx
jne 0x489bdb
push str.knlggnmntgggrninthpgmnngrhqhnnjnslsh
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push str.knlggnmntgggrninthpgmnngrhqhnnjnslsh
push 1
push ebx
push 0x4c79ac
mov eax, esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
jne 0x489bdb
mov dword [ebp - 0x14], ebx
jmp 0x489bdb
mov esi, dword [ebp - 0x24]
cmp esi, ebx
je 0x489be6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48a9f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf9a6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x430], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x418], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
jne 0x48aa6d
call fcn.0046ead0
mov edi, eax
jmp 0x48ab52
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x48aa86
call fcn.0046ead0
jmp 0x48ab49
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x48aaa4
call fcn.0046ead0
jmp 0x48ab49
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x41c], edi
cmp eax, edi
jae 0x48aac5
mov edi, 0x8007000e
jmp 0x48ab4b
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00489db0
mov dword [ebp - 4], 1
jmp 0x48aafd
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x48ab0e
mov edi, 0x8007000e
jmp 0x48ab4b
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x48ab27
call fcn.0046ead0
jmp 0x48ab49
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x418]
push eax
push ecx
lea ecx, [ebp - 0x42c]
call fcn.0043f6b0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x48ab70
lea ecx, [ebp - 0x418]
call fcn.0043dc20
jmp 0x48ab70
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 0x10
Function at 0x48ba30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bfb36
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 3
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
push 1
call fcn.0043cd90
test eax, eax
js 0x48bc40
xor eax, eax
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48bac0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00405660
push 0xd
push str.logksomisc_
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0
call fcn.00409380
mov eax, dword [ebp - 0x234]
mov esi, 8
cmp dword [ebp - 0x220], esi
jae 0x48bb14
lea eax, [ebp - 0x234]
push eax
call fcn.004369d0
add esp, 4
test eax, eax
jns 0x48bb39
cmp dword [ebp - 0x220], esi
jb 0x48bc40
mov edx, dword [ebp - 0x234]
push edx
jmp 0x48bc38
push 0xb
push str.ksomisc.log
lea ecx, [ebp - 0x234]
call fcn.00409380
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 1
push 0
push 0xc
call fcn.0043baf0
test eax, eax
js 0x48bb21
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x250]
call fcn.00405cd0
push 0xa
push str._setup.cfg
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 1
call fcn.00409380
mov eax, dword [ebp - 0x250]
cmp dword [ebp - 0x23c], esi
jae 0x48bbb8
lea eax, [ebp - 0x250]
push eax
push 5
push str.loglevel
push str.ksomisctest
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x234]
cmp dword [ebp - 0x220], esi
jae 0x48bbdf
lea ecx, [ebp - 0x234]
push 3
push 0x10000001
push eax
push ecx
push 0x4d165c
call fcn.00487f30
add esp, 0x14
cmp dword [ebp - 0x23c], esi
jb 0x48bc0c
mov ecx, dword [ebp - 0x250]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], 0
mov word [ebp - 0x250], dx
cmp dword [ebp - 0x220], esi
jb 0x48bc40
mov eax, dword [ebp - 0x234]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
Function at 0x48e3e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor al, al
xor ecx, ecx
lea esp, [esp]
movzx edx, byte [ecx + esi + 1]
movzx ebx, byte [ecx + esi]
imul edx, edx, 0x9e3779b1
imul ebx, ebx, 0x9e3779b1
shr edx, 0x18
shr ebx, 0x18
xor dl, bl
add ecx, 2
xor al, dl
cmp ecx, 0xe
jl 0x48e3f0
pop esi
pop ebx
pop ebp
ret

Function at 0x490510
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa004
call fcn.004b14f0
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
push edi
mov edi, ecx
jne 0x490548
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 4
push 0xffffffffffffffff
push 0
push esi
lea ecx, [edi + 0x24]
call fcn.00405560
xor eax, eax
push 0x9ffe
push eax
lea ecx, [ebp - 0xa002]
push ecx
mov word [ebp - 0xa004], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x49057b
mov esi, dword [esi]
push esi
push 0x5000
lea edx, [ebp - 0xa004]
push edx
push 0x5312d8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
push eax
lea eax, [ebp - 0xa004]
push eax
mov ecx, edi
call fcn.00490250
mov ecx, dword [ebp - 4]
mov eax, 1
mov dword [edi + 0x20], eax
pop edi
xor ecx, ebp
pop esi
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 4
Function at 0x490650
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0100
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5603e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
lea edi, [esi + 4]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
lea ecx, [esi + 0x18]
mov dword [edi + 0x10], eax
call fcn.0048e6a0
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp ebx, 0xffffffff
je 0x4906e7
mov dword [ebp - 0x18], ebx
push 0
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x4906fd
test ebx, ebx
je 0x4906e7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push eax
call fcn.004b0bb6
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
push eax
mov byte [ebp - 4], 1
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add esp, 0x10
push 0
lea edx, [ebp - 0x1c]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x490764
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
mov edx, dword [ebp + 8]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
test ebx, ebx
je 0x49074e
push ebx
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.MSVCR100.dll_memcpy_s]
push 0x14
push eax
push 0x14
push edi
call ebx
mov eax, dword [esi + 0x14]
xor ecx, ecx
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b0bb6
mov ecx, dword [ebp + 8]
mov edi, eax
mov eax, dword [esi + 0x14]
add eax, eax
add eax, eax
add eax, eax
push eax
add ecx, 0x14
push ecx
push eax
push edi
mov dword [ebp - 0x10], edi
call ebx
xor ebx, ebx
add esp, 0x24
cmp dword [esi + 0x14], ebx
jbe 0x4907cc
push edi
lea ecx, [esi + 0x18]
call fcn.0048fab0
mov edx, dword [edi + 4]
inc ebx
mov dword [eax], edx
add edi, 8
cmp ebx, dword [esi + 0x14]
jb 0x4907b2
mov edi, dword [ebp - 0x10]
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp + 8]
push eax
mov dword [esi], 1
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp - 0x14]
add esp, 8
test eax, eax
je 0x4907f2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4908e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 1
lea eax, [ebp - 4]
push eax
push str.WPS_OFFICE_ROOT_DIR
call esi
test eax, eax
je 0x490914
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
push str.WPS_OFFICE_ROOT_DIR
call esi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push ebx
push edi
push eax
push esi
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.MSVCR100.dll_wcsrchr]
mov ebx, 2
push 0x5c
push esi
call edi
add esp, 8
test eax, eax
je 0x490945
xor ecx, ecx
mov word [eax], cx
dec ebx
jne 0x490934
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x490a10
Capabilities:
Hash data with md5

Disassembly:
mov eax, ecx
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x491330
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xb8], edi
cmp eax, edi
ja 0x491369
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x491360
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0xb4]
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xb4], 0x67452301
mov dword [ebp - 0xb0], 0xefcdab89
mov dword [ebp - 0xac], 0x98badcfe
mov dword [ebp - 0xa8], 0x10325476
call fcn.00491140
cmp byte [ebp - 0x4c], 0
jne 0x4913c3
lea ecx, [ebp - 0xb4]
mov byte [ebp - 0x4c], 1
call fcn.004911f0
push 0x40
lea ecx, [ebp - 0x46]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x48], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor esi, esi
lea edi, [ebp - 0x48]
lea ecx, [ecx]
movzx edx, byte [ebp + esi - 0x5c]
push edx
push str._02x
push edi
mov edx, 3
call fcn.004909f0
inc esi
add esp, 0xc
add edi, 4
cmp esi, 0x10
jl 0x4913e0
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
lea eax, [ebp - 0x48]
lea edx, [eax + 2]
jmp 0x491420
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x491420
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x48]
push ecx
mov ecx, ebx
call fcn.00405660
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
Function at 0x4921a0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea ecx, [esi*4 + 2]
mov eax, 0xaaaaaaab
mul ecx
push edi
mov edi, dword [ebp + 0x10]
shr edx, 1
push edx
mov ecx, edi
call fcn.00492130
mov eax, dword [ebp + 8]
mov edx, dword [edi]
mov bl, byte [eax]
lea ecx, [eax + esi]
mov dword [ebp - 4], edx
mov edi, eax
mov dword [ebp + 8], ecx
mov esi, 8
cmp eax, ecx
jae 0x492255
mov al, bl
cmp esi, 6
jbe 0x4921f1
and al, 0x3f
shr bl, 6
sub esi, 6
jmp 0x492227
inc edi
cmp edi, ecx
jae 0x4921fa
mov bl, byte [edi]
jmp 0x4921fc
xor bl, bl
mov edx, 6
sub edx, esi
mov byte [ebp + 0xf], bl
je 0x492224
mov cl, byte [edx*4 + 0x53137c]
and cl, bl
movzx ebx, cl
mov ecx, esi
shl bl, cl
mov cl, dl
or al, bl
mov bl, byte [ebp + 0xf]
shr bl, cl
mov ecx, dword [ebp + 8]
add esi, 2
cmp al, 0xa
jae 0x49222f
add al, 0x30
jmp 0x492248
cmp al, 0x24
jae 0x492237
add al, 0x37
jmp 0x492248
cmp al, 0x3e
jae 0x49223f
add al, 0x3d
jmp 0x492248
setne al
dec al
and al, 0xce
add al, 0x5f
mov edx, dword [ebp - 4]
mov byte [edx], al
inc edx
mov dword [ebp - 4], edx
cmp edi, ecx
jb 0x4921e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x494a20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
mov dword [ebp - 0x210], 0
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x533744
push 0x4d3a38
push 0x80000001
mov dword [ebp - 0x210], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
test eax, eax
je 0x494ab6
xor ecx, ecx
mov word [esi], cx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x210]
shr eax, 1
dec eax
push eax
lea eax, [ebp - 0x20c]
xor edx, edx
push eax
mov ecx, esi
mov word [esi], dx
call fcn.00405660
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
Function at 0x497ea0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c08a2
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x4c], eax
cmp byte [0x564b38], al
je 0x497f0b
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
mov byte [edi], al
mov eax, 0x564b38
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x497ef0
sub eax, edx
push eax
push 0x564b38
mov ecx, edi
call fcn.00485060
jmp 0x497ff6
push eax
push eax
push 0x564b38
push 0x4975c0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
push 0xbb8
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
neg esi
sbb esi, esi
push ebx
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp esi, eax
je 0x497f7e
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x48], al
mov eax, 0x564b38
mov dword [ebp - 0x34], 0xf
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x497f56
sub eax, edx
push eax
push 0x564b38
lea ecx, [ebp - 0x48]
call fcn.00485060
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 0
mov ebx, 2
jmp 0x497f9a
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 1
mov ebx, 4
xor esi, esi
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], esi
push eax
mov ecx, edi
mov dword [ebp - 0x4c], ebx
mov byte [edi], 0
call fcn.00485160
or ebx, 1
test bl, 4
je 0x497fdf
and ebx, 0xfffffffb
cmp dword [ebp - 0x18], 0x10
jb 0x497fd1
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
test bl, 2
je 0x497ff6
cmp dword [ebp - 0x34], 0x10
jb 0x497ff6
mov ecx, dword [ebp - 0x48]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
Function at 0x499bc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x499bdb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x499c12
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x499c0e
jmp 0x499c00
cmp esi, eax
jae 0x499c12
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x499c00
cmp esi, eax
jb 0x499c19
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x49a4b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0be8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x5603e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.0049a400
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], 0
call fcn.0049a0b0
lea edx, [ebp - 0x10]
mov esi, eax
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.0049a2d0
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
add esp, 0xc
lea ecx, [ebp - 0x18]
push ecx
or edx, 0x20019
push edx
push 0
push eax
push esi
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x49a58f
jle 0x49a536
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49a557
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49a57d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
lea edx, [ecx + ecx]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
lea edx, [ebp - 0x20]
push edx
push 0
push eax
push ecx
mov dword [ebp - 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x18]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x49a634
jle 0x49a5d9
and esi, 0xffff
or esi, 0x80070000
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49a5f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49a57d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49a653
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49a679
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret