joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414f24
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 8]
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.0040569f
cmp dword [ebp - 8], ebx
jne 0x414f55
push 0xfffffffffffffffe
pop esi
jmp 0x415015
push edi
push dword [ebp - 8]
call fcn.00497b6d
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov esi, eax
mov dword [ebp - 0x10], esi
call fcn.0043edf6
add esp, 0x14
add esi, 0xc
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00443e29
mov edi, dword [esi]
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
push 6
add eax, edi
push ebx
push eax
call fcn.004aa020
mov eax, dword [ebp - 0xc]
push dword [ebp + 0x10]
mov dword [esi + 8], eax
push eax
push edi
mov dword [esi + 4], eax
call fcn.00440e83
add esp, 0x18
cmp al, 1
mov byte [ebp - 1], al
pop edi
jne 0x414ffe
push dword [0x4d8094]
lea ecx, [ebp - 0x1c]
push esi
call fcn.0040f30c
mov eax, dword [ebp - 0xc]
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.004480b2
mov eax, dword [esi + 4]
add esp, 0xc
add eax, 0xc
push eax
mov ecx, esi
call fcn.00443e29
lea ecx, [ebp - 0x1c]
call fcn.0043db4f
push 1
push esi
call fcn.00499e81
cmp byte [ebp - 1], bl
pop ecx
pop ecx
jge 0x415012
or esi, 0xffffffff
jmp 0x415015
mov esi, dword [esi + 4]
lea ecx, [ebp - 8]
call fcn.00402cb5
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41677e
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, 0x4d8d24
push esi
mov ebp, ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add dword [0x4d849c], 1
push esi
call ebx
push 0x4d7c20
mov eax, 0x10000
push eax
push ebp
push 0x41671b
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4167c9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4167d6
push esi
call edi
sub dword [0x4d849c], 1
push esi
call ebx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x416ecb
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0xfffffffe
and edi, 1
cmp word [ebx], 0
mov dword [ebp - 0x14], edi
je 0x4170a2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x416f00
mov edi, dword [ebp - 0x14]
push ebx
mov dword [ebp - 0x10], ebx
call esi
add eax, edi
mov edi, dword [ebp - 0x10]
push edi
lea ebx, [ebx + eax*2]
call esi
and dword [ebp - 8], 0
lea eax, [edi + eax*2 - 2]
cmp word [eax], 0x5c
jne 0x416f2c
and word [eax], 0
mov dword [ebp - 8], 2
jmp 0x416f3e
push edi
call fcn.004a9676
test eax, eax
pop ecx
je 0x416f3e
mov dword [ebp - 8], 1
push edi
lea ecx, [ebp + 8]
call fcn.0044cd74
cmp dword [ebp - 8], 0
je 0x416f5a
push 0x4c00e4
lea ecx, [ebp + 8]
call fcn.00443fc7
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004a976e
push dword [ebp + 8]
call fcn.0040fbcd
add esp, 0x10
push dword [ebp + 8]
call esi
inc eax
lea edi, [eax + eax]
mov eax, dword [ebp + 8]
mov word [edi + eax - 2], 0x5c
mov eax, dword [ebp + 8]
and word [edi + eax], 0
cmp dword [ebp - 0xc], 0
je 0x417045
mov eax, dword [ebp + 8]
and word [edi + eax], 0
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp + 8]
call fcn.00443fc7
test byte [ebp - 0x264], 0x10
jne 0x416ff0
cmp dword [ebp + 0xc], 0
push dword [ebp + 8]
je 0x416fe4
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41702c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x416fdf
inc eax
mov dword [ebp - 4], eax
jmp 0x41702c
call fcn.00411675
test eax, eax
pop ecx
je 0x41702c
jmp 0x416fdf
cmp word [ebp - 0x238], 0x2e
jne 0x417018
cmp word [ebp - 0x236], 0
je 0x41702c
cmp word [ebp - 0x236], 0x2e
jne 0x417018
cmp word [ebp - 0x234], 0
je 0x41702c
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00416ecb
test eax, eax
pop ecx
pop ecx
jne 0x41702c
and dword [ebp - 4], eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0xc]
call fcn.00405715
test eax, eax
jne 0x416fa1
jmp 0x417053
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x417050
inc eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc]
call fcn.00402cea
xor edi, edi
cmp dword [ebp - 8], edi
je 0x417090
cmp dword [ebp + 0xc], edi
push dword [ebp - 0x10]
je 0x417083
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x417090
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x41708d
xor eax, eax
inc eax
jmp 0x41708d
call fcn.00411675
cmp eax, edi
pop ecx
je 0x417090
mov dword [ebp - 4], eax
lea ecx, [ebp + 8]
call fcn.0043db4f
cmp word [ebx], di
jne 0x416efd
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x418480
Capabilities:
Check mutex on windows

Disassembly:
test byte [0x4d7c0a], 1
je 0x418498
push str.UCallBackhWnd
call fcn.00411dd1
test eax, eax
pop ecx
jne 0x41849b
xor eax, eax
ret
push edi
push str.GlobalPECMD:main_u
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
je 0x4184d6
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
sub esi, 0xb7
neg esi
sbb esi, esi
push edi
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
jne 0x4184d6
xor eax, eax
inc eax
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x418fea
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x2d
jne 0x419017
inc edi
inc edi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 1
mov dword [ebp + 8], edi
call fcn.0040f369
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 0x84
lea eax, [esi + 0x325]
push eax
lea ecx, [ebp - 0x10]
call fcn.00443f79
cmp word [edi], 0x5c
mov ebx, dword [ebp - 0x10]
push 2
pop eax
mov dword [ebp - 8], ebx
lea ebx, [ebx + esi*2]
mov dword [ebp - 0xc], eax
jne 0x4190e7
and dword [ebp + 8], 0
push 0x2c
add edi, eax
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov esi, eax
test esi, esi
je 0x41907a
and word [esi], 0
inc esi
inc esi
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
movzx esi, word [esi]
test si, si
jne 0x41907d
mov esi, dword [ebp + 8]
push edi
call fcn.00412ae5
pop ecx
push ebx
push 0x324
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
jmp 0x4190df
cmp word [ebx], si
jb 0x4190d4
push dword [ebp + 8]
mov edi, dword [ebp - 8]
push ebx
push str._s_sFonts
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
push edi
call fcn.004a9676
add esp, 0x14
test eax, eax
je 0x4190d4
push 0x4c00e4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp - 4]
push edi
call fcn.00418f25
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [ebx + eax*2 + 2]
cmp word [ebx], 0
jne 0x419095
jmp 0x419152
push edi
call fcn.00412ae5
and dword [ebp + 8], 0
mov esi, eax
push esi
call fcn.004a9676
test eax, eax
pop ecx
pop ecx
je 0x419118
push esi
lea ecx, [ebp + 8]
call fcn.0044ce38
push 0x4c00e4
lea ecx, [ebp + 8]
call fcn.00443fc7
mov esi, dword [ebp + 8]
push esi
push 0x4c0348
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
call fcn.0040fbcd
push esi
call fcn.004a9676
add esp, 0x14
test eax, eax
je 0x41914a
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00418f25
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
lea ecx, [ebp + 8]
call fcn.0043db4f
lea ecx, [ebp - 0x10]
call fcn.0043db4f
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b9d9
Capabilities:
Check for time delay via gettickcount
Log keystrokes via application hook

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, 0x4d8d24
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
test byte [esp + 0x32], 1
jne 0x41ba02
cmp dword [0x4d8044], ebx
jne 0x41ba02
mov dword [0x4d8040], ebx
movzx eax, byte [esp + 0x30]
add dword [0x4d8044], 1
cmp dword [0x4d803c], ebx
mov dword [esp + 0x30], eax
jne 0x41ba47
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x41b8da
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
cmp eax, ebx
mov dword [0x4d803c], eax
jne 0x41ba47
sub dword [0x4d8044], 1
xor esi, esi
jmp 0x41bb38
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov esi, dword [esp + 0x30]
mov edi, eax
add edi, esi
cmp esi, 0x4e20
jb 0x41ba6f
push 1
call fcn.0043f8c7
pop ecx
cmp dword [esp + 0x34], 2
jne 0x41bb05
cmp esi, ebx
jne 0x41bb05
push 0xa
pop esi
jmp 0x41bb05
cmp dword [esp + 0x34], 2
je 0x41ba98
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x41bb11
cmp byte [0x4d62ec], bl
jle 0x41bb11
push 0xa
pop eax
cmp esi, eax
ja 0x41baa9
mov eax, esi
push 0x4ff
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x41bafd
cmp dword [0x4d8040], ebx
jne 0x41bb11
cmp dword [esp + 0x34], 2
je 0x41bad3
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x41bb05
push 1
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x41bb05
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [0x4d62ec], bl
jg 0x41baba
cmp dword [0x4d8040], ebx
je 0x41ba87
push 0x4d8d24
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4d8040]
sub dword [0x4d8044], 1
pop ebp
jne 0x41bb31
mov dword [0x4d8040], ebx
mov esi, eax
mov edi, 0x4d8d24
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x41cd69
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xd0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x4d81f4], eax
call fcn.0040f957
call fcn.00404001
call fcn.00413cfc
xor ebx, ebx
mov esi, 0x4d80e8
push ebx
mov ecx, esi
call fcn.004105d7
call fcn.00405c3c
mov edi, 0x4d8d24
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4d7d40]
or eax, dword [0x4d7d44]
jne 0x41cdc9
push 0x4d7d40
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x4d7d48
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0x4d801c
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push ebx
push 0x3854
call fcn.00412e01
push 0xd6fd2
push 0x311f1
lea eax, [ebp - 0x60]
push str._06lu_06lu
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x60]
push eax
push 0x4c07d2
mov ecx, esi
call fcn.00443666
lea eax, [ebp - 0x60]
push eax
push str.PECMDVER
mov ecx, esi
call fcn.00443666
push str.X86_U
lea ecx, [ebp + 0x68]
call fcn.0044cd74
push dword [0x4d60f0]
lea ecx, [ebp + 0x68]
call fcn.00443fc7
push dword [ebp + 0x68]
mov ecx, esi
push 0x4c07a8
call fcn.00443666
push 0x4c07a4
push 0x4c0794
mov ecx, esi
call fcn.004436b6
push ebx
push 0x3861
call fcn.00412e01
call fcn.00412c5f
push ebx
push 0x3863
call fcn.00412e01
mov eax, dword [ebp + 0x78]
add esp, 0x10
cmp dword [0x4d7c84], ebx
mov dword [0x4d7fa0], eax
jne 0x41ce9b
mov dword [0x4d7c84], eax
mov eax, dword [ebp + 0x7c]
mov dword [0x4d62c4], eax
call fcn.0043e4a8
push str.WM_TaskbarRestart
push dword [0x4d824c]
mov esi, 0x4d80e8
push esi
call fcn.00446583
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add esp, 0xc
push str.__PID
call edi
push eax
push esi
call fcn.00446583
add esp, 0xc
call edi
push eax
call fcn.00404dde
mov dword [esp], str.__PPID
push eax
push esi
call fcn.00446583
push str.__HINST
push dword [0x4d7fa0]
push esi
call fcn.00446583
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x4c0728
push eax
push esi
mov dword [0x4d7e70], eax
call fcn.00446583
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x386c
push ebx
push eax
call fcn.00412e01
movzx eax, word [0x4d7c0c]
push str.SYSCODEPAGE
push eax
push esi
call fcn.00446583
add esp, 0x14
push 0x20a
lea ecx, [ebp + 0x6c]
call fcn.00443f79
push dword [ebp + 0x6c]
mov edi, 0x208
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push dword [ebp + 0x6c]
mov ecx, esi
push 0x4c039c
call fcn.004436b6
push dword [ebp + 0x6c]
mov ecx, esi
push str._CD
call fcn.004436b6
mov eax, dword [ebp + 0x6c]
mov word [eax + 4], bx
push dword [ebp + 0x6c]
mov ecx, esi
push str.CurDrv
call fcn.004436b6
mov eax, dword [ebp + 0x6c]
push edi
push eax
push ebx
mov word [eax], bx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [ebp + 0x6c]
mov ecx, esi
push str.CurFile
call fcn.004436b6
call fcn.00412e11
lea ecx, [ebp + 0x6c]
call fcn.0043db4f
lea ecx, [ebp + 0x68]
call fcn.0043db4f
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret
Function at 0x41d94f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x41d976
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.004103a8
test eax, eax
je 0x41d976
call fcn.00410439
test eax, eax
mov dword [esp + 0xc], eax
jne 0x41d97d
xor eax, eax
jmp 0x41da8c
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx + 0x34]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebp
push edi
push 0x40
mov ebp, 0x3000
push ebp
push eax
push ecx
call ebx
mov edi, eax
test edi, edi
jne 0x41d9b5
push 0x40
push ebp
push dword [esp + 0x20]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x41d9b5
xor eax, eax
jmp 0x41da89
push dword [esp + 0x14]
mov ecx, esi
push edi
call fcn.00414899
mov eax, dword [esi + 0x14]
xor ebx, ebx
cmp dword [eax + 0xa0], ebx
jbe 0x41d9e2
cmp dword [eax + 0xa4], ebx
jbe 0x41d9e2
push edi
mov ecx, esi
call fcn.00410100
test eax, eax
je 0x41d9ae
push edi
mov ecx, esi
call fcn.00410222
test eax, eax
jne 0x41d9fd
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x41d9ae
mov eax, dword [esi + 0x14]
mov dword [eax + 0x34], edi
mov eax, dword [esi + 0x14]
test byte [eax + 0x17], 0x20
je 0x41da16
mov eax, dword [eax + 0x28]
add eax, edi
mov dword [esi + 4], eax
jmp 0x41da4d
mov ebx, dword [esi]
mov ebp, dword [esi + 0xc]
push str.DllMain
mov ecx, esi
mov dword [esi], 0x200
mov dword [esi + 0xc], edi
call fcn.00410036
test eax, eax
mov dword [esi + 4], eax
jne 0x41da46
push str._dllMain_12
mov ecx, esi
call fcn.00410036
mov dword [esi + 4], eax
mov dword [esi], ebx
mov dword [esi + 0xc], ebp
xor ebx, ebx
mov eax, dword [esi + 4]
xor ebp, ebp
inc ebp
cmp eax, ebx
je 0x41da7b
push ebx
push ebp
push edi
call eax
test eax, eax
jne 0x41da7b
push ebx
push ebx
push edi
call dword [esi + 4]
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esi + 4], ebx
jmp 0x41d9ae
mov dword [esi + 0xc], edi
mov dword [esi], ebp
mov dword [0x4d7f88], esi
mov eax, dword [esi + 0xc]
pop edi
pop ebp
pop ebx
pop esi
ret 8
Function at 0x422a0e
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xa4
push ebx
push esi
mov esi, dword [ebp + 0x7c]
push edi
push 0x4c04c4
lea ecx, [ebp + 0x64]
sar esi, 0x10
call fcn.0044cd74
mov ebx, dword [ebp + 0x74]
push esi
push dword [ebx]
call fcn.00412474
pop ecx
pop ecx
push 0x20a
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x74], eax
call fcn.00443f79
push dword [ebp + 0x68]
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, dword [ebp + 0x78]
push edi
lea ecx, [ebp - 0x38]
call fcn.0040fdd5
push edi
lea ecx, [ebp - 0x38]
call fcn.004105d7
push dword [ebp + 0x68]
mov eax, dword [edi + 0x14]
push 0x4c039c
mov dword [ebp - 0x24], eax
call fcn.00443666
movzx eax, si
push eax
lea ecx, [ebp - 0x38]
mov word [ebp - 0xc], si
call fcn.00442712
mov ecx, dword [ebp + 0x7c]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x74]
push 0
push ebx
call fcn.004222cb
movzx esi, ax
or esi, dword [ebp + 0x7c]
add esp, 0x14
mov edi, 0x4d8d24
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp + 0xc], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
lea ecx, [ebp - 0x38]
call fcn.004353b6
lea ecx, [ebp + 8]
call fcn.0043db4f
lea ecx, [ebp + 0x68]
call fcn.0043db4f
lea ecx, [ebp + 0x64]
call fcn.0043db4f
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x429c05
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x20a
lea ecx, [ebp - 4]
call fcn.00443f79
mov eax, dword [ebp - 4]
mov word [eax], 0x20
mov eax, dword [ebp - 4]
and word [eax + 2], 0
mov eax, dword [ebp - 4]
push 0x208
add eax, 2
push eax
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.System32OnShutdown.wcs
lea ecx, [ebp - 4]
call fcn.00443fc7
mov bl, byte [ebp + 0xc]
test bl, 0x20
mov esi, str.unknown
je 0x429c60
mov esi, 0x4bd864
test bl, 0x10
je 0x429c6a
mov esi, str.reboot
test bl, 2
je 0x429c74
mov esi, str.logout
test bl, 4
je 0x429c7e
mov esi, str.suspend
test bl, 8
je 0x429c88
mov esi, str.hiber
test bl, 0x40
je 0x429c92
mov esi, str.poweroff
test bl, bl
jns 0x429c9b
mov esi, str.lock
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
lea ecx, [ebp - 4]
mov edi, eax
call fcn.00443fc7
push 0x4bd48c
lea ecx, [ebp - 4]
call fcn.00443fc7
cmp dword [ebp + 8], 0
je 0x429ccd
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.00443fc7
push dword [ebp - 4]
mov esi, 0x4d80e8
mov ecx, esi
call fcn.00422e2f
push str._25INDATA
lea ecx, [ebp - 8]
call fcn.0044cd74
mov eax, dword [ebp - 4]
lea eax, [eax + edi*2]
push eax
lea ecx, [ebp - 8]
call fcn.00443fc7
test bl, 0x70
je 0x429d07
push dword [ebp - 8]
mov ecx, esi
call fcn.00422e2f
lea ecx, [ebp - 8]
call fcn.0043db4f
lea ecx, [ebp - 4]
call fcn.0043db4f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42f76a
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov byte [ebp - 1], bl
jmp 0x42f785
inc byte [ebp - 1]
inc eax
inc eax
mov dword [ebp + 8], eax
cmp word [eax], 0x2a
je 0x42f77d
lea eax, [ebp + 8]
push eax
call fcn.00408ddd
mov al, byte [ebp - 1]
mov byte [0x4d7fe2], al
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 6]
push eax
lea eax, [ebp - 5]
push eax
lea edi, [ebp - 3]
lea esi, [ebp - 4]
lea eax, [ebp + 8]
mov byte [ebp - 3], 0x2a
mov byte [ebp - 5], bl
mov byte [ebp - 4], 1
mov byte [ebp - 2], bl
call fcn.0041bb48
mov eax, dword [ebp + 8]
add esp, 0x10
cmp word [eax], bx
je 0x42f8ae
mov esi, 0x4d8d24
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [ebp - 1], bl
je 0x42f7fe
cmp dword [0x4d7f98], ebx
je 0x42f7fe
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x42f90a
mov eax, dword [ebp + 8]
movsx ecx, byte [ebp - 3]
mov byte [0x4d62d9], 0xff
movzx edx, word [eax]
cmp ecx, edx
mov byte [0x4d7fd5], 1
jne 0x42f828
movzx eax, word [eax + 2]
cmp ecx, eax
jne 0x42f828
mov byte [0x4d62d9], bl
mov edi, dword [ebp - 0x10]
push 0x4d7c20
push 0x10000
push edi
push 0x42c025
push 0x100000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [ebp - 0x10], eax
cmp word [edi], bx
jne 0x42f86d
cmp byte [0x4d7fd5], bl
je 0x42f889
call esi
sub eax, dword [ebp - 0x10]
cmp eax, 0x30d40
jae 0x42f889
push ebx
push 1
push ebx
mov ecx, 0x4d80e8
call fcn.004159e8
jmp 0x42f860
cmp byte [ebp - 2], bl
je 0x42f90a
test byte [ebp - 4], 0x40
je 0x42f90a
jmp 0x42f8a4
push ebx
push ebx
push 1
mov ecx, 0x4d80e8
call fcn.004159e8
cmp dword [0x4d7f98], ebx
jne 0x42f896
jmp 0x42f90a
movsx eax, byte [ebp - 2]
push eax
movsx eax, byte [ebp - 5]
push eax
lea esi, [ebp - 0xc]
mov eax, esi
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], 0xbb8
call fcn.004129ae
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
call edi
cmp byte [ebp - 2], bl
mov dword [ebp - 0x14], eax
je 0x42f906
mov esi, 0x4d7f98
mov dword [ebp - 0x10], 0xfa0
jmp 0x42f906
call edi
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jae 0x42f90a
push ebx
push ebx
push 0xa
mov ecx, 0x4d80e8
call fcn.004159e8
cmp dword [esi], ebx
jne 0x42f8ee
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x43dc3f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x43dc68
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x43ed07
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
push 4
pop edi
push edi
push 0x20019
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043ec4c
mov esi, eax
add esp, 0x14
cmp esi, 5
je 0x43ed5d
test esi, esi
jne 0x43ed65
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 5
jne 0x43ed65
test edi, edi
je 0x43ed65
xor edi, edi
jmp 0x43ed14
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x43ed6b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 4
push 0x20006
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043ec4c
add esp, 0x14
test eax, eax
jne 0x43edb5
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x43edb7
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 4
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043ec4c
add esp, 0x14
test eax, eax
jne 0x43edf4
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret