joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426ed0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0041c1d0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x426f9b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x426f9b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x426f4e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x426f59
or bh, 8
and edi, 0x8000000
je 0x426f74
mov eax, dword [0x44dbfc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x426f9b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42739b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4273bf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4273da
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x42ace9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x42ad2b
call fcn.00430300
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42ad2b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42ad22
xor eax, eax
jmp 0x42ad33
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042ad39
pop edi
pop esi
pop ebx
ret 4

Function at 0x430fe2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x431010
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43102e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00430f48
jmp 0x43102e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43102e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00430f48
test edi, edi
mov eax, edi
jne 0x431018
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x48f9e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section..reloc
lea edi, [esi - 0x7c000]
push edi
jmp 0x48f9fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48fa01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48f9f0
mov eax, 1
add ebx, ebx
jne 0x48fa13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48fa24
jne 0x48fa43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa43
dec eax
add ebx, ebx
jne 0x48fa30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x48fa08
add ebx, ebx
jne 0x48fa3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48fa95
xor ecx, ecx
sub eax, 3
jb 0x48fa5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48faca
sar eax, 1
mov ebp, eax
jmp 0x48fa66
add ebx, ebx
jne 0x48fa66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa34
inc ecx
add ebx, ebx
jne 0x48fa74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa34
add ebx, ebx
jne 0x48fa81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48fa76
jne 0x48fa92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48fa76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48fab4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48faa6
jmp 0x48f9f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48fab4
add edi, ecx
jmp 0x48f9f6
pop esi
mov edi, esi
mov ecx, 0x1a9e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48fad2
cmp byte [edi], 6
jne 0x48fad2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x48fad7
lea edi, [esi + 0x8d000]
mov eax, dword [edi]
or eax, eax
je 0x48fb4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8f000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8f104]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48fb04
mov ecx, edi
jns 0x48fb33
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8f108]
or eax, eax
je 0x48fb49
mov dword [ebx], eax
add ebx, 4
jmp 0x48fb21
call dword [esi + 0x8f118]
mov ebp, dword [esi + 0x8f10c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x48fb83
sub esp, 0xffffff80
jmp section..pdata
Function at 0x4159e0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429448]
jne 0x4159ea
repz ret
jmp fcn.0041d230
Function at 0x406080
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.HP_AIO_WIS_LAUNCHER
push 0
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x288], eax
pop esi
test eax, eax
je 0x4060bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4060bf
push str.We_are_already_running.__We_will_not_continue._n
push 0x444698
call fcn.00413226
add esp, 8
xor eax, eax
ret
mov eax, 1
ret
Function at 0x4067d0
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x1c
push ebp
call sym.HPZwis01.exe_unsigned_int___cdecl_IsNT_void_
test eax, eax
je 0x4069b1
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
jne 0x406812
push str.MSI_Service_attempting_to_start.__OpenSCManager_failed.
push 8
push 0x444698
call fcn.00413026
add esp, 0xc
mov eax, 0x41c
pop ebp
add esp, 0x1c
ret
push 0x14
push str.MSIServer
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, eax
test ebp, ebp
jne 0x406844
push str.MSI_Service_attempting_to_start.__OpenService_failed.
push 8
push 0x444698
call fcn.00413026
add esp, 0xc
mov eax, 0x424
pop ebp
add esp, 0x1c
ret
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x406871
push str.MSI_Service_attempting_to_start.__StartService_failed.
push 8
push 0x444698
call fcn.00413026
add esp, 0xc
mov eax, 0x435
pop ebp
add esp, 0x1c
ret
lea eax, [esp + 4]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x40689f
push str.MSI_Service_attempting_to_start.__QueryServiceStatus_failed.
push 8
push 0x444698
call fcn.00413026
add esp, 0xc
mov eax, 0x42e
pop ebp
add esp, 0x1c
ret
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, dword [esp + 0x24]
mov esi, eax
cmp dword [esp + 0x14], 2
jne 0x406919
mov eax, 0xcccccccd
mul dword [esp + 0x28]
shr edx, 3
cmp edx, 0x3e8
jae 0x4068d2
mov edx, 0x3e8
jmp 0x4068df
cmp edx, 0x1388
jbe 0x4068df
mov edx, 0x1388
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x10]
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x406919
cmp dword [esp + 0x24], ebx
jbe 0x406906
call edi
mov ebx, dword [esp + 0x24]
mov esi, eax
jmp 0x406912
call edi
mov ecx, dword [esp + 0x28]
sub eax, esi
cmp eax, ecx
ja 0x406919
cmp dword [esp + 0x14], 2
je 0x4068b7
mov eax, dword [esp + 0x14]
pop edi
pop esi
cmp eax, 4
pop ebx
jne 0x406947
push str.MSI_Service_successfully_started.
push 1
push 0x444698
call fcn.00413026
add esp, 0xc
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop ebp
add esp, 0x1c
ret
push str.MSI_Service_was_not_started_or_has_run_out_of_waiting_time_to_start.
push 8
push 0x444698
call fcn.00413026
mov edx, dword [esp + 0x14]
add esp, 0xc
push edx
push str.MSI_Service_state:__d
push 8
push 0x444698
call fcn.00413026
mov eax, dword [esp + 0x20]
add esp, 0x10
push eax
push str.MSI_Service_exit_code:__d
push 8
push 0x444698
call fcn.00413026
mov ecx, dword [esp + 0x24]
add esp, 0x10
push ecx
push str.MSI_Service_service_specified_exit_code:__d
push 8
push 0x444698
call fcn.00413026
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
add esp, 0x1c
ret
push str.This_operating_system_does_not_have_services.__Skipping_the_action_of_starting_the_service.
push 1
push 0x444698
call fcn.00413026
add esp, 0xc
xor eax, eax
pop ebp
add esp, 0x1c
ret
Function at 0x40d735
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43ee20
cmp edx, dword [eax]
je 0x40d757
add eax, 8
inc ecx
cmp eax, 0x43eeb0
jl 0x40d748
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43ee20]
jne 0x40d885
mov eax, dword [0x4564e4]
cmp eax, 1
je 0x40d85f
test eax, eax
jne 0x40d788
cmp dword [0x43e72c], 1
je 0x40d85f
cmp edx, 0xfc
je 0x40d885
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d7bf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040d890
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409f30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40d802
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409f30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x433a14
push edi
call fcn.0040c6d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040d890
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040d8a0
lea eax, [ebp - 0xa0]
push 0x4339f4
push eax
call fcn.0040d8a0
push dword [esi + 0x43ee24]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040d8a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00410e15
add esp, 0x2c
pop edi
jmp 0x40d885
lea eax, [ebp + 8]
lea esi, [esi + 0x43ee24]
push 0
push eax
push dword [esi]
call fcn.00409f30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x414202
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x414276
call sym.HPZwis01.exe_public:_unsigned_int___thiscall_CFactory::InitLanguageMap_void_const
mov eax, dword [ebx + 0x114]
mov esi, dword [eax]
mov eax, dword [ebx + 0x108]
mov eax, dword [eax]
cmp esi, dword [ebx + 0x114]
mov dword [ebp - 4], eax
je 0x414276
push dword [ebp + 8]
lea edi, [esi + 8]
call fcn.00409f30
pop ecx
push eax
mov ecx, edi
push dword [ebp + 8]
push dword [edi + 8]
push 0
call fcn.00403060
test eax, eax
je 0x414258
mov esi, dword [esi]
mov eax, dword [ebp - 4]
jmp 0x414224
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x414267
mov eax, 0x43257c
push 0x10
push 0
push eax
call fcn.00410dfe
add esp, 0xc
jmp 0x41427c
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x414986
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov al, byte [0x4541f8]
push edi
push 0x40
mov byte [ebp - 0x104], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
leave
ret
Function at 0x41a782
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push ebx
push esi
push edi
call sym.HPZwis01.exe_unsigned_int___cdecl_Is9X_void_
test eax, eax
je 0x41a79f
push 1
pop eax
jmp 0x41a8e6
lea eax, [ebp - 0x120]
xor ebx, ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push eax
push 8
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41a8eb
lea eax, [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push dword [ebp - 4]
push ebx
push 2
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x41a806
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41a8eb
push dword [ebp - 4]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 2
push dword [ebp - 0x1c]
call esi
test eax, eax
je 0x41a8eb
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x10]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x41a8eb
cmp dword [edi], ebx
mov dword [ebp - 0x14], ebx
jbe 0x41a8ca
lea esi, [edi + 4]
push dword [esi]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x41a8bd
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xa0]
push eax
push dword [esi]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
test eax, eax
jne 0x41a8b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x534
jne 0x41a8eb
lea eax, [ebp - 0xa0]
push str.NONE_MAPPED
push eax
call fcn.0040d890
pop ecx
pop ecx
mov dword [ebp - 0x18], 1
inc dword [ebp - 0x14]
add esi, 8
mov eax, dword [ebp - 0x14]
cmp eax, dword [edi]
jb 0x41a859
cmp dword [ebp - 8], ebx
je 0x41a8d8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp edi, ebx
je 0x41a8e3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x41a8e6
Function at 0x41ac5e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x41ac76
push str.Trying_to_create_folder_with_pFolder__NULL___
jmp 0x41ac86
push esi
call fcn.00409f30
test eax, eax
pop ecx
jne 0x41ac9a
push str.Trying_to_create_folder_with_pFolder_______
push 8
push 0x444698
call fcn.00413026
add esp, 0xc
jmp 0x41ad4c
push esi
call fcn.00414986
test eax, eax
pop ecx
je 0x41acad
push 1
pop eax
jmp 0x41ad4e
mov al, byte [0x4541f8]
push edi
push 0x40
mov byte [ebp - 0x104], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.0041ad51
lea eax, [ebp - 0x104]
push eax
call fcn.0041ac5e
add esp, 0x10
test eax, eax
pop edi
je 0x41ad31
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x41ad13
push esi
push str.Created_folder__s
push 0x20
push 0x444698
call fcn.00413026
add esp, 0x10
jmp 0x41aca5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.CreateDirectory___s__failed.__error0x_x_n
push 8
push 0x444698
call fcn.00413026
add esp, 0x14
jmp 0x41ad4c
lea eax, [ebp - 0x104]
push eax
push str.CreateDirectory___s__failed.
push 8
push 0x444698
call fcn.00413026
add esp, 0x10
xor eax, eax
pop esi
leave
ret

Function at 0x41bbfe
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call ebx
push eax
mov esi, 0x444698
push str._s__u_WAITs_for_the_spooler_mutex_n
push esi
call fcn.0041309c
add esp, 0x10
mov ecx, ebp
push 0xffffffffffffffff
call sym.HPZwis01.exe_public:_long_int___thiscall_CInfrastructureMutex::Wait_unsigned_long_int_
test eax, eax
je 0x41bc45
push str.Failure_on_waiting_for_the_spooler_mutex_n
push esi
call fcn.00413226
pop ecx
pop ecx
jmp 0x41bc59
call edi
push eax
call ebx
push eax
push str._s__u_GETs_the_spooler_mutex_n
push esi
call fcn.0041309c
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x41bc5e
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov esi, 0x444698
push str._s__u_RELEASEs_the_spooler_mutex_n
push esi
call fcn.0041309c
add esp, 0x10
mov ecx, edi
call sym.HPZwis01.exe_public:_unsigned_int___thiscall_CInfrastructureMutex::Release_void_
test eax, eax
jne 0x41bc9b
push str.Failure_on_releasing_the_spooler_mutex_n
push esi
call fcn.00413226
pop ecx
pop ecx
pop edi
pop esi
ret
Function at 0x41d697
Capabilities:
Get common file path

Disassembly:
mov eax, 0x430908
call fcn.004083b8
sub esp, 0x160
push ebx
xor ebx, ebx
cmp byte [0x4569c8], bl
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, 0x4569c8
jne 0x41d6d4
cmp esi, ebx
je 0x41d702
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [0x4569c8], bl
je 0x41d702
cmp esi, ebx
je 0x41d702
push edi
call fcn.00409f30
push eax
push esi
push edi
call fcn.00407ce4
add esp, 0x10
test eax, eax
je 0x41d702
push esi
push str.Writing_to_a_file_outside_of_the_Windows_folder:__s
push 8
push 0x444698
call fcn.00413026
add esp, 0x10
call sym.HPZwis01.exe_unsigned_int___cdecl_Is9X_void_
test eax, eax
je 0x41d87d
cmp esi, ebx
je 0x41d725
push esi
call fcn.00414986
test eax, eax
pop ecx
mov dword [ebp + 0x14], 1
jne 0x41d728
mov dword [ebp + 0x14], ebx
cmp dword [ebp + 8], ebx
mov edi, 0xffdc
je 0x41d767
cmp dword [ebp + 0xc], ebx
je 0x41d767
cmp dword [ebp + 0x10], ebx
je 0x41d767
push dword [ebp + 8]
call fcn.00409f30
push dword [ebp + 0xc]
add edi, 0xfffffffa
sub edi, eax
call fcn.00409f30
push 0xfffffffffffffffd
pop ebx
push dword [ebp + 0x10]
sub ebx, eax
call fcn.00409f30
sub ebx, eax
add esp, 0xc
add edi, ebx
xor ebx, ebx
cmp esi, ebx
je 0x41d869
cmp dword [ebp + 0x14], ebx
je 0x41d7a2
lea eax, [ebp - 0x16c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x41d7c5
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x41d7c5
cmp dword [ebp - 0x150], ebx
jne 0x41d7c5
cmp dword [ebp - 0x14c], edi
jae 0x41d7c5
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push esi
push ebx
push ebx
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, edi
jmp 0x41d88d
cmp dword [ebp + 0x14], ebx
je 0x41d7a2
cmp dword [0x456acc], ebx
je 0x41d869
mov al, byte [ebp + 0x13]
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call fcn.00403360
push esi
call fcn.00409f30
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403650
mov ecx, dword [0x456acc]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x14]
push eax
mov dword [ebp - 4], ebx
call fcn.0041eafe
mov edi, dword [ebp + 0x14]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403360
mov eax, dword [0x456acc]
cmp edi, dword [eax + 4]
je 0x41d869
mov al, byte [ebp + 0x13]
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call fcn.00403360
push esi
call fcn.00409f30
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.00403650
mov ecx, dword [0x456acc]
push 1
pop edi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], edi
call fcn.0041ea99
or dword [ebp - 4], 0xffffffff
push edi
lea ecx, [ebp - 0x1c]
call fcn.00403360
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041c2b0
add esp, 0x10
jmp 0x41d88d
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret