joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001440
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x10027074]
xor eax, esp
mov dword [esp + 0x218], eax
xor eax, eax
cmp eax, 0x1002305c
je 0x1000154b
test esi, esi
je 0x1000154b
push edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x1e]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 1
mov word [esp + 0x20], cx
call fcn.10012ec0
push 0x1002305c
push str.SOFTWARERising_s
mov eax, 0x104
lea edi, [esp + 0x28]
call fcn.10001330
add esp, 0x14
lea eax, [esp + 4]
push eax
push 0x20019
push 0
mov ecx, edi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10001521
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
push esi
lea eax, [esp + 0x14]
push eax
push 0
push 0x10022fd0
push ecx
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100014f4
sub eax, edx
sar eax, 1
je 0x10001516
push 0x10022fcc
mov edx, 0x104
mov edi, esi
call fcn.100013e0
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea edx, [eax + 2]
pop edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001527
sub eax, edx
sar eax, 1
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.1000a328
add esp, 0x21c
ret
mov ecx, dword [esp + 0x218]
xor ecx, esp
xor eax, eax
call fcn.1000a328
add esp, 0x21c
ret

Function at 0x10001570
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x10027074]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
or esi, 0xffffffff
mov word [esp + 0x10], ax
call fcn.10012ec0
xor edx, edx
add esp, 0xc
cmp edx, str.RAV.INI
je 0x10001644
mov eax, str.RAV.INI
lea edx, [eax + 2]
jmp 0x100015c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100015c0
sub eax, edx
sar eax, 1
cmp eax, 2
jb 0x10001644
lea esi, [esp + 4]
call fcn.10001440
mov ecx, 0x104
mov eax, esi
cmp word [eax], 0
je 0x100015f4
add eax, 2
sub ecx, 1
jne 0x100015e4
jmp 0x10001614
test ecx, ecx
je 0x10001614
mov eax, 0x104
sub eax, ecx
mov edx, 0x104
sub edx, eax
lea ecx, [esp + eax*2 + 4]
mov eax, str.RAV.INI
call fcn.10001390
lea eax, [esp + 4]
push eax
push 0x200
push str.LOGSIZE
push str.DEBUG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.1000a328
add esp, 0x20c
ret
mov ecx, dword [esp + 0x20c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1000a328
add esp, 0x20c
ret
Function at 0x10001660
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x424
mov eax, dword [0x10027074]
xor eax, esp
mov dword [esp + 0x420], eax
push ebp
mov ebp, dword [esp + 0x42c]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x226]
push ecx
mov dword [esp + 0x10], 0xffffffff
mov word [esp + 0x228], ax
call fcn.10012ec0
xor edx, edx
add esp, 0xc
cmp edx, str.RAV.INI
je 0x100017e4
mov eax, str.RAV.INI
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100016c0
sub eax, edx
sar eax, 1
cmp eax, 2
jb 0x100017e4
push esi
lea esi, [esp + 0x220]
call fcn.10001440
mov eax, esi
mov ecx, 0x104
pop esi
lea ecx, [ecx]
cmp word [eax], 0
je 0x10001700
add eax, 2
sub ecx, 1
jne 0x100016f0
jmp 0x10001723
test ecx, ecx
je 0x10001723
mov eax, 0x104
sub eax, ecx
mov edx, 0x104
sub edx, eax
lea ecx, [esp + eax*2 + 0x21c]
mov eax, str.RAV.INI
call fcn.10001390
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.10012ec0
add esp, 0xc
lea edx, [esp + 0x21c]
push edx
push 0x104
lea eax, [esp + 0x18]
push eax
push 0x10022f88
push ebx
push str.DEBUG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp + 0x10], 0
mov dword [esp + 4], eax
je 0x100017e4
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_CharUpperW]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push 0x10022fe4
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call fcn.1000a9b8
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
ja 0x100017e6
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push str.0X_X
push edx
call fcn.1000a9b8
mov eax, dword [esp + 0x14]
add esp, 0xc
test eax, eax
ja 0x100017e6
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x14]
push 0x10022ff8
push ecx
call fcn.1000a9b8
mov eax, dword [esp + 0x10]
add esp, 0xc
test eax, eax
ja 0x100017e6
mov eax, ebp
mov ecx, dword [esp + 0x424]
pop ebp
xor ecx, esp
call fcn.1000a328
add esp, 0x424
ret

