joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008aa0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a3c9b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x102184e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100b0a4d
push 4
mov dword [ebp - 4], 0
call fcn.100b39fb
mov edi, eax
add esp, 4
test edi, edi
je 0x10008b20
call fcn.100b0877
mov dword [edi], eax
call fcn.100b0636
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.100b0960
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x10008b16
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.100b0988
jmp 0x10008b22
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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
Function at 0x100112f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x102184e0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov eax, ecx
mov esi, dword [eax + 4]
mov ecx, dword [ebp + 8]
push edi
lea edx, [ebp - 0x220]
push edx
xor ebx, ebx
or esi, 0x2001f
push esi
push ebx
mov dword [ebp - 0x224], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x220], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x218]
mov edi, eax
cmp edi, ebx
jne 0x10011384
xor eax, eax
cmp ecx, ebx
je 0x10011366
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x220]
and esi, 0x300
mov edi, eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], esi
cmp eax, ebx
je 0x100113a4
cmp ecx, ebx
je 0x1001138f
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100b197c
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x230]
push eax
push ebx
push ebx
push ebx
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x20c]
push eax
push ebx
push ecx
mov dword [ebp - 0x21c], 0x100
call esi
test eax, eax
jne 0x1001142c
jmp 0x100113e0
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x218]
call fcn.100112f0
mov edi, eax
cmp edi, ebx
jne 0x10011483
lea edx, [ebp - 0x230]
push edx
mov edx, dword [ebp - 0x218]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push ebx
push edx
mov dword [ebp - 0x21c], 0x100
call esi
test eax, eax
je 0x100113e0
mov eax, dword [ebp - 0x218]
cmp eax, ebx
je 0x10011443
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x218], ebx
mov eax, dword [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x214], ebx
call fcn.100110e0
mov esi, eax
mov eax, dword [ebp - 0x218]
cmp eax, ebx
je 0x1001146e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100b197c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x218]
cmp eax, ebx
je 0x10011494
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b197c
mov esp, ebp
pop ebp
ret 4
Function at 0x10011980
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a7616
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x102184e0]
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 + 8]
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x430], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x418], edi
push 2
push edi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x424], esi
cmp esi, edi
jne 0x10011a00
call fcn.10010d80
mov edi, eax
jmp 0x10011b19
mov eax, dword [ebp - 0x41c]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
jne 0x10011a1f
call fcn.10010d80
jmp 0x10011b10
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, edi
jne 0x10011a3b
call fcn.10010d80
jmp 0x10011b10
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
mov dword [ebp - 0x41c], ebx
cmp eax, ebx
jae 0x10011a5c
mov edi, 0x8007000e
jmp 0x10011b12
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, edi
ja 0x10011a71
cmp eax, 0xffffffff
jbe 0x10011a7b
push 0x80070216
call fcn.10001300
cmp eax, 0x400
jbe 0x10011aad
lea ecx, [ebp - 0x418]
push ecx
call fcn.10014260
jmp 0x10011ab9
lea edx, [ebp - 0x414]
mov dword [ebp - 0x418], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x418]
cmp eax, edi
jne 0x10011ad1
mov edi, 0x8007000e
jmp 0x10011b12
push ebx
push eax
mov eax, dword [ebp - 0x420]
push ebx
push eax
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
jne 0x10011aef
call fcn.10010d80
jmp 0x10011b10
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x418]
push eax
lea edx, [ebp - 0x42c]
call fcn.10012720
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x414]
cmp dword [ebp - 0x418], ecx
je 0x10011b32
lea eax, [ebp - 0x418]
call fcn.10014250
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.100b197c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10013780
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101aa1a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x102184e0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
test byte [0x1022b0f4], 1
jne 0x100137e1
or dword [0x1022b0f4], 1
push 0x101ab6a0
mov dword [0x1022b0f8], ebx
mov dword [0x1022b0fc], ebx
mov dword [0x1022b100], ebx
call fcn.100b1b34
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call edi
push eax
push str.ProcessSwither::run__:_cmd__s
mov esi, 0x1022b0f8
call fcn.10001710
lea eax, [esp + 0x18]
push eax
call fcn.1004c870
add esp, 0xc
mov dword [esp + 0x30], ebx
cmp dword [esp + 0x10], ebx
je 0x100138d1
call edi
mov edx, eax
lea esi, [esp + 0x18]
call fcn.10013e10
mov byte [esp + 0x30], 1
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
mov eax, esi
push eax
call edx
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], vtable.CefStringBase_struct_CefStringTraitsUTF16_.0
cmp eax, ebx
je 0x1001386d
cmp byte [esp + 0x20], bl
je 0x10013865
push eax
call dword [sym.imp.libcef.dll_cef_string_utf16_clear]
mov eax, dword [esp + 0x20]
add esp, 4
push eax
call fcn.100b1971
add esp, 4
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x20], bl
push ecx
mov ecx, dword [esp + 0x14]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], esp
cmp eax, ebx
je 0x10013894
mov edx, dword [eax + 4]
mov ecx, dword [edx + 4]
mov edx, dword [ecx + eax + 4]
lea ecx, [ecx + eax + 4]
mov eax, dword [edx]
call eax
call fcn.100138f0
cmp eax, ebx
je 0x100138ab
jle 0x100138b0
cmp eax, 2
jg 0x100138b0
call fcn.10013c20
jmp 0x100138b0
call fcn.10013b30
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x100138d1
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
lea ecx, [edx + eax + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10014eb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a82d8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x102184e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test byte [0x1022aea0], 1
jne 0x10014efb
or dword [0x1022aea0], 1
call fcn.100091f0
push 0x101ab690
call fcn.100b1b34
add esp, 4
push 0x1022aea8
lea esi, [ebp - 0x2c]
call fcn.100143c0
push eax
lea ecx, [edi + 0x120]
mov dword [ebp - 4], 0
call fcn.10002ff0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x10014f34
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100b1971
add esp, 4
push 0x1022aea8
lea esi, [ebp - 0x2c]
call fcn.10014420
push eax
lea ecx, [edi + 0x104]
mov dword [ebp - 4], 1
call fcn.10002ff0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x10014f6d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.100b1971
add esp, 4
push 0x1022aea8
lea esi, [ebp - 0x48]
call fcn.100143f0
push eax
lea ecx, [edi + 0x13c]
mov dword [ebp - 4], 2
call fcn.10002ff0
cmp dword [ebp - 0x34], 0x10
jb 0x10014f9f
mov edx, dword [ebp - 0x48]
push edx
call fcn.100b1971
add esp, 4
push edi
push 0
push edi
push 0x10015120
push 0
push 0
call fcn.100b423a
add esp, 0x18
test eax, eax
je 0x10014fbf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b197c
mov esp, ebp
pop ebp
ret
Function at 0x100151b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101a82a0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x102184e0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x10015320
mov eax, dword [esp + 0x1c]
cmp eax, 0x12
je 0x10015320
cmp eax, 0xbe5
jne 0x1001530a
mov edi, dword [esp + 0x24]
sub esp, 0x1c
cmp edi, ebx
jne 0x1001528c
mov esi, dword [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x2c], esp
push ebx
mov edi, 0xf
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push 0x101ff169
mov byte [ecx], bl
call fcn.10003330
sub esp, 0x1c
mov dword [esp + 0x78], ebx
mov ecx, esp
mov dword [esp + 0x4c], esp
push ebx
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push 0x101ff169
mov byte [ecx], bl
call fcn.10003330
mov ecx, dword [ebp + 8]
push ecx
or edx, 0xffffffff
mov ecx, esi
mov dword [esp + 0x7c], edx
call fcn.10015b70
jmp 0x1001530a
mov esi, esp
mov dword [esp + 0x30], esp
push edi
call fcn.100209e0
sub esp, 0x1c
mov dword [esp + 0x78], 1
mov esi, esp
mov dword [esp + 0x48], esp
push edi
call fcn.100209b0
mov eax, dword [ebp + 8]
mov edx, dword [edi]
mov ecx, dword [esp + 0x58]
push eax
mov dword [esp + 0x7c], 0xffffffff
call fcn.10015b70
cmp dword [edi + 0x34], 0x10
jb 0x100152d8
mov ecx, dword [edi + 0x20]
push ecx
call fcn.100b1971
add esp, 4
mov esi, 0xf
mov dword [edi + 0x34], esi
mov dword [edi + 0x30], ebx
mov byte [edi + 0x20], bl
cmp dword [edi + 0x18], 0x10
jb 0x100152f8
mov edx, dword [edi + 4]
push edx
call fcn.100b1971
add esp, 4
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
push edi
mov byte [edi + 4], bl
call fcn.100b1971
add esp, 4
push ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x10015210
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10017630
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a61bb
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push esi
push edi
mov eax, dword [0x102184e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xd4], 0x10200d38
mov dword [ebp - 0xc4], 0x101ff310
mov dword [ebp - 0x74], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0xd4]
mov dword [ebp - 4], 1
mov ebx, 2
push ecx
mov dword [ebp - 0x14], ebx
call fcn.100187b0
mov dword [ebp - 4], ebx
mov edx, dword [ebp - 0xd4]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0xbc]
push ecx
mov dword [ebp + eax - 0xd4], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
call fcn.100193b0
mov dword [ebp - 0xbc], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 4], 4
cmp dword [edi + 0x14], 8
jb 0x100176e3
mov eax, dword [edi]
jmp 0x100176e5
mov eax, edi
push esi
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
cmp ebx, esi
je 0x100177c4
push ebx
call fcn.100b03c5
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 5
cmp dword [edi + 0x14], 8
jb 0x10017711
mov edi, dword [edi]
push esi
push ebx
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x100177b3
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x28]
push eax
push str.VarFileInfoTranslation
push esi
mov dword [ebp - 0x20], 0x34
call edi
test eax, eax
je 0x100177b3
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0x10200c88
push esi
mov dword [ebp - 0x1c], 0
call edi
test eax, eax
je 0x100177b3
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
push ecx
push edx
movzx edx, word [eax + 0xa]
push ecx
movzx ecx, word [eax + 8]
push ecx
push ecx
push edx
lea eax, [ebp - 0xc4]
push eax
call fcn.100179d0
push eax
call fcn.1001a3c0
add esp, 8
push eax
call fcn.100179d0
push eax
call fcn.1001a3c0
add esp, 8
push eax
call fcn.100179d0
push eax
call fcn.1001a3c0
add esp, 8
push eax
call fcn.100179d0
mov byte [ebp - 4], 4
test esi, esi
je 0x100177c4
push esi
call fcn.100b1971
add esp, 4
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xd4]
call fcn.10017f50
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0x14], 3
mov byte [ebp - 4], 0
call fcn.10017800
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
Function at 0x100193b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a3a8b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x102184e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.100b0a4d
push 4
mov dword [ebp - 4], 0
call fcn.100b39fb
mov edi, eax
add esp, 4
test edi, edi
je 0x1001942c
call fcn.100b0877
mov dword [edi], eax
call fcn.100b0636
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.100b0960
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x10019422
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.100b0988
jmp 0x1001942e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 4

