joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100096a0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1000986d
pushal
mov esi, 0x48b8000
lea edi, [esi - 0x7000]
push edi
jmp 0x100096ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x100096d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100096c0
mov eax, 1
add ebx, ebx
jne 0x100096e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x100096d8
jne 0x100096f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100096d8
xor ecx, ecx
sub eax, 3
jb 0x10009708
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1000977a
mov ebp, eax
add ebx, ebx
jne 0x10009713
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10009720
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10009744
inc ecx
add ebx, ebx
jne 0x10009730
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10009725
jne 0x10009741
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10009725
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10009764
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10009755
jmp 0x100096c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10009764
add edi, ecx
jmp 0x100096c6
pop esi
mov edi, esi
mov ecx, 0x85
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10009782
cmp byte [edi], 4
jne 0x10009782
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 al, bl
loop 0x10009787
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x100097ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x91b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x921c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x100097b4
mov ecx, edi
jns 0x100097e3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9220]
or eax, eax
je 0x100097f9
mov dword [ebx], eax
add ebx, 4
jmp 0x100097d1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10009830
cmp al, 0xef
ja 0x10009823
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10009805
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10009812
mov ebp, dword [esi + 0x9224]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x10009864
sub esp, 0xffffff80
jmp 0x1000335f
Function at 0x10002ef0
Capabilities:
Write clipboard data

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx + 0x6c], 0
je 0x10002f42
push esi
push 0x3a
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x10002f36
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0x3a
mov edi, eax
push 0
push edi
call fcn.1007d080
push 0x3a
push str.TEC_DOC_WATERMARK_IM_SNAPSHOT
push edi
call fcn.1007d100
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
mov eax, dword [ebx + 0x6c]
push esi
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
pop esi
pop ebx
ret

Function at 0x10006d60
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10112df8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1015bdd0]
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 ebx, dword [ebp + 8]
push 0xffffffffffffffff
xor esi, esi
push esi
mov ecx, ebx
call fcn.10070310
lea ecx, [ebp - 0x3c]
call fcn.100765c0
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x2c]
call fcn.100702a0
mov byte [ebp - 4], 1
mov eax, dword [0x101222a0]
mov ecx, dword [0x101222a4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x18]
lea edx, [esi + 0x41]
push eax
mov word [ebp - 0x18], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, eax
cmp edi, 3
je 0x10006de3
cmp edi, 2
jne 0x10006e71
mov ecx, dword [ebp - 0x38]
push esi
push ecx
lea ecx, [ebp - 0x3c]
call fcn.10076800
mov edx, dword [0x1013c5e8]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 4], 2
lea eax, [esi + 0x41]
push eax
lea ecx, [ebp - 0x1c]
push 0x10122298
push ecx
call fcn.1006d900
mov eax, dword [ebp - 0x28]
add esp, 0xc
lea edx, [ebp - 0x1c]
push edx
push eax
lea ecx, [ebp - 0x2c]
call fcn.100708b0
push 0x10120c54
lea ecx, [ebp - 0x1c]
call fcn.1006b5d0
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov ecx, ebx
call fcn.100708b0
cmp dword [0x1016af88], 0
je 0x10006e65
push edi
lea edx, [ebp - 0x18]
push edx
push str.CLocalBackupFileMgr::GetAllLocalDriver___s__uType__lu_
push 0x1012077c
push 0xffffffffffffffff
push 0x1016af1c
call fcn.1000b060
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1006a980
inc esi
cmp esi, 0x1a
jl 0x10006dc2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.100702b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.100765d0
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.1007ceab
mov esp, ebp
pop ebp
ret 4
Function at 0x10006ec0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10112e30
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1015bdd0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
jne 0x10006f0a
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 edi
lea ecx, [ebp + 8]
xor esi, esi
call fcn.1006a1e0
mov dword [ebp - 4], ebx
push 0x5c
lea ecx, [ebp + 8]
call fcn.1006bb30
cmp eax, 0xffffffff
je 0x10006f84
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.1006d0c0
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp + 8]
call fcn.1006ab10
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.1006a980
mov edx, dword [ebp + 8]
push ebx
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x10006f84
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x1c]
ja 0x10006f82
jb 0x10006f7b
mov edx, dword [ebp - 0x1c]
cmp edx, dword [eax + 0x18]
jae 0x10006f82
mov esi, 1
jmp 0x10006f84
xor esi, esi
cmp dword [0x1016af88], ebx
je 0x10006fa7
push edi
push esi
push str.CLocalBackupFileMgr::IsDriveSpaceNotEnough___d___s_
push 0x1012077c
push 0xffffffffffffffff
push 0x1016af1c
call fcn.1000b060
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1006a980
mov eax, esi
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 0x100082c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
xor eax, eax
xor ecx, ecx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
test edx, edx
je 0x100082f4
mov ecx, edx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x100082e2
sub ecx, esi
sar ecx, 1
mov dword [ebp - 0xc], ecx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x10008312
mov eax, ebx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x10008300
sub eax, esi
sar eax, 1
mov dword [ebp - 8], eax
lea edi, [eax + ecx]
lea edi, [edi + edi + 0x10]
push edi
call fcn.1007dc71
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000832f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0
push esi
call fcn.1007d080
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov ecx, dword [ebp - 8]
mov dword [esi + 4], ecx
mov edx, dword [ebp - 4]
add esp, 0xc
mov dword [esi + 8], edx
cmp dword [ebp - 0xc], 0
jbe 0x10008365
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
push eax
push ecx
lea edx, [esi + 0xc]
push edx
call fcn.1007ce61
add esp, 0xc
cmp dword [ebp - 8], 0
jbe 0x1000837f
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
lea edx, [esi + ecx*2 + 0xe]
push ebx
push edx
call fcn.1007ce61
add esp, 0xc
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push ecx
push 0
push esi
push 0x10008290
push 0
mov dword [esi + 8], eax
push 0
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x100083ae
mov edx, dword [ebp + 0xc]
mov dword [ecx], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10008870
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x40], 0
je 0x10008880
mov eax, 1
pop esi
ret
push str.windlgctl32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x3c], eax
test eax, eax
je 0x100089ac
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._MarqueeShow_CDialogCtrlAPI__SGHPAU_GUID__PAUHWND____HPB_W2_Z
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi + 0x3c]
push str._Show_CDialogCtrlAPI__SGHPAU_GUID__PAUHWND____HPB_W2HHH_Z
push eax
call edi
mov ecx, dword [esi + 0x3c]
push str._Stop_CDialogCtrlAPI__SGXPAU_GUID___Z
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 0x3c]
push str._Update_CDialogCtrlAPI__SGHPAU_GUID__PB_W1H_Z
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x3c]
push str._TipShow_CDialogCtrlAPI__SGHPAU_GUID__PAUHWND____HPB_W2_Z
push eax
call edi
mov ecx, dword [esi + 0x3c]
push str._Stop_CDialogCtrlAPI__SGXPAU_GUID___Z
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi + 0x3c]
push str._OutSendShow_CDialogCtrlAPI__SGHPAUHWND_____Z
push edx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x3c]
push str._OutSendStop_CDialogCtrlAPI__SGXXZ
push eax
call edi
mov ecx, dword [esi + 0x3c]
push str._SCDTOutSendShow_CDialogCtrlAPI__SGHKPAUHWND_____Z
push ecx
mov dword [esi + 0x18], eax
call edi
mov edx, dword [esi + 0x3c]
push str._GetMsg_CDialogCtrlAPI__SGHKKPAPA_WPAK_Z
push edx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x3c]
push str._FreeBuff_CDialogCtrlAPI__SGXPAX_Z
push eax
call edi
mov ecx, dword [esi + 0x3c]
push str._DWMGetFailedCfgInfo_CDialogCtrlAPI__SGHPAHPAPA_WPAK_Z
push ecx
mov dword [esi + 0x2c], eax
call edi
mov edx, dword [esi + 0x3c]
push str._DWMAddFailedInfo_CDialogCtrlAPI__SGHPB_WKKK_Z
push edx
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x3c]
push str._DWMFailedShow_CDialogCtrlAPI__SGHPAUHWND____PB_W_Z
push eax
call edi
cmp dword [esi + 4], 0
mov dword [esi + 0x38], eax
pop edi
jne 0x100089b0
cmp dword [esi + 0xc], 0
jne 0x100089b0
cmp dword [esi + 8], 0
jne 0x100089b0
cmp dword [esi + 0x10], 0
jne 0x100089b0
cmp dword [esi + 0x1c], 0
jne 0x100089b0
cmp dword [esi + 0x24], 0
jne 0x100089b0
cmp dword [esi + 0x18], 0
jne 0x100089b0
cmp dword [esi + 0x28], 0
jne 0x100089b0
cmp dword [esi + 0x2c], 0
jne 0x100089b0
cmp dword [esi + 0x30], 0
jne 0x100089b0
cmp dword [esi + 0x34], 0
jne 0x100089b0
test eax, eax
jne 0x100089b0
mov ecx, esi
call fcn.10008810
xor eax, eax
pop esi
ret
mov eax, 1
mov dword [esi + 0x40], eax
pop esi
ret
Function at 0x10008c90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011309b
mov eax, dword fs:[0]
push eax
sub esp, 0xe18
mov eax, dword [0x1015bdd0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [0x1016ae34], ebx
jne 0x10008ef9
push 0x3ff
lea eax, [ebp - 0x617]
push ebx
push eax
mov dword [0x1016ae34], 1
mov byte [ebp - 0x618], bl
call fcn.1007d080
push 0x7fe
lea edx, [ebp - 0xe16]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0xe1c], ebx
mov word [ebp - 0xe18], cx
call fcn.1007d080
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x218], ax
call fcn.1007d080
add esp, 0x24
push str.OAgent.ini
call fcn.1000d8d0
push eax
lea edx, [ebp - 0x218]
push 0x10123058
push edx
call fcn.1007e124
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
push 0x400
lea ecx, [ebp - 0xe18]
push ecx
push 0x10120d30
push 0x10122f30
push str.AgentConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x10008da3
cmp word [ebp - 0x61a], bx
jne 0x10008da3
push 0x400
lea edx, [ebp - 0x618]
push edx
lea eax, [ebp - 0xe18]
push eax
call fcn.100b8380
add esp, 0xc
mov dword [ebp - 0xe1c], eax
jmp 0x10008da9
mov eax, dword [ebp - 0xe1c]
cmp eax, ebx
jne 0x10008ec9
lea ecx, [ebp - 0xe24]
call fcn.10077bb0
mov dword [ebp - 4], ebx
mov esi, 0x20019
call fcn.100b6bf0
test eax, eax
je 0x10008dd2
mov esi, 0x20219
push esi
push str.SOFTWAREClassesCLSIDAFFAEF68_CDC5_4aad_9D3F_997C0D55927BProgID
push reloc.WS2_32.dll_bind
lea ecx, [ebp - 0xe24]
call fcn.10077d20
test eax, eax
je 0x10008e38
lea ecx, [ebp - 0xe1c]
push ecx
push 0x10122fc4
lea ecx, [ebp - 0xe24]
call fcn.10078140
mov esi, eax
cmp esi, ebx
je 0x10008e38
mov eax, dword [ebp - 0xe1c]
cmp eax, 0x400
jae 0x10008e29
push eax
lea edx, [ebp - 0x618]
push esi
push edx
call fcn.1007d100
add esp, 0xc
jmp 0x10008e2f
mov dword [ebp - 0xe1c], ebx
push esi
call fcn.1007d541
add esp, 4
lea ecx, [ebp - 0xe24]
call fcn.10077d70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe24]
call fcn.10077ca0
mov eax, dword [ebp - 0xe1c]
cmp eax, ebx
jne 0x10008ec9
push 0x800
lea eax, [ebp - 0xe18]
push ebx
push eax
call fcn.1007d080
add esp, 0xc
push 0x400
lea ecx, [ebp - 0xe18]
push ecx
push 0x10120d30
push 0x10122fc4
push str.ED30_8AC4_11D5_8930_A730
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
test eax, eax
jbe 0x10008ebf
cmp word [ebp - 0x61a], bx
jne 0x10008ebf
push 0x400
lea edx, [ebp - 0x618]
push edx
lea eax, [ebp - 0xe18]
push eax
call fcn.100b8380
add esp, 0xc
jmp 0x10008ec5
mov eax, dword [ebp - 0xe1c]
cmp eax, ebx
je 0x10008ef9
cmp eax, 4
jbe 0x10008ef9
cmp dword [ebp - 0x618], 1
je 0x10008ef9
movzx ecx, word [ebp - 0x5fc]
lea ecx, [ecx + ecx + 0x22]
cmp ecx, ebx
je 0x10008ef9
add eax, 0xfffffffc
cmp ecx, eax
ja 0x10008ef9
mov ecx, dword [ebp - 0x610]
mov dword [0x1016ae30], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007ceab
mov esp, ebp
pop ebp
ret
Function at 0x100097c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push ecx
push reloc.WS2_32.dll_bind
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10009826
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10009805
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100097f0
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
jmp 0x10009807
xor eax, eax
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10009830
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push ecx
push reloc.WS2_32.dll_bind
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10009873
mov ecx, dword [ebp - 4]
push 4
lea edx, [ebp + 0x10]
push edx
push 4
push eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10009880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 8]
push esi
lea eax, [ebp - 4]
push eax
push ecx
xor esi, esi
push reloc.WS2_32.dll_bind
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10009912
mov ecx, dword [ebp - 4]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edx
push esi
lea eax, [ebp - 8]
push eax
push esi
push edi
push ecx
mov dword [ebp - 8], esi
mov dword [ebp + 8], esi
call ebx
mov eax, dword [ebp + 8]
cmp eax, 2
jb 0x10009906
add eax, 2
mov dword [ebp + 8], eax
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1007dc71
mov esi, eax
add esp, 4
test esi, esi
je 0x10009906
mov edx, dword [ebp - 4]
lea eax, [ebp + 8]
push eax
push esi
lea ecx, [ebp - 8]
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x10009920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push ecx
push reloc.WS2_32.dll_bind
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1000997b
mov dword [ebp - 0xc], eax
lea edx, [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push ecx
push 0
push edx
push eax
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x1000a890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10113338
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x1015bdd0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 1
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x18]
call fcn.10077850
mov dword [ebp - 4], 0
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
test eax, eax
je 0x1000a923
mov edi, dword [ebp + 8]
test edi, edi
je 0x1000a923
mov ecx, dword [esi + 0x24]
push 2
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, edi
mov dword [ebp + 8], 0
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000a900
mov ecx, dword [esi + 0x24]
sub eax, edx
push 0
sar eax, 1
lea edx, [ebp + 8]
push edx
add eax, eax
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.100778b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x1000d7f0
Capabilities:
Get common file path

Disassembly:
cmp dword [0x1016d720], 0
jne 0x1000d874
mov dword [0x1016d720], 1
call fcn.100b6bf0
push 0x104
push 0x1016d518
test eax, eax
je 0x1000d86e
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
mov eax, 0x1016d518
jbe 0x1000d879
add eax, 0xfffffffe
jmp 0x1000d830
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x1000d830
mov ecx, dword [str.SysWow64]
mov edx, dword [0x10123b68]
mov dword [eax], ecx
mov ecx, dword [0x10123b6c]
mov dword [eax + 4], edx
mov edx, dword [0x10123b70]
mov dword [eax + 8], ecx
mov ecx, dword [0x10123b74]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
mov eax, 0x1016d518
ret
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, 0x1016d518
ret
Function at 0x1000e040
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x1016dffc], 0
je 0x1000e056
mov eax, 1
mov esp, ebp
pop ebp
ret
push esi
mov esi, 0x1016e008
mov eax, esi
mov dword [0x1016dffc], 1
lea edx, [eax + 2]
jmp 0x1000e070
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000e070
sub eax, edx
sar eax, 1
jne 0x1000e086
mov esi, str.snapb2p.dll
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x1016af88], 0
mov dword [0x1016e000], eax
je 0x1000e0bb
push esi
push eax
push str.CBmp2PngHelper::Initialize___08x____s_
push str.QQSnapEncode
push 0xffffffffffffffff
push 0x1016af1c
call fcn.1000b060
mov eax, dword [0x1016e000]
add esp, 0x18
test eax, eax
je 0x1000e12f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.TB2P_Initialize
push eax
call esi
mov dword [0x1016dfe4], eax
mov eax, dword [0x1016e000]
push str.TB2P_Uninitialize
push eax
call esi
mov ecx, dword [0x1016e000]
push str.TB2P_Conver
push ecx
mov dword [0x1016dfe8], eax
call esi
mov edx, dword [0x1016e000]
push str.TP2B_Conver
push edx
mov dword [0x1016dfec], eax
call esi
mov dword [0x1016dff0], eax
mov eax, dword [0x1016e000]
push str.TP2J_Conver
push eax
call esi
mov ecx, dword [0x1016e000]
push str.TJ2J_Conver
push ecx
mov dword [0x1016dff4], eax
call esi
mov dword [0x1016dff8], eax
cmp dword [0x1016dfe4], 0
pop esi
je 0x1000e16a
cmp dword [0x1016dfe8], 0
je 0x1000e16a
cmp dword [0x1016dfec], 0
je 0x1000e16a
cmp dword [0x1016dff0], 0
je 0x1000e16a
cmp dword [0x1016dff4], 0
je 0x1000e16a
cmp dword [0x1016dff8], 0
jne 0x1000e04d
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000e350
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10113a98
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x1015bdd0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [0x1013c5e8]
mov dword [eax + 0x14], ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edx, dword [0x1013c5e8]
mov dword [eax + 0x18], edx
mov byte [ebp - 4], 1
mov edx, dword [0x1013c5e8]
mov dword [eax + 0x1c], edx
mov byte [ebp - 4], 2
mov edx, dword [0x1013c5e8]
mov dword [eax + 0x20], edx
mov byte [ebp - 4], 3
mov edx, dword [0x1013c5e8]
mov dword [eax + 0x24], edx
mov byte [ebp - 4], 4
mov edx, dword [0x1013c5e8]
mov dword [eax + 0x28], edx
mov byte [ebp - 4], 5
mov edx, dword [0x1013c5e8]
mov dword [eax + 0x2c], edx
mov byte [ebp - 4], 6
mov edx, dword [0x1013c5e8]
mov dword [eax + 0x30], edx
mov byte [ebp - 4], 7
xor edx, edx
mov word [eax], dx
mov word [eax + 2], dx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret