joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411720
Capabilities:
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x46b040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push ecx
push 0x64
push 1
push 7
push 0x80
mov esi, edx
mov edx, ecx
push 0
push 0x100081
lea ecx, [ebp - 0x50]
call fcn.00410e60
test eax, eax
jns 0x41176f
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00420701
mov esp, ebp
pop ebp
ret 4
mov ebx, dword ds:[ebp - 0x50]
lea eax, [ebp - 0x4c]
push 4
push 0x28
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test edi, edi
js 0x4118ba
push 5
push 0x18
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test edi, edi
js 0x4118ba
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0x1c]
push ecx
push 0x64
push 2
push 1
push 0x80
push eax
mov dword [ebp - 0x64], edx
mov edx, esi
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x50]
push 0x120116
call fcn.00410e60
mov edi, eax
test edi, edi
js 0x4118ba
call fcn.00406960
mov edi, eax
test edi, edi
jne 0x4117fd
mov edi, 0xc0000017
jmp 0x4118ba
push 0
push 0
push 0x2000
push edi
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtReadFile]
mov ecx, dword [ebp - 0x50]
mov esi, eax
mov dword [ebp - 0x50], ecx
test esi, esi
js 0x411879
lfence
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x411879
push 0
push 0
push eax
push edi
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov esi, eax
test esi, esi
js 0x411879
cmp dword [ebp - 0x54], 0
je 0x411879
push 0
push 0
push 0x2000
push edi
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push ebx
lfence
call dword [sym.imp.ntdll.dll_NtReadFile]
mov ecx, dword [ebp - 0x50]
mov esi, eax
test esi, esi
jns 0x411827
mov ecx, edi
call fcn.004069a0
xor edi, edi
cmp esi, 0xc0000011
cmovne edi, esi
mov esi, dword [ebp - 0x50]
test edi, edi
js 0x4118ac
push 4
push 0x28
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
jmp 0x4118b3
mov ecx, esi
call fcn.0040f8c0
push esi
call dword [sym.imp.ntdll.dll_NtClose]
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420701
mov esp, ebp
pop ebp
ret 4
Function at 0x411b80
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x46bd8c]
push ebx
push esi
push edi
push eax
push 4
push dword [0x46cd04]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 4
mov dword [ebp - 4], eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [ebp - 8]
push ebx
push 4
push eax
push 0x6b
call dword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov edi, eax
xor esi, esi
cmp edi, 0xc0000004
jne 0x411c1a
cmp esi, 8
jae 0x411c1e
push ebx
push 0
push dword [0x46cd04]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 4]
push 4
push dword [0x46cd04]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [ebp - 8]
push ebx
push 4
push eax
push 0x6b
call dword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov edi, eax
inc esi
cmp edi, 0xc0000004
je 0x411bd2
test edi, edi
jns 0x411c3b
push ebx
push 0
lfence
push dword [0x46cd04]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lfence
mov ecx, dword [ebp - 4]
cmp ecx, 0x100000
ja 0x411c4f
mov dword [0x46bd8c], ecx
mov eax, dword [ebp - 0xc]
mov dword [eax], ebx
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x412200
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov ecx, dword [0x46cfe8]
push edi
test ecx, ecx
je 0x412222
mov eax, dword [0x46cfe4]
mov dword [esi], eax
mov dword [esi + 4], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x7ffe0030
call fcn.004069e0
lea ecx, [eax + eax]
movzx eax, word [ecx + 0x7ffe002e]
mov edx, ecx
mov edi, eax
cmp eax, 0x5c
jne 0x412242
lea edx, [ecx - 2]
lea eax, [ecx - 2]
mov dword [esi], edx
cmp edi, 0x5c
mov dword [esi + 4], 0x7ffe0030
cmovne eax, ecx
xor ecx, ecx
mov dword [0x46cfe4], eax
lea eax, [ebp - 4]
lock or dword [eax], ecx
pop edi
mov dword [0x46cfe8], 0x7ffe0030
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412740
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
test byte [0x46be0c], 1
push ebx
push esi
push edi
mov edi, ecx
jne 0x41285f
mov ebx, 0x46be0c
lock bts dword [ebx], 0x1f
jae 0x41277e
test byte [0x46be0c], 1
jne 0x41285f
mov ecx, ebx
call fcn.004155c0
jmp 0x41285f
push 0x800
push 0
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, eax
test ecx, ecx
jne 0x4127cc
push 0x200
push eax
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, eax
test ecx, ecx
jne 0x4127cc
cmp dword [0x46bae0], 0x3e
jae 0x41281a
push eax
push eax
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, eax
test ecx, ecx
je 0x41281a
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x412813
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x412813
lea ecx, [ecx]
cmp eax, 0x7fffffff
jae 0x412813
cmp dword [eax + ecx], 0x4550
jne 0x412813
lea edx, [eax + 0x78]
mov eax, dword [edx + ecx]
add edx, ecx
test eax, eax
je 0x412813
cmp dword [edx + 4], 0
je 0x412813
push 0
add eax, ecx
push str.ShellExecuteExW
push eax
call fcn.00413aa0
jmp 0x412815
xor eax, eax
mov dword [0x46cff0], eax
lock bts dword ds:[ebx], 0
jb 0x41285f
mov esi, dword [0x46be10]
test esi, esi
je 0x412835
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
lock xadd dword [ebx], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x41285f
test esi, esi
je 0x41285f
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x46be10], 0
mov esi, dword [0x46cff0]
test esi, esi
jne 0x412872
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov ecx, esi
call dword [0x44026c]
call esi
pop edi
test eax, eax
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412940
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
test byte [0x46be04], 1
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
jne 0x412a70
mov esi, 0x46be04
lock bts dword [esi], 0x1f
jae 0x412985
test byte [0x46be04], 1
jne 0x412a70
mov ecx, esi
call fcn.004155c0
jmp 0x412980
jmp 0x412a70
push 0x800
push 0
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, eax
test ecx, ecx
jne 0x4129d0
push 0x200
push eax
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, eax
test ecx, ecx
jne 0x4129d0
cmp dword [0x46bae0], 0x3e
jae 0x412a22
push eax
push eax
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, eax
test ecx, ecx
je 0x412a22
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x412a1b
mov eax, dword ds:[ecx + 0x3c]
test eax, eax
je 0x412a1b
cmp eax, 0x7fffffff
jae 0x412a1b
cmp dword [eax + ecx], 0x4550
jne 0x412a1b
lea edx, ds:[eax + 0x78]
mov eax, dword [edx + ecx]
add edx, ecx
test eax, eax
je 0x412a1b
cmp dword [edx + 4], 0
je 0x412a1b
push 0
add eax, ecx
push str.SHGetKnownFolderPath
push eax
call fcn.00413aa0
jmp 0x412a1d
xor eax, eax
mov dword [0x46cfe0], eax
lock bts dword [esi], 0
jb 0x412a70
mov esi, dword [0x46be08]
test esi, esi
je 0x412a3c
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
mov ecx, 0x46be04
lock xadd dword [ecx], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x412a70
test esi, esi
je 0x412a70
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x46be08], 0
mov esi, dword [0x46cfe0]
test esi, esi
jne 0x412a88
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
mov ecx, esi
push 0
push edi
push ebx
call dword [0x44026c]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x412ce0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov eax, dword [edi]
cmp eax, 3
ja case.default.0x412ced
jmp dword [eax*4 + 0x412d68]
push dword [ebp + 8]
lea ecx, [edi + 4]
call fcn.0041db00
pop edi
pop ebp
ret 4
push dword [ebp + 8]
lea ecx, [edi + 4]
call fcn.0041f2e0
pop edi
pop ebp
ret 4
mov eax, dword ds:[edi + 4]
push esi
mov esi, dword [ebp + 8]
not eax
test esi, esi
je 0x412d3e
movsx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x467b60]
sub esi, 1
jne 0x412d24
not eax
pop esi
mov dword [edi + 4], eax
pop edi
pop ebp
ret 4
push dword [ebp + 8]
lea ecx, [edi + 4]
call fcn.0041d8a0
pop edi
pop ebp
ret 4
push 0xc000000d
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov edi, edi
hlt
Function at 0x413320
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x46b040]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x46bdec], 1
push ebx
push esi
push edi
jne 0x4134d0
mov edi, 0x46bdec
lock bts dword [edi], 0x1f
jb 0x413356
mov al, 1
jmp 0x413368
test byte [0x46bdec], 1
jne 0x413366
mov ecx, edi
call fcn.004155c0
xor al, al
test al, al
je 0x4134d0
call fcn.004156e0
mov esi, eax
lea eax, [ebp - 0xa0]
push 1
push eax
mov bl, byte [esi + 1]
call dword [sym.imp.ntdll.dll_RtlCreateSecurityDescriptor]
movzx ecx, bl
lea eax, [ebp - 0x8c]
push 2
lea ecx, [ecx*4 + 0x4c]
push ecx
push eax
call dword [sym.imp.ntdll.dll_RtlCreateAcl]
push 0x466474
push 0xf000f
push 2
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
push esi
push 0xf000f
push 2
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
push 0x466480
push 7
push 2
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
push 0
lea eax, [ebp - 0x8c]
push eax
push 1
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.ntdll.dll_RtlSetDaclSecurityDescriptor]
cmp dword [0x46bae0], 0x64
mov dword ds:[ebp - 0xa8], GetWindowLongW
sbb eax, eax
mov dword [ebp - 0xa4], str.BaseNamedObjectsSystemInformer
and eax, 0xfffff000
mov dword [ebp - 0xc0], 0x18
add eax, 0x1080
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0xc0]
push eax
push 0x2000000
push 0x46cecc
mov dword [ebp - 0xac], 0
call dword [sym.imp.ntdll.dll_NtCreateDirectoryObject]
lock bts dword [edi], 0
jb 0x4134d0
mov esi, dword [0x46bdf0]
test esi, esi
je 0x4134a6
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
lock xadd dword [edi], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x4134d0
test esi, esi
je 0x4134d0
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x46bdf0], 0
mov ecx, dword ds:[ebp - 4]
mov eax, dword [0x46cecc]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00420701
mov esp, ebp
pop ebp
ret
Function at 0x413500
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
lea edx, [esp + 8]
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], str.comdlg32.dll
call fcn.004138c0
mov ecx, eax
test ecx, ecx
jne 0x413584
push 0x800
push eax
push str.comdlg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, eax
test ecx, ecx
jne 0x413584
push 0x200
push eax
push str.comdlg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, eax
test ecx, ecx
jne 0x413584
cmp dword [0x46bae0], 0x3e
jae 0x413577
push eax
push eax
push str.comdlg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, eax
test ecx, ecx
jne 0x413584
mov eax, 0x8007007e
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x41363c
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x41363c
lea ecx, [ecx]
cmp eax, 0x7fffffff
jae 0x41363c
cmp dword [eax + ecx], 0x4550
jne 0x41363c
lea edx, [eax + 0x78]
mov eax, dword [edx + ecx]
add edx, ecx
test eax, eax
je 0x41363c
cmp dword [edx + 4], 0
je 0x41363c
push 0
add eax, ecx
push str.DllGetClassObject
push eax
call fcn.00413aa0
mov esi, eax
test esi, esi
je 0x41363c
lea eax, [esp + 8]
mov ecx, esi
push eax
push 0x4405cc
push 0x4405bc
call dword [0x44026c]
call esi
mov edi, eax
test edi, edi
js 0x413641
mov eax, dword [esp + 8]
push dword [ebp + 0xc]
push 0x44059c
mov esi, dword [eax]
push 0
push eax
mov esi, dword [esi + 0xc]
mov ecx, esi
call dword [0x44026c]
call esi
mov edi, eax
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x44026c]
call esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov edi, 0x8007007f
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x413660
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
test byte [0x46be14], 1
push ebx
push esi
push edi
mov edi, edx
jne 0x41375a
mov ebx, 0x46be14
lock bts dword [ebx], 0x1f
jae 0x4136a5
test byte [0x46be14], 1
jne 0x41375a
mov ecx, ebx
call fcn.004155c0
jmp 0x4136a0
jmp 0x41375a
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0x12
mov dword [esp + 0x14], 0x467024
call fcn.004138c0
mov ecx, eax
test ecx, ecx
je 0x41370f
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x413708
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x413708
cmp eax, 0x7fffffff
jae 0x413708
cmp dword [eax + ecx], 0x4550
jne 0x413708
lea edx, [eax + 0x78]
mov eax, dword [edx + ecx]
add edx, ecx
test eax, eax
je 0x413708
cmp dword [edx + 4], 0
je 0x413708
push 0
add eax, ecx
push str.RtlDelayExecution
push eax
call fcn.00413aa0
jmp 0x41370a
xor eax, eax
mov dword [0x46cfec], eax
lock bts dword [ebx], 0
jb 0x41375a
mov esi, dword [0x46be18]
lea esp, [esp]
test esi, esi
je 0x41372d
push 0
push esi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
lock xadd dword [ebx], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x41375a
test esi, esi
je 0x41375a
push esi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x46be18], 0
mov esi, dword [0x46cfec]
push edi
push 0
test esi, esi
je 0x413778
mov ecx, esi
call dword [0x44026c]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ntdll.dll_NtDelayExecution]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4138c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
sub esp, 0xc
mov eax, dword [eax + 0x30]
push ebx
push esi
push edi
push dword [eax + 0xa0]
mov ebx, edx
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
cmp dword [0x46bae0], 0x3e
jb 0x413945
test ebx, ebx
je 0x413945
push ecx
mov dl, 1
mov ecx, ebx
call fcn.00407a60
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0xc]
add ecx, 0xc
mov esi, dword [ecx]
cmp esi, ecx
je 0x413924
cmp dword [esi + 0x90], eax
je 0x413994
mov esi, dword ds:[esi]
cmp esi, ecx
jne 0x413913
xor esi, esi
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
push dword [ecx + 0xa0]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword fs:[0x18]
xor esi, esi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
add eax, 0xc
mov dword [ebp - 4], eax
mov edi, dword [eax]
cmp edi, eax
je 0x413994
nop
movzx ecx, word [edi + 0x2c]
mov eax, dword [edi + 0x30]
test ebx, ebx
je 0x413992
mov dword [ebp - 8], eax
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
cmp ecx, eax
jb 0x413989
push 1
mov edx, ebx
lea ecx, [ebp - 0xc]
call fcn.00406ae0
test al, al
jne 0x413992
mov edi, dword [edi]
cmp edi, dword [ebp - 4]
jne 0x413960
jmp 0x413994
mov esi, edi
test esi, esi
je 0x413924
mov esi, dword [esi + 0x18]
jmp 0x413926
Function at 0x4139a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, 0x5a4d
push esi
mov esi, edx
cmp word [ecx], ax
jne 0x4139f5
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4139f5
jmp 0x4139c0
cmp eax, 0x7fffffff
jae 0x4139f5
cmp dword [eax + ecx], 0x4550
jne 0x4139f5
lea edx, [ecx + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x4139f5
cmp dword ds:[edx + 4], 0
je 0x4139f5
push dword [ebp + 8]
add eax, ecx
push esi
push eax
call fcn.00413aa0
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x413a00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
mov edi, edx
mov esi, ecx
call fcn.004069e0
add eax, eax
mov dword [esp + 0xc], esi
lea edx, [esp + 8]
mov dword [esp + 8], eax
call fcn.004138c0
mov ecx, eax
test ecx, ecx
je 0x413a76
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x413a76
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x413a76
mov edi, edi
cmp eax, 0x7fffffff
jae 0x413a76
cmp dword [eax + ecx], 0x4550
jne 0x413a76
lea edx, [eax + 0x78]
mov eax, dword [edx + ecx]
add edx, ecx
test eax, eax
je 0x413a76
cmp dword [edx + 4], 0
je 0x413a76
push dword [ebp + 8]
add eax, ecx
push edi
push eax
call fcn.00413aa0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x414d60
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
xor eax, eax
mov dword [ebp - 8], 0
push ebx
mov ebx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x17], al
push esi
push edi
test ebx, ebx
je 0x414d8e
mov esi, ebx
mov dword [ebp - 8], esi
jmp 0x414de0
cmp dword [0x46d01c], 3
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
jge 0x414dcc
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x18
push eax
push 0x1000
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_NtOpenProcess]
jmp 0x414ddd
lea eax, [ebp - 0x14]
mov edx, 0x1000
push eax
lea ecx, [ebp - 8]
call fcn.0041b0a0
mov esi, dword [ebp - 8]
test esi, esi
je 0x414ebb
cmp dword [0x46bae0], 0x3e
jb 0x414ebb
test byte [0x46be34], 1
lea esp, [esp]
jne 0x414e9a
mov edi, 0x46be34
lock bts dword [edi], 0x1f
jae 0x414e27
test byte [0x46be34], 1
jne 0x414e9a
mov ecx, edi
call fcn.004155c0
jmp 0x414e9a
cmp dword [0x46bae0], 0x3e
jb 0x414e4a
push 0
mov edx, str.IsImmersiveProcess
mov ecx, str.user32.dll
call fcn.00413a00
mov dword [0x46d008], eax
lock bts dword [edi], 0
jb 0x414e9a
mov edi, dword [0x46be38]
test edi, edi
je 0x414e66
push 0
push edi
call dword [sym.imp.ntdll.dll_NtSetEvent]
mov eax, 0xfffffffe
mov ecx, 0x46be34
lock xadd dword [ecx], eax
shr eax, 1
and eax, 0x7fff
sub eax, 1
jne 0x414e9a
test edi, edi
je 0x414e9a
push edi
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [0x46be38], 0
mov edi, dword [0x46d008]
test edi, edi
jne 0x414ea8
xor al, al
jmp 0x414eb8
push esi
mov ecx, edi
call dword [0x44026c]
call edi
test eax, eax
setne al
mov byte [ebp - 0x18], al
lea eax, [ebp - 0x24]
push eax
push 0x414ca0
call dword [sym.imp.USER32.dll_EnumWindows]
test ebx, ebx
jne 0x414edc
mov eax, dword [ebp - 8]
test eax, eax
je 0x414edc
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
mov eax, dword [ebp - 0x24]
pop edi
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41f3a0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x46b040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov ebx, edx
push edi
mov dword [ebp - 0x50], eax
mov esi, 0x78
mov edi, dword [eax + 0x30]
mov edx, edi
and edx, 0x3f
mov eax, 0x38
sub eax, edx
sub esi, edx
cmp edx, 0x38
cmovb esi, eax
lea eax, [esi - 1]
push eax
lea eax, [ebp - 0x4b]
push 0
push eax
call fcn.00422210
mov eax, dword ds:[ebp - 0x50]
lea edx, [ebp - 0x4c]
mov ecx, edi
mov byte [ebp - 0x4c], 0x80
shr ecx, 0x1d
add esp, 0xc
mov eax, dword [eax + 0x2c]
shl eax, 3
or ecx, eax
lea eax, [edi*8]
bswap eax
bswap ecx
mov dword [ebp + esi - 0x48], eax
lea eax, [esi + 8]
mov dword [ebp + esi - 0x4c], ecx
mov esi, dword [ebp - 0x50]
mov ecx, esi
push eax
call fcn.0041f2e0
mov ecx, dword [esi + 0x18]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx], edx
mov ecx, dword [esi + 0x1c]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx + 4], edx
mov ecx, dword [esi + 0x20]
mov edx, ecx
mov eax, ecx
and edx, 0xff0000
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx + 8], edx
mov ecx, dword [esi + 0x24]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx + 0xc], edx
mov ecx, dword [esi + 0x28]
mov edx, ecx
mov eax, ecx
and edx, 0xff0000
shr eax, 0x10
or edx, eax
mov eax, ecx
and ecx, 0xff00
shl eax, 0x10
or eax, ecx
shr edx, 8
mov ecx, dword [ebp - 4]
shl eax, 8
xor ecx, ebp
or edx, eax
mov dword [ebx + 0x10], edx
pop edi
mov dword [esi + 0x18], 0x67452301
mov dword [esi + 0x1c], 0xefcdab89
mov dword [esi + 0x20], 0x98badcfe
mov dword [esi + 0x24], 0x10325476
mov dword [esi + 0x28], 0xc3d2e1f0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
pop esi
pop ebx
call fcn.00420701
mov esp, ebp
pop ebp
ret
Function at 0x43567f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00431f19
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4356ee
cmp esi, dword [ebp - 4]
je 0x4356e9
cmp dword [ebp + 0xc], 0
je 0x4356e9
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4356c6
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004351bc
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4356f0
xor eax, eax
inc eax
jmp 0x4356f0
xor eax, eax
pop edi
pop esi
leave
ret