joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d5e3
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040805b
mov dword [ebp - 0x14], eax
cmp dword [0x813fbc], esi
jne 0x40d6d6
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d663
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d7b6
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d7b6
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d7b6
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x813fbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x813fc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x813fc4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813fcc], eax
test eax, eax
je 0x40d6d3
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813fc8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d6fb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d6ee
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d710
push 4
pop eax
jmp 0x40d7b8
cmp dword [ebp - 0x14], esi
je 0x40d710
push dword [0x813fbc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d6f5
mov eax, dword [0x813fc8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d76e
cmp dword [0x813fcc], edi
je 0x40d76e
push eax
call ebx
push dword [0x813fcc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d76e
test eax, eax
je 0x40d76e
call ecx
test eax, eax
je 0x40d763
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d763
test byte [ebp - 8], 1
jne 0x40d76e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d79e
mov eax, dword [0x813fc0]
cmp eax, edi
je 0x40d79b
push eax
call ebx
test eax, eax
je 0x40d79b
call eax
mov esi, eax
test esi, esi
je 0x40d79b
mov eax, dword [0x813fc4]
cmp eax, edi
je 0x40d79b
push eax
call ebx
test eax, eax
je 0x40d79b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x813fbc]
call ebx
test eax, eax
je 0x40d7b6
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d7b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040401d
mov esp, ebp
pop ebp
ret
Function at 0x100031e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10031b33
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10047074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 8]
lea ebx, [ecx + 8]
mov dword [ecx + 4], 0
mov dword [ecx], vtable.DropboxCommandHandler.0
mov ecx, ebx
push edi
mov dword [ebp - 0x14], ebx
call fcn.10002c80
mov eax, dword [edi + 0x18]
lea esi, [ebx + 0x18]
mov dword [esi], eax
push 0x20
mov dword [ebp - 4], 0
mov dword [ebp + 8], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.10020074
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [edi + 0x30]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x28]
sub eax, dword [edi + 0x24]
push dword [esi + 4]
sar eax, 2
push eax
mov byte [ebp - 4], 2
call fcn.10010870
mov eax, dword [edi + 0x1c]
mov ecx, esi
push eax
push dword [eax]
call fcn.10002980
mov eax, dword [edi + 0x38]
xor ecx, ecx
mov dword [ebx + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [ebx + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [ebx + 0x40], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x4c], 0
mov dword [eax + 0x50], 0
mov dword [eax + 0x64], 0
mov dword [eax + 0x68], 7
mov word [eax + 0x54], cx
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 0x1000f150
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100327b0
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x10047074]
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 eax, ecx
mov dword [ebp - 0x22c], eax
mov ebx, dword [eax + 4]
mov ecx, dword [ebp + 8]
or ebx, 0x2001f
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
lea edx, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push edx
push ebx
push 0
push ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x21c]
test esi, esi
jne 0x1000f2de
xor esi, esi
test eax, eax
je 0x1000f1f4
push eax
call edi
mov esi, eax
mov eax, dword [ebp - 0x224]
and ebx, 0x300
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], ebx
test esi, esi
jne 0x1000f2de
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x234]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], 0x100
push ecx
lea ecx, [ebp - 0x210]
push ecx
push esi
push eax
call ebx
test eax, eax
jne 0x1000f297
nop dword [eax]
nop dword [eax + eax]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x21c]
call fcn.1000f150
mov esi, eax
test esi, esi
jne 0x1000f2d8
lea eax, [ebp - 0x234]
mov dword [ebp - 0x220], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x21c]
call ebx
test eax, eax
je 0x1000f250
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x1000f2ae
push eax
call edi
mov dword [ebp - 0x21c], 0
push dword [ebp - 0x228]
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x218], 0
call fcn.1000db00
mov ecx, dword [ebp - 0x21c]
mov esi, eax
test ecx, ecx
je 0x1000f2e5
push ecx
jmp 0x1000f2e3
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x1000f2e5
push eax
call edi
mov eax, esi
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.10020811
mov esp, ebp
pop ebp
ret 4
Function at 0x1000f4b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100327fb
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x10047074]
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 esi, 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 esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x1000f55c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x1000f55c
call fcn.1000b450
mov esi, eax
jmp 0x1000f64c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1000f57f
call fcn.1000b450
jmp 0x1000f63f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x1000f59d
call fcn.1000b450
jmp 0x1000f63f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x1000f5be
mov esi, 0x8007000e
jmp 0x1000f641
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1000b0e0
jmp 0x1000f5e8
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x1000f5ff
mov esi, 0x8007000e
jmp 0x1000f641
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x1000f61f
call fcn.1000b450
jmp 0x1000f63f
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.1000f310
mov esi, eax
test edi, edi
je 0x1000f64c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000f665
lea ecx, [ebp - 0x418]
call fcn.1000dd90
mov eax, esi
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.10020811
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10010970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100109c9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100109c9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x100109ba
cmp esi, edx
jae 0x100109c9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x100109a8
cmp esi, edx
jae 0x100109c9
cmp word [esi], 0
je 0x100109c9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10015710
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x10015660
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
ret

Function at 0x100160d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10032ccb
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x10047074]
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]
mov dword [ebp - 0x23c], esi
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1004b2c4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1004abb4]
cmp eax, dword [ecx + 4]
jg 0x100162ce
cmp dword [0x1004704c], 0
je 0x10016141
push 0x1004703c
mov ecx, esi
call fcn.10002c80
jmp 0x100162b0
lea eax, [ebp - 0x230]
push eax
call fcn.1001c720
add esp, 4
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push eax
mov dword [ebp - 4], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jne 0x1001618a
push 0x1004703c
mov ecx, esi
call fcn.10002c80
jmp 0x100162a5
push ebx
call fcn.10020a9e
mov edi, eax
add esp, 4
mov dword [ebp - 0x244], edi
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
push edi
cmovae ecx, dword [ebp - 0x230]
push ebx
push 0
push ecx
mov byte [ebp - 4], 1
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1001628a
lea eax, [ebp - 0x240]
mov dword [ebp - 0x234], 0
push eax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x240], 0
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1001628a
mov ebx, dword [ebp - 0x234]
test ebx, ebx
je 0x1001628a
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100221c0
movzx eax, word [ebx + 2]
push eax
movzx eax, word [ebx]
push eax
push str.StringFileInfo_04x_04xFileVersion
push 0x104
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.10018000
add esp, 0x24
mov dword [ebp - 0x238], 0
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1001628a
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x1001628a
push eax
mov ecx, 0x1004703c
call fcn.10011990
push 0x1004703c
mov ecx, esi
call fcn.10002c80
test edi, edi
je 0x100162a5
push 1
push edi
call fcn.100200a4
add esp, 8
lea ecx, [ebp - 0x230]
call fcn.100077d0
mov eax, esi
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.10020811
mov esp, ebp
pop ebp
ret
push 0x1004abb4
call fcn.100206dd
add esp, 4
cmp dword [0x1004abb4], 0xffffffff
jne 0x10016127
push 0x10033930
call fcn.100203bc
push 0x1004abb4
call fcn.10020693
add esp, 8
jmp 0x10016127
Function at 0x10018910
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x6b0
mov dword [ebp - 0x18], 0x1008f000
mov dword [ebp - 0x1c], 0x45cc
mov dword [ebp - 0x20], 0x389974
mov dword [ebp - 0x24], 0x4c6da
mov dword [ebp - 0x28], 0x3be51
mov dword [ebp - 0x2c], 0x11c7fb
mov dword [ebp - 0x30], 0x51cf65
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x6a], 0x3e
mov byte [ebp - 0x69], 0x41
mov byte [ebp - 0x68], 0x39
mov byte [ebp - 0x67], 0x33
mov byte [ebp - 0x66], 0x37
mov byte [ebp - 0x65], 0x32
mov byte [ebp - 0x64], 0x25
mov byte [ebp - 0x63], 0x39
mov byte [ebp - 0x62], 0x56
mov byte [ebp - 0x61], 0x39
mov byte [ebp - 0x60], 0x58
mov byte [ebp - 0x5f], 0x6e
mov byte [ebp - 0x5e], 0x4d
mov byte [ebp - 0x5d], 0x2a
mov byte [ebp - 0x5c], 0x3e
mov byte [ebp - 0x5b], 0x4d
mov byte [ebp - 0x5a], 0x25
mov byte [ebp - 0x59], 0x4f
mov byte [ebp - 0x58], 0x5a
mov byte [ebp - 0x57], 0x47
mov byte [ebp - 0x56], 0x5e
mov byte [ebp - 0x55], 0x4c
mov byte [ebp - 0x54], 0x28
mov byte [ebp - 0x53], 0x72
mov byte [ebp - 0x52], 0x39
mov byte [ebp - 0x51], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov eax, 0x6d948
sub eax, dword [ebp - 0x28]
mov edx, eax
mov eax, dword [ebp - 0x24]
add edx, eax
mov eax, dword [ebp - 0x24]
add edx, eax
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x1c]
sub edx, eax
mov eax, edx
sub eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x28]
mov edx, eax
mov eax, dword [ebp - 0x20]
add edx, eax
mov eax, dword [ebp - 0x2c]
add eax, edx
sub eax, dword [ebp - 0x28]
mov edx, eax
mov eax, dword [ebp - 0x24]
add edx, eax
mov eax, dword [ebp - 0x24]
add edx, eax
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x1c]
sub edx, eax
mov eax, edx
sub eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x28]
mov edx, eax
mov eax, dword [ebp - 0x20]
add edx, eax
mov eax, dword [ebp - 0x2c]
add eax, edx
sub eax, dword [ebp - 0x28]
mov edx, eax
mov eax, dword [ebp - 0x24]
add edx, eax
mov eax, dword [ebp - 0x24]
add edx, eax
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x1c]
sub edx, eax
mov eax, edx
sub eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x28]
mov edx, eax
mov eax, dword [ebp - 0x20]
add edx, eax
mov eax, dword [ebp - 0x2c]
add eax, edx
sub eax, dword [ebp - 0x28]
mov edx, eax
mov eax, dword [ebp - 0x24]
add edx, eax
mov eax, dword [ebp - 0x24]
add edx, eax
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x1c]
sub edx, eax
mov eax, edx
sub eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x28]
mov edx, eax
mov eax, dword [ebp - 0x20]
add edx, eax
mov eax, dword [ebp - 0x2c]
add eax, edx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
mov edx, eax
mov eax, dword [ebp - 0x24]
add edx, eax
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x1c]
sub edx, eax
mov eax, edx
sub eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x28]
mov edx, eax
mov eax, dword [ebp - 0x20]
Function at 0x10019018
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x78]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x24]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
jmp 0x100190c8
mov eax, dword [ebp - 4]
lea edx, [eax*4]
mov eax, dword [ebp - 0x14]
add eax, edx
mov edx, dword [eax]
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.10018fe4
cmp eax, dword [ebp + 0xc]
jne 0x100190c4
mov eax, dword [ebp - 4]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x1c]
add eax, edx
movzx eax, word [eax]
movzx eax, ax
lea edx, [eax*4]
mov eax, dword [ebp - 0x18]
add eax, edx
mov edx, dword [eax]
mov eax, dword [ebp + 8]
add eax, edx
jmp 0x100190d8
add dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
cmp eax, dword [ebp - 4]
ja 0x10019075
mov eax, 0
leave
ret

Function at 0x100190e0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret

Function at 0x100195a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10047074]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x104]
mov dword [ebp - 0x118], 0x114
push 0
push eax
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
call fcn.100221c0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10019633
cmp dword [ebp - 0x114], 0xa
jb 0x10019633
mov eax, dword [ebp - 0x10c]
cmp eax, dword [ebp + 8]
jb 0x10019633
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10020811
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.10020811
mov esp, ebp
pop ebp
ret
Function at 0x10019750
Capabilities:
Access peb ldr_data
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10031d10
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10047074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0
lea eax, [edi + 4]
mov dword [edi], vtable.DropboxLogging::LoggingHandler.0
xorps xmm0, xmm0
push 0
movups xmmword [eax], xmm0
push eax
movq qword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
test eax, eax
jne 0x100197b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100197b1
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x10019898
mov dword [edi + 0x28], 0
lea esi, [edi + 0x64]
mov dword [edi + 0x2c], 0
xorps xmm0, xmm0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
movups xmmword [edi + 0x40], xmm0
movq qword [edi + 0x50], xmm0
mov byte [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
push 8
mov dword [ebp - 4], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.10020074
add esp, 4
mov dword [eax + 4], 0
mov dword [esi], eax
push 0
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
push 0
push 0
mov dword [edi + 0x7c], eax
mov eax, dword [ebp + 8]
push 0
mov byte [edi + 0x78], 0
mov dword [edi + 0x80], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x60], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push eax
call fcn.1000b580
int3
Function at 0x1001a340
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x1001a357
mov eax, 0x8000ffff
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0
lea edi, [esi + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
test eax, eax
jne 0x1001a384
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1001a37e
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x1001a49b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
mov byte [edi + 0x18], 1
call ebx
mov dword [esi + 0x40], eax
test eax, eax
jne 0x1001a3bb
cmp byte [edi + 0x18], al
je 0x1001a3af
push edi
mov byte [edi + 0x18], al
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call fcn.1000b450
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x1001a3f4
call fcn.1000b450
push 0x2710
mov ecx, esi
mov edi, eax
call fcn.1001a590
test eax, eax
jns 0x1001a498
test edi, edi
pop ebx
cmovns edi, eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
mov ecx, esi
call fcn.10019ad0
mov dword [ebp - 4], eax
test eax, eax
jns 0x1001a424
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
mov ecx, esi
call fcn.1001a590
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call ebx
mov ebx, eax
test ebx, ebx
je 0x1001a3cb
push 0
push 0
push ebx
mov ecx, esi
call fcn.10019ad0
mov edi, eax
test edi, edi
jns 0x1001a462
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
mov ecx, esi
call fcn.1001a590
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x1001aed0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
je 0x1001a3cb
push 0xffffffffffffffff
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1001a498
call fcn.1000b450
mov edi, eax
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret