joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422aab
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push 0x40
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.004afe00
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp dword [ebp + 8], 0
je 0x422ae0
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
leave
ret
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
leave
ret

Function at 0x422b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4e4bd2
call fcn.004afe60
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0x18]
test ebx, ebx
push esi
push edi
mov dword [ebp - 0x18], 0x20
jne 0x422bb1
lea ebx, [ebp - 0x18]
push dword [ebp + 0x10]
mov ax, word [ebx + 2]
push dword [ebp + 0xc]
mov word [ebp - 0x14], ax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x422bdc
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
jmp 0x422bde
xor edi, edi
test esi, esi
je 0x422bee
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x422bf0
xor eax, eax
xor cl, cl
test byte [ebx], 1
mov byte [ebp + 0x1b], cl
je 0x422c0c
test eax, eax
je 0x422cf7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov cl, byte [ebp + 0x1b]
mov esi, eax
test esi, esi
mov dword [ebp - 0x10], eax
je 0x422cf7
test edi, edi
jle 0x422cf7
test byte [ebx], 0x40
jne 0x422c87
push 0
push edi
push esi
call fcn.00442510
add esp, 0xc
test al, al
mov byte [ebp + 0x1b], al
je 0x422c87
test byte [ebx], 0x20
je 0x422c49
test al, 2
je 0x422c49
xor eax, eax
jmp 0x422d00
push 0
lea ecx, [ebp - 0x24]
call fcn.00457350
movzx eax, word [ebx + 2]
and dword [ebp - 4], 0
push eax
mov dword [ebp - 0x24], esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x24]
push esi
push eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
call fcn.0044a910
and dword [ebp - 0x24], 0
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.0043f290
jmp 0x422cc6
mov esi, dword [ebp + 0x14]
lea eax, [edi + 0x410]
push eax
mov ecx, esi
call fcn.004460b0
push edi
push dword [ebp - 0x10]
mov dword [esi + 8], edi
push dword [esi]
mov dword [esi + 4], edi
call fcn.004b0040
add esp, 0xc
cmp word [ebp - 0x14], 0
je 0x422cc6
movzx eax, word [ebp - 0x14]
inc edi
shr edi, 1
push edi
push eax
push dword [esi]
call fcn.0041fe18
add esp, 0xc
mov eax, dword [esi + 4]
mov edi, dword [esi]
lea ecx, [eax + 0x10]
push 0x10
add eax, edi
push 0
push eax
mov dword [esi + 8], ecx
call fcn.004afe00
movsx eax, word [ebx + 2]
push 0xc
push eax
mov eax, dword [esi + 4]
add eax, dword [esi]
push eax
call fcn.004afe00
mov cl, byte [ebp + 0x1b]
add esp, 0x18
jmp 0x422cf9
xor edi, edi
and ecx, 2
or dword [ebx], ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x422d0f
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4e4bec
call fcn.004afe60
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x14], ebx
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocStringLen
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.004167bc
cmp dword [ebp - 0x14], ebx
jne 0x422d4a
push 0xfffffffffffffffe
pop esi
jmp 0x422e16
push edi
push dword [ebp - 0x14]
call fcn.00445890
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
mov esi, eax
mov dword [ebp - 0x1c], esi
call fcn.004403b0
add esp, 0x14
add esi, 0xc
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.004460b0
mov edi, dword [esi]
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x18]
push 6
add eax, edi
push ebx
push eax
call fcn.004afe00
mov eax, dword [ebp - 0x18]
push dword [ebp + 0x10]
mov dword [esi + 8], eax
push eax
push edi
mov dword [esi + 4], eax
call fcn.00442510
add esp, 0x18
cmp al, 1
mov byte [ebp - 0xd], al
pop edi
jne 0x422dff
push dword [0x519144]
lea ecx, [ebp - 0x28]
push esi
call fcn.0041d300
mov eax, dword [ebp - 0x18]
push ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push esi
push eax
mov byte [ebp - 4], 1
call fcn.0044a910
add esp, 0xc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 6
push eax
mov ecx, esi
call fcn.004460b0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.0043f290
push 1
push esi
call fcn.00463e60
cmp byte [ebp - 0xd], bl
pop ecx
pop ecx
jge 0x422e13
or esi, 0xffffffff
jmp 0x422e16
mov esi, dword [esi + 4]
lea ecx, [ebp - 0x14]
call fcn.004151b3
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42423e
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f4
push ebx
push esi
xor esi, esi
push edi
push esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x18], eax
xor eax, eax
push 9
xor ebx, ebx
pop ecx
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
inc ebx
mov dword [ebp - 0x20], esi
cmp word [eax], 0x3f
mov dword [ebp - 0x10], esi
sete cl
mov dword [ebp - 0xc], ebx
cmp ecx, esi
mov dword [ebp - 0x14], ecx
je 0x4242b7
inc eax
inc eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
push eax
call fcn.004226c4
mov eax, dword [ebp + 8]
cmp word [eax], si
pop ecx
je 0x4242b7
mov word [eax], si
inc eax
inc eax
mov dword [ebp + 8], eax
cmp dword [ebp - 0x18], esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x4243b3
xor ecx, ecx
cmp word [eax], 0x21
sete cl
cmp ecx, esi
mov dword [ebp - 0x1c], ecx
je 0x4242db
inc eax
inc eax
mov dword [ebp + 8], eax
lea ecx, [ebp + 8]
call fcn.0041d38d
push dword [ebp + 8]
call fcn.0042063d
pop ecx
mov ecx, dword [ebp - 0x14]
neg ecx
sbb ecx, ecx
and ecx, 0xffffffd4
add ecx, 0x30
push ecx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x4243aa
cmp dword [ebp - 0x14], esi
je 0x424376
lea ecx, [ebp - 0x20]
push ecx
push 0x24
lea ecx, [ebp - 0x48]
push ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov ebx, eax
mov dword [ebp - 8], 1
call edi
cmp ebx, esi
mov dword [ebp - 4], eax
jne 0x424341
cmp eax, esi
je 0x4243a1
mov dword [ebp - 0xc], eax
jmp 0x4243a1
push dword [ebp - 0x28]
lea eax, [ebp - 0x1f4]
push dword [ebp - 0x2c]
mov dword [ebp - 0xc], esi
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push str.0_0x_lX_0x_lX_0x_lX_0x_lX_0x_lX_0x_lX_0x_lX_0x_lX_0x_lX
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x2c
jmp 0x4243a1
cmp dword [ebp - 0x1c], esi
je 0x424389
lea ecx, [ebp - 0x64]
push ecx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x424399
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x4243a1
mov dword [ebp - 8], ebx
call edi
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x10], esi
je 0x4243e7
cmp dword [ebp - 0xc], esi
je 0x4243d5
push dword [ebp - 0xc]
lea eax, [ebp - 0x1f4]
push 0x4edd14
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x1f4]
push eax
push dword [ebp - 0x10]
call fcn.00444550
cmp dword [ebp - 8], esi
je 0x4243f1
mov eax, dword [ebp - 4]
jmp 0x4243f3
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4246d9
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, 0x4e4c86
call fcn.004afe60
sub esp, 0x264
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x14], 0
and dword [ebp + 0xc], 0xfffffffe
push ebx
mov ebx, dword [ebp + 8]
and eax, 1
cmp word [ebx], 0
mov dword [ebp - 0x20], eax
je 0x4248c4
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x424715
mov ebx, dword [ebp + 8]
push ebx
call edi
add eax, dword [ebp - 0x20]
push ebx
lea eax, [ebx + eax*2]
mov dword [ebp + 8], eax
call edi
xor esi, esi
cmp word [ebx + eax*2 - 2], 0x5c
mov dword [ebp - 0x1c], esi
jne 0x42473f
mov dword [ebp - 0x1c], 2
mov word [ebx + eax*2 - 2], si
jmp 0x424751
push ebx
call fcn.004abc80
test eax, eax
pop ecx
je 0x424751
mov dword [ebp - 0x1c], 1
push ebx
lea ecx, [ebp - 0x10]
call fcn.00457400
cmp dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
je 0x42476f
push 0x4f1900
lea ecx, [ebp - 0x10]
call fcn.004462e0
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.004abdd0
push dword [ebp - 0x10]
call fcn.0041da82
add esp, 0x10
push dword [ebp - 0x10]
call edi
inc eax
lea esi, [eax + eax]
mov eax, dword [ebp - 0x10]
mov word [esi + eax - 2], 0x5c
mov eax, dword [ebp - 0x10]
and word [esi + eax], 0
cmp dword [ebp - 0x18], 0
je 0x42485d
mov eax, dword [ebp - 0x10]
and word [esi + eax], 0
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x10]
call fcn.004462e0
test byte [ebp - 0x270], 0x10
jne 0x424808
cmp dword [ebp + 0xc], 0
push dword [ebp - 0x10]
je 0x4247fc
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x424844
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4247f7
inc eax
mov dword [ebp - 0x14], eax
jmp 0x424844
call fcn.0041f304
test eax, eax
pop ecx
je 0x424844
jmp 0x4247f7
cmp word [ebp - 0x244], 0x2e
jne 0x424830
cmp word [ebp - 0x242], 0
je 0x424844
cmp word [ebp - 0x242], 0x2e
jne 0x424830
cmp word [ebp - 0x240], 0
je 0x424844
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.004246d9
test eax, eax
pop ecx
pop ecx
jne 0x424844
and dword [ebp - 0x14], eax
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041684b
test eax, eax
jne 0x4247b9
jmp 0x42486b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x424868
inc eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.004151cd
xor esi, esi
cmp dword [ebp - 0x1c], esi
je 0x4248aa
cmp dword [ebp + 0xc], esi
push ebx
je 0x42489d
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4248aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x4248a7
xor eax, eax
inc eax
jmp 0x4248a7
call fcn.0041f304
cmp eax, esi
pop ecx
je 0x4248aa
mov dword [ebp - 0x14], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043f290
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x424712
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x425db4
Capabilities:
Check mutex on windows

Disassembly:
test byte [0x51e003], 1
je 0x425dcc
push str.UCallBackhWnd
call fcn.0041f6c0
test eax, eax
pop ecx
jne 0x425dcf
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 0x425e0a
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 0x425e0a
xor eax, eax
inc eax
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x426628
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4e4df2
call fcn.004afe60
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, 0x84
lea eax, [esi + 0x325]
push eax
lea ecx, [ebp - 0x18]
call fcn.00446280
mov eax, dword [ebp - 0x18]
xor edi, edi
cmp word [ebx], 0x5c
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
lea esi, [eax + esi*2]
mov dword [ebp - 0x14], 2
jne 0x426702
push 0x2c
push ebx
mov dword [ebp + 8], edi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov edi, eax
test edi, edi
je 0x4266a2
and word [edi], 0
inc edi
inc edi
push edi
call dword [sym.imp.USER32.dll_CharUpperW]
movzx edi, word [edi]
test di, di
je 0x4266a2
mov dword [ebp + 8], edi
push esi
inc ebx
push 0x324
inc ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
jmp 0x4266fa
mov ax, word [ebp + 8]
cmp word [esi], ax
jb 0x4266ef
mov edi, dword [ebp - 0x10]
push ebx
push esi
push str._s_sFonts
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
push edi
call fcn.004abc80
add esp, 0x14
test eax, eax
je 0x4266ef
push 0x4f1900
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
call fcn.00426550
pop ecx
mov dword [ebp - 0x14], eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x4266b2
jmp 0x426770
push ebx
call fcn.0042063d
mov esi, eax
mov dword [ebp + 8], edi
push esi
mov byte [ebp - 4], 1
call fcn.004abc80
test eax, eax
pop ecx
pop ecx
je 0x426736
push esi
lea ecx, [ebp + 8]
call fcn.004575a0
push 0x4f1900
lea ecx, [ebp + 8]
call fcn.004462e0
mov esi, dword [ebp + 8]
push esi
push 0x4f1b1c
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
call fcn.0041da82
push esi
call fcn.004abc80
add esp, 0x14
test eax, eax
je 0x426764
push dword [ebp - 0x10]
call fcn.00426550
pop ecx
mov dword [ebp - 0x14], eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.0043f290
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0043f290
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x426e40
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x4e4e26
call fcn.004afe60
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
push 0x41c
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], edi
call fcn.00446280
mov eax, dword [ebp - 0x10]
mov esi, eax
push esi
xor ebx, ebx
push 0x208
mov dword [ebp - 4], ebx
mov word [eax], bx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
push str.__OldDir
mov ecx, edi
call fcn.00444550
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x426e9c
cmp word [esi], 0x2a
jne 0x426ebe
inc esi
inc esi
mov dword [ebp + 8], esi
je 0x426ebe
push 0x104
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp esi, ebx
je 0x426eb8
push esi
lea ecx, [ebp - 0x10]
call fcn.004462e0
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
lea ecx, [ebp + 8]
call fcn.0041d38d
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00420bd9
mov esi, eax
mov ax, word [esi]
cmp ax, 0x61
pop ecx
pop ecx
jb 0x426ef3
cmp ax, 0x7a
ja 0x426ef3
and ax, 0xffdf
mov word [esi], ax
push esi
push 0x4f1b74
mov ecx, edi
call fcn.00444550
cmp dword [ebp + 0xc], ebx
jne 0x426f12
push esi
push 0x4f1b78
mov ecx, edi
call fcn.00444550
push 0x5c
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp dword [ebp + 0xc], ebx
mov edi, eax
mov word [edi + 2], bx
jne 0x426f2e
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov word [edi], bx
mov edi, dword [ebp - 0x18]
push esi
push 0x4f1b60
mov ecx, edi
call fcn.00444550
cmp dword [ebp + 0xc], ebx
jne 0x426f58
push esi
push 0x4f1b64
mov ecx, edi
call fcn.00444550
call fcn.0041de75
push esi
push 0x4f1b4c
mov ecx, edi
mov word [esi + 4], bx
call fcn.00444550
cmp dword [ebp + 0xc], ebx
jne 0x426f7b
push esi
push 0x4f1b50
mov ecx, edi
call fcn.00444550
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0043f290
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043f290
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x428f22
Capabilities:
Check for time delay via gettickcount
Log keystrokes via application hook

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, 0x5194ec
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
test byte [esp + 0x32], 1
jne 0x428f4b
cmp dword [0x519108], ebx
jne 0x428f4b
mov dword [0x519104], ebx
movzx eax, byte [esp + 0x30]
add dword [0x519108], 1
cmp dword [0x519100], ebx
mov dword [esp + 0x30], eax
jne 0x428f90
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x428e23
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
cmp eax, ebx
mov dword [0x519100], eax
jne 0x428f90
sub dword [0x519108], 1
xor esi, esi
jmp 0x429080
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, 0x3e8
jb 0x428fb7
push ebx
call fcn.004412a0
pop ecx
cmp dword [esp + 0x34], 2
jne 0x42904d
cmp esi, ebx
jne 0x42904d
push 0xa
pop esi
jmp 0x42904d
cmp dword [esp + 0x34], 2
je 0x428fe0
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x429059
cmp byte [0x5152e8], bl
jle 0x429059
push 0xa
pop eax
cmp esi, eax
ja 0x428ff1
mov eax, esi
push 0x4bf
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x429045
cmp dword [0x519104], ebx
jne 0x429059
cmp dword [esp + 0x34], 2
je 0x42901b
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x42904d
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 0x42904d
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 [0x5152e8], bl
jg 0x429002
cmp dword [0x519104], ebx
je 0x428fcf
push 0x5194ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x519104]
sub dword [0x519108], 1
pop ebp
jne 0x429079
mov dword [0x519104], ebx
mov esi, eax
mov edi, 0x5194ec
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x42d1e9
Capabilities:
Create directory

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
cmp word [eax], 0
jne 0x42d29c
push ebx
push ebp
push edi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [esp + 0x14]
mov ecx, esi
mov edi, eax
call fcn.004575a0
lea eax, [edi + 0x3c]
push eax
mov ecx, esi
call fcn.004462b0
push dword [esi]
call fcn.004abc80
test eax, eax
pop ecx
jne 0x42d231
push dword [esi]
call fcn.00429bb4
pop ecx
and dword [esp + 0x14], 0
lea ebx, [edi + edi]
mov edi, dword [esi]
add edi, ebx
call fcn.00441790
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.PECMDDEVI_lu_lu.tmp.dir
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esi]
add esp, 0x10
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42d27d
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0x64
jl 0x42d239
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esi]
add eax, eax
mov word [eax + ecx], 0x5c
mov ecx, dword [esi]
and word [eax + ecx + 2], 0
mov eax, dword [esi]
pop edi
pop ebp
pop ebx
pop esi
ret 4
Function at 0x4311a9
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4e529f
call fcn.004afe60
sub esp, 0x9c
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0x4ec544
lea ecx, [ebp - 0x14]
sar esi, 0x10
call fcn.00457400
mov edi, dword [ebp + 8]
mov eax, dword [edi]
and dword [ebp - 4], 0
push esi
push eax
call fcn.0041fda4
pop ecx
pop ecx
push 0x20a
lea ecx, [ebp - 0x10]
mov dword [ebp + 8], eax
call fcn.00446280
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, dword [ebp + 0xc]
push ebx
lea ecx, [ebp - 0xa8]
call fcn.0041dc8a
push ebx
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 2
call fcn.0041e37b
push dword [ebp - 0x10]
mov eax, dword [ebx + 0x18]
push 0x4f1b60
mov dword [ebp - 0x90], eax
call fcn.00444550
movzx eax, si
push eax
lea ecx, [ebp - 0xa8]
mov word [ebp - 0xa0], si
call fcn.00443950
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
push 0
push edi
call fcn.00430069
movzx edi, ax
or edi, dword [ebp + 0x10]
add esp, 0x14
mov esi, 0x5194ec
push esi
mov dword [ebp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xffffffffffffffff
push 0
push 0x4f1bd4
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.00422a90
test eax, eax
je 0x4312a9
push dword [eax]
lea ecx, [ebp - 0xa8]
push 0x4f1b64
call fcn.00444550
and dword [ebp - 0x68], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
call fcn.00415293
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.0043f290
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0043f290
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x43296f
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4e4ac2
call fcn.004afe60
sub esp, 0x1c
push 0x20a
lea ecx, [ebp - 0x10]
call fcn.00446280
mov eax, dword [ebp - 0x10]
and dword [ebp - 4], 0
mov word [eax], 0x20
mov eax, dword [ebp - 0x10]
and word [eax + 2], 0
mov eax, dword [ebp - 0x10]
push 0x208
add eax, 2
push eax
push 0x4ec1e8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.System32OnShutdown.wcs
lea ecx, [ebp - 0x10]
call fcn.004462e0
mov cl, byte [ebp + 0xc]
test cl, 0x20
mov eax, str.unknown
je 0x4329d3
mov eax, 0x4ef72c
test cl, 0x10
je 0x4329dd
mov eax, str.reboot
test cl, 2
je 0x4329e7
mov eax, str.logout
test cl, 4
je 0x4329f1
mov eax, str.suspend
test cl, 8
je 0x4329fb
mov eax, str.hiber
test cl, 0x40
je 0x432a05
mov eax, str.poweroff
test cl, cl
jns 0x432a0e
mov eax, str.lock
push ebx
push esi
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.004462e0
push 0x4ef8e0
lea ecx, [ebp - 0x10]
call fcn.004462e0
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004462e0
push dword [ebp - 0x10]
mov ebx, 0x519150
mov ecx, ebx
call fcn.004316cd
test byte [ebp + 0xc], 0x70
push 6
pop ecx
mov esi, str._25INDATA
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
je 0x432a5f
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
call fcn.004316cd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043f290
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x432a7a
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
and eax, 0xfffffffe
push eax
push dword [ebp + 0x10]
call fcn.0043296f
push 2
push str.SeShutdownPrivilege
and esi, 0x4000
call fcn.00420c19
push 2
push str.SeRemoteShutdownPrivilege
call fcn.00420c19
add esp, 0x18
call fcn.0041f0be
xor edi, edi
test byte [ebp + 0xc], 1
jne 0x432ade
cmp eax, 0x60002
jb 0x432ade
xor eax, eax
cmp dword [ebp + 8], edi
setne al
push eax
push 1
push edi
push 0x4ebd38
push edi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
cmp esi, edi
mov dword [ebp - 4], edi
jne 0x432afd
lea eax, [ebp - 4]
push eax
push 1
push 2
push edi
push 1
push 0x16
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push str.NtShutdownSystem
push str.NTDLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
xor eax, eax
inc eax
cmp ecx, edi
je 0x432b29
xor eax, eax
cmp dword [ebp + 8], edi
sete al
inc eax
push eax
call ecx
pop edi
pop esi
leave
ret
Function at 0x433c7c
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov ecx, dword [ebp + 8]
mov ax, word [ecx]
cmp ax, 0x40
jne 0x433ca6
add ecx, 2
push ecx
call fcn.0042063d
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.0041de75
jmp 0x433cef
cmp ax, 0x23
jne 0x433cbb
add ecx, 2
push 0
push ecx
call fcn.004324ec
pop ecx
pop ecx
jmp 0x433cef
xor edx, edx
cmp ax, dx
je 0x433ccb
push ecx
call fcn.00429bb4
pop ecx
leave
ret
push esi
push edi
push 0x10
pop ecx
mov esi, str.PATH____SystemRoot_SYSTEM32
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
push edx
push edx
push edx
lea eax, [ebp - 0x44]
push eax
mov ecx, 0x519150
movsw word es:[edi], word [esi]
call fcn.00435957
pop edi
pop esi
xor eax, eax
leave
ret