joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4164d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
push esi
push edi
mov esi, ecx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4164e0
sub eax, edi
sar eax, 1
add eax, eax
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
test eax, eax
je 0x416516
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebp
ret 8
mov eax, 1
pop ebp
ret 8

Function at 0x416720
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557802
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x5b3680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0xac], 0
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov dword [ebp - 0xb0], edi
mov byte [edi], 0
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 0x10
mov ebx, dword [esi + 0x10]
mov dword [ebp - 0xac], 1
mov dword [ebp - 0xa8], 0x10
jb 0x4167a0
mov esi, dword [esi]
push 0xf0000020
push 1
push 0
push 0
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x41688d
lea eax, [ebp - 0xa0]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0xa4]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x416884
push 0
push ebx
push esi
push dword [ebp - 0xa0]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x41687b
push 0
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x9c]
push eax
push 2
push dword [ebp - 0xa0]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x41686d
xor esi, esi
movzx eax, byte [ebp + esi - 0x9c]
push eax
lea eax, [ebp - 0x1c]
push str._02x
push eax
call fcn.00529897
add esp, 0xc
cmp byte [ebp - 0x1c], 0
jne 0x416844
xor ecx, ecx
jmp 0x416859
lea ecx, [ebp - 0x1c]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416850
sub ecx, edx
push ecx
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00411ec0
inc esi
cmp esi, 0x10
jl 0x416820
jmp 0x41689b
push str.Error_getting_hash_param
mov ecx, edi
call fcn.004168e0
jmp 0x41689b
push 0x12
push str.Error_hashing_data
jmp 0x416894
push 0x13
push str.Error_creating_hash
jmp 0x416894
push 0x17
push str.Error_acquiring_context
mov ecx, edi
call fcn.00412a90
push dword [ebp - 0xa0]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0xa4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
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 - 0x10]
xor ecx, ebp
call fcn.005295e2
mov esp, ebp
pop ebp
ret
Function at 0x418ba0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
push esi
mov esi, ecx
jne 0x418c68
mov eax, dword [ebp + 0xc]
cmp eax, 0x110
jne 0x418bd1
sub esp, 0x10
call fcn.00419280
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, 1
pop esi
pop ebp
ret 0x18
cmp eax, 0x111
jne 0x418c0c
mov eax, dword [ebp + 0x10]
cmp ax, 2
je 0x418be7
cmp ax, 1
jne 0x418bf9
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.00419940
mov eax, dword [ebp + 0x18]
pop esi
mov dword [eax], 0
mov eax, 1
pop ebp
ret 0x18
cmp eax, 2
jne 0x418c28
sub esp, 0x10
call fcn.00418ea0
mov ecx, dword [ebp + 0x18]
pop esi
mov dword [ecx], eax
mov eax, 1
pop ebp
ret 0x18
cmp eax, 0x800a
jne 0x418c4c
cmp dword [ebp + 0x14], 0x203
jne 0x418bf9
call fcn.00418e20
mov ecx, dword [ebp + 0x18]
pop esi
mov dword [ecx], eax
mov eax, 1
pop ebp
ret 0x18
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.0041a230
test eax, eax
jne 0x418bc7
xor eax, eax
pop esi
pop ebp
ret 0x18

Function at 0x418e20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c0
mov eax, dword [0x5b3680]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3bc
lea eax, [ebp - 0x3c0]
push 0
push eax
call fcn.00531bd0
mov eax, dword [esi + 4]
add esp, 0xc
mov dword [ebp - 0x3bc], eax
lea eax, [ebp - 0x3c0]
mov dword [ebp - 0x3c0], 0x3bc
mov dword [ebp - 0x3b8], 0x66
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.005295e2
mov esp, ebp
pop ebp
ret
Function at 0x419940
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558146
mov eax, dword fs:[0]
push eax
sub esp, 0x5c8
mov eax, dword [0x5b3680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0x10
push 0x10
push 0x30000
push 1
push 0x468
push 0x5b4690
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
push 0x3bc
mov edi, eax
lea eax, [ebp - 0x5d4]
push 0
push eax
call fcn.00531bd0
mov ecx, dword [esi + 4]
add esp, 0xc
mov dword [ebp - 0x5d4], 0x3bc
mov dword [ebp - 0x5c0], edi
mov dword [ebp - 0x5d0], ecx
mov dword [ebp - 0x5c4], 0x800a
mov dword [ebp - 0x5c8], 7
mov dword [ebp - 0x5cc], 0x66
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, 0x419
cmp ax, cx
je 0x419a36
push 0x589f2c
lea ecx, [ebp - 0x218]
call fcn.0041c1b0
mov dword [ebp - 4], 1
lea edx, [ebp - 0x5bc]
mov ecx, dword [eax]
lea ecx, [ecx]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x419a10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x214]
mov eax, dword [ebp - 0x218]
jmp 0x419a79
push str.StaffCop
lea ecx, [ebp - 0x114]
call fcn.0041c1b0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x5bc]
mov ecx, dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x419a55
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
mov eax, dword [ebp - 0x114]
cmp eax, ecx
je 0x419a86
push eax
call fcn.0052adae
add esp, 4
lea eax, [ebp - 0x5d4]
push eax
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
push edi
test eax, eax
jne 0x419aa4
call dword [sym.imp.USER32.dll_DestroyIcon]
xor eax, eax
jmp 0x419aaf
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005295e2
mov esp, ebp
pop ebp
ret