Function at 0x1001b570
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push str.DSound.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x1001b58d
pop edi
mov esp, ebp
pop ebp
ret
push esi
push str.DirectSoundCreate
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x1001b5a6
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, eax
test ebx, ebx
jne 0x1001b5d3
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push 3
lea ecx, [ebp - 4]
push ecx
push esi
mov dword [ebp - 4], 0x48000cc2
call fcn.100b3470
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1001b600
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push str.winmm.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x1001b61d
pop edi
mov esp, ebp
pop ebp
ret
push esi
push str.waveOutWrite
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x1001b636
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, eax
test ebx, ebx
jne 0x1001b663
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push 3
lea ecx, [ebp - 4]
push ecx
push esi
mov dword [ebp - 4], 0x48000cc2
call fcn.100b3470
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1001cf90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101aa070
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x102184e0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x10], ebx
call fcn.1001d100
mov esi, dword [edi + 0xd4]
cmp esi, ebx
je 0x1001d0e0
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x18], eax
lea eax, [esi + 0x1c]
push eax
push ebx
push esi
push 0x100225a0
push ebx
push ebx
call fcn.100b423a
mov ecx, dword [esi + 0x18]
add esp, 0x18
push 0xffffffffffffffff
push ecx
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], ebx
mov eax, dword [edi + 0xf8]
push eax
lea esi, [esp + 0x20]
call fcn.10026c90
mov ebx, eax
mov dword [esp + 0x30], 0
mov eax, dword [edi + 0xf8]
push eax
lea esi, [esp + 0x18]
call fcn.10026c90
mov byte [esp + 0x30], 1
mov edi, dword [edi + 0xd4]
mov esi, dword [edi + 0xc]
mov ebx, dword [ebx]
test esi, esi
je 0x1001d071
push 0xffffffffffffffff
lea ecx, [esi + 0x18]
push 0
push ecx
call fcn.10003230
push 0xffffffffffffffff
push 0
add ebx, 0x1c
push ebx
lea ecx, [esi + 0x34]
call fcn.10003230
mov byte [esp + 0x30], 0
mov esi, dword [esp + 0x18]
test esi, esi
je 0x1001d0a7
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1001d0a7
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1001d0a7
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov dword [esp + 0x30], 0xffffffff
mov esi, dword [esp + 0x20]
test esi, esi
je 0x1001d0e0
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1001d0e0
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1001d0e0
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10021d10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x1022b2d4], eax
mov edx, 1
mov ecx, 0x1022b2d8
push esi
mov esi, eax
shr esi, 0x1e
xor eax, esi
imul eax, eax, 0x6c078965
add eax, edx
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x1022bc94
jl 0x10021d20
mov dword [0x1022b2d0], 0x270
pop esi
ret

