joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014840
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058506
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x100754f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x114]
push 0x104
push 0
push eax
mov dword [ebp - 0x1b4], esi
call fcn.100365a0
add esp, 0xc
mov dword [ebp - 0x1b4], 0x104
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x12c]
push eax
call fcn.10014550
add esp, 4
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 0
jb 0x100148c7
mov eax, dword [eax]
lea ecx, [ebp - 0x114]
push ecx
push eax
lea eax, [ebp - 0x144]
push str._s_s
push eax
call fcn.10014300
add esp, 0x10
mov edx, dword [ebp - 0x118]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x10014921
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10014917
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100149ac
push edx
push ecx
call fcn.10033b8a
add esp, 8
lea eax, [ebp - 0x144]
mov dword [ebp - 0x11c], 0
push eax
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.10009430
push esi
lea ecx, [ebp - 0x1b0]
call fcn.1000a570
mov edx, dword [ebp - 0x130]
cmp edx, 0x10
jb 0x10014990
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10014986
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100149b1
push edx
push ecx
call fcn.10033b8a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10033ba6
mov esp, ebp
pop ebp
ret
call fcn.100392dc
call fcn.100392dc
int3
Function at 0x10014f00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100585c9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100754f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov eax, edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x10014f4c
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10015022
mov esi, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [esi + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x14], 1
cmp eax, ecx
ja 0x10014fa2
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x10014f9a
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x10014fae
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.10016810
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10014fb8
mov eax, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x10014fc0
mov edi, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0
push 0
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10014fde
push eax
push str.Cannot_get_string_value:_RegGetValue_failed.
jmp 0x10015028
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 0x10]
shr eax, 1
dec eax
cmp eax, ecx
ja 0x10015000
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x10014ff8
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x1001500c
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.10016810
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 8
push eax
push str.Cannot_get_size_of_string_value:_RegGetValue_failed.
lea ecx, [ebp - 0x24]
call fcn.10013480
push 0x100711c0
lea eax, [ebp - 0x24]
push eax
call fcn.100354e1
int3

Function at 0x10015100
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100754f8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 0
push eax
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10015165
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1001516b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10015179
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10033ba6
mov esp, ebp
pop ebp
ret
Function at 0x10015190
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x100754f8]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.VBoxService.exe]
mov ax, word [0x1005db60]
push ebx
movups xmmword [ebp - 0x54], xmm0
push esi
movups xmm0, xmmword [0x1005db38]
push edi
push 0
movups xmmword [ebp - 0x44], xmm0
mov word [ebp - 0x14], ax
xorps xmm0, xmm0
mov dword [ebp - 0xa], 0
movq qword [ebp - 0x34], xmm0
movups xmm0, xmmword [str.vmtoolsd.exe]
push 2
mov word [ebp - 6], 0
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [0x1005db58]
movq qword [ebp - 0x1c], xmm0
xorps xmm0, xmm0
movq qword [ebp - 0x12], xmm0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x280], 0x22c
test ebx, ebx
je 0x1001525b
lea eax, [ebp - 0x280]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
xor esi, esi
lea edi, [ebp - 0x54]
lea eax, [ebp - 0x25c]
push eax
push edi
call fcn.1003eb56
add esp, 8
test eax, eax
je 0x1001527e
inc esi
add edi, 0x28
cmp esi, 2
jl 0x10015226
lea eax, [ebp - 0x280]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10015221
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.10016570
test eax, eax
jne 0x10015285
call fcn.10015040
test eax, eax
jne 0x10015285
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10033ba6
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10033ba6
mov esp, ebp
pop ebp
ret

Function at 0x10015680
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x10015702
push esi
push edi
mov edi, dword [ebp + 0xc]
sub dword [ebp + 8], edi
nop dword [eax]
nop word [eax + eax]
inc byte [ecx + 0x100]
lea edi, [edi + 1]
movzx esi, byte [ecx + 0x100]
movzx eax, byte [esi + ecx]
add byte [ecx + 0x101], al
movzx eax, byte [ecx + 0x101]
mov dl, byte [esi + ecx]
movzx eax, byte [eax + ecx]
mov byte [esi + ecx], al
movzx eax, byte [ecx + 0x101]
mov byte [eax + ecx], dl
movzx eax, byte [ecx + 0x100]
movzx edx, byte [ecx + 0x101]
movzx eax, byte [eax + ecx]
add al, byte [edx + ecx]
mov edx, dword [ebp + 8]
movzx eax, al
movzx eax, byte [eax + ecx]
xor al, byte [edx + edi - 1]
mov byte [edi - 1], al
sub ebx, 1
jne 0x100156a0
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x10015ae0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x1005dba0
push dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call fcn.1003eec4
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
jne 0x10015b0a
mov esp, ebp
pop ebp
ret
push esi
push 2
xor esi, esi
push esi
push eax
call fcn.1003cdc2
add esp, 0xc
test eax, eax
jne 0x10015b5e
push edi
push dword [ebp - 4]
call fcn.1003f50b
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x10015b5d
mov esi, dword [ebp + 0xc]
mov ecx, esi
push esi
push edi
call fcn.10012e70
push 0
push 0
push dword [ebp - 4]
call fcn.1003cdc2
push dword [ebp - 4]
push 1
push edi
push dword [esi]
call fcn.1003c9df
add esp, 0x1c
mov esi, 1
pop edi
push dword [ebp - 4]
call fcn.1003c4fc
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10015b70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058728
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x100754f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [ebp + 0xc]
xor eax, eax
mov esi, dword [ebp + 8]
mov ecx, edx
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
lea ebx, [ecx + 2]
mov word [ebp - 0x2c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10015bc7
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.10006ee0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.100134d0
mov edx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x10015c2f
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10015c25
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10015d52
push edx
push ecx
call fcn.10033b8a
add esp, 8
mov ecx, edi
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 7
lea edx, [ecx + 2]
mov word [ebp - 0x44], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10015c56
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x44]
call fcn.10006ee0
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x4c]
cmp dword [ebp - 0x30], 8
push 4
push ecx
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push 4
push 0
push eax
push dword [ebp - 0x48]
mov byte [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10015d57
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x10015cda
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10015cd0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10015d73
push edx
push ecx
call fcn.10033b8a
add esp, 8
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x10015d27
cmp eax, 0x80000001
je 0x10015d27
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x10015d27
cmp eax, 0x80000000
je 0x10015d27
cmp eax, 0x80000005
je 0x10015d27
cmp eax, reloc.OLEAUT32.dll_VariantInit
je 0x10015d27
cmp eax, 0x80000004
je 0x10015d27
cmp eax, 0x80000060
je 0x10015d27
cmp eax, 0x80000050
je 0x10015d27
cmp eax, 0x80000003
je 0x10015d27
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x10015d36
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10033ba6
mov esp, ebp
pop ebp
ret
call fcn.100392dc
push eax
push str.Cannot_write_DWORD_value:_RegSetValueEx_failed.
lea ecx, [ebp - 0x5c]
call fcn.10013480
push 0x100711c0
lea eax, [ebp - 0x5c]
push eax
call fcn.100354e1
call fcn.100392dc
int3
Function at 0x10015d80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058770
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x100754f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x14]
xor eax, eax
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x10015f2f
mov ecx, edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x4c], eax
mov word [ebp - 0x5c], ax
mov dword [ebp - 0x48], 7
lea eax, [ecx + 2]
mov dword [ebp - 0x60], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10015de0
sub ecx, dword [ebp - 0x60]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.10006ee0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 1
push eax
push ebx
lea ecx, [ebp - 0x60]
call fcn.100134d0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.10003fa0
mov ecx, edi
mov dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10015e30
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x44]
call fcn.10006ee0
mov ecx, esi
mov byte [ebp - 4], 4
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10015e66
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.10006ee0
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 5
cmovae ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x30], 8
lea edx, [eax*2 + 2]
push edx
push ecx
push 1
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push 0
push eax
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10015f4b
lea ecx, [ebp - 0x2c]
call fcn.10003fa0
lea ecx, [ebp - 0x44]
call fcn.10003fa0
lea ecx, [ebp - 0x60]
call fcn.10013b20
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x10015f20
cmp eax, 0x80000001
je 0x10015f20
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x10015f20
cmp eax, 0x80000000
je 0x10015f20
cmp eax, 0x80000005
je 0x10015f20
cmp eax, reloc.OLEAUT32.dll_VariantInit
je 0x10015f20
cmp eax, 0x80000004
je 0x10015f20
cmp eax, 0x80000060
je 0x10015f20
cmp eax, 0x80000050
je 0x10015f20
cmp eax, 0x80000003
je 0x10015f20
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x10015f2f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10033ba6
mov esp, ebp
pop ebp
ret
push eax
push str.Cannot_write_string_value:_RegSetValueEx_failed.
lea ecx, [ebp - 0x70]
call fcn.10013480
push 0x100711c0
lea eax, [ebp - 0x70]
push eax
call fcn.100354e1
int3
Function at 0x10015f70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100587a8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x100754f8]
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 esi, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, eax
mov dword [ebp - 0x30], ebx
add ecx, ecx
mov dword [ebp - 0x2c], 7
xor edx, edx
mov word [ebp - 0x40], dx
lea eax, [ecx + esi]
cmp esi, eax
je 0x10015fd1
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.10006ee0
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, eax
xor esi, esi
add edx, edx
mov dword [ebp - 0x18], esi
xor eax, eax
mov ecx, 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], ecx
lea eax, [edx + edi]
cmp edi, eax
je 0x1001600f
sar edx, 1
lea ecx, [ebp - 0x28]
push edx
push edi
call fcn.10006ee0
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
cmp dword [ebp - 0x30], 0
jbe 0x100160ab
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0x80], 0x3c
cmovae eax, dword [ebp - 0x40]
mov dword [ebp - 0x7c], 0x440
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], eax
test esi, esi
je 0x10016054
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x60], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 0x48]
mov ebx, eax
test ecx, ecx
je 0x100160a8
cmp byte [ebp + 0x14], 0
je 0x100160a1
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x100160de
lea edx, [ecx*2 + 2]
mov ecx, dword [ebp - 0x28]
mov eax, ecx
cmp edx, 0x1000
jb 0x100160d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016146
push edx
push ecx
call fcn.10033b8a
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x10016128
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001611e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001614b
push edx
push ecx
call fcn.10033b8a
add esp, 8
mov eax, ebx
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.10033ba6
mov esp, ebp
pop ebp
ret
call fcn.100392dc
call fcn.100392dc
int3
Function at 0x10016610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x1005dba8
push dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call fcn.1003eec4
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
jne 0x1001663a
mov esp, ebp
pop ebp
ret
push esi
push eax
push 1
push dword [ebp + 0x10]
xor esi, esi
push dword [ebp + 0xc]
call fcn.1003cff6
test eax, eax
mov ecx, 1
cmovne esi, ecx
push dword [ebp - 4]
call fcn.1003c4fc
add esp, 0x14
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10017020
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058868
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100754f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.10033b5a
mov edi, eax
add esp, 4
test edi, edi
je 0x100170bd
push 1
mov dword [ebp - 4], 0
call fcn.10032e37
add esp, 4
mov dword [edi + 4], eax
jmp 0x100170bf
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.10008fd0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov bl, al
mov dword [ebp - 4], 3
test edi, edi
je 0x10017121
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x10017121
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x40], bl
jne 0x10017144
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x10017167
cmp byte [ebp + 0xc], 0
je 0x10017153
push esi
call fcn.10033090
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x10017173
mov esi, str.ios_base::badbit_set
jmp 0x10017183
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.1000a410
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.10009510
push 0x10070788
lea eax, [ebp - 0x30]
push eax
call fcn.100354e1
int3
Function at 0x1001a740
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058ae6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x100754f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x1001a7ec
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x1001a7ec
call fcn.1000b900
mov edi, eax
jmp 0x1001a90b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1001a80f
call fcn.1000b900
jmp 0x1001a8fe
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x1001a82d
call fcn.1000b900
jmp 0x1001a8fe
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x1001a84e
mov edi, 0x8007000e
jmp 0x1001a900
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x1001a944
jb 0x1001a86c
cmp eax, 0xffffffff
ja 0x1001a944
cmp eax, 0x400
jbe 0x1001a881
push eax
lea ecx, [ebp - 0x418]
call fcn.100190d0
jmp 0x1001a8a7
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x1001a8a7
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x1001a8be
mov edi, 0x8007000e
jmp 0x1001a900
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x1001a8de
call fcn.1000b900
jmp 0x1001a8fe
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.1001a5a0
mov edi, eax
test esi, esi
je 0x1001a90b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1001a924
lea ecx, [ebp - 0x418]
call fcn.100196a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10033ba6
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.1000b940
int3