Function at 0x419c60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55819e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x5b3680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea eax, [esi + 8]
mov dword [esi + 4], 0
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], 0
mov dword [ebp - 4], 1
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [ebp - 4], 2
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x20], eax
mov dword [ebp - 4], 4
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x48], 0
mov al, byte [esi + 0x58]
and al, 0xf1
mov dword [esi + 0x4c], 0xff0000
or al, 1
mov dword [esi + 0x50], 0x800080
mov byte [esi + 0x58], al
lea eax, [esi + 0x38]
push eax
mov dword [esi + 0x54], 0
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41a9c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558306
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x5b3680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21c], ecx
mov esi, dword [0x5b8bf4]
mov edi, 1
push 0xf0
push 0x67
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41ab7c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41ab7c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41ab7c
mov edx, 0x1234
jmp 0x41aa40
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x41ab7c
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x220], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x41aad9
push 3
lea eax, [ebp - 0x214]
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x218], eax
call fcn.0041be40
mov dword [ebp - 4], 0
push dword [ebp - 0x218]
mov eax, dword [ebp - 0x21c]
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
cmp eax, ecx
je 0x41ab69
push eax
call fcn.0052adae
add esp, 4
jmp 0x41ab69
cmp dx, ax
jne 0x41ab6e
push 3
lea eax, [ebp - 0x110]
mov dword [ebp - 0x244], 1
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x240], 0xffffffff
mov dword [ebp - 0x114], eax
call fcn.0041be40
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
mov eax, dword [ebp - 0x114]
cmp eax, ecx
je 0x41ab43
push eax
call fcn.0052adae
add esp, 4
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x21c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
mov edx, 0x1234
add esi, dword [ebp - 0x220]
test edi, edi
jne 0x41aa40
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 - 0x10]
xor ecx, ebp
call fcn.005295e2
mov esp, ebp
pop ebp
ret 4
Function at 0x41aba0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov bl, 1
mov ecx, dword [edi + 0x54]
mov eax, ecx
and eax, 0xc
cmp al, 0xc
jne 0x41abf9
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0xc], eax
call esi
push dword [edi + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xfffffffe
call esi
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0xc]
push ecx
push esi
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
shr ecx, 2
test cl, 1
je 0x41ac31
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [edi + 4]
movzx ecx, si
push ecx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0
push 0
push dword [edi + 0x28]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
test bl, bl
je 0x41ac62
or byte [edi + 0x58], 2
push 1
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41bc80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41bcf1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x41bcbf
cmp eax, 2
jne 0x41bcdb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x41bceb
test ecx, ecx
je 0x41bce6
test cl, 1
jne 0x41bcdb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x41bceb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x42fba0
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx + 0x14], 0
mov eax, ecx
mov dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x42fd80
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x5b3680]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
push 0x58a2ac
push ebx
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
call fcn.0052d652
mov edi, eax
add esp, 8
test edi, edi
jne 0x42fde8
push ebx
push str._s_cant_be_opened_n
call fcn.0052d67c
add esp, 8
jmp 0x42fe22
push edi
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.0052d4e2
add esp, 0x10
test eax, eax
je 0x42fe12
push eax
lea eax, [ebp - 0x404]
mov ecx, esi
push eax
call fcn.0042fbd0
mov ecx, esi
call fcn.0042fc80
push edi
call fcn.0052c324
add esp, 4
mov ecx, dword [ebp - 4]
lea eax, [esi + 0x68]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005295e2
mov esp, ebp
pop ebp
ret 4
Function at 0x430490
Capabilities:
Acquire debug privileges
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x5b3680]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ecx, str.SeDebugPrivilege
call fcn.0042ff40
push 0x114
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00531bd0
add esp, 0xc
mov dword [ebp - 0x120], 0x114
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x430521
cmp dword [ebp - 0x11c], 6
jne 0x430521
push str.QueryFullProcessImageNameW
push 0x589b54
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
mov dword [esi], eax
test eax, eax
setne bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43051d
movzx eax, ax
or eax, 0x80070000
test ebx, ebx
je 0x430535
mov ecx, dword [ebp - 4]
mov byte [esi + 0x18], 1
xor ecx, ebp
pop esi
pop ebx
call fcn.005295e2
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x124]
push 0x5afaa8
push eax
call fcn.00532408
int3

Function at 0x430c60
Capabilities:
Hash data with md5
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5b9c78]
mov ecx, dword [eax + 0x2468]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
cmp ecx, edx
je 0x430c8c
cmp ecx, dword [eax]
je 0x430c8c
movzx eax, byte [eax + 8]
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], edx
pop ebp
jmp fcn.004311c0
pop ebp
ret 8
Function at 0x4348b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55cce8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5b3680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], 0x5c408c
mov byte [ebp - 0x18], 0
push 0x5c408c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x18], 1
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
push 0
push 0
push esi
push 0x434840
push 0
push 0
call fcn.0052cf98
add esp, 0x18
mov esi, eax
xor ebx, ebx
test esi, esi
setne bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x434936
movzx eax, ax
or eax, 0x80070000
test ebx, ebx
jne 0x434940
push eax
call fcn.004027b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0041c570
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 0x436840
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d236
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x5b3680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
movdqu xmm0, xmmword [eax]
lea eax, [ecx + 0x10]
mov dword [ebp + 8], eax
movdqu xmmword [ecx], xmm0
mov dword [eax], 0
add eax, 4
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0xa
mov dword [eax + 0x14], 0
mov dword [ebp - 4], 3
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x30], eax
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x43a0a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55db73
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x5b3680]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x5b3680]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x20], vtable.ATL::CAcl.0
mov dword [esp + 0x24], 0
mov byte [esp + 0x28], 0
mov dword [esp + 0x2c], 2
mov dword [esp + 0xd0], 0
lea eax, [esp + 0x30]
mov dword [esp + 0x20], vtable.ATL::CDacl.0
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0xd0], 3
lea ecx, [esp + 0x5c]
call fcn.0043afd0
mov byte [esp + 0xd0], 4
sub esp, 8
lea ecx, [esp + 0x28]
push eax
call fcn.0043b240
mov byte [esp + 0xd0], 3
lea ecx, [esp + 0x5c]
call fcn.00434290
lea ecx, [esp + 0x5c]
call fcn.0043adb0
mov byte [esp + 0xd0], 5
sub esp, 8
lea ecx, [esp + 0x28]
push eax
call fcn.0043b240
mov byte [esp + 0xd0], 3
lea ecx, [esp + 0x5c]
call fcn.00434290
mov dword [esp + 0x14], vtable.ATL::CSecurityDesc.0
mov dword [esp + 0x18], 0
mov byte [esp + 0xd0], 6
lea eax, [esp + 0x20]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0043ab90
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [edi]
push ecx
mov ecx, edi
mov dword [esp + 0x48], 0xc
mov dword [esp + 0x50], 0
call dword [eax + 4]
mov ecx, eax
call fcn.00436c90
mov byte [esp + 0xd0], 7
mov edx, 0x58a91c
push eax
lea ecx, [esp + 0x20]
call fcn.00435a70
add esp, 4
mov byte [esp + 0xd0], 8
push dword [eax]
lea eax, [esp + 0x44]
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 4], eax
mov byte [esp + 0xd0], 7
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x43a258
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0xd0], 6
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x43a27b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
cmp dword [edi + 4], ebx
setne bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43a295
movzx eax, ax
or eax, 0x80070000
test ebx, ebx
jne 0x43a2ac
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 0x5afaa8
push eax
call fcn.00532408
mov byte [esp + 0xd0], 3
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.ATL::CSecurityDesc.0
call fcn.0043acd0
mov dword [esp + 0xd0], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.0043b380
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.005295e2
mov esp, ebp
pop ebp
ret
Function at 0x43c470
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e0a0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5b3680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov esi, ecx
xor bl, bl
call fcn.00402a00
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x43c4bb
push 0x80004005
call fcn.004027b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
cmp byte [ebp + 8], 0
je 0x43c4e7
push esi
lea eax, [ebp - 0x14]
push str.._s
push eax
call fcn.00415d20
add esp, 0xc
jmp 0x43c50d
test esi, esi
jne 0x43c4ef
xor ecx, ecx
jmp 0x43c503
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43c4f4
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.00402600
xor edi, edi
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x14]
push edi
push 0x80
push 3
push edi
push 3
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x43c547
call fcn.004160c0
test eax, eax
js 0x43c58b
jmp 0x43c54c
mov edi, eax
mov dword [ebp - 0x2c], edi
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 8
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0x7405c
push edi
movq qword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x43c58b
mov ecx, dword [ebp - 0x1c]
mov bl, 1
mov eax, dword [ebp - 0x24]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
mov dword [ecx + 4], eax
mov byte [ebp - 4], 1
test edi, edi
je 0x43c5a1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43c5c2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret