joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e3fc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45e413
add esp, 0xfffffff0
call fcn.00403680
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420ce8
mov eax, dword [0x4a7b84]
cmp word [eax + 2], 0
jne 0x45e43b
mov eax, dword [0x4a7b84]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045faec
mov eax, dword [0x4a7cd4]
cmp word [eax + 2], 0
jne 0x45e455
mov eax, dword [0x4a7cd4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045fce4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x417a78]
call fcn.0040332c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x417a78]
call fcn.0040332c
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x4232e4]
call fcn.0042af10
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45e5dc
mov eax, dword [0x4a79f4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042b2e0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x460294
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4a79f4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d06c
test eax, eax
je 0x45e54a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040912c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d094
test eax, eax
je 0x45e55e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004043a0
mov eax, dword [0x4a7790]
cmp byte [eax], 0
jne 0x45e592
mov eax, ebx
call fcn.0045e704
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00460470
mov eax, ebx
call fcn.00460e34
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45e5d2
call fcn.004036d8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e984
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4a8bec]
cmp dword [eax + 0x30], 0
je 0x45ea2e
cmp dword [ebx + 0x94], 0
jne 0x45ea28
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45e914
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45ea28
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45e9ee
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45ea28
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041a1a0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45e9fd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45f590
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45f5c5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404220
jmp 0x45f5d2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404184
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46064c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46068d
mov eax, esi
call fcn.00446d28
test al, al
je 0x46068d
mov eax, dword [ebx + 0x84]
call fcn.00446a24
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46068d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00446a24
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x46ecf4
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x46ecfc
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x46eeee
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x46ef04
mov eax, esi
call fcn.0046cb80
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404184
lea ecx, [ebp - 0x10]
mov edx, 0x46ef18
mov eax, esi
call fcn.0046cb80
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404184
lea ecx, [ebp - 0x14]
mov edx, 0x46ef30
mov eax, esi
call fcn.0046cb80
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404184
lea ecx, [ebp - 0x18]
mov edx, 0x46ef4c
mov eax, esi
call fcn.0046cb80
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404184
lea ecx, [ebp - 0x1c]
mov edx, 0x46ef68
mov eax, esi
call fcn.0046cb80
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404184
lea ecx, [ebp - 0x24]
mov edx, 0x46ef80
mov eax, esi
call fcn.0046cb80
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408658
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408ba0
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x46ef98
mov eax, esi
call fcn.0046cb80
mov eax, dword [ebp - 0x28]
call fcn.00466508
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x46efa8
mov eax, esi
call fcn.0046cb80
mov eax, dword [ebp - 0x2c]
call fcn.00466508
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x46efc0
mov eax, esi
call fcn.0046cb80
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408ba0
inc eax
je 0x46ee91
lea ecx, [ebp - 0x34]
mov edx, 0x46efc0
mov eax, esi
call fcn.0046cb80
mov eax, dword [ebp - 0x34]
call fcn.00408b64
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a0d8
fstp qword [ebp - 0x3c]
wait
call fcn.0040a43c
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x46eeac
lea ecx, [ebp - 0x40]
mov edx, 0x46efc0
mov eax, esi
call fcn.0046cb80
mov eax, dword [ebp - 0x40]
call fcn.00466508
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x46efd0
mov eax, esi
call fcn.0046cb80
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404184
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46eef5
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404154
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404154
ret
Function at 0x475c10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x475c6a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.00475c00
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00465174
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00464d74
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475c71
lea eax, [ebp - 4]
call fcn.00404130
ret

Function at 0x479350
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x416e48]
call fcn.00404b48
xor eax, eax
push ebp
push 0x479494
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a679c], 0
jne 0x4793a3
mov ecx, dword [0x4a77c4]
mov dl, 1
mov eax, dword [0x407734]
call fcn.0040c258
call fcn.00403ae8
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402d64
mov eax, ebx
call fcn.00404998
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4794a4
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405d18
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004049a8
test eax, eax
jle 0x47943b
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x479434
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004043b8
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004043a0
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004085e8
test eax, eax
jne 0x479434
mov ebx, 0x15
jmp 0x479440
mov ebx, 0x10
jmp 0x479440
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4a679c]
call fcn.004792a8
mov eax, dword [ebp - 8]
call fcn.004792a8
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405d30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47949b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404154
lea eax, [ebp - 0x10]
mov edx, dword [0x416e48]
call fcn.00404c18
ret
Function at 0x47cc40
Capabilities:
Hide graphical window

Disassembly:
push ebx
add esp, 0xfffffff0
mov ebx, eax
mov eax, ebx
call fcn.0047c6e0
test byte [ebx + 0x23d], 4
jne 0x47ccd5
mov edx, esp
mov eax, ebx
call fcn.0043fa90
push esp
mov eax, ebx
call fcn.00446820
push eax
push 0
mov eax, ebx
test eax, eax
je 0x47cc75
sub eax, 0xfffffd9c
push eax
push 0
push 0xfffffffffffffffb
mov eax, dword [ebx + 0x218]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
cmp dword [ebx + 0x22c], 0
jne 0x47cca6
mov ecx, dword [0x4a7afc]
mov dl, 1
mov eax, dword [0x478f68]
call fcn.0040c258
call fcn.00403ae8
mov eax, ebx
call fcn.0047d214
cmp byte [ebx + 0x57], 0
jne 0x47ccdc
mov eax, ebx
call fcn.00446a24
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47ccdc
push 0
mov eax, ebx
call fcn.00446a24
push eax
call sub.user32.dll_ShowWindow
jmp 0x47ccdc
mov eax, ebx
call fcn.004439a4
add esp, 0x10
pop ebx
ret

Function at 0x4842b8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4842e6
mov eax, ebx
call fcn.00484d6c
cmp dword [ebx + 0x40], 0
je 0x4842df
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x484357
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x484349
cmp dword [ebx + 8], 0
je 0x484308
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x48431a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x484349
cmp dword [ebx + 8], 0
je 0x4842fb
cmp eax, 3
je 0x48432d
dec eax
jne 0x4842fb
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4842fb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4842fb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x484375
cmp dword [ebx + 0x14], 0xcc
je 0x484375
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00484380
pop ebx
ret
Function at 0x494c00
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004045e0
mov eax, dword [ebp - 8]
call fcn.004045e0
xor eax, eax
push ebp
push 0x494ccb
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x14
mov dword [ebp - 0x1c], 0x14
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x34], 2
mov eax, dword [ebp - 8]
call fcn.004045f0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 3
mov eax, 0x494cd8
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.004045f0
push eax
call sub.wininet.dll_InternetOpenA
mov ebx, eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0x4b
push ebx
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 0x25
push ebx
call sub.wininet.dll_InternetSetOptionA
push ebx
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494cd2
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404154
ret

Function at 0x494ce0
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004045e0
mov eax, dword [ebp - 8]
call fcn.004045e0
mov eax, dword [ebp - 0xc]
call fcn.004045e0
mov eax, dword [ebp + 0xc]
call fcn.004045e0
xor eax, eax
push ebp
push 0x494ded
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x14
mov dword [ebp - 0x20], 0x14
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 3
mov dword [ebp - 0x38], 2
mov eax, dword [ebp - 8]
call fcn.004045f0
mov edi, eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], 3
mov eax, 0x494e00
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.004045f0
push eax
call sub.wininet.dll_InternetOpenA
mov ebx, eax
push 0
push 0
push 3
mov eax, dword [ebp + 0xc]
call fcn.004045f0
push eax
mov eax, dword [ebp - 0xc]
call fcn.004045f0
push eax
mov ax, word [ebp + 8]
push eax
push edi
push ebx
call sub.wininet.dll_InternetConnectA
push esi
lea eax, [ebp - 0x20]
push eax
push 0x4b
push ebx
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 0x25
push ebx
call sub.wininet.dll_InternetSetOptionA
push ebx
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494df4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404154
lea eax, [ebp + 0xc]
call fcn.00404130
ret

Function at 0x498af0
Capabilities:
Get geographical location

Disassembly:
add esp, 0xfffffff4
mov eax, esp
xor ecx, ecx
mov edx, 0xa
call fcn.00402d64
push 0xa
lea eax, [esp + 4]
push eax
push 0xd
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
cmp byte [esp], 0x31
jne 0x498b1e
mov al, 1
jmp 0x498b20
xor eax, eax
add esp, 0xc
ret
Function at 0x4a186c
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x4a2d60
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffe8
mov ebx, eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4a2d8e
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x11
call fcn.004043a0
jmp 0x4a2d95
mov eax, ebx
call fcn.00404130
add esp, 0x18
pop ebx
ret
Function at 0x10001000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x1009ce00]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0xc5fcd4be
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
sub eax, 0xae7468b9
je 0x10001111
jmp 0x1000103b
mov eax, dword [ebp - 0x24]
sub eax, 0xc5fcd4be
je 0x1000108c
jmp 0x1000104e
mov eax, dword [ebp - 0x24]
sub eax, 0xf186d001
je 0x10001194
jmp 0x10001061
mov eax, dword [ebp - 0x24]
sub eax, 0x463444e5
je 0x1000109e
jmp 0x10001074
mov eax, dword [ebp - 0x24]
sub eax, 0x5604cd44
je 0x10001183
jmp 0x10001087
jmp 0x100011bf
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0x463444e5
jmp 0x100011bf
mov ecx, dword [0x1009e150]
mov eax, dword [0x1009e14c]
mov edx, ecx
add edx, 0x28ac3a3e
sub edx, 1
sub edx, 0x28ac3a3e
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 1
mov dl, al
and dl, 0xff
and bl, cl
mov ch, ah
and ch, 0xff
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0xf186d001
mov ecx, 0xae7468b9
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x18], eax
jmp 0x100011bf
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
xor ecx, ecx
xor edi, edi
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
not byte [edi]
xor eax, eax
xor eax, 0x55
sub byte [edi], 0x73
add byte [edi], 0x53
nop
nop
imul byte [edi]
inc edi
loop 0x10001121
mov eax, dword [0x1009e150]
mov ecx, dword [0x1009e14c]
mov edx, eax
add edx, 0x801faf8a
sub edx, 1
sub edx, 0x801faf8a
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xf186d001
mov ecx, 0x5604cd44
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x18], eax
jmp 0x100011bf
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1000e930
add esp, 0x1c
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
xor ecx, ecx
xor edi, edi
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
not byte [edi]
xor eax, eax
xor eax, 0x55
sub byte [edi], 0x73
add byte [edi], 0x53
nop
nop
imul byte [edi]
inc edi
loop 0x100011a4
mov dword [ebp - 0x18], 0xae7468b9
jmp 0x10001025
Function at 0x10012235
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10012274
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10012274
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10012274
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10012274
cmp dword [ecx + 0x74], 0xe
jbe 0x10012274
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10014f8a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10015027
push ebx
push esi
call fcn.10014f53
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10014ee7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10014fd4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10015026
push edi
push eax
call fcn.10015f45
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10014ff4
call fcn.10013ab1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10015025
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10014ee7
add esp, 0x20
test eax, eax
jne 0x10015013
push edi
call fcn.10013ab1
jmp 0x1001501b
push ebx
call fcn.10013ab1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10015294
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d348
push 0x1001d340
push str.FlsAlloc
push 0x1f
call fcn.100151b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100152c8
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001b150]
call esi
jmp 0x100152ce
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10015312
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d358
push 0x1001d350
push str.FlsGetValue
push 0x21
call fcn.100151b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015349
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001b150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10015351
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d360
push 0x1001d358
push str.FlsSetValue
push 0x22
call fcn.100151b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001538b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001b150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001a8b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001a8dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001a8dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10098504
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1014b671
call fcn.10143988
mov esi, ecx
mov dword [ebp - 0x14], esi
call fcn.1008c7ec
xor ebx, ebx
mov dword [esi], vtable.ScObjects::Thread.0
push 0x10
mov dword [ebp - 4], ebx
mov dword [esi + 0x10], ebx
mov byte [esi + 0x14], bl
call sym.rt3d.dll_public_virtual:_void___stdcall_e3_NODE::HitTest_struct_e3_HITTEST___struct_MATRIX3D_const__
mov dword [ebp - 0x14], eax
pop ecx
test eax, eax
je 0x1009854b
mov dword [eax], vtable.ScObjects::ThreadData.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
jmp 0x1009854d
mov eax, ebx
mov dword [esi + 8], eax
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push 0x10098730
push ebx
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [esi + 8]
mov edx, eax
add esp, 0x18
cmp edx, 0xffffffff
jne 0x10098580
mov dword [esi + 0x10], 0x20
mov dword [esi + 0xc], ebx
mov dword [ecx + 4], ebx
jmp 0x10098589
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xc], eax
mov dword [ecx + 4], edx
mov eax, esi
call fcn.10143951
ret

Function at 0x10098830
Capabilities:
Resume thread

Disassembly:
cmp dword [ecx + 0x10], 0
jne 0x10098842
mov eax, dword [ecx + 8]
push dword [eax + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
ret

Function at 0x1009ee10
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0x2c
mov eax, 0x1014c350
call fcn.101439bc
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x38], esi
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], edi
call fcn.100989f5
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], 1
call fcn.1009ef38
test eax, eax
je 0x1009ee8c
lea ecx, [ebp - 0x20]
push ecx
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1009ee8c
push 0xffffffffffffffff
push 0x10155980
mov ecx, esi
call sym.rt3d.dll_public_virtual:_void___stdcall_e3_NODE::HitTest_struct_e3_HITTEST___struct_MATRIX3D_const__
movzx eax, byte [ebp + edi - 0x20]
push eax
lea eax, [ebp - 0x30]
push 0x10161ca0
push eax
call sym.rt3d.dll_public_virtual:_void___stdcall_e3_NODE::HitTest_struct_e3_HITTEST___struct_MATRIX3D_const__
lea eax, [ebp - 0x30]
push eax
push esi
call sym.rt3d.dll_public_virtual:_void___stdcall_e3_NODE::HitTest_struct_e3_HITTEST___struct_MATRIX3D_const__
add esp, 0x14
inc edi
cmp edi, 0x10
jb 0x1009ee63
jmp 0x1009ee9a
push 0xffffffffffffffff
push 0x10155980
mov ecx, esi
call sym.rt3d.dll_public_virtual:_void___stdcall_e3_NODE::HitTest_struct_e3_HITTEST___struct_MATRIX3D_const__
mov eax, esi
call fcn.10143966
ret