Function at 0x10001800
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x10027074]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
or esi, 0xffffffff
mov word [esp + 0x10], ax
call fcn.10012ec0
xor edx, edx
add esp, 0xc
cmp edx, str.RAV.INI
je 0x100018de
mov eax, str.RAV.INI
lea edx, [eax + 2]
jmp 0x10001850
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001850
sub eax, edx
sar eax, 1
cmp eax, 2
jb 0x100018de
lea esi, [esp + 4]
call fcn.10001440
mov ecx, 0x104
mov eax, esi
cmp word [eax], 0
je 0x10001884
add eax, 2
sub ecx, 1
jne 0x10001874
jmp 0x100018a4
test ecx, ecx
je 0x100018a4
mov eax, 0x104
sub eax, ecx
mov edx, 0x104
sub edx, eax
lea ecx, [esp + eax*2 + 4]
mov eax, str.RAV.INI
call fcn.10001390
lea eax, [esp + 4]
push eax
push 0x105
push 0x10029538
push 0x10022f88
push str.LOGNAME
push str.DEBUG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.1000a328
add esp, 0x20c
ret
mov ecx, dword [esp + 0x20c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1000a328
add esp, 0x20c
ret
Function at 0x10001900
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x10027074]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebp
mov ebp, dword [esp + 0x228]
push esi
push edi
xor ecx, ecx
mov word [ebx], cx
mov ecx, 8
mov esi, str.SOFTWARERising_
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
push 0x1e8
push eax
lea edx, [esp + 0x46]
push edx
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
movsw word es:[edi], word [esi]
call fcn.10012ec0
lea eax, [esp + 0x28]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001961
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x1c]
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001980
mov ecx, 0x20a
sub ecx, edx
sub eax, esi
push ecx
sar eax, 1
push ebp
lea edx, [esp + eax*2 + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [esp + 0xc]
push eax
mov esi, 1
push esi
push 0
lea ecx, [esp + 0x28]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10001a56
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push ebx
lea eax, [esp + 0x20]
push eax
push 0
push str.installpath
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10001a2d
push 0x5c
push ebx
call fcn.1000b3b5
add esp, 8
test eax, eax
je 0x10001a31
cmp word [eax + 2], 0
jne 0x10001a31
xor edx, edx
mov word [eax], dx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.1000a328
add esp, 0x220
ret
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.1000a328
add esp, 0x220
ret
mov ecx, dword [esp + 0x228]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1000a328
add esp, 0x220
ret
Function at 0x100022d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
call fcn.10001800
cmp word [0x10029538], 0
jne 0x1000243e
push ebp
push esi
push 0x105
push 0x10029538
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push 0x10029538
mov ebp, eax
call fcn.1000b3b5
mov esi, eax
add esp, 8
test esi, esi
je 0x100023a0
push ebx
push edi
sub eax, 0x10029538
sar eax, 1
mov edi, ebp
sub edi, eax
add edi, edi
push edi
lea ebx, [esi + 0x12]
push esi
push ebx
call fcn.1000ab00
mov ecx, dword [str.logfiles]
mov dword [esi], ecx
mov edx, dword [0x100231e8]
mov dword [esi + 4], edx
mov eax, dword [0x100231ec]
mov dword [esi + 8], eax
mov ecx, dword [0x100231f0]
mov dword [esi + 0xc], ecx
mov dx, word [0x100231f4]
add esp, 0xc
xor eax, eax
mov word [esi + 0x10], dx
push 0x10029538
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x5c
mov word [ebx], cx
cmp eax, 0xffffffff
je 0x10002389
test al, 0x10
je 0x10002389
xor edx, edx
mov word [ebp*2 + 0x1002954a], dx
jmp 0x1000239e
push edi
push ebx
push esi
call fcn.1000ab00
add esp, 0xc
xor eax, eax
mov word [ebp*2 + 0x10029538], ax
pop edi
pop ebx
pop esi
mov ecx, 0x104
mov eax, 0x10029538
pop ebp
lea esp, [esp]
cmp word [eax], 0
je 0x100023c0
add eax, 2
sub ecx, 1
jne 0x100023b0
jmp 0x100023e3
test ecx, ecx
je 0x100023e3
mov eax, 0x104
sub eax, ecx
mov edx, 0x104
sub edx, eax
lea ecx, [eax*2 + 0x10029538]
mov eax, 0x100231f8
call fcn.10001390
mov ecx, 0x104
mov eax, 0x10029538
lea ecx, [ecx]
cmp word [eax], 0
je 0x10002400
add eax, 2
sub ecx, 1
jne 0x100023f0
jmp 0x10002423
test ecx, ecx
je 0x10002423
mov eax, 0x104
sub eax, ecx
mov edx, 0x104
sub edx, eax
lea ecx, [eax*2 + 0x10029538]
mov eax, 0x100231fc
call fcn.10001390
mov ecx, 0x104
mov eax, 0x10029538
lea ecx, [ecx]
cmp word [eax], 0
je 0x1000243f
add eax, 2
sub ecx, 1
jne 0x10002430
ret
test ecx, ecx
je 0x1000243e
mov eax, 0x104
sub eax, ecx
mov edx, 0x104
sub edx, eax
lea ecx, [eax*2 + 0x10029538]
mov eax, str..log
jmp fcn.10001390

Function at 0x10002470
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 4]
push eax
push 1
xor esi, esi
push esi
push str.CLSIDCAA2D3B2_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100024d9
mov edx, dword [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push ecx
push eax
push eax
push eax
push eax
push edx
mov dword [esp + 0x24], esi
call edi
test eax, eax
jne 0x100024d8
mov esi, dword [esp + 0xc]
cmp esi, 0x104
ja 0x100024d8
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
push 0
push 0
push 0
push edx
call edi
pop edi
mov eax, dword [esp + 4]
test eax, eax
je 0x100024e8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 4
Function at 0x10002740
Capabilities:
Set registry value

Disassembly:
sub esp, 0x41c
mov eax, dword [0x10027074]
xor eax, esp
mov dword [esp + 0x418], eax
push esi
push 0x10022f88
push str.HKEY_LOCAL_MACHINESOFTWARE_risinglockie
call fcn.1000a5cc
add esp, 8
test eax, eax
je 0x10002950
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.10012ec0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x21a]
push eax
mov word [esp + 0x21c], dx
call fcn.10012ec0
add esp, 0xc
push str.HKEY_LOCAL_MACHINESOFTWARE_risinglockie
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.1000b6b3
add esp, 0xc
lea edx, [esp + 8]
push 0x5c
push edx
call fcn.1000a393
mov esi, eax
add esp, 8
test esi, esi
jne 0x100027df
push str._MdLabel.dll__SaveRegDWInfo_szRootKey_Is_Null...
jmp 0x10002955
lea eax, [esi + 2]
push eax
lea ecx, [esp + 0x214]
push 0x104
push ecx
call fcn.1000b6b3
add esp, 0xc
lea eax, [esp + 8]
push eax
xor edx, edx
push str.HKEY_CLASSES_ROOT
mov word [esi], dx
call fcn.1000a5cc
add esp, 8
test eax, eax
jne 0x10002855
push eax
lea ecx, [esp + 8]
push ecx
push eax
push 0x20006
push eax
push eax
push eax
lea edx, [esp + 0x22c]
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x100028e5
xor eax, eax
pop esi
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.1000a328
add esp, 0x41c
ret
lea eax, [esp + 8]
push eax
push str.HKEY_CURRENT_USER
call fcn.1000a5cc
add esp, 8
test eax, eax
jne 0x100028a9
push eax
lea ecx, [esp + 8]
push ecx
push eax
push 0x20006
push eax
push eax
push eax
lea edx, [esp + 0x22c]
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x100028e5
xor eax, eax
pop esi
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.1000a328
add esp, 0x41c
ret
lea eax, [esp + 8]
push eax
push str.HKEY_LOCAL_MACHINE
call fcn.1000a5cc
add esp, 8
test eax, eax
jne 0x100028e5
push eax
lea ecx, [esp + 8]
push ecx
push eax
push 0x20006
push eax
push eax
push eax
lea edx, [esp + 0x22c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1000295f
mov ecx, dword [esp + 4]
push 4
lea eax, [esp + 0x428]
push eax
push 4
push 0
push str.Ilssi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1000292a
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.1000a328
add esp, 0x41c
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.1000a328
add esp, 0x41c
ret
push str._MdLabel.dll__SaveRegDWInfo_Param_Is_Null...
push 0x40
call fcn.10001d40
add esp, 8
mov ecx, dword [esp + 0x41c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.1000a328
add esp, 0x41c
ret
Function at 0x10002bd0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x10027074]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push 0x10022f88
push str.explorer.exe
xor ebx, ebx
call fcn.1000a5cc
add esp, 8
test eax, eax
je 0x10002ce5
push esi
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x10002c42
push 0x22c
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.10012ec0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x10002c60
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.1000a328
add esp, 0x230
ret
lea edx, [esp + 0x2c]
push str.explorer.exe
push edx
call fcn.1000a5cc
add esp, 8
test eax, eax
je 0x10002cc1
push 0x22c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.10012ec0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10002c60
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.1000a328
add esp, 0x230
ret
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.1000a328
add esp, 0x230
ret
mov ecx, dword [esp + 0x230]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1000a328
add esp, 0x230
ret
Function at 0x10002d00
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 8
push esi
push edi
mov edi, ecx
mov esi, eax
test edi, edi
je 0x10002d4f
test esi, esi
je 0x10002d4f
push 0x10022f88
push edi
call fcn.1000a5cc
add esp, 8
test eax, eax
je 0x10002d4f
push 0x10022f88
push esi
call fcn.1000a5cc
add esp, 8
test eax, eax
je 0x10002d4f
movzx eax, word [esp + 0x14]
mov ecx, dword [0x10029524]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10002d57
pop edi
xor eax, eax
pop esi
add esp, 8
ret
mov edx, dword [0x10029524]
push ebx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x10002d77
pop ebx
pop edi
pop esi
add esp, 8
ret
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x10002da1
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
jne 0x10002db2
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 8
ret
mov ecx, dword [0x10029524]
push 0
lea eax, [esp + 0x14]
push eax
push edi
push ecx
mov ebx, 1
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10002de3
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 8
ret
Function at 0x100048b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x224
mov eax, dword [0x10027074]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [0x10022f08]
push esi
push edi
mov esi, edx
mov dword [esi], eax
mov edi, ecx
mov ecx, dword [0x10022f0c]
mov dword [esi + 4], ecx
mov edx, dword [0x10022f10]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
mov dword [esi + 8], edx
mov eax, dword [0x10022f14]
push str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
mov dword [esi + 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000497d
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.10012ec0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [edi + 0x10]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10004972
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x26
jne 0x10004972
lea edi, [esp + 0x18]
call fcn.10004770
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x224]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.1000a328
add esp, 0x224
ret
Function at 0x100049a0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x10027074]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x234]
push ebx
mov ebx, dword [esp + 0x234]
push ebp
mov ebp, dword [esp + 0x22c]
push esi
mov esi, dword [esp + 0x238]
push edi
mov edi, dword [esp + 0x238]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x2e]
push edx
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], cx
call fcn.10012ec0
mov eax, dword [esp + 0x2c]
mov ecx, eax
mov edx, eax
shr ecx, 0x18
push ecx
shr edx, 0x10
movzx ecx, dl
push ecx
mov edx, eax
shr edx, 8
movzx ecx, dl
push ecx
movzx edx, al
push edx
mov eax, ebx
shr eax, 0x18
push eax
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
push edx
mov eax, ebx
shr eax, 8
movzx ecx, al
push ecx
movzx edx, bl
push edx
mov eax, esi
shr eax, 0x10
push eax
movzx ecx, si
push ecx
push edi
push str._08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
lea edx, [esp + 0x60]
push 0x104
push edx
call fcn.1000ba2e
add esp, 0x44
lea eax, [esp + 0x10]
push eax
push str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x10004a8a
lea ecx, [esp + 0x10]
push ecx
push str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x10004a8a
xor eax, eax
jmp 0x10004ad5
lea eax, [esp + 0x24]
mov esi, 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004a96
mov ecx, dword [ebp + 0x10]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10004ac8
xor esi, esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000a328
add esp, 0x220
ret 0x14
Function at 0x10004af0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x228
mov eax, dword [0x10027074]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x22c]
push ebx
push ebp
push esi
push edi
xor ecx, ecx
push 0x208
push ecx
lea edx, [esp + 0x2a]
xor esi, esi
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], esi
mov word [esp + 0x2c], cx
call fcn.10012ec0
add esp, 0xc
push 0x105
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x20]
push 0x5c
push ecx
call fcn.1000b3b5
add esp, 8
test eax, eax
je 0x10004b5d
xor edx, edx
mov word [eax + 2], dx
mov ecx, 0x20a
lea eax, [esp + 0x20]
cmp word [eax], si
je 0x10004b75
add eax, 2
sub ecx, 1
jne 0x10004b66
jmp 0x10004b95
test ecx, ecx
je 0x10004b95
mov eax, 0x20a
sub eax, ecx
mov edx, 0x20a
sub edx, eax
lea ecx, [esp + eax*2 + 0x20]
mov eax, str.Label.dat
call fcn.10001390
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x10004ce7
push 0
push eax
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea esi, [ebx + 1]
push esi
call fcn.1000ae65
add esp, 4
push esi
mov ebp, eax
push 0
push ebp
call fcn.10012ec0
add esp, 0xc
push esi
call fcn.1000ae65
add esp, 4
push esi
mov edi, eax
push 0
push edi
call fcn.10012ec0
add esp, 0xc
test ebp, ebp
je 0x10004cd6
test edi, edi
je 0x10004cd6
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10004cd6
push esi
push edi
mov eax, ebp
call fcn.100042c0
add esp, 8
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
push str._nSN
push edi
call fcn.1000bb90
push str._nID
push edi
call fcn.1000bb90
push str._nACTIONID
push edi
call fcn.1000bb90
add esp, 0x18
test eax, eax
je 0x10004cb1
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x10004cb1
add eax, 0xa
xor ebx, ebx
cmp byte [eax], bl
je 0x10004cad
sub ecx, eax
mov esi, eax
mov dword [esp + 0x10], ecx
lea esp, [esp]
movsx eax, byte [esi]
push eax
push str._r_n_b
call fcn.1000b810
add esp, 8
test eax, eax
jne 0x10004ca9
cmp ebx, 0x20
jge 0x10004ca9
mov cl, byte [esi]
mov edx, dword [esp + 0x10]
mov byte [edx + esi], cl
inc esi
inc ebx
cmp byte [esi], al
jne 0x10004c80
mov ecx, dword [esp + 0x14]
mov byte [ecx + ebx], 0
push str._nTITLE
push edi
call fcn.1000bb90
push ebp
mov dword [esp + 0x1c], 1
call fcn.1000b4bd
add esp, 0xc
push edi
call fcn.1000b4bd
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
jmp 0x10004ce9
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000a328
add esp, 0x228
ret