joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40315e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x475555
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x47556d
or eax, eax
jmp 0x40317d
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 8]
jmp 0x40317d

Function at 0x4039dd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x10]
push ebx
push 1
push 0
call dword [sym.imp.OLE32.DLL_CreateStreamOnHGlobal]
test eax, eax
js 0x403a15
push edi
push 0
push 0x4afecc
push 0xa
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_FindResourceExW]
mov edi, eax
test edi, edi
jne 0x4762dd
pop edi
pop esi
pop ebx
leave
ret
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x403a14
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edi, eax
test edi, edi
je 0x403a14
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_LockResource]
test eax, eax
je 0x403a14
mov ecx, dword [ebx]
push 0
mov edx, dword [ecx]
push edi
push eax
push ecx
call dword [edx + 0x10]
mov eax, dword [ebx]
xor edx, edx
mov ecx, dword [eax]
push edx
push edx
push edx
push edx
push eax
call dword [ecx + 0x14]
mov byte [esi + 0x14], 1
jmp 0x403a14
Function at 0x404b0b
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
push ebx
push esi
push edi
lea eax, [ebp - 0x22c]
push eax
xor bl, bl
push 0x104
mov byte [ebp - 5], bl
xor bh, bh
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
lea eax, [ebp - 6]
push eax
push dword [ebp + 8]
call fcn.0040544c
call dword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
test eax, eax
jne 0x472d63
mov eax, dword [0x4c2124]
test eax, eax
je 0x404c2a
xor edi, edi
inc edi
mov esi, 0x4c32e8
cmp eax, edi
je 0x472d7c
lea eax, [ebp - 5]
push eax
push ecx
push 0x4c2124
push 0x4c213c
mov ecx, esi
call fcn.00404c3b
test al, al
je 0x404c33
mov al, byte [0x4c32e8]
mov bh, byte [0x4c32e9]
push 0x4c2120
mov byte [0x4c2128], al
lea eax, [ebp - 0x43c]
push eax
push 0x104
push 0x4c213c
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
mov bl, byte [ebp - 5]
push dword [0x4c2124]
push 0x4c213c
call fcn.00404225
test eax, eax
jne 0x472d9b
cmp bh, 1
je 0x472dba
call fcn.00404140
call fcn.00403552
cmp byte [0x4c2128], 0
mov ebx, 0x4c28f0
jne 0x404bf4
mov ecx, ebx
call fcn.00403ae8
push edi
mov ecx, 0x4c2348
call fcn.0040f3c0
cmp byte [0x4c2128], 0
jne 0x404c0f
mov ecx, ebx
call fcn.00403700
mov ecx, esi
call fcn.00403fda
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
pop edi
pop esi
pop ebx
leave
ret 4
or dword [0x4c20bc], 0xffffffff
jmp 0x404c16
mov dword [0x4c20bc], edi
jmp 0x404c16
push 0x10
push 0x4b393c
push 0x4b3940
push 0
call dword [sym.imp.USER32.DLL_MessageBoxA]
jmp 0x404c23
push 0xffffffffffffffff
push dword [0x4c212c]
mov ecx, esi
push edi
call fcn.00443a31
mov al, byte [0x4c20c2]
mov byte [0x4c32ea], al
jmp 0x404bb4
mov ecx, esi
call fcn.00403fda
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov dword [0x4c20bc], edi
jmp 0x404c23
call fcn.0043c943
test al, al
jne 0x404bd5
cmp byte [ebp - 6], al
jne 0x404bd5
push 0x104
lea eax, [ebp - 0x43c]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0x49eaa4
lea ecx, [ebp - 0x18]
call fcn.0040dc83
lea ecx, [ebp - 0x18]
test bl, bl
je 0x472e1d
mov edi, 0x4b39a8
push edi
call fcn.00403f04
push 0x4c213c
lea ecx, [ebp - 0x18]
call fcn.00403f04
push edi
lea ecx, [ebp - 0x18]
call fcn.00403f04
push 1
jmp 0x472e26
push dword [ebp + 8]
call fcn.00403f04
push edi
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x43c]
push eax
push 0x4b39ac
call dword [sym.imp.USER32.DLL_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.DLL_ShellExecuteW]
lea ecx, [ebp - 0x18]
call fcn.00406ea2
jmp 0x404c0f

Function at 0x4053dd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0x476387
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00424f9e
add esp, 0x10
leave
ret 0x10
mov ecx, dword [ecx + 0x10]
lea eax, [ebp - 4]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
push ecx
call dword [edx + 0xc]
mov eax, dword [ebp - 4]
jmp 0x405403
Function at 0x405f80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0x405ff4
mov ebx, dword [ebp + 0xc]
xor edi, edi
test ebx, ebx
je 0x405fb7
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
je 0x405fc7
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
inc edi
mov al, byte [ecx + eax]
mov ecx, dword [ebp + 8]
mov byte [edi + ecx - 1], al
inc dword [esi + 0xc]
cmp edi, ebx
jb 0x405f97
add dword [esi + 0x10], edi
mov eax, edi
pop edi
adc dword [esi + 0x14], 0
pop esi
pop ebx
pop ebp
ret 8
push 0
lea eax, [ebp + 0xc]
push eax
push 0x10000
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x405fb7
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x405fb7
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
jmp 0x405f9f
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.004060a1
jmp 0x405f8e
Function at 0x41d1fd
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
mov esi, dword [edi]
push eax
mov ebx, ecx
call dword [sym.imp.USER32.DLL_GetCursorPos]
mov eax, dword [ebp - 8]
mov dword [edi + 0x16c], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x170], eax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.USER32.DLL_ScreenToClient]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp ecx, dword [edi + 0x174]
jne 0x41d2a2
cmp eax, dword [edi + 0x178]
jne 0x41d2a2
push dword [ebx + 0x18]
mov esi, dword [sym.imp.USER32.DLL_GetAsyncKeyState]
call esi
push dword [ebx + 0x1c]
movzx eax, ax
shr eax, 0xf
mov dword [ebp + 8], eax
call esi
movzx esi, ax
mov eax, dword [ebp + 8]
shr esi, 0xf
cmp eax, dword [edi + 0x17c]
jne 0x47fadc
cmp dword [ebp + 0xc], 0
je 0x41d283
mov dword [edi + 0x17c], eax
cmp esi, dword [edi + 0x180]
jne 0x47fb48
cmp dword [ebp + 0xc], 0
je 0x41d29b
mov dword [edi + 0x180], esi
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [ebp + 0xc], 1
mov dword [edi + 0x174], ecx
mov dword [edi + 0x178], eax
jl 0x41d249
jmp 0x47facb
push eax
push ecx
push edi
push 0xfffffffffffffff5
mov ecx, ebx
call fcn.00469944
jmp 0x41d249
cmp dword [ebp + 0xc], 1
jl 0x41d277
cmp byte [edi + 0x1a8], 0
je 0x41d277
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp - 8]
push edi
test eax, eax
je 0x47fb04
push 0xfffffffffffffff9
jmp 0x47fb34
push 0xfffffffffffffff8
call fcn.00469944
cmp byte [edi + 0x184], 0
je 0x47fb39
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowLongW]
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp - 8]
push edi
test eax, 0x1000000
je 0x47fb32
push 0xfffffffffffffffa
jmp 0x47fb34
push 0xfffffffffffffff4
call fcn.00469944
mov eax, dword [ebp + 8]
mov byte [edi + 0x184], 0
jmp 0x41d277
cmp dword [ebp + 0xc], 1
jl 0x41d28f
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp - 8]
push edi
test esi, esi
je 0x47fb63
push 0xfffffffffffffff7
jmp 0x47fb65
push 0xfffffffffffffff6
call fcn.00469944
jmp 0x41d28f

Function at 0x41e6ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
je 0x41e769
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x41e769
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 8]
push eax
push 1
xor ebx, ebx
push ebx
push edx
push ecx
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
test eax, eax
jne 0x41e769
mov eax, dword [ebp + 0xc]
push edi
lea edi, [eax + eax]
lea eax, [ebp - 4]
push eax
push esi
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
test eax, eax
jne 0x41e750
mov eax, dword [ebp - 4]
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0xc]
jae 0x41e760
xor ecx, ecx
mov word [esi + eax*2], cx
mov bl, 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
mov word [edi + esi - 2], ax
jmp 0x41e74e
xor al, al
jmp 0x41e75c
Function at 0x41f324
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x10
push ebx
call fcn.0040d4dd
lea eax, [ebp - 8]
push eax
push 1
xor ebx, ebx
push ebx
push 0x49ec50
push reloc.WSOCK32.DLL_accept
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
test eax, eax
je 0x4755ef
xor al, al
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push 0x49ec40
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
test eax, eax
jne 0x475669
mov eax, dword [ebp - 4]
push esi
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420bfa
pop ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00403182
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push esi
push ebx
push ebx
push 0x49ec40
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
test eax, eax
jne 0x475660
mov eax, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
mov dword [ebp - 4], eax
mov word [esi + eax*2], cx
mov ecx, dword [ebp + 0xc]
push esi
call fcn.00408f96
mov bl, 1
lea ecx, [ebp - 0x10]
call fcn.0040331d
pop esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov al, bl
jmp 0x41f356

Function at 0x41f9bc
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0x4c20c1]
push ebx
push esi
push edi
mov esi, ecx
push 0x8000
push esi
mov edi, edx
mov byte [ebp - 1], al
call fcn.004240b6
pop ecx
push eax
call fcn.00423ee5
pop ecx
pop ecx
push 0xb
mov ecx, edi
mov ebx, eax
call fcn.0040e479
test al, al
jne 0x475679
lea ecx, [ebp - 0x18]
call fcn.0040b70e
mov ecx, edi
call fcn.0040957a
lea eax, [ebp - 0x18]
push eax
push dword [edi + 8]
call fcn.0041fa63
push dword [ebp - 0x18]
push 0x4afc3c
push esi
call fcn.004242af
add esp, 0xc
cmp byte [ebp - 1], 0
mov dword [ebp - 8], eax
jne 0x475699
lea ecx, [ebp - 0x18]
call fcn.00406ea2
mov edi, dword [ebp - 8]
push esi
call fcn.00424474
pop ecx
cmp ebx, 0xffffffff
je 0x4756b0
push ebx
push esi
call fcn.004240b6
pop ecx
push eax
call fcn.00423ee5
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
push esi
mov ecx, edi
call fcn.0044ca2e
push eax
push 1
call fcn.0044c9e5
push eax
call fcn.00424231
add esp, 0x10
mov edi, eax
jmp 0x41fa3c
mov ecx, edi
call fcn.0040957a
mov eax, dword [edi + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
jmp 0x41fa31
push 0x4000
jmp 0x41fa4d
Function at 0x420147
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push edi
mov edi, 0x4c2810
jne 0x47f763
mov ecx, dword [0x4c287c]
cmp ecx, 0xffffffff
je 0x4201e1
mov eax, dword [0x4c2870]
push ebx
mov eax, dword [eax + ecx*4]
push esi
mov esi, dword [eax]
xor ecx, ecx
mov ebx, dword [esi]
cmp byte [esi + 0x3a], cl
je 0x420189
mov byte [esi + 0x3a], cl
cmp dword [esi + 0x18c], ecx
jge 0x47f77a
mov edi, dword [ebp + 8]
cmp edi, 8
jg 0x47f7b9
je 0x4201b5
test edi, edi
je 0x4201f9
cmp edi, 1
je 0x4201b5
cmp edi, 2
je 0x4201f0
cmp edi, 3
je 0x47f80e
jle 0x4201d7
cmp edi, 5
jg 0x4201e5
cmp byte [esi + 0x38], 0
jne 0x420207
push edi
push ebx
call dword [sym.imp.USER32.DLL_ShowWindow]
cmp edi, 8
je 0x4201d3
cmp edi, 4
je 0x4201d3
push ebx
call fcn.0042020b
mov byte [esi + 0x38], 1
xor eax, eax
inc eax
pop esi
pop ebx
pop edi
pop ebp
ret 8
xor eax, eax
jmp 0x4201dc
cmp edi, 6
je 0x47f7a1
jmp 0x4201d7
mov byte [esi + 0x38], 1
jmp 0x47f7a1
push ecx
push ebx
call dword [sym.imp.USER32.DLL_ShowWindow]
mov byte [esi + 0x38], 0
jmp 0x4201d7
xor eax, eax
jmp 0x4201da
push dword [ebp + 0xc]
mov ecx, edi
call fcn.0041cedf
mov ecx, eax
mov dword [0x4c287c], ecx
jmp 0x420160
cmp byte [esi + 0x198], cl
je 0x420189
push dword [esi + 0x194]
mov ecx, edi
push esi
call fcn.0046ee5c
xor ecx, ecx
mov byte [esi + 0x198], cl
jmp 0x420189
cmp byte [esi + 0x38], 0
je 0x420207
push 6
push ebx
call dword [sym.imp.USER32.DLL_ShowWindow]
jmp 0x4201d7
mov eax, edi
sub eax, 9
je 0x47f80e
sub eax, 0x37
je 0x47f800
dec eax
je 0x47f7fd
dec eax
je 0x47f7ed
dec eax
jne 0x4201d7
push ecx
mov byte [esi + 0x39], cl
call dword [sym.imp.USER32.DLL_LockWindowUpdate]
push 1
push 0
push dword [esi]
call dword [sym.imp.USER32.DLL_InvalidateRect]
jmp 0x4201d7
push ebx
mov byte [esi + 0x39], 1
call dword [sym.imp.USER32.DLL_LockWindowUpdate]
jmp 0x4201d7
push ecx
jmp 0x47f802
push 1
push ebx
call dword [sym.imp.USER32.DLL_EnableWindow]
jmp 0x4201d7
cmp byte [esi + 0x38], 0
je 0x420207
push edi
push ebx
call dword [sym.imp.USER32.DLL_ShowWindow]
push ebx
call fcn.0042020b
jmp 0x4201d7
Function at 0x42020b
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
call dword [sym.imp.USER32.DLL_GetForegroundWindow]
mov ebx, dword [ebp + 8]
mov esi, eax
cmp ebx, esi
jne 0x474e4f
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 4
push edi
xor edi, edi
test esi, esi
jne 0x474e64
push edi
push 0x4b465c
call dword [sym.imp.USER32.DLL_FindWindowW]
mov esi, eax
push ebx
call dword [sym.imp.USER32.DLL_IsIconic]
test eax, eax
je 0x474e78
push 9
push ebx
call dword [sym.imp.USER32.DLL_ShowWindow]
push ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.USER32.DLL_SetForegroundWindow]
test eax, eax
jne 0x474f53
push edi
push esi
mov esi, dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push 0
push ebx
mov dword [ebp + 8], eax
call esi
mov esi, dword [sym.imp.USER32.DLL_AttachThreadInput]
push 1
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
push 1
push edi
push dword [ebp + 8]
call esi
push 1
push dword [ebp - 4]
push edi
call esi
push ebx
call dword [sym.imp.USER32.DLL_SetForegroundWindow]
test eax, eax
jne 0x474f2f
mov edi, dword [sym.imp.USER32.DLL_MapVirtualKeyW]
push eax
push eax
push eax
push 0x12
call edi
mov esi, dword [sym.imp.USER32.DLL_keybd_event]
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
xor eax, eax
push eax
push eax
push eax
push 0x12
call edi
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
push ebx
call dword [sym.imp.USER32.DLL_SetForegroundWindow]
mov esi, dword [sym.imp.USER32.DLL_AttachThreadInput]
mov edi, dword [ebp - 8]
test eax, eax
je 0x474f34
push 4
jmp 0x474f31
push 3
pop ebx
jmp 0x474f37
mov ebx, dword [ebp - 0xc]
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call esi
push 0
push edi
push dword [ebp + 8]
call esi
push 0
push dword [ebp - 4]
push edi
call esi
jmp 0x474f56
push 2
pop ebx
mov eax, ebx
pop edi
jmp 0x420229
Function at 0x4351c0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4bbdc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [fcn.004bb000]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0042968c
mov dword [ebp - 0x14], eax
cmp dword [0x4c2048], edi
jne 0x4352b1
push 0x800
push edi
push 0x49ca38
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x43523e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x57
jne 0x435391
push 0x49ca38
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x435391
push 0x49ca50
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x435391
push eax
call ebx
push 0x49ca5c
push esi
mov dword [0x4c2048], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push 0x49ca6c
push esi
mov dword [0x4c204c], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push 0x49ca80
push esi
mov dword [0x4c2050], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x4c2058], eax
test eax, eax
je 0x4352ae
push 0x49ca9c
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x4c2054], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
test eax, eax
je 0x4352d6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4352c9
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4352eb
push 4
pop eax
jmp 0x435393
cmp dword [ebp - 0x14], edi
je 0x4352eb
push dword [0x4c2048]
call dword [fcn.004bb004]
push 3
jmp 0x4352d0
mov eax, dword [0x4c2054]
mov ebx, dword [fcn.004bb004]
cmp eax, esi
je 0x435349
cmp dword [0x4c2058], esi
je 0x435349
push eax
call ebx
push dword [0x4c2058]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x435349
test eax, eax
je 0x435349
call ecx
test eax, eax
je 0x43533e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x43533e
test byte [ebp - 8], 1
jne 0x435349
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x435379
mov eax, dword [0x4c204c]
cmp eax, esi
je 0x435376
push eax
call ebx
test eax, eax
je 0x435376
call eax
mov edi, eax
test edi, edi
je 0x435376
mov eax, dword [0x4c2050]
cmp eax, esi
je 0x435376
push eax
call ebx
test eax, eax
je 0x435376
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4c2048]
call ebx
test eax, eax
je 0x435391
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x435393
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bfaf
leave
ret
Function at 0x43b9df
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x30]
mov edi, edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
call fcn.0040e959
lea ecx, [ebp - 0x20]
call fcn.0040e959
lea ecx, [ebp - 0x40]
call fcn.0040e959
push 0x4b38f4
lea ecx, [ebp - 0x30]
call fcn.00408f96
push esi
lea ecx, [ebp - 0x30]
call fcn.00403f04
push 0x4b3918
lea ecx, [ebp - 0x30]
call fcn.00403f04
lea ecx, [ebp - 0x20]
call fcn.0040d4dd
test edi, edi
je 0x43ba62
push 0x5c
pop eax
cmp word [edi], ax
je 0x43ba62
cmp word [edi + 2], ax
je 0x43ba62
push 0x4b3928
lea ecx, [ebp - 0x20]
call fcn.00408f96
push edi
lea ecx, [ebp - 0x20]
call fcn.00403f04
cmp dword [ebp + 0xc], ebx
je 0x43bab3
push 0x20
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00422460
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x5c], ebx
call fcn.0040daca
push 0x4b3930
lea ecx, [ebp - 0x40]
call fcn.00403f04
mov eax, dword [ebp - 0x40]
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MPR.DLL_WNetAddConnection2W]
mov esi, eax
test esi, esi
js 0x43bb3f
lea eax, [ebp - 0x10]
push eax
push reloc.OLEAUT32.DLL_SysReAllocString
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.DLL_RegConnectRegistryW]
mov esi, eax
test esi, esi
jne 0x43bb3f
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x43bb3a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x26c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x1fe
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x43bb35
mov eax, dword [ebp - 0xc]
push dword [ebp + 8]
shr eax, 1
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov word [ebp + eax*2 - 0x26c], cx
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.OLE32.DLL_CLSIDFromString]
mov esi, eax
push dword [ebp - 8]
call edi
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x40]
call fcn.00406ea2
lea ecx, [ebp - 0x20]
call fcn.00406ea2
lea ecx, [ebp - 0x30]
call fcn.00406ea2
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43c2f6
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push esi
xor ebx, ebx
push ebx
push dword [eax]
mov edi, ecx
push 3
push edi
call dword [sym.imp.ADVAPI32.DLL_GetTokenInformation]
test eax, eax
jne 0x43c34d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x43c350
push dword [esi]
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
je 0x43c350
push esi
push dword [esi]
push eax
push 3
push edi
call dword [sym.imp.ADVAPI32.DLL_GetTokenInformation]
test eax, eax
je 0x43c350
xor ebx, ebx
inc ebx
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret

Function at 0x43c79a
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
call fcn.0043c4bf
test al, al
je 0x43c7ac
pop ebp
jmp fcn.0043c4f8
pop ebp
jmp fcn.0043c7b2

Function at 0x43c943
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.DLL_AllocateAndInitializeSid]
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x43c99c
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.DLL_CheckTokenMembership]
push dword [ebp - 8]
neg eax
sbb eax, eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.DLL_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, 1
sete al
pop ebx
leave
ret

Function at 0x43c9a7
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0x14]
push dword [ebp + 0x1c]
and eax, 2
push 0
or eax, 4
shr eax, 1
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.DLL_LogonUserW]
neg eax
sbb eax, eax
neg eax
pop ebp
ret 0x18

Function at 0x43cb09
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push 0xc
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov edi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push 2
push 0
mov ebx, eax
push 0
push ebx
call edi
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call edi
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
push 2
push 0
push 0
lea eax, [ebx + 8]
push eax
call edi
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
call edi
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebx + 4], eax
xor eax, eax
push eax
push eax
push ebx
push 0x43cb7a
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop edi
pop ebx
pop ebp
ret 0xc