joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d2e95
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x100d2eb7
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x100d2eb7
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x100d2eb7
ret
cmp word [ebx + 4], 0x14c
jne 0x100d2eb7
test word [ebx + 0x16], 2
je 0x100d2eb7
test word [ebx + 0x16], 0x100
je 0x100d2eb7
cmp word [ebx + 0x18], 0x10b
jne 0x100d2eb7
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x100d2eb7
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x100d2f43
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x100d2ed7
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.100b9e22
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x100d2eb7
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x100d2f43
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x100d2eb7
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x100d2eb7
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x100d2eb7
ret
cmp word [ebx + 4], 0x14c
jne 0x100d2eb7
test word [ebx + 0x16], 2
je 0x100d2eb7
test word [ebx + 0x16], 0x100
je 0x100d2eb7
cmp word [ebx + 0x18], 0x10b
jne 0x100d2eb7
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x100d2eb7
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x100d2f43
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x100d2ed7
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.100b9e22
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x100d2eb7
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x100d2ffa
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x100d3053
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x100d2ffa
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x100d3009
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x104d8cac
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x100d305a
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.100b9ed0
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100d30f9
add edi, 4
add eax, 2
dec ecx
jne 0x100d303f
call 0x100d30a6
loope 0x100d309c
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100d30f6
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x100d3107
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100d30ba
cmp eax, ecx
ja 0x100d30ba
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100d3144
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100d313a
lea edi, [ebp - 0x100]
push pe_nt_image_headers32
push edi
push esi
call fcn.100ba3af
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x100d3009
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x100d3053
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x100d2ffa
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x100d3009
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x104d8cac
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x100d305a
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.100b9ed0
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100d30f9
add edi, 4
add eax, 2
dec ecx
jne 0x100d303f
call 0x100d30a6
loope 0x100d309c
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100d30f6
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x100d3107
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100d30ba
cmp eax, ecx
ja 0x100d30ba
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100d3144
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100d313a
lea edi, [ebp - 0x100]
push pe_nt_image_headers32
push edi
push esi
call fcn.100ba3af
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x12452a10
Capabilities:
Get user security identifier

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edi
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
xor ebx, ebx
push eax
push ecx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push ebp
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x12452a5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x12452a5b
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.1249f8ef
mov ecx, dword [esp + 0x14]
mov dword [edi], eax
lea edx, [ecx + ecx]
push edx
call fcn.1249f8ef
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x12452aa0
test esi, esi
je 0x12452ab1
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x1c]
push esi
push ecx
push eax
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test esi, esi
je 0x12452aad
push esi
call fcn.1249f776
add esp, 4
test ebx, ebx
jne 0x12452ac0
mov edi, dword [edi]
test edi, edi
je 0x12452ac0
push edi
call fcn.1249f776
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret

Function at 0x12453ba0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x4b8
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x12453c93
mov eax, dword [esp + 0x4d0]
test eax, eax
je 0x12453c93
lea eax, [esp + 0xe0]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x12453c7d
cmp word [esp + 0xe0], 0
je 0x12453c7d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebp, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea eax, [esp + 0xe0]
lea esi, [esp + 0xe0]
push 0x125258c4
push eax
call ebx
test eax, eax
je 0x12453c72
push 0x125258bc
push esi
call ebx
test eax, eax
je 0x12453c72
mov cx, word [esi]
mov dx, word [esi + 2]
mov word [esp + 0x10], cx
lea eax, [esp + 0x18]
push 0x64
lea ecx, [esp + 0x14]
push eax
push ecx
mov word [esp + 0x1e], dx
mov word [esp + 0x20], 0
call ebp
test eax, eax
je 0x12453c93
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x4cc]
mov edi, eax
lea eax, [esp + 0x18]
push edi
push eax
push ecx
call fcn.1249fab3
add esp, 0xc
test eax, eax
je 0x12453ca0
add esi, 8
mov eax, esi
cmp word [esi], 0
jne 0x12453c09
mov edx, dword [esp + 0x4cc]
mov eax, dword [esp + 0x4d0]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4b8
ret
mov esi, dword [esp + 0x4d0]
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [esp + 0x4cc]
lea ecx, [eax + edi*2]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4b8
ret
Function at 0x12455000
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x12504888
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
push edi
mov edi, dword [esp + 0x44]
test edi, edi
jne 0x12455035
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x38
ret
push 0
push 0
lea eax, [esp + 0x4c]
push 0
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push edi
mov esi, 1
call fcn.124bbb80
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x24]
add esp, 0x1c
push edx
push eax
push str.CheckFileSize_________dwSizeLow:_d___dwSizeHigh:_d_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
mov eax, dword [0x125472b0]
add esp, 0x18
test eax, eax
jne 0x124550d8
lea ecx, [esp + 0x10]
call fcn.12475ca0
push ecx
mov dword [esp + 0x40], 0
mov ecx, esp
mov dword [esp + 0x10], esp
push str.maxsize_historyfile
call fcn.12486370
lea ecx, [esp + 0x14]
call fcn.12475e90
lea ecx, [esp + 0x10]
call fcn.12476310
test eax, eax
je 0x124550c1
shl eax, 0xa
mov dword [0x125243a0], eax
lea ecx, [esp + 0x10]
mov dword [0x125472b0], esi
mov dword [esp + 0x3c], 0xffffffff
call fcn.12475df0
mov ecx, dword [0x125243a0]
push ecx
push str.CheckFileSize__History_File_Max_Size_:__d_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
mov eax, dword [esp + 0x58]
add esp, 0x14
test eax, eax
ja 0x1245510d
mov edx, dword [esp + 8]
mov eax, dword [0x125243a0]
cmp edx, eax
jb 0x1245513a
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1245511f
push str.CheckFileSize__DeleteFile_success_
jmp 0x12455126
xor esi, esi
push str.CheckFileSize__DeleteFile_failed_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x10
push esi
push str.CheckFileSize_____bRet:_d_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
mov ecx, dword [esp + 0x48]
add esp, 0x14
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x38
ret
Function at 0x12455420
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x125048e8
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebp
push esi
push edi
mov edi, dword [esp + 0x60]
xor ebp, ebp
test edi, edi
je 0x1245552a
push ebp
push ebp
push 3
push ebp
push 7
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push edi
push esi
push str.IsSqlFile___08x___s_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x18
cmp esi, 0xffffffff
je 0x1245552a
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.SQLite_format
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x60], eax
push eax
lea eax, [esp + 0x64]
mov edi, ecx
push eax
lea ecx, [esp + 0x18]
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x12455523
push edi
lea edx, [esp + 0x14]
push str.SQLite_format
push edx
call fcn.124b0100
add esp, 0xc
test eax, eax
jne 0x124554df
mov ebp, 1
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
call fcn.12486210
mov ecx, dword [eax]
push ebp
push ecx
push 0x12525e8c
push str.History
push 0xffffffffffffffff
push 0x12547fec
mov dword [esp + 0x70], 0
call fcn.12478010
add esp, 0x18
lea ecx, [esp + 0xc]
mov dword [esp + 0x58], 0xffffffff
call fcn.12486b10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x50]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x50
ret
Function at 0x124568b0
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x12504958
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x24]
push esi
push edi
mov eax, dword [ebx + 8]
cmp eax, 0x16
jne 0x124568eb
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
push eax
push ecx
lea esi, [ebx + 0x48]
mov ecx, esp
mov dword [esp + 0x34], esp
push esi
xor edi, edi
call fcn.12486370
lea eax, [esp + 0x34]
push eax
call fcn.12459800
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], edi
push ecx
push edi
push edi
push edi
push edi
push edi
push esi
call fcn.124bbb80
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x34]
push edx
push edi
push edi
push edi
push edi
push edi
push eax
call fcn.124bbb80
add esp, 0x44
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
je 0x1245694c
mov edi, 1
cmp dword [ebx + 8], 0x13
jne 0x1245696f
call fcn.12455770
test eax, eax
jne 0x1245696f
push esi
call fcn.12455820
add esp, 4
test eax, eax
je 0x1245696f
mov edi, 1
jmp 0x12456973
test edi, edi
je 0x1245698e
push esi
call fcn.12455000
add esp, 4
test eax, eax
je 0x1245698e
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [esp + 0x2c]
push edi
push ecx
push esi
push str.CopyHistoryByCompareFileTime_wszFilePath__s__wstrFilePath1__s_bCopy__lu_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x1c
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.12486b10
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret
Function at 0x1245c4c0
Capabilities:
Link many functions at runtime

Disassembly:
call fcn.12479150
mov dword [0x1254d48c], eax
mov dword [0x1254dab8], eax
mov ecx, 0x12547908
jmp fcn.1245fb40
Function at 0x1245fb40
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x1245fb6a
push str.winbrosqlite3_module_is_Loaded
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x10
mov eax, 1
pop esi
ret
push str.winbrosqlite3.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi + 0x28], eax
jne 0x1245fba0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.winbrosqlite3_module_load_failed__err__0x_08x_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x14
xor eax, eax
pop esi
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.sqlite3_open16
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi + 0x28]
push str.sqlite3_prepare16_v2
push eax
call edi
mov ecx, dword [esi + 0x28]
push str.sqlite3_bind_int64
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 0x28]
push str.sqlite3_bind_text16
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x28]
push str.sqlite3_step
push eax
call edi
mov ecx, dword [esi + 0x28]
push str.sqlite3_column_int64
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 0x28]
push str.sqlite3_column_text16
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x28]
push str.sqlite3_close
push eax
call edi
mov ecx, dword [esi + 0x28]
push str.sqlite3_finalize
push ecx
mov dword [esi + 0x20], eax
call edi
mov ecx, dword [esi + 4]
mov dword [esi + 0x24], eax
test ecx, ecx
pop edi
je 0x1245fc82
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1245fc82
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1245fc82
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1245fc82
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1245fc82
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1245fc82
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x1245fc82
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1245fc82
test eax, eax
je 0x1245fc82
push str.winbrosqlite3_module_load_successful
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x10
mov eax, 1
mov dword [esi + 0x2c], eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.get_winbrosqlite3_function_failed__err__0x_08x_
push str.History
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x14
mov ecx, esi
call fcn.1245fcb0
xor eax, eax
pop esi
ret
Function at 0x12461f20
Capabilities:
Enumerate gui resources

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, 8
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xc]
push esi
push 0x12461ec0
mov dword [esi + 4], eax
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
pop edi
pop esi
setne al
ret

Function at 0x12462350
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push esi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x12462388
lea ecx, [esp + 4]
push ecx
push esi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x124623c2
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1246239f
push esi
call fcn.1249f8a0
add esp, 4
lea eax, [eax + eax + 2]
jmp 0x124623a1
xor eax, eax
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 8]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret 0xc

Function at 0x124623d0
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push esi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x12462408
lea ecx, [esp + 4]
push ecx
push esi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1246242e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret 0xc

Function at 0x12462440
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
xor esi, esi
push edi
push SysStringLen
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1246247d
lea ecx, [esp + 8]
push ecx
push edi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x124624fd
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
lea eax, [esp + 0x14]
push 0
push eax
push 0
push edi
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x124624e7
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.1249f8ef
mov esi, eax
add esp, 4
test esi, esi
je 0x124624e7
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8
Function at 0x12462510
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
xor esi, esi
push edi
push SysStringLen
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x12462549
lea ecx, [esp + 8]
push ecx
push edi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x124625c2
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edx
lea eax, [esp + 0x14]
push 0
push eax
push 0
push edi
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 1
jb 0x124625ac
inc eax
push eax
mov dword [esp + 0x1c], eax
call fcn.1249f8ef
mov esi, eax
add esp, 4
test esi, esi
je 0x124625ac
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push esi
push eax
push 0
push edi
push ecx
call ebx
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8
mov eax, esi
pop edi
pop esi
add esp, 8
ret 8

Function at 0x124625d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 4]
mov dword [esp + 8], 0
push eax
push esi
push SysStringLen
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x12462612
lea ecx, [esp + 4]
push ecx
push esi
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1246264e
lea edx, [esp + 0x14]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
pop esi
add esp, 0xc
ret 8