joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10043eb0
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x10070e01
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1008c288]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x1008c288]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, dword [esp + 0x54]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov edi, dword [sym.imp.MSVCR80.dll_getenv]
push str.LC_CTYPE
mov dword [esp + 0x18], esi
call edi
add esp, 4
cmp eax, ebx
je 0x10043f07
cmp byte [eax], bl
jne 0x10043f11
push str.LC_ALL
call edi
add esp, 4
cmp eax, ebx
je 0x10043f19
cmp byte [eax], bl
jne 0x10043f23
push str.LANG
call edi
add esp, 4
cmp eax, ebx
je 0x10043f38
cmp byte [eax], bl
je 0x10043f38
push eax
mov ecx, esi
call fcn.10003fb0
jmp 0x1004409c
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0xa
lea eax, [esp + 0x38]
push eax
push 0x59
push 0x400
call edi
test eax, eax
jne 0x10043f72
push 1
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x10076a28
mov ecx, esi
mov byte [esi + 4], bl
call fcn.100036b0
jmp 0x1004409c
lea eax, [esp + 0x34]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10043f90
sub eax, edx
push eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x20]
call fcn.100036b0
push 0xa
lea edx, [esp + 0x38]
push edx
push 0x5a
push 0x400
mov dword [esp + 0x5c], 1
call edi
test eax, eax
je 0x10043ffa
push 1
push 0x10079148
lea ecx, [esp + 0x20]
call fcn.10005bc0
lea eax, [esp + 0x34]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10043fe0
sub eax, edx
push eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
call fcn.10005bc0
cmp byte [esp + 0x58], bl
jne 0x1004405c
push 0xa
lea ecx, [esp + 0x38]
push ecx
push 0x1004
push 0x400
call edi
test eax, eax
je 0x10044053
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.MSVCR80.dll_atoi]
add esp, 4
test eax, eax
lea ecx, [esp + 0x18]
jne 0x10044039
push str..UTF_8
call fcn.10016d70
jmp 0x1004406c
push str..windows_
call fcn.10016d70
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.10016d70
jmp 0x1004406c
push 5
push str.UTF_8
jmp 0x10044063
push 6
push str..UTF_8
lea ecx, [esp + 0x20]
call fcn.10005bc0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x20]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.100035d0
cmp dword [esp + 0x30], 0x10
jb 0x1004409c
mov edx, dword [esp + 0x1c]
push edx
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10028d90
add esp, 0x40
ret
Function at 0x10048830
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1006d508
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1008c288]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.10004170
mov dword [esi], vtable.boost::bad_function_call.0
test edi, edi
mov dword [esp + 0x18], 0
je 0x1004887a
add edi, 0x28
jmp 0x1004887c
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
test ecx, ecx
mov dword [esi + 0x2c], ecx
je 0x10048894
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::bad_function_call_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_class_boost::bad_function_call_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x10049c70
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1007183e
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008c288]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov ebp, ecx
mov edi, dword [esp + 0xb0]
push edi
push 1
lea eax, [esp + 0x1c]
push 4
xor esi, esi
push eax
mov dword [esp + 0x24], esi
call dword [sym.imp.MSVCR80.dll_fread]
mov eax, dword [esp + 0x24]
add esp, 0x10
cmp eax, 0x950412de
jne 0x10049cd0
mov byte [ebp + 0x28], 1
jmp 0x10049cdf
cmp eax, 0xde120495
jne 0x10049dd0
mov byte [ebp + 0x28], 0
mov ebx, dword [sym.imp.MSVCR80.dll_fseek]
push 2
push esi
push edi
call ebx
push edi
call dword [sym.imp.MSVCR80.dll_ftell]
mov esi, eax
add esp, 0x10
test esi, esi
jge 0x10049d48
push 0x11
push str.Wrong_file_object
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
call fcn.100036b0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0xac], 1
call fcn.10003ec0
push 0x100805d4
lea edx, [esp + 0x38]
push edx
call sub.MSVCR80.dll__CxxThrowException
push 0
push 0
push edi
call ebx
add esp, 0xc
push 0
lea eax, [esi + 1]
push eax
lea ecx, [ebp + 0x18]
call fcn.10019a90
mov eax, dword [ebp + 0x1c]
push edi
push esi
push 1
push eax
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
cmp eax, esi
je 0x10049dab
push str.Failed_to_read_file
lea ecx, [esp + 0x60]
call fcn.10003fb0
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0xac], 2
call fcn.10003ec0
push 0x100805d4
lea edx, [esp + 0x7c]
push edx
call sub.MSVCR80.dll__CxxThrowException
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], esi
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 4
push 0x13
push str.Invalid_file_format
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], esi
mov byte [esp + 0x24], 0
call fcn.100036b0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0xac], esi
call fcn.10003ec0
push 0x100805d4
lea edx, [esp + 0x38]
push edx
call sub.MSVCR80.dll__CxxThrowException
int3
Function at 0x1005d4a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10073180
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
mov eax, dword [0x1008c288]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
push 5
xor ebx, ebx
push str.UTF_8
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
call fcn.100036b0
mov ecx, dword [esp + 0x50]
push ebx
lea eax, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x58], ebx
call fcn.1004ee70
add esp, 0x10
mov ecx, dword [esp + 0x54]
push 0xffffffffffffffff
push ebx
push eax
mov byte [esp + 0x54], 1
call fcn.100035d0
cmp dword [esp + 0x3c], 0x10
jb 0x1005d528
mov eax, dword [esp + 0x28]
push eax
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
cmp dword [esp + 0x20], 0x10
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
jb 0x1005d54c
mov ecx, dword [esp + 0xc]
push ecx
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x44
ret 8
Function at 0x1005d560
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x100731cd
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x1008c288]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008c288]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov edi, dword [esp + 0xb0]
mov esi, dword [esp + 0xb4]
xor ebx, ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
call fcn.1005d2b0
mov ebp, 1
cmp dword [esp + 0x58], ebp
mov dword [esp + 0xa8], ebp
jae 0x1005d5dd
mov eax, dword [esp + 0x54]
push eax
push ebp
lea ecx, [esp + 0x48]
call fcn.10002b70
mov eax, dword [esp + 0x44]
mov ecx, 8
cmp dword [esp + 0x58], ecx
jae 0x1005d5f0
lea eax, [esp + 0x44]
mov word [eax], 0x2e
cmp dword [esp + 0x58], ecx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x54], ebp
jae 0x1005d607
lea eax, [esp + 0x44]
mov word [eax + 2], bx
mov esi, dword [esi]
cmp esi, ebx
jne 0x1005d638
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.1005d400
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], ebp
mov byte [esp + 0xa8], bl
call fcn.10029d5b
mov eax, edi
jmp 0x1005d79e
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor eax, eax
push 4
lea edx, [esp + 0x7c]
push edx
push 0xf
push esi
mov word [esp + 0x88], bx
mov dword [esp + 0x8a], eax
mov word [esp + 0x8e], ax
mov word [esp + 0x90], bx
mov dword [esp + 0x92], eax
mov word [esp + 0x96], ax
mov word [esp + 0x98], bx
mov dword [esp + 0x9a], eax
mov dword [esp + 0x9e], eax
mov dword [esp + 0xa2], eax
mov dword [esp + 0xa6], eax
mov word [esp + 0xaa], ax
call edi
test eax, eax
je 0x1005d778
push 4
lea eax, [esp + 0x84]
push eax
push 0xe
push esi
call edi
test eax, eax
je 0x1005d778
push 0xa
lea ecx, [esp + 0x8c]
push ecx
push 0x10
push esi
call edi
test eax, eax
je 0x1005d778
lea edx, [esp + 0x80]
push edx
lea ecx, [esp + 0x44]
call fcn.10010f50
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x28]
call fcn.10010f50
xor esi, esi
cmp word [esp + 0x88], bx
mov byte [esp + 0x17], bl
je 0x1005d765
lea ecx, [esp + 0x88]
movzx eax, word [ecx]
cmp ax, 0x3b
je 0x1005d74c
cmp ax, 0x31
jb 0x1005d741
cmp ax, 0x39
ja 0x1005d741
mov cl, byte [ecx]
sub cl, 0x30
mov byte [esp + 0x20], cl
mov edx, dword [esp + 0x20]
push edx
push ebp
lea ecx, [esp + 0x64]
call fcn.10005b10
jmp 0x1005d74c
cmp ax, 0x30
jne 0x1005d74c
mov byte [esp + 0x17], 1
add esi, ebp
cmp word [esp + esi*2 + 0x88], bx
lea ecx, [esp + esi*2 + 0x88]
jne 0x1005d712
cmp byte [esp + 0x17], bl
jne 0x1005d771
push 0xffffffffffffff80
push ebp
lea ecx, [esp + 0x64]
call fcn.10029d5b
lea eax, [esp + 0x24]
push eax
jmp 0x1005d77d
lea ecx, [esp + 0x24]
push ecx
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.1005d400
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], ebp
mov byte [esp + 0xa8], bl
call fcn.1005d310
mov eax, esi
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.10028d90
add esp, 0x98
ret
Function at 0x1005de80
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x100733b1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x1008c288]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
mov dword [esp + 0x10], edi
push edi
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
call fcn.10003780
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], 1
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1005dee0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.10010720
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], di
call fcn.10003780
cmp dword [esp + 0x28], 8
jb 0x1005df2b
mov ecx, dword [esp + 0x14]
push ecx
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret
Function at 0x100658d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x10073dcb
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x1008c288]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
push eax
lea ecx, [esp + 0x20]
call fcn.10064cd0
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], 0
call edx
push eax
lea ecx, [esp + 0x18]
call fcn.10064cd0
push 0x14
mov byte [esp + 0x30], 1
call sub.MFC80U.DLL_Ordinal_762
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov byte [esp + 0x2c], 2
je 0x100659a2
mov ecx, dword [esp + 0x14]
sub esp, 8
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esp + 0x20]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x20]
test ecx, ecx
mov dword [esp + 0x18], esp
je 0x1006596d
add ecx, 4
mov edx, 1
lock xadd dword [ecx], edx
mov ecx, dword [esp + 0x24]
sub esp, 8
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x30]
test ecx, ecx
mov dword [esp + 0x20], esp
je 0x10065997
add ecx, 4
mov edx, 1
lock xadd dword [ecx], edx
mov ecx, eax
call fcn.10061710
mov edi, eax
jmp 0x100659a4
xor edi, edi
mov esi, dword [esp + 0x18]
test esi, esi
mov byte [esp + 0x2c], 0
je 0x100659db
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100659db
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100659db
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov esi, dword [esp + 0x20]
test esi, esi
mov dword [esp + 0x2c], 0xffffffff
je 0x10065a15
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10065a15
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10065a15
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret
Function at 0x10065a30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x10073dcb
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x1008c288]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
push eax
lea ecx, [esp + 0x20]
call fcn.10064cd0
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], 0
call edx
push eax
lea ecx, [esp + 0x18]
call fcn.10064cd0
push 0x14
mov byte [esp + 0x30], 1
call sub.MFC80U.DLL_Ordinal_762
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov byte [esp + 0x2c], 2
je 0x10065b02
mov ecx, dword [esp + 0x14]
sub esp, 8
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esp + 0x20]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x20]
test ecx, ecx
mov dword [esp + 0x18], esp
je 0x10065acd
add ecx, 4
mov edx, 1
lock xadd dword [ecx], edx
mov ecx, dword [esp + 0x24]
sub esp, 8
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x30]
test ecx, ecx
mov dword [esp + 0x20], esp
je 0x10065af7
add ecx, 4
mov edx, 1
lock xadd dword [ecx], edx
mov ecx, eax
call fcn.10061850
mov edi, eax
jmp 0x10065b04
xor edi, edi
mov esi, dword [esp + 0x18]
test esi, esi
mov byte [esp + 0x2c], 0
je 0x10065b3b
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10065b3b
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10065b3b
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov esi, dword [esp + 0x20]
test esi, esi
mov dword [esp + 0x2c], 0xffffffff
je 0x10065b75
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10065b75
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10065b75
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret
Function at 0x10065b90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x10073dcb
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x1008c288]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
push eax
lea ecx, [esp + 0x20]
call fcn.10064cd0
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], 0
call edx
push eax
lea ecx, [esp + 0x18]
call fcn.10064cd0
push 0x14
mov byte [esp + 0x30], 1
call sub.MFC80U.DLL_Ordinal_762
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov byte [esp + 0x2c], 2
je 0x10065c62
mov ecx, dword [esp + 0x14]
sub esp, 8
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esp + 0x20]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x20]
test ecx, ecx
mov dword [esp + 0x18], esp
je 0x10065c2d
add ecx, 4
mov edx, 1
lock xadd dword [ecx], edx
mov ecx, dword [esp + 0x24]
sub esp, 8
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x30]
test ecx, ecx
mov dword [esp + 0x20], esp
je 0x10065c57
add ecx, 4
mov edx, 1
lock xadd dword [ecx], edx
mov ecx, eax
call fcn.100619a0
mov edi, eax
jmp 0x10065c64
xor edi, edi
mov esi, dword [esp + 0x18]
test esi, esi
mov byte [esp + 0x2c], 0
je 0x10065c9b
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10065c9b
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10065c9b
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov esi, dword [esp + 0x20]
test esi, esi
mov dword [esp + 0x2c], 0xffffffff
je 0x10065cd5
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10065cd5
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10065cd5
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret
Function at 0x10065cf0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x10073dcb
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x1008c288]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
push eax
lea ecx, [esp + 0x20]
call fcn.10064cd0
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], 0
call edx
push eax
lea ecx, [esp + 0x18]
call fcn.10064cd0
push 0x14
mov byte [esp + 0x30], 1
call fcn.10029d5b
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov byte [esp + 0x2c], 2
je 0x10065dc2
mov ecx, dword [esp + 0x14]
sub esp, 8
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esp + 0x20]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x20]
test ecx, ecx
mov dword [esp + 0x18], esp
je 0x10065d8d
add ecx, 4
mov edx, 1
lock xadd dword [ecx], edx
mov ecx, dword [esp + 0x24]
sub esp, 8
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x30]
test ecx, ecx
mov dword [esp + 0x20], esp
je 0x10065db7
add ecx, 4
mov edx, 1
lock xadd dword [ecx], edx
mov ecx, eax
call fcn.10061af0
mov edi, eax
jmp 0x10065dc4
xor edi, edi
mov esi, dword [esp + 0x18]
test esi, esi
mov byte [esp + 0x2c], 0
je 0x10065dfb
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10065dfb
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10065dfb
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov esi, dword [esp + 0x20]
test esi, esi
mov dword [esp + 0x2c], 0xffffffff
je 0x10065e35
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10065e35
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10065e35
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret
Function at 0x10065e50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x10073dcb
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x1008c288]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
push eax
lea ecx, [esp + 0x20]
call fcn.10064cd0
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], 0
call edx
push eax
lea ecx, [esp + 0x18]
call fcn.10064cd0
push 0x14
mov byte [esp + 0x30], 1
call sub.MFC80U.DLL_Ordinal_762
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov byte [esp + 0x2c], 2
je 0x10065f22
mov ecx, dword [esp + 0x14]
sub esp, 8
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esp + 0x20]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x20]
test ecx, ecx
mov dword [esp + 0x18], esp
je 0x10065eed
add ecx, 4
mov edx, 1
lock xadd dword [ecx], edx
mov ecx, dword [esp + 0x24]
sub esp, 8
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x30]
test ecx, ecx
mov dword [esp + 0x20], esp
je 0x10065f17
add ecx, 4
mov edx, 1
lock xadd dword [ecx], edx
mov ecx, eax
call fcn.10061c30
mov edi, eax
jmp 0x10065f24
xor edi, edi
mov esi, dword [esp + 0x18]
test esi, esi
mov byte [esp + 0x2c], 0
je 0x10065f5b
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10065f5b
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10065f5b
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov esi, dword [esp + 0x20]
test esi, esi
mov dword [esp + 0x2c], 0xffffffff
je 0x10065f95
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10065f95
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10065f95
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret