joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18011de4
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x180f51f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x18011e4f
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x18011e46
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x10], ebx
pop ebx
setne al
xor ecx, ebp
call fcn.1809cca5
leave
ret

Function at 0x1801270d
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x180f51f0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov esi, ecx
push 2
mov dword [esi], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x240], eax
cmp eax, 0xffffffff
jne 0x180127a3
call fcn.1800fc86
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbb80
mov ebx, eax
je 0x18012790
push 0xfffffffffffffffe
pop edi
xor esi, esi
push edi
inc esi
push esi
mov dword [ebp - 0x250], ecx
call fcn.18001d8a
push ebx
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x250]
push str._GetParentProcessId__Failed_snapshot__0x_x_
push eax
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x244], esi
call fcn.18001000
add esp, 0xc
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1809cca5
leave
ret 4
mov edi, 0x22c
push edi
lea eax, [ebp - 0x23c]
push ebx
push eax
call fcn.1809d820
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
mov dword [ebp - 0x23c], edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x1801283a
call fcn.1800fc86
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbb80
mov ebx, eax
je 0x18012829
push 0xfffffffffffffffe
pop edi
xor esi, esi
push edi
inc esi
push esi
mov dword [ebp - 0x250], ecx
call fcn.18001d8a
push ebx
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x250]
push str._Process32First_failed__0x_x_
push eax
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x244], esi
call fcn.18001000
add esp, 0xc
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18012790
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x1c]
jne 0x18012852
mov eax, dword [ebp - 0x224]
cmp eax, ebx
jne 0x1801286f
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1801283a
mov ebx, 0x80004005
jmp 0x18012829
mov dword [esi], eax
jmp 0x18012829
Function at 0x1801474e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x180147cf
push edi
call fcn.1809db14
pop ecx
mov dword [esi], eax
cmp eax, ebx
je 0x180147cf
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x180147c2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push str.VarFileInfoTranslation
push dword [esi]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x180147c2
cmp dword [ebp - 4], ebx
je 0x180147c2
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
xor eax, eax
mov dword [esi + 4], ecx
inc eax
jmp 0x180147d1
push dword [esi]
call fcn.1809ccb4
mov dword [esi + 4], ebx
mov dword [esi], ebx
pop ecx
xor eax, eax
pop edi
pop ebx
leave
ret 4

Function at 0x180149b5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], 0xffffffff
push esi
push edi
mov dword [ebp - 8], ebx
jne 0x180149d3
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
call fcn.18003d67
add eax, 0x10
push 0x40
mov dword [ebp - 4], eax
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0x70], 0x44
call fcn.1809d820
xor eax, eax
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push ebx
push dword [ebp + 0xc]
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
xor edi, edi
mov dword [ebp - 8], ebx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x18014a25
mov edi, 0x400
jmp 0x18014a28
mov dword [ebp - 8], ebx
push 0x104
lea esi, [ebp - 4]
call fcn.18004129
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push ebx
push dword [ebp - 8]
push edi
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
or eax, 0xffffffff
call fcn.18003fe5
cmp edi, ebx
jne 0x18014ac2
call fcn.1800fc86
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbb80
mov dword [ebp + 0xc], eax
je 0x18014aa6
push 0xfffffffffffffffe
pop edi
xor esi, esi
push edi
inc esi
push esi
mov dword [ebp - 0x18], ecx
call fcn.18001d8a
push dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push str._RunAsUser_failed__cmd_s__hresult0x_x_
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], esi
call fcn.18001000
add esp, 0x10
mov esi, dword [ebp + 0xc]
push ebx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18004250
mov eax, esi
jmp 0x180149ce
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x28]
call esi
xor esi, esi
jmp 0x18014aa9
Function at 0x18014ef5
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x18014f5f
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea edi, [esi + esi + 2]
push edi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push dword [esp + 0x10]
push eax
call fcn.1809cfb0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
test eax, eax
jne 0x18014f58
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
ret

Function at 0x18015099
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov edi, eax
cmp edi, esi
jge 0x180150d5
cmp dword [ebp - 4], esi
je 0x180150ce
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
jmp 0x180151ac
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
mov edi, eax
cmp edi, esi
jge 0x180150f7
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x180150c0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x180150c0
push pe_nt_image_headers32
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.1809d820
mov eax, dword [ebp - 0xc]
add esp, 0xc
lea edx, [ebp - 0x118]
push edx
push 0x8000
push dword [ebp - 4]
mov dword [ebp - 0x118], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov edi, eax
cmp edi, esi
jl 0x180150e8
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.SHLWAPI.dll_StrRetToStrW]
mov ebx, eax
cmp ebx, esi
jge 0x18015178
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 8], esi
je 0x1801515d
push dword [ebp - 8]
call edi
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x1801516a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 4], esi
je 0x18015174
push dword [ebp - 4]
call edi
mov eax, ebx
jmp 0x180151ac
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.1800422d
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 8], esi
je 0x18015193
push dword [ebp - 8]
call edi
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x180151a0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 4], esi
je 0x180151aa
push dword [ebp - 4]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1801765d
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x180f51f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push eax
mov esi, ecx
call fcn.18018b89
push 0x180c1dc4
push 0x180c1dd4
lea eax, [ebp - 0x24]
call fcn.18018caa
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop esi
call fcn.1809cca5
leave
ret
Function at 0x180177d3
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xcc
movzx eax, byte [ebx]
movzx edx, byte [ebx + 4]
mov dword [ebp + 0x24], eax
movzx eax, byte [ebx + 1]
mov dword [ebp + 0x28], eax
movzx eax, byte [ebx + 2]
push esi
mov dword [ebp + 0x2c], eax
movzx eax, byte [ebx + 3]
push edi
push 0xf
pop ecx
and eax, ecx
mov dword [ebp + 0x30], eax
mov eax, 0xfc
and edx, eax
mov dword [ebp + 0x34], edx
movzx edx, byte [ebx + 5]
mov dword [ebp + 0x38], edx
movzx edx, byte [ebx + 6]
mov dword [ebp + 0x3c], edx
movzx edx, byte [ebx + 7]
and edx, ecx
mov dword [ebp + 0x40], edx
movzx edx, byte [ebx + 8]
and edx, eax
mov dword [ebp + 0x44], edx
movzx edx, byte [ebx + 9]
mov dword [ebp + 0x48], edx
movzx edx, byte [ebx + 0xa]
mov dword [ebp + 0x4c], edx
movzx edx, byte [ebx + 0xb]
mov esi, dword [ebp + 0x7c]
and dword [ebp + 0x64], 0
and edx, ecx
mov dword [ebp + 0x50], edx
movzx edx, byte [ebx + 0xc]
and edx, eax
movzx eax, byte [ebx + 0xd]
mov dword [ebp + 0x58], eax
movzx eax, byte [ebx + 0xe]
mov dword [ebp + 0x5c], eax
movzx eax, byte [ebx + 0xf]
and eax, ecx
push 0x11
mov dword [ebp + 0x60], eax
xor eax, eax
pop ecx
lea edi, [ebp - 0x20]
mov dword [ebp + 0x54], edx
rep stosd dword es:[edi], eax
test esi, esi
ja 0x1801787f
cmp dword [ebp + 0x78], eax
jbe 0x180178db
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
xor ecx, ecx
cmp ecx, esi
ja 0x180178a7
jb 0x18017896
cmp eax, dword [ebp + 0x78]
jae 0x180178a7
mov edx, dword [ebp + 0x74]
movzx edx, byte [eax + edx]
mov dword [ebp + eax*4 - 0x64], edx
inc eax
cmp eax, 0x10
jb 0x1801788b
add dword [ebp + 0x74], eax
sub dword [ebp + 0x78], eax
mov dword [ebp + eax*4 - 0x64], 1
lea eax, [ebp - 0x20]
sbb esi, ecx
lea ecx, [ebp - 0x64]
call fcn.180176f0
lea eax, [ebp + 0x24]
push eax
lea edx, [ebp - 0x20]
call fcn.18017711
pop ecx
test esi, esi
ja 0x1801787f
jb 0x180178db
cmp dword [ebp + 0x78], 0
ja 0x1801787f
push 0x11
pop ecx
lea esi, [ebp - 0x20]
lea edi, [ebp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x180c1d70
lea eax, [ebp - 0x20]
call fcn.180176f0
mov eax, dword [ebp + 0x20]
shr eax, 7
neg eax
xor edx, edx
mov edi, dword [ebp + edx + 0x24]
lea ecx, [ebp + edx - 0x20]
mov esi, dword [ecx]
xor edi, esi
and edi, eax
xor edi, esi
add edx, 4
mov dword [ecx], edi
cmp edx, 0x44
jb 0x180178fd
pop edi
xor eax, eax
pop esi
movzx ecx, byte [ebx + eax + 0x10]
mov dword [ebp + eax*4 - 0x64], ecx
inc eax
cmp eax, 0x10
jb 0x1801791b
and dword [ebp - 0x24], 0
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x20]
call fcn.180176f0
xor eax, eax
mov cl, byte [ebp + eax*4 - 0x20]
mov edx, dword [ebp + 0x70]
mov byte [eax + edx], cl
inc eax
cmp eax, 0x10
jb 0x1801793b
xor eax, eax
add ebp, 0x68
leave
ret
Function at 0x18017a2f
Capabilities:
Create thread

Disassembly:
mov eax, dword [esi + 4]
test eax, eax
je 0x18017a3d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 4]
mov dword [esi], eax
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x18017984
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x18017a6d
xor al, al
jmp 0x18017a7d
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
inc eax
ret 4
Function at 0x18018113
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
movzx ecx, byte [0x180fb8d9]
sub esp, 0x1c
push ebx
push esi
neg ecx
push edi
sbb ecx, ecx
and ecx, 0x180fbb80
push 1
pop ebx
je 0x18018158
push 3
pop esi
push esi
push ebx
mov dword [ebp - 0x18], ecx
call fcn.18001d8a
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push str._KillProcessViaWndMessages_
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
call fcn.18001000
pop ecx
pop ecx
mov edi, dword [ebp + 8]
lea esi, [edi + 0x38]
mov eax, esi
call fcn.18086b1e
push edi
push 0x18018054
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x18018182
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
test eax, 0xfffffffc
jne 0x180181c2
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbb80
je 0x180181bb
push ebx
push ebx
mov dword [ebp - 0x18], ecx
call fcn.18001d8a
push dword [edi]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push str._KillProcessViaWndMessages__failed_to_find_any_windows_for__s_
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.18001000
add esp, 0xc
xor al, al
jmp 0x180182d4
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
and dword [ebp - 8], 0
sar eax, 2
mov byte [ebp - 1], 0
test eax, eax
jbe 0x18018296
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
cmp dword [ebp - 8], eax
jb 0x180181ee
call fcn.1809e0d9
mov edi, dword [ebp - 8]
mov eax, dword [esi + 0xc]
push 0
push 0xf060
shl edi, 2
add eax, edi
push 0x112
push dword [eax]
call dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x18018278
mov eax, dword [ebp + 8]
cmp byte [eax + 0x54], 0
je 0x18018275
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbb80
je 0x18018255
push 3
push ebx
mov dword [ebp - 0x18], ecx
call fcn.18001d8a
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push str._PostMessageSucceeded_flashing_window_
push eax
mov dword [ebp - 0x10], 3
mov dword [ebp - 0xc], ebx
call fcn.18001000
pop ecx
pop ecx
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
cmp dword [ebp - 8], eax
jb 0x18018268
call fcn.1809e0d9
mov eax, dword [esi + 0xc]
push ebx
push dword [edi + eax]
call dword [sym.imp.USER32.dll_FlashWindow]
mov byte [ebp - 1], bl
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
inc dword [ebp - 8]
sar eax, 2
cmp dword [ebp - 8], eax
jb 0x180181db
cmp byte [ebp - 1], 0
mov edi, dword [ebp + 8]
jne 0x180182db
movzx ecx, byte [0x180fb8d9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbb80
je 0x180182d2
push 3
pop esi
push esi
push ebx
mov dword [ebp - 0x18], ecx
call fcn.18001d8a
push dword [edi]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push str._KillProcessViaWndMessages__failed_to_PostMessage_to_windows_of__s_
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
call fcn.18001000
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
push dword [ebp + 0xc]
call fcn.18017bd0
test al, al
je 0x180182d2
mov eax, ebx
jmp 0x180182d4
Function at 0x180184f1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
dec ecx
push esi
push edi
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 8]
mov edi, edx
sub edi, eax
sub ebx, eax
sub ecx, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x40
mov ecx, dword [ebx + eax]
mov edx, dword [eax]
mov esi, ecx
xor esi, edx
and esi, dword [ebp - 8]
xor edx, esi
mov dword [edi + eax], edx
mov edx, dword [ebp - 0xc]
xor ecx, esi
mov dword [edx + eax], ecx
add eax, 4
dec dword [ebp - 4]
jne 0x18018516
pop edi
pop esi
pop ebx
leave
ret

Function at 0x18018b89
Capabilities:
Encode data using xor
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x180f51f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x20
push dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push eax
call fcn.1809cfb0
mov al, byte [ebp - 5]
and byte [ebp - 0x24], 0xf8
and al, 0x3f
or al, 0x40
add esp, 0xc
mov byte [ebp - 5], al
xor eax, eax
mov ecx, dword [ebp + 0x10]
movzx ecx, byte [eax + ecx]
mov dword [ebp + eax*4 - 0x1a8], ecx
inc eax
cmp eax, 0x20
jb 0x18018bc3
push esi
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1a8]
push eax
call fcn.1801853c
lea eax, [ebp - 0x128]
push eax
push eax
call fcn.180187f3
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.180183e8
push 0x20
pop ecx
lea eax, [ebp - 0xa8]
lea esi, [ebp - 0xa8]
lea edi, [ebp - 0x228]
push eax
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, 0x180c1cd8
call fcn.1801830b
mov eax, dword [ebp - 0x2c]
shr eax, 7
and eax, 1
add esp, 0x24
neg eax
xor edx, edx
mov edi, dword [ebp + edx - 0x228]
lea ecx, [ebp + edx - 0xa8]
mov esi, dword [ecx]
xor edi, esi
and edi, eax
xor edi, esi
add edx, 4
mov dword [ecx], edi
cmp edx, 0x80
jb 0x18018c43
pop edi
xor eax, eax
pop esi
mov cl, byte [ebp + eax*4 - 0xa8]
mov edx, dword [ebp - 0x28]
mov byte [edx + eax], cl
inc eax
cmp eax, 0x20
jb 0x18018c6a
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.1809cca5
leave
ret
Function at 0x18019081
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x180f51f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], ecx
je 0x18019181
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
cmp dword [ebp + 0x10], 0
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
ja 0x180190c2
cmp dword [ebp + 0xc], 0x40
jb 0x18019130
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x54]
mov edi, ecx
sub edi, eax
sub ebx, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x5c]
lea esi, [ebp - 0x54]
call fcn.180191bb
pop ecx
xor esi, esi
lea eax, [ebp + esi - 0x54]
mov cl, byte [ebx + eax]
xor cl, byte [eax]
inc esi
cmp esi, 0x40
mov byte [edi + eax], cl
jl 0x180190e1
xor ecx, ecx
push 8
inc ecx
pop edx
lea eax, [ebp + edx - 0x14]
movzx esi, byte [eax]
add ecx, esi
mov byte [eax], cl
shr ecx, 8
inc edx
cmp edx, 0x10
jl 0x180190f9
add dword [ebp + 0xc], 0xffffffc0
push 0x40
pop eax
adc dword [ebp + 0x10], 0xffffffff
add dword [ebp - 0x58], eax
add dword [ebp + 8], eax
add edi, eax
add ebx, eax
cmp dword [ebp + 0x10], 0
ja 0x180190cf
jb 0x1801912f
cmp dword [ebp + 0xc], eax
jae 0x180190cf
pop ebx
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
je 0x1801917f
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x5c]
lea esi, [ebp - 0x54]
call fcn.180191bb
pop ecx
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
jb 0x1801917f
ja 0x18019156
cmp dword [ebp + 0xc], ecx
jbe 0x1801917f
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
sub esi, eax
sub edi, eax
lea eax, [ebp + ecx - 0x54]
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc ecx
mov byte [edi + eax], dl
mov eax, ecx
cdq
cmp edx, dword [ebp + 0x10]
jb 0x18019163
ja 0x1801917f
cmp eax, dword [ebp + 0xc]
jb 0x18019163
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.1809cca5
leave
ret
Function at 0x180199af
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x180f51f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x414], ecx
mov ecx, dword [ebp + 0xc]
push edi
lea esi, [ebp - 0x424]
mov edi, edx
mov dword [ebp - 0x418], ecx
call fcn.18019c5e
and dword [ebp - 0x410], 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x18019a07
call fcn.1800370f
mov esi, eax
jmp 0x18019af5
push dword [ebp - 0x418]
push dword [ebp - 0x414]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x18019a2a
call fcn.1800370f
jmp 0x18019aec
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x414], eax
test eax, eax
je 0x18019a20
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x18019a70
lea eax, [ebp - 0x40c]
cmp dword [ebp - 0x410], eax
je 0x18019a66
lea eax, [ebp - 0x410]
call fcn.180229e8
mov eax, 0x8007000e
jmp 0x18019b10
push 2
push eax
call fcn.180071f6
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x18019a90
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.180229c7
jmp 0x18019a9c
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
jne 0x18019aac
mov esi, 0x8007000e
jmp 0x18019aee
push esi
push dword [ebp - 0x410]
push esi
push dword [ebp - 0x414]
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x18019a20
mov edx, dword [ebp - 0x410]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov edx, dword [ebp - 0x410]
lea ecx, [ebp - 0x424]
call fcn.1801a3b5
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x40c]
cmp dword [ebp - 0x410], eax
je 0x18019b0e
lea eax, [ebp - 0x410]
call fcn.180229e8
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1809cca5
leave
ret 0xc