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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x181d600c]
xor eax, esp
mov dword [esp + 0x220], eax
and dword [esp + 8], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0x181a193c
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], 0x200
mov eax, dword [edi + 8]
or eax, 0xf003f
push eax
push ebx
push dword [edi + 4]
call fcn.1801a186
mov esi, eax
cmp esi, 0x80070002
je 0x1801aee4
cmp esi, 0x80070003
jne 0x1801af29
xor esi, esi
inc esi
cmp dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x181a193c
je 0x1801af00
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18121ed8
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.1801ae85
mov esi, eax
test esi, esi
jne 0x1801aee7
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1801af19
cmp dword [esp + 0x14], esi
je 0x1801af72
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0x200
push ebx
mov ecx, edi
call fcn.18019f42
mov esi, eax
jmp 0x1801aee7

Function at 0x1801b655
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x14]
mov word [ebp - 0xc], 0x500
push eax
mov esi, ecx
lea eax, [ebp - 0x10]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x220
push 0x20
push 2
push eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 8], eax
test eax, eax
je 0x1801b6bd
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop esi
call fcn.18121ed8
leave
ret
Function at 0x1801b8ec
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x44
pop eax
push eax
mov dword [ebp - 0x50], eax
xor esi, esi
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.18136b80
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
push esi
push 0xb
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x1801b946
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], esi
push eax
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x1801b946
cmp dword [ebp - 0x4c], esi
setne al
jmp 0x1801b948
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.18121ed8
leave
ret

Function at 0x1801ba65
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1801bad4
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x1801bab0
push ebx
push edi
push eax
call fcn.18136600
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x1801bacb
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret
Function at 0x1801cafa
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
push ebx
mov ebx, ecx
mov dword [ebp - 0x420], eax
mov ecx, eax
call fcn.18007546
mov ax, word [0x18176bdc]
push 0x206
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push 0
push eax
call fcn.18136b80
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x1801cb62
call fcn.1801ba25
jmp 0x1801cc0d
mov eax, dword [0x181a6e38]
mov dword [ebp - 0xc], eax
mov ax, word [0x181a6e3c]
mov word [ebp - 8], ax
mov ax, word [ebp - 0x214]
push esi
lea esi, [ebp - 0x214]
push edi
test ax, ax
je 0x1801cc06
movzx ecx, ax
mov ax, word [0x18176bdc]
push 0x206
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push 0
push eax
mov word [ebp - 0xc], cx
call fcn.18136b80
add esp, 0xc
lea eax, [ebp - 0x41c]
push 0x104
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1801cbef
lea eax, [ebp - 0x41c]
push eax
call fcn.1813abd0
mov edi, eax
lea eax, [ebp - 0x41c]
push edi
push eax
push ebx
call fcn.1814009a
add esp, 0x10
test eax, eax
je 0x1801cc1a
push esi
call fcn.1813abd0
pop ecx
lea esi, [esi + eax*2]
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x1801cb8b
mov eax, 0x8007000f
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.18121ed8
leave
ret
lea eax, [ebx + edi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x181a6e40
push dword [ebp - 0x420]
call fcn.18016a9d
add esp, 0x10
xor eax, eax
jmp 0x1801cc0b
Function at 0x1801e9b2
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, edx
mov esi, ecx
call fcn.18006f9c
push eax
lea ecx, [ebp - 8]
call fcn.180076af
mov dword [ebp - 0xc], esi
mov edx, 0x811c9dc5
xor ecx, ecx
movzx eax, byte [ebp + ecx - 0xc]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x1801e9e8
push edx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.18025b5d
mov ecx, dword [0x181dc07c]
mov eax, dword [eax + 4]
test eax, eax
jne 0x1801ea18
mov eax, ecx
cmp eax, ecx
je 0x1801ea2a
add eax, 0xc
lea ecx, [ebp - 8]
push eax
call fcn.18009e8a
jmp 0x1801ea40
or esi, 0x4000
lea edx, [ebp - 8]
mov ecx, esi
call fcn.1800cb1e
mov esi, eax
test esi, esi
js 0x1801eaaf
mov eax, dword [ebp - 8]
xor edx, edx
mov esi, dword [edi]
inc edx
mov edi, 0x104
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x1801ea65
push edi
lea ecx, [ebp - 8]
call fcn.1800773c
mov eax, dword [ebp - 8]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 8]
mov esi, eax
call fcn.18009ed8
test esi, esi
jne 0x1801ea84
mov esi, 0x80040709
jmp 0x1801eaaf
mov esi, dword [ebp - 8]
test esi, esi
jne 0x1801ea8f
xor eax, eax
jmp 0x1801ea96
push esi
call fcn.1813abd0
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.180075ed
cmp byte [ebp + 8], 0
je 0x1801eaad
mov ecx, dword [ebp - 8]
call fcn.1800c9f0
xor esi, esi
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.18006f72
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18121ed8
leave
ret

Function at 0x180221ad
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push 0
push eax
push 4
mov edx, str.AutoUpdateJitterMs
mov ecx, str.HKLMSoftwareMicrosoftEdgeUpdateDev_
call fcn.1801a461
add esp, 0xc
test eax, eax
js 0x180221f0
mov eax, dword [ebp - 8]
cmp eax, 0xea60
jb 0x18022215
mov eax, 0xea5f
jmp 0x18022215
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
movzx eax, al
mov ecx, 0xea60
neg eax
sbb eax, eax
xor edx, edx
and eax, dword [ebp - 0xc]
div ecx
mov eax, edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.18121ed8
leave
ret
Function at 0x18026db3
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
push edi
mov edi, dword [ebp + 0xc]
test cl, cl
je 0x18026ed6
call fcn.18015c2c
test al, al
je 0x18026ed6
call fcn.18016fdc
test al, al
je 0x18026ed6
xor ebx, ebx
lea ecx, [ebp - 0x11]
mov byte [ebp - 0x11], bl
call fcn.1800d75b
test eax, eax
sets al
dec al
and byte [ebp - 0x11], al
je 0x18026e16
push ecx
mov edx, edi
mov ecx, esi
call fcn.18085a2c
pop ecx
jmp 0x18026eed
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push dword [esi]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x18026ec0
cmp dword [ebp - 0xc], ebx
jne 0x18026e3c
xor edi, edi
inc edi
jmp 0x18026ec7
push dword [esi]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.180074fa
mov dword [ebp - 8], ebx
call fcn.18006f9c
push eax
lea ecx, [ebp - 8]
call fcn.180076af
xor edi, edi
inc edi
cmp dword [ebp - 0xc], edi
jle 0x18026e99
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], ebx
je 0x18026e74
push 0x20
lea ecx, [ebp - 8]
call fcn.18009f27
mov ebx, dword [esi + edi*4]
test ebx, ebx
jne 0x18026e7f
xor eax, eax
jmp 0x18026e86
push ebx
call fcn.1813abd0
pop ecx
push eax
push ebx
lea ecx, [ebp - 8]
call fcn.18009f54
inc edi
push 0
pop ebx
cmp edi, dword [ebp - 0xc]
jl 0x18026e62
push ecx
lea edx, [ebp - 8]
lea ecx, [ebp - 0x10]
call fcn.18017249
pop ecx
mov ecx, dword [ebp - 8]
mov edi, eax
add ecx, 0xfffffff0
call fcn.18006f72
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.18006f72
jmp 0x18026ecb
call fcn.1801ba25
mov edi, eax
test esi, esi
je 0x18026ed2
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
jmp 0x18026eed
push 0
mov edx, edi
mov ecx, esi
call fcn.1801bad7
pop ecx
test eax, eax
jns 0x18026eeb
lfence
jmp 0x18026eed
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18121ed8
leave
ret
Function at 0x18027dcc
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x181d600c]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x208
mov dword [esp + 0x10], eax
xor edi, edi
lea eax, [esp + 0x2c]
mov bl, dl
push edi
push eax
mov esi, ecx
call fcn.18136b80
add esp, 0xc
lea eax, [esp + 0x28]
push 0x104
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x18027e33
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x18027e87
movzx eax, ax
or eax, 0x80070000
jmp 0x18027e87
lea ecx, [esp + 0x10]
call fcn.1800bfef
lea eax, [esp + 0x10]
mov dl, bl
push eax
lea ecx, [esp + 0x2c]
call fcn.1800c719
pop ecx
push dword [esp + 0x10]
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
test eax, eax
jne 0x18027e7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x18027e7c
movzx edi, di
or edi, 0x80070000
lea ecx, [esp + 0x10]
call fcn.1800c018
mov eax, edi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18121ed8
mov esp, ebp
pop ebp
ret

Function at 0x18027ecc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10820
call fcn.1815d980
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 0x1081c], esi
mov ecx, dword [edi]
call fcn.18010826
test al, al
jne 0x18027f08
mov eax, 0x80070002
jmp 0x18028008
mov ecx, esi
call fcn.1801c892
push 0x10000
lea eax, [ebp - 0x1080c]
push 0
push eax
call fcn.18136b80
add esp, 0xc
lea eax, [ebp - 0x1080c]
push dword [edi]
push 0x8000
push eax
push 0
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
and dword [ebp - 0x10814], 0
mov dword [ebp - 0x10818], eax
test eax, eax
je 0x18028006
push 0x800
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.18136b80
mov eax, dword [ebp - 0x10814]
lea ecx, [ebp - 0x1080c]
and dword [ebp - 0x10810], 0
add esp, 0xc
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x10810]
call fcn.180074fa
push dword [edi]
lea eax, [ebp - 0x80c]
push 0x400
push eax
push 0
push dword [ebp - 0x10810]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x10810]
mov ecx, esi
push eax
call fcn.18029250
mov esi, eax
lea eax, [ebp - 0x80c]
push eax
call fcn.1813abd0
pop ecx
push eax
lea eax, [ebp - 0x80c]
mov ecx, esi
push eax
call fcn.180075ed
mov eax, dword [ebp - 0x10810]
mov esi, dword [ebp - 0x10814]
inc esi
add esi, dword [eax - 0xc]
lea ecx, [eax - 0x10]
mov dword [ebp - 0x10814], esi
call fcn.18006f72
cmp esi, dword [ebp - 0x10818]
mov esi, dword [ebp - 0x1081c]
jb 0x18027f54
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18121ed8
leave
ret
Function at 0x18028017
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x18], edx
push edi
xor edi, edi
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
jne 0x1802803f
xor eax, eax
inc eax
jmp 0x18028125
mov edx, 0x181aba14
mov dword [ebp - 0xc], edi
lea ecx, [ebp - 0xc]
call fcn.1800edf9
mov eax, dword [ebp - 0xc]
cmp dword [eax - 0xc], edi
jne 0x18028063
call fcn.1801ba25
mov edi, eax
jmp 0x18028118
push esi
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1802808e
call fcn.1801ba25
mov edi, eax
jmp 0x18028117
mov dword [ebp - 8], edi
call fcn.18006f9c
push eax
lea ecx, [ebp - 8]
call fcn.180076af
mov edx, ebx
lea ecx, [ebp - 0x14]
call fcn.18012790
push dword [eax]
lea eax, [ebp - 8]
push 0xbf
push 0xbb
push 0xef
push str._c_c_c_s
push eax
call fcn.18016ab2
mov ecx, dword [ebp - 0x14]
add esp, 0x18
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
push edi
push ecx
mov dword [ebp - 0x10], edi
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180280f9
call fcn.1801ba25
mov edi, eax
jmp 0x18028105
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push eax
call fcn.18009e8a
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f72
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.18121ed8
leave
ret
Function at 0x18028be1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x181d600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov bl, cl
push edi
mov byte [ebp - 0x31], bl
call fcn.18026ad0
test al, al
je 0x18028c0c
mov eax, 0x80004005
jmp 0x18028db5
xor edi, edi
mov dword [ebp - 0x28], 0x181a1a00
lea edx, [ebp - 0x28]
mov dword [ebp - 0x24], edi
mov cl, bl
call fcn.180286ba
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], edi
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], edi
call fcn.1801579d
mov dword [ebp - 0x20], 0x181a193c
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0x200
call fcn.1801f7c3
mov eax, str.HKLMSoftwareMicrosoftEdgeUpdate_
test bl, bl
jne 0x18028c58
mov eax, str.HKCUSoftwareMicrosoftEdgeUpdate_
push edi
push ecx
push 0xf003f
push ecx
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.1801a0b8
mov ebx, eax
test ebx, ebx
js 0x18028d75
push edi
push edi
push edi
push edi
push 0x181ab874
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18028c91
mov ebx, edi
jmp 0x18028d75
mov dword [ebp - 8], edi
call fcn.18006f9c
push eax
lea ecx, [ebp - 8]
call fcn.180076af
lea ecx, [ebp - 8]
call fcn.1800ec8b
mov esi, dword [ebp - 8]
test eax, eax
js 0x18028d67
xor ebx, ebx
lea ecx, [ebp - 0x20]
inc ebx
push ebx
push esi
push 0x181ab874
call fcn.1801a9a2
test eax, eax
js 0x18028d67
mov ecx, 0x181d71e0
call fcn.18026bc1
lea ecx, [ebp - 0x20]
call fcn.18028b76
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call fcn.180283e7
mov edi, dword [ebp - 0x14]
test eax, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
js 0x18028d27
cmp edi, eax
je 0x18028d27
sub esp, 0xc
lea eax, [ebp - 0x14]
mov ecx, esp
push eax
call fcn.18025698
mov cl, byte [ebp - 0x31]
call fcn.1802872f
mov edi, dword [ebp - 0x14]
mov ebx, eax
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x38], eax
test edi, edi
je 0x18028d6b
cmp edi, eax
je 0x18028d49
mov esi, dword [ebp - 0x38]
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.18006f72
add edi, 4
cmp edi, esi
jne 0x18028d32
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
sub eax, edi
and eax, 0xfffffffc
push eax
push edi
call fcn.1800a1ed
xor edi, edi
pop ecx
pop ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
jmp 0x18028d6d
mov ebx, eax
jmp 0x18028d6d
xor edi, edi
lea ecx, [esi - 0x10]
call fcn.18006f72
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0x181a193c
je 0x18028d95
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0x200
lea ecx, [ebp - 0x30]
call fcn.180157c8
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x181a1a00
je 0x18028db3
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18121ed8
leave
ret
Function at 0x1802bb31
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [ebp + 8]
push esi
push edi
mov edi, ecx
movzx ecx, al
cmp ecx, 7
ja case.default.0x1802baa0
jmp dword [ecx*4 + 0x1802bb11]
call fcn.1802ded7
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
pop ecx
pop ebp
ret 4
push 0xc
lfence
call fcn.18122788
pop ecx
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
jmp 0x1802baac
push 0x18
lfence
call fcn.18122788
mov esi, eax
mov dword [esp], 0x181a5db4
mov ecx, esi
call fcn.1801e269
mov dword [edi], esi
jmp 0x1802baae
mov byte [edi], 0
jmp 0x1802baae
xor ecx, ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
jmp 0x1802baae
fldz
fstp qword [edi]
jmp 0x1802baae
and dword [edi], 0
jmp 0x1802baae
and dword [edi], 0
test al, al
jne 0x1802baae
call fcn.1813e7f9
add byte [ebx - 0x4558e7fe], bh
add bl, byte [eax]
mov bh, 0xba
add bl, byte [eax]
into
mov edx, -1158932478
add bl, byte [eax]
int1
mov edx, -1158604798
add bl, byte [eax]
cli
mov edx, -1957292030
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x1802bb73
call fcn.1802bdf4
mov ecx, esi
cmp eax, 0xef
jne 0x1802bb6e
call fcn.1802bdf4
cmp eax, 0xbb
jne 0x1802bb62
mov ecx, esi
call fcn.1802bdf4
cmp eax, 0xbf
je 0x1802bb73
mov dword [esi + 0x40], str.invalid_BOM__must_be_0xEF_0xBB_0xBF_if_given
push 0xe
pop eax
pop esi
ret
call fcn.1802c8ba
mov ecx, esi
call fcn.1802bdf4
mov eax, dword [esi + 8]
cmp eax, 0x20
je 0x1802bb73
cmp eax, 9
je 0x1802bb73
cmp eax, 0xa
je 0x1802bb73
cmp eax, 0xd
je 0x1802bb73
cmp eax, 0x36
jg 0x1802bbec
je 0x1802bbbb
cmp eax, 0x30
jg 0x1802bbd3
je 0x1802bbbb
cmp eax, 0xffffffff
je 0x1802bbcf
test eax, eax
je 0x1802bbcf
cmp eax, 0x22
je 0x1802bbc7
cmp eax, 0x2c
je 0x1802bbc3
cmp eax, 0x2d
jne 0x1802bc3b
mov ecx, esi
pop esi
jmp fcn.1802be9e
push 0xd
jmp 0x1802bb6b
mov ecx, esi
pop esi
jmp fcn.1802c264
push 0xf
jmp 0x1802bb6b
sub eax, 0x31
je 0x1802bbbb
sub eax, 1
je 0x1802bbbb
sub eax, 1
je 0x1802bbbb
sub eax, 1
je 0x1802bbbb
sub eax, 1
jmp 0x1802bbb5
cmp eax, 0x5d
jg 0x1802bc21
je 0x1802bc1a
sub eax, 0x37
je 0x1802bbbb
sub eax, 1
je 0x1802bbbb
sub eax, 1
je 0x1802bbbb
sub eax, 1
je 0x1802bc13
sub eax, 0x21
jne 0x1802bc3b
push 8
jmp 0x1802bb6b
push 0xc
jmp 0x1802bb6b
push 0xa
jmp 0x1802bb6b
sub eax, 0x66
je 0x1802bc6b
sub eax, 8
je 0x1802bc60
sub eax, 6
je 0x1802bc55
sub eax, 7
je 0x1802bc4e
dec eax
sub eax, 1
je 0x1802bc47
mov dword [esi + 0x40], str.invalid_literal
jmp 0x1802bb69
push 0xb
jmp 0x1802bb6b
push 9
jmp 0x1802bb6b
push 1
push 4
push str.true
jmp 0x1802bc74
push 3
push 4
push str.null
jmp 0x1802bc74
push 2
push 5
push str.false
mov ecx, esi
call fcn.1802be60
pop esi
ret
Function at 0x1803cc19
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x181d600c]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esp + 0xc], eax
push 0x400
lea eax, [esp + 0x20]
mov dword [esp + 0x18], ecx
push edi
push eax
mov dword [esp + 0x1c], edi
call fcn.18136b80
add esp, 0xc
mov dword [esp + 0x18], edi
push 0x60
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1803cc90
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1803cc90
call fcn.18007a10
mov esi, eax
jmp 0x1803cd43
push dword [esp + 0xc]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1803ccac
call fcn.18007a10
jmp 0x1803cd36
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1803cca2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea ecx, [esi + 1]
cmp ecx, esi
jae 0x1803ccd2
mov esi, 0x8007000e
jmp 0x1803cd38
push 2
pop edx
lfence
call fcn.180103e2
cmp eax, 0x400
jbe 0x1803ccf3
push eax
lea ecx, [esp + 0x1c]
lfence
call fcn.18042f83
jmp 0x1803ccfb
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
je 0x1803cccb
push esi
lfence
push dword [esp + 0x1c]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1803cca2
mov eax, dword [esp + 0x18]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [esp + 0x14]
push dword [esp + 0x1c]
call fcn.1803d7f8
mov esi, eax
test edi, edi
je 0x1803cd43
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x1c]
cmp dword [esp + 0x18], eax
je 0x1803cd56
lea ecx, [esp + 0x18]
call fcn.180420b7
mov ecx, dword [esp + 0x424]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18121ed8
mov esp, ebp
pop ebp
ret 0x10