Function at 0x10021d50
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp byte [esi + 0x10], 0
je 0x10021d6c
fld qword [esi + 0x18]
mov byte [esi + 0x10], 0
fmul qword [edi + 8]
fadd qword [edi]
mov esp, ebp
pop ebp
ret
fld qword [0x102055b8]
mov ecx, dword [0x1022b2d0]
fsub qword [0x102055b0]
fadd qword [0x102055d0]
fstp qword [ebp - 0x10]
jmp 0x10021d92
fstp st(0)
cmp ecx, 0x270
jne 0x10021da1
call fcn.10021f90
jmp 0x10021dae
cmp ecx, 0x4e0
jb 0x10021db4
call fcn.10021ed0
mov ecx, dword [0x1022b2d0]
mov eax, dword [ecx*4 + 0x1022b2d4]
mov edx, eax
shr edx, 0xb
and edx, dword [0x1022c654]
inc ecx
xor eax, edx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov edx, eax
and edx, 0xffffdf8c
shl edx, 0xf
xor eax, edx
mov edx, eax
shr edx, 0x12
xor edx, eax
mov dword [ebp - 4], edx
fild dword [ebp - 4]
mov dword [0x1022b2d0], ecx
jns 0x10021dfe
fadd qword [0x102055c0]
fdiv qword [ebp - 0x10]
fadd st(0), st(0)
fsub qword [0x102055d0]
fstp qword [ebp - 0x18]
cmp ecx, 0x270
jne 0x10021e1b
call fcn.10021f90
jmp 0x10021e28
cmp ecx, 0x4e0
jb 0x10021e2e
call fcn.10021ed0
mov ecx, dword [0x1022b2d0]
mov eax, dword [ecx*4 + 0x1022b2d4]
mov edx, eax
shr edx, 0xb
and edx, dword [0x1022c654]
inc ecx
xor eax, edx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov edx, eax
and edx, 0xffffdf8c
shl edx, 0xf
xor eax, edx
mov edx, eax
shr edx, 0x12
xor edx, eax
mov dword [ebp - 4], edx
fild dword [ebp - 4]
mov dword [0x1022b2d0], ecx
jns 0x10021e78
fadd qword [0x102055c0]
fdiv qword [ebp - 0x10]
fadd st(0), st(0)
fld1
fsub st(1), st(0)
fxch st(1)
fst qword [ebp - 0x20]
fmul st(0), st(0)
fld qword [ebp - 0x18]
fmul st(0), st(0)
faddp st(1)
fst qword [ebp - 8]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x10021d90
call fcn.101a0270
fmul qword [0x102055c8]
fdiv qword [ebp - 8]
call fcn.101a0170
fld qword [ebp - 0x20]
fmul st(1)
mov byte [esi + 0x10], 1
fstp qword [esi + 0x18]
fmul qword [ebp - 0x18]
fmul qword [edi + 8]
fadd qword [edi]
mov esp, ebp
pop ebp
ret