joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467b90
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d091b
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push esi
push edi
mov eax, dword [0x50d4cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movsd qword [ebp - 0x24], xmm3
movsd qword [ebp - 0x1c], xmm2
mov ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xac], eax
test edi, edi
jne 0x467be4
xor edx, edx
mov dword [ebp - 0xac], edx
jmp 0x467c2c
mov esi, edi
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x467bf0
sub esi, ecx
lea eax, [ebp - 0xa8]
push ecx
inc esi
lea ecx, [ebp - 0xac]
push eax
mov edx, esi
call fcn.004086b0
push esi
push edi
push esi
push dword [ebp - 0xac]
call fcn.0048c509
push eax
call fcn.00401350
mov edx, dword [ebp - 0xac]
add esp, 0x1c
mov dword [ebp - 4], 0
cmp byte [edx], 0
jne 0x467c3c
xor ecx, ecx
jmp 0x467c4a
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x467c41
sub ecx, esi
push ecx
lea esi, [ebx + 0x10]
push edx
mov ecx, esi
call fcn.00407ba0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
mov eax, dword [ebp - 0xac]
cmp eax, ecx
je 0x467c76
push eax
call fcn.0048b8d4
add esp, 4
cmp dword [esi + 0x14], 0x10
jb 0x467c80
mov eax, dword [esi]
jmp 0x467c82
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x467ca0
cmp dword [esi + 0x14], 0x10
jb 0x467c97
mov eax, dword [esi]
jmp 0x467c99
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push esi
mov byte [ecx], 0
call fcn.00407670
movsd xmm2, qword [ebp + 0xc]
movsd xmm1, qword [ebp - 0x24]
movsd xmm0, qword [ebp - 0x1c]
call fcn.0043fb40
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x468f90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0a63
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x50d4cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00401910
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x468fd5
push 0x80004005
call fcn.00401330
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x11
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0xa
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x10], 0x3f400000
mov dword [esi + 0x14], 0x3e800000
mov dword [esi + 0x18], 0x40100000
mov dword [esi + 0x1c], 0x26
mov dword [esi + 0x20], 0
push dword [ebp + 8]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00469090
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x469650
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4696b5
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4696bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4696c9
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret
Function at 0x4696e0
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x46970b
push eax
call fcn.0048b8d4
add esp, 4
mov dword [esi + 4], 0
mov eax, dword [esi]
lea edi, [esi + 8]
mov dword [edi], 0
mov dword [ebp - 8], 0
test eax, eax
je 0x469737
push 0
push edi
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 3
push 0x30
push eax
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x469758
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret 8
push 1
push dword [ebp - 8]
call fcn.0048b90c
mov ecx, dword [esi]
add esp, 8
mov dword [esi + 4], eax
test ecx, ecx
je 0x469788
push 0
push edi
lea edx, [ebp - 8]
push edx
push dword [ebp - 8]
push eax
push 3
push 0x30
push ecx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
jne 0x4697a5
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x46979f
push ecx
call fcn.0048b8d4
add esp, 4
mov dword [esi + 4], 0
mov dword [edi], 0
mov eax, dword [edi]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0048b090
mov esp, ebp
pop ebp
ret 8
Function at 0x4697c0
Capabilities:
Check for time delay via gettickcount
Continue service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx]
push edi
test eax, eax
je 0x469905
push 0x34
push str.stisvc
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x469905
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [ebp - 0x24], eax
lea ebx, [ebx]
lea eax, [ebp - 0x20]
push eax
push edi
call esi
test eax, eax
je 0x469826
cmp dword [ebp - 0x1c], 4
sete al
test al, al
jne 0x469851
lea eax, [ebp - 0x20]
push eax
push edi
call esi
test eax, eax
je 0x46983a
cmp dword [ebp - 0x1c], 7
sete al
jmp 0x46983c
xor al, al
test al, al
lea eax, [ebp - 0x20]
push eax
je 0x469886
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x469810
lea eax, [ebp - 0x20]
push eax
push edi
call esi
test eax, eax
je 0x4698e4
cmp dword [ebp - 0x1c], 4
push edi
sete al
movzx esi, al
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret 4
push edi
call esi
test eax, eax
je 0x4698a5
cmp dword [ebp - 0x1c], 1
sete al
test al, al
je 0x4698a5
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
jmp 0x46984d
lea eax, [ebp - 0x20]
push eax
push edi
call esi
test eax, eax
je 0x469851
mov eax, dword [ebp - 0x1c]
cmp eax, 2
je 0x4698bd
cmp eax, 5
jne 0x469851
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
sub ecx, dword [ebp - 0x24]
mul ecx
shr edx, 6
cmp edx, 0xa
ja 0x469851
push 0x32
call ebx
jmp 0x469810
xor al, al
push edi
movzx esi, al
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0048b090
mov esp, ebp
pop ebp
ret 4
Function at 0x469920
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx]
push edi
test eax, eax
je 0x469a1f
push 0x34
push str.stisvc
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x469a1f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [ebp - 0x24], eax
lea ebx, [ebx]
lea eax, [ebp - 0x20]
push eax
push edi
call esi
test eax, eax
je 0x469986
cmp dword [ebp - 0x1c], 1
sete al
test al, al
jne 0x4699cd
lea eax, [ebp - 0x20]
push eax
push edi
call esi
test eax, eax
je 0x4699bc
cmp dword [ebp - 0x1c], 3
sete al
test al, al
je 0x4699bc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
sub ecx, dword [ebp - 0x24]
mul ecx
shr edx, 6
cmp edx, 0x14
ja 0x4699cd
push 0x32
call ebx
jmp 0x469970
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x469970
lea eax, [ebp - 0x20]
push eax
push edi
call esi
test eax, eax
je 0x4699fe
cmp dword [ebp - 0x1c], 1
push edi
sete al
movzx esi, al
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret 4
xor al, al
push edi
movzx esi, al
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0048b090
mov esp, ebp
pop ebp
ret 4

Function at 0x469b60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0x469a50
push 0
push 0
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x469bc8
push 0x7d0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x469bc1
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
xor eax, eax
cmp dword [ebp - 8], esi
cmove esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0048b090
mov esp, ebp
pop ebp
ret
Function at 0x46d5d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0x46d5ee
mov eax, 0x8000ffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea edi, [esi + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x46d618
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x46d612
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x46d731
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
mov byte [edi + 0x18], 1
call ebx
mov dword [esi + 0x40], eax
test eax, eax
jne 0x46d64e
cmp byte [edi + 0x18], al
je 0x46d642
push edi
mov byte [edi + 0x18], al
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call fcn.00401520
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x46d687
call fcn.00401520
push 0x2710
mov ecx, esi
mov edi, eax
call fcn.00438310
test eax, eax
jns 0x46d72f
test edi, edi
cmovns edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
mov ecx, esi
call fcn.00439800
mov dword [esp + 0xc], eax
test eax, eax
jns 0x46d6b9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
mov ecx, esi
call fcn.00438310
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call ebx
mov ebx, eax
test ebx, ebx
je 0x46d65e
push 0
push 0
push ebx
mov ecx, esi
call fcn.00439800
mov edi, eax
test edi, edi
jns 0x46d6f7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
mov ecx, esi
call fcn.00438310
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x46d870
push 0
push 0
call fcn.0048f18e
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x46d65e
push 0xffffffffffffffff
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x46d72f
call fcn.00401520
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46e0c0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x604]
call fcn.00426d30
cmp eax, 2
jne 0x46e1e6
lea edi, [esi + 0x490]
mov ecx, edi
call fcn.0040ca90
test eax, eax
je 0x46e0fd
lea esp, [esp]
mov ecx, eax
mov edi, eax
call fcn.0040ca90
test eax, eax
jne 0x46e0f0
test edi, edi
je 0x46e10d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x9c]
jmp 0x46e10f
xor eax, eax
push 0x43
push 0x4e1480
push 0x4e7110
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
sub eax, 6
je 0x46e1ca
dec eax
jne 0x46e262
lea ecx, [esi + 0x638]
call fcn.00424970
mov ecx, dword [esi + 0x608]
mov dword [esi + 0x804], 0
mov word [esi + 0x80d], 0
mov dword [esi + 0x810], 0
mov dword [esi + 0x808], 0
mov eax, dword [ecx]
push 0
call dword [eax + 0xb4]
mov eax, dword [esi + 0x7f8]
push 1
push 0
mov ecx, dword [eax + 0x5e4]
mov ecx, dword [ecx + 0x170]
call fcn.0045d020
mov eax, dword [esi + 0x7f8]
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push ecx
mov ecx, dword [esi + 0x604]
push 0
call fcn.00426dd0
push 0
push 0x8fc
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
pop edi
pop esi
ret 0xc
push 0
push 0x902
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
pop edi
pop esi
ret 0xc
lea ecx, [esi + 0x638]
call fcn.00424970
mov ecx, dword [esi + 0x608]
mov dword [esi + 0x804], 0
mov word [esi + 0x80d], 0
mov dword [esi + 0x810], 0
mov dword [esi + 0x808], 0
mov eax, dword [ecx]
push 0
call dword [eax + 0xb4]
mov eax, dword [esi + 0x7f8]
push 1
push 0
mov ecx, dword [eax + 0x5e4]
mov ecx, dword [ecx + 0x170]
call fcn.0045d020
mov eax, dword [esi + 0x7f8]
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push ecx
mov ecx, dword [esi + 0x604]
push 0
call fcn.00426dd0
pop edi
xor eax, eax
pop esi
ret 0xc

Function at 0x46e270
Capabilities:
Hide graphical window

Disassembly:
push ecx
push esi
mov esi, ecx
cmp byte [esi + 0x80d], 0
mov byte [esi + 0x814], 1
je 0x46e2b6
lea ecx, [esi + 0x638]
call fcn.00424970
mov dword [esi + 0x804], 0
mov word [esi + 0x80d], 0
mov dword [esi + 0x810], 0
mov dword [esi + 0x808], 0
mov ecx, dword [esi + 0x608]
push 0
mov eax, dword [ecx]
call dword [eax + 0xb4]
mov eax, dword [esi + 0x7f8]
push 1
push 0
mov ecx, dword [eax + 0x5e4]
mov ecx, dword [ecx + 0x170]
call fcn.0045d020
mov eax, dword [esi + 0x7f8]
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
cmp byte [esi + 0x80e], al
push ecx
mov ecx, 2
cmovne eax, ecx
mov ecx, dword [esi + 0x604]
push eax
call fcn.00426dd0
xor eax, eax
pop esi
pop ecx
ret 0xc
Function at 0x46fc70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
movzx eax, ax
push edi
mov edi, ecx
sub eax, 0xc80
je 0x46fccd
dec eax
jne 0x46fd31
push eax
mov eax, dword [edi + 0x7f8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x7f8]
xor dl, dl
mov ecx, dword [eax + 0x5e4]
mov eax, dword [ecx + 0x16c]
add eax, 0x1a8
xchg byte [eax], dl
mov ecx, dword [ecx + 0x170]
push 0
push 0
call fcn.0045d020
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x10
mov eax, dword [edi + 0x7f8]
sub esp, 0xc
mov esi, dword [eax + 0x5e4]
mov ecx, dword [esi + 0x16c]
call fcn.0046d4c0
mov eax, dword [esi + 0x16c]
mov cl, 1
add eax, 0x1a8
xchg byte [eax], cl
mov ecx, dword [esi + 0x170]
push 0
push 7
call fcn.0045d020
mov ecx, dword [esi + 0x16c]
push 1
mov eax, dword [ecx]
call dword [eax + 0xb4]
mov ecx, dword [edi + 0x7f8]
call fcn.00427df0
mov eax, dword [edi + 0x7f8]
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x473870
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x519710]
push esi
push edi
mov edi, ecx
test al, al
jne 0x4738e8
push 0x1c
lea eax, [ebp - 0x434]
push eax
push 0x421680
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
neg eax
push 0x104
sbb eax, eax
and eax, dword [ebp - 0x430]
push 0x519710
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, 0x519710
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4738c4
dec eax
cmp eax, 0x519710
je 0x4738e3
cmp byte [eax], 0x5c
je 0x4738e3
mov byte [eax], 0
dec eax
cmp eax, 0x519710
jne 0x4738d3
mov al, byte [0x519710]
cmp al, 0x5c
mov byte [ebp - 0x408], 0
push 0x3ff
lea eax, [ebp - 0x407]
mov ecx, 0x519710
push 0
mov esi, 0x519714
push eax
cmovne esi, ecx
call fcn.0048f5e0
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x408]
push str._sLog
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x473948
push eax
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x418], ax
mov dword [ebp - 0x40e], eax
mov word [ebp - 0x40a], ax
lea eax, [ebp - 0x418]
push eax
movq qword [ebp - 0x416], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x400
push 0
push edi
call fcn.0048f5e0
movzx eax, word [ebp - 0x412]
movzx ecx, word [ebp - 0x416]
push eax
push ecx
movzx ecx, word [ebp - 0x418]
lea eax, [ebp - 0x408]
push ecx
push eax
push str._s_04d_02d_02d.log
push edi
call esi
mov ecx, dword [ebp - 4]
add esp, 0x24
mov eax, edi
xor ecx, ebp
pop edi
pop esi
call fcn.0048b090
mov esp, ebp
pop ebp
ret
Function at 0x4739c0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3ff
lea eax, [ebp - 0x407]
mov byte [ebp - 0x408], 0
push 0
push eax
mov ebx, edx
mov edi, ecx
call fcn.0048f5e0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x473a12
lea ecx, [ebp - 0x408]
call fcn.00473870
jmp 0x473a99
lea eax, [ebp - 0x494]
mov dword [ebp - 0x498], eax
test edi, edi
jne 0x473a2c
xor eax, eax
mov dword [ebp - 0x498], eax
jmp 0x473a6d
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x473a31
sub esi, ecx
lea eax, [ebp - 0x494]
push ecx
inc esi
lea ecx, [ebp - 0x498]
push eax
mov edx, esi
call fcn.004086b0
push esi
push edi
push esi
push dword [ebp - 0x498]
call fcn.0048c509
push eax
call fcn.00401350
mov eax, dword [ebp - 0x498]
add esp, 0x1c
push 0x400
push eax
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 0x498]
lea ecx, [ebp - 0x494]
cmp eax, ecx
je 0x473a99
push eax
call fcn.0048b8d4
add esp, 4
lea eax, [ebp - 0x408]
mov esi, 3
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov ecx, 1
lea eax, [ebp - 0x408]
cmove esi, ecx
xor edi, edi
push edi
push 0x80
push esi
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x473ae3
call fcn.00401520
test eax, eax
js 0x473b39
jmp 0x473ae5
mov edi, eax
push 2
lea eax, [ebp - 0x40c]
xorps xmm0, xmm0
push eax
push 0
push edi
movlpd qword [ebp - 0x410], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x473b0c
call fcn.00401520
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea ecx, [ebp - 0x40c]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x473b2e
call fcn.00401520
test edi, edi
je 0x473b39
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048b090
mov esp, ebp
pop ebp
ret
Function at 0x473b50
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d121b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x20a4
call fcn.0049df10
mov eax, dword [0x50d4cc]
xor eax, esp
mov dword [esp + 0x20a0], eax
push ebx
push esi
push edi
mov eax, dword [0x50d4cc]
xor eax, esp
push eax
lea eax, [esp + 0x20b8]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x10ad]
push 0xfff
push 0
push eax
mov byte [esp + 0x10b8], 0
call fcn.0048f5e0
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [esp + 0x10b4]
push 0xfff
push eax
call dword [sym.imp.SHLWAPI.dll_wvnsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x10ac]
push 0x4e1774
push eax
call edi
push 0xfff
lea eax, [esp + 0xb1]
mov byte [esp + 0xb0], 0
push 0
push eax
call fcn.0048f5e0
xor eax, eax
add esp, 0xc
mov word [esp + 0x9c], ax
xorps xmm0, xmm0
mov dword [esp + 0xa6], eax
mov word [esp + 0xaa], ax
lea eax, [esp + 0x9c]
push eax
movq qword [esp + 0xa2], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0xaa]
push 0x4e1018
push eax
movzx eax, word [esp + 0xb0]
push eax
movzx eax, word [esp + 0xb2]
push eax
movzx eax, word [esp + 0xb4]
push eax
lea eax, [esp + 0xc0]
push str._02d:_02d:_02d__04d_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, 1
add esp, 0x1c
cmp dword [0x5188f8], esi
jle 0x473ca8
jmp 0x473c90
push 0x4e7408
lea eax, [esp + 0xb0]
push eax
call edi
inc esi
cmp esi, dword [0x5188f8]
jl 0x473c90
lea eax, [esp + 0x10ac]
push eax
lea eax, [esp + 0xb0]
push eax
call edi
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov edi, eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], eax
test edi, edi
jne 0x473ce4
xor ecx, ecx
mov dword [esp + 0x14], ecx
jmp 0x473d24
mov esi, edi
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x473cf0
sub esi, ecx
lea eax, [esp + 0x18]
push ecx
inc esi
lea ecx, [esp + 0x18]
push eax
mov edx, esi
call fcn.004086b0
push esi
push edi
push esi
push dword [esp + 0x28]
call fcn.0048c509
push eax
call fcn.00401350
mov ecx, dword [esp + 0x30]
add esp, 0x1c
lea edx, [esp + 0xac]
mov dword [esp + 0x20c0], 0
call fcn.004739c0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
cmp eax, ecx
je 0x473d50
push eax
call fcn.0048b8d4
add esp, 4
mov ecx, dword [esp + 0x20b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20a0]
xor ecx, esp
call fcn.0048b090
mov esp, ebp
pop ebp
ret
Function at 0x477a10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1719
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x50d4cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [esi], 0
call fcn.00406550
mov dword [ebp - 4], 0
mov ecx, 1
mov eax, dword [esi]
mov dword [ebp - 0x10], 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x477a85
push 0x104
mov ecx, esi
call fcn.00407ad0
mov edi, dword [esi]
cmp dword [edi - 8], 0x104
jge 0x477a9a
push 0x80070057
call fcn.00401330
mov dword [edi - 0xc], 0x104
mov eax, dword [esi]
push 0x104
push edi
push str._ALLUSERSPROFILE_JHSoft
mov byte [eax + 0x104], 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea ecx, [eax - 1]
cmp ecx, 0x101
ja 0x477acb
mov byte [edi + eax + 1], 0
mov eax, dword [esi]
test eax, eax
jne 0x477ad5
xor ecx, ecx
jmp 0x477ae7
push dword [eax - 8]
push eax
call fcn.0048bc86
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x477a90
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x477a90
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
mov byte [ecx + eax], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret