joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433630
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x44fef0]
test eax, eax
jne 0x4336bb
push edi
push esi
push ebx
lea eax, [ebp - 0x150]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [ebp - 0x50]
push str.MKS____08lX
push ecx
call fcn.0042d370
add esp, 0xc
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov esi, 0x28
lea eax, [ebp - 0x50]
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
mov dword [0x44fef0], eax
jne 0x4336a6
push esi
call ebx
inc edi
add esi, esi
cmp edi, 6
jl 0x433686
lea ecx, [ebp - 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x44fef0]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4336c0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [ebp + 8]
push esi
push 0x104
lea ecx, [ebp - 0x108]
push eax
push ecx
call fcn.004344d0
add esp, 0xc
lea edx, [ebp - 0x108]
mov byte [ebp - 4], 0
push edx
call fcn.00429700
add esp, 4
cmp eax, 2
jb 0x433715
cmp byte [ebp - 0x107], 0x3a
jne 0x433715
mov al, byte [ebp - 0x108]
cmp al, 0x61
jb 0x433715
add al, 0xe0
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x108]
push eax
call fcn.00438de0
add esp, 4
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x43373b
call fcn.00434290
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x43375b
call fcn.00434290
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4586b8]
mov dl, byte [ebp - 0x20c]
test eax, eax
mov byte [0x44a829], dl
je 0x433792
lea eax, [ebp - 0x20c]
push eax
push 0x44a828
call fcn.004337b0
add esp, 8
test eax, eax
jne 0x433792
call fcn.00434290
pop esi
mov esp, ebp
pop ebp
ret
push esi
call fcn.004283d0
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4337b0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
call fcn.00429700
mov edi, dword [ebp + 8]
add esp, 4
mov ebx, eax
push edi
call fcn.00429700
add esp, 4
lea eax, [ebx + eax + 2]
push eax
call fcn.00428230
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4337e8
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4337f9
pop edi
pop esi
pop ebx
pop ebp
ret
push edi
push ebx
call fcn.004296d0
add esp, 8
push 0x44a82c
push ebx
call fcn.00431ca0
add esp, 8
push esi
push ebx
call fcn.00431ca0
mov eax, dword [0x4586b8]
add esp, 8
mov edi, eax
mov ecx, dword [edi]
test ecx, ecx
je 0x43385e
inc ecx
lea esi, [ebx + 1]
xor eax, eax
xor edx, edx
mov al, byte [ecx]
mov dl, byte [esi]
cmp eax, edx
jne 0x43384f
cmp eax, 0x3d
je 0x4338a5
test eax, eax
je 0x4338a5
inc ecx
xor eax, eax
inc esi
xor edx, edx
mov al, byte [ecx]
mov dl, byte [esi]
cmp eax, edx
je 0x433838
mov ecx, dword [edi + 4]
add edi, 4
test ecx, ecx
jne 0x433828
mov eax, dword [0x4586b8]
mov ecx, edi
sub ecx, eax
sar ecx, 2
lea edx, [ecx*4 + 8]
push edx
push eax
call fcn.00428420
add esp, 8
test eax, eax
jne 0x43387f
pop edi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [0x4586b8]
mov dword [0x4586b8], eax
sub edi, edx
sar edi, 2
lea ecx, [eax + edi*4]
mov eax, 1
mov dword [ecx], ebx
mov dword [ecx + 4], 0
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [edi]
push eax
call fcn.004283d0
add esp, 4
mov dword [edi], ebx
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4338c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
test esi, esi
je 0x43398d
mov al, byte [esi]
test al, al
je 0x4338f0
cmp byte [esi + 1], 0x3a
jne 0x4338f0
mov byte [0x44a830], al
mov eax, 0x44a830
jmp 0x43398f
test esi, esi
je 0x43398d
mov al, byte [esi]
cmp al, 0x2f
je 0x433906
cmp al, 0x5c
jne 0x43398d
mov al, byte [esi + 1]
cmp al, 0x2f
je 0x433911
cmp al, 0x5c
jne 0x43398d
push esi
call fcn.00429700
add esp, 4
add eax, 2
push eax
call fcn.00428230
mov edi, eax
add esp, 4
test edi, edi
jne 0x433937
mov eax, 0xf9
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.004296d0
lea eax, [edi + 2]
mov byte [edi], 0x5c
mov byte [edi + 1], 0x5c
add esp, 8
mov cl, byte [eax]
cmp cl, 0x2f
je 0x433964
cmp cl, 0x5c
je 0x433964
test cl, cl
je 0x4339bb
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x2f
jne 0x433952
mov byte [eax], 0x5c
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x2f
je 0x433982
cmp cl, 0x5c
je 0x433982
test cl, cl
je 0x433982
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x2f
jne 0x433970
mov byte [eax], 0x5c
mov byte [eax + 1], 0
mov eax, edi
jmp 0x43398f
xor eax, eax
lea ecx, [ebp - 0x20]
push 0x19
push ecx
lea edx, [ebp + 8]
lea ecx, [ebp - 4]
push edx
push ecx
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4339c6
test edi, edi
je 0x4339bb
push edi
call fcn.004283d0
add esp, 4
mov eax, 0xf9
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4339d3
push edi
call fcn.004283d0
add esp, 4
test byte [ebp + 8], 2
je 0x4339e1
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x20]
push str.AS400
push edx
call fcn.0042a7d0
add esp, 8
test eax, eax
jne 0x4339fc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
xor eax, eax
cmp esi, 0xc
pop edi
setne al
dec eax
pop esi
and eax, 0xf9
mov esp, ebp
pop ebp
ret

Function at 0x434bb0
Capabilities:
Get hostname
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, eax
test ebx, 0x80000000
je 0x434be0
cmp bl, 4
jne 0x434bd9
test bh, 0xff
jne 0x434bd9
push str.Windows_95
jmp 0x434be5
push str.Windows_98
jmp 0x434be5
push str.Windows_NT
mov esi, dword [ebp + 8]
push esi
call fcn.004296d0
mov eax, ebx
add esp, 8
and eax, 0xff
lea ecx, [esi + 0x5d]
push eax
push 0x442290
push ecx
call fcn.0042d370
xor edx, edx
add esp, 0xc
mov dl, bh
lea eax, [esi + 0x66]
push edx
push str._02d
push eax
call fcn.0042d370
add esp, 0xc
lea ecx, [ebp - 4]
lea edx, [esi + 0xc]
mov dword [ebp - 4], 0x51
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x10]
add esi, 0x6f
push ecx
push 0x442290
push esi
call fcn.0042d370
add esp, 0xc
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x435750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push 0
push eax
push esi
call fcn.00429700
add esp, 4
push eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x7f
call fcn.00435790
add esp, 4
pop esi
pop ebp
ret

Function at 0x435790
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x44ff50]
push esi
mov esi, dword [ebp + 8]
test eax, eax
je 0x4357a6
push esi
call eax
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x435e00
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x452b08]
push esi
test eax, eax
push edi
jne 0x435eaf
push str._mksnt_
push 0x4527f8
call fcn.004296d0
add esp, 8
push 0x4527f8
call fcn.00429700
mov esi, eax
add esp, 4
add esi, 0x4527f8
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
push 0x105
push esi
je 0x435e71
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
call edi
add esi, eax
push 0x105
mov byte [esi], 0x3b
inc esi
push esi
call edi
add esi, eax
push str._COMMAND
push esi
call fcn.004296d0
add esp, 8
jmp 0x435e89
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
add esi, eax
push 0x105
mov byte [esi], 0x3b
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x5c
push 0x4527f8
call fcn.0042d3b0
add esp, 8
test eax, eax
je 0x435eaf
mov byte [eax], 0x2f
inc eax
push 0x5c
push eax
call fcn.0042d3b0
add esp, 8
test eax, eax
jne 0x435e9c
pop edi
mov eax, 0x4527f8
pop esi
ret

Function at 0x436990
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4369a8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x44ac4c], 0xffffffff
jne 0x4369f1
lea eax, [ebp - 0x94]
mov dword [0x44ac4c], 0x220
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
jne 0x4369f1
cmp dword [ebp - 0x90], 5
jb 0x4369f1
mov eax, dword [0x44ac4c]
or ah, 4
mov dword [0x44ac4c], eax
mov eax, dword [0x44ac4c]
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x10]
push 0
push 2
push esi
lea edx, [ebp + 0xc]
push 1
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x436a1b
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x436a28
mov dword [0x4586cc], 0x459
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x437090
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push str.TK_WIN95_DEBUG
call fcn.00431630
mov edi, dword [ebp + 8]
add esp, 4
test eax, eax
je 0x4370b6
push 0x78
call dword [sym.imp.KERNEL32.dll_SetLastError]
or esi, 0xffffffff
jmp 0x4370bf
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4370ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4370ec
push edi
call fcn.00436d30
add esp, 4
test eax, eax
je 0x4370e9
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
pop edi
pop esi
pop ebp
ret
or esi, 0xffffffff
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x4371b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push str.TK_WIN95_DEBUG
call fcn.00431630
add esp, 4
test eax, eax
je 0x4371d3
push 0x78
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x4371e3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test esi, esi
jne 0x43724b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x43724b
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push esi
call ebx
test eax, eax
jne 0x437205
pop edi
pop esi
pop ebx
pop ebp
ret
lea esi, [eax + 1]
push esi
call fcn.00428230
mov edi, eax
add esp, 4
test edi, edi
jne 0x43722b
mov edx, dword [0x4586cc]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push edi
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x43723a
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push eax
push edi
push ecx
call fcn.0043cfe0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x437260
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
mov eax, dword [ebp + 8]
je 0x437292
test eax, eax
jne 0x437280
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
pop ebp
ret
push eax
call fcn.00436d30
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
pop ebp
ret
Function at 0x437570
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x452c60]
push ebx
xor ebx, ebx
push esi
cmp eax, 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], bl
jne 0x437668
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10
push eax
push 0x452c50
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x4375b9
mov byte [0x452c50], bl
call fcn.00437480
test eax, eax
jge 0x4375cb
or eax, 0xffffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
lea edx, [ebp - 0x10]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
jne 0x43760c
push 0xe
call fcn.00428230
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x437627
push 0xe
push ebx
push esi
call fcn.00429210
add esp, 0xc
mov byte [esi], 1
mov byte [esi + 1], 1
jmp 0x437627
mov eax, dword [ebp - 4]
push eax
mov esi, eax
call fcn.00437520
add esp, 4
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov esi, dword [ebp - 4]
mov eax, dword [0x452c60]
mov dword [eax], esi
mov ecx, dword [0x452c60]
mov dword [ecx + 4], 5
mov edx, dword [0x452c60]
mov dword [edx + 0xc], ebx
mov eax, dword [0x452c60]
mov dword [eax + 0x10], 0x44b560
mov ecx, dword [0x452c60]
mov dword [ecx + 8], str._unavail_
mov eax, dword [0x452c64]
inc eax
mov dword [0x452c64], eax
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4378a0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
mov byte [ebp - 8], 0
mov byte [ebp - 7], 0
mov byte [ebp - 6], 0
mov byte [ebp - 5], 0
mov byte [ebp - 4], 0
mov byte [ebp - 3], 5
je 0x437978
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x437978
call fcn.00437570
cmp eax, 0xffffffff
je 0x437978
push esi
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
lea ecx, [ebp - 8]
push 6
push ecx
push eax
call fcn.0043cbe0
add esp, 0xc
test eax, eax
je 0x437907
xor edi, edi
jmp 0x43790a
mov edi, dword [ebp + 8]
mov eax, dword [0x452c64]
xor ebx, ebx
test eax, eax
jle 0x437978
xor esi, esi
mov edx, dword [0x452c60]
mov eax, dword [edx + esi]
test eax, eax
je 0x437978
mov ecx, dword [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
cmp eax, 1
jne 0x437958
mov edx, dword [0x452c60]
mov eax, dword [edx + esi + 0xc]
cmp edi, eax
je 0x43796f
test edi, edi
je 0x437958
test eax, eax
je 0x437958
push eax
push edi
call fcn.00431080
add esp, 8
test eax, eax
je 0x43796f
mov eax, dword [0x452c64]
inc ebx
add esi, 0x14
cmp ebx, eax
jl 0x437917
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x437df0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov esi, dword [ebp + 0x10]
mov ebx, 1
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
test eax, ecx
je 0x437e55
mov cl, bl
push 0x44ace8
add cl, 0x40
mov byte [0x44ace8], cl
call edi
sub eax, 3
je 0x437e3f
sub eax, 2
jne 0x437e50
cmp dword [ebp + 0x10], 1
jne 0x437e50
mov edx, dword [ebp + 0xc]
push edx
push 0x44ace8
call dword [ebp + 8]
add esp, 8
mov esi, eax
cmp esi, 3
je 0x437e63
mov edx, dword [ebp - 4]
shl edx, 1
inc ebx
mov dword [ebp - 4], edx
cmp ebx, 0x1a
jle 0x437e13
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x437ed0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x117]
mov byte [ebp - 0x118], 0
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push eax
call fcn.004382f0
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
call fcn.00438050
test eax, eax
je 0x437f13
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
xor edi, edi
push esi
mov dword [ebp - 4], edi
mov dword [0x4586cc], edi
call fcn.00438090
mov esi, eax
add esp, 4
cmp esi, edi
mov dword [ebp - 8], esi
jne 0x437f3b
call fcn.00434290
jmp 0x438029
lea ecx, [ebp - 0x118]
push 0x104
push ecx
push esi
call dword [0x44acd4]
test eax, eax
jne 0x437f5c
call fcn.00434290
jmp 0x438029
mov dl, byte [esi]
lea eax, [ebp - 0x118]
push eax
push 0x44acec
mov byte [0x44acec], dl
call fcn.00437e90
add esp, 8
test eax, eax
jne 0x437f91
push 0x44acec
call fcn.0042e680
add esp, 4
mov dword [ebp - 4], eax
jmp 0x438018
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, dword [0x44ad28]
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0xc], eax
mov dword [ebp + 8], ecx
mov esi, 8
mov ebx, 4
test dword [ebp - 0xc], esi
je 0x437ff0
mov cl, byte [0x44acec]
mov al, bl
add al, 0x40
cmp al, cl
mov byte [ebp + 8], al
je 0x437ff0
lea edx, [ebp + 8]
push edx
call edi
cmp eax, 3
je 0x437fd9
cmp eax, 2
jne 0x437ff0
lea eax, [ebp - 0x118]
lea ecx, [ebp + 8]
push eax
push ecx
call fcn.00437e90
add esp, 8
test eax, eax
je 0x438006
shl esi, 1
inc ebx
cmp ebx, 0x1a
jle 0x437fff
mov ebx, 1
mov esi, ebx
cmp ebx, 4
je 0x438015
jmp 0x437fb3
lea edx, [ebp + 8]
push edx
call fcn.0042e680
add esp, 4
mov dword [ebp - 4], eax
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
test eax, eax
jne 0x438029
mov dword [0x4586cc], 2
push esi
call fcn.004283d0
mov eax, dword [ebp - 0x10]
add esp, 4
push eax
call fcn.004283d0
mov eax, dword [ebp - 4]
add esp, 4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x438240
Capabilities:
Check if file exists
Check os version
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43825c
xor eax, eax
pop edi
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
jb 0x438277
push edi
call fcn.00437ed0
add esp, 4
mov esi, eax
test esi, esi
jne 0x43828a
push edi
call fcn.004380f0
mov esi, eax
add esp, 4
test esi, esi
je 0x438294
mov dword [0x4586cc], 0
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x439100
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp eax, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
je 0x439133
push eax
call fcn.004392e0
mov ebx, eax
add esp, 4
cmp ebx, esi
jne 0x439133
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0xc]
lea ecx, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push ecx
lea edx, [ebp - 8]
push esi
push edx
push esi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov edi, eax
call fcn.00434290
cmp edi, esi
jne 0x43916a
cmp dword [0x4586cc], 0x7a
je 0x43916a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov dword [0x4586cc], esi
inc ecx
push ecx
call fcn.00428230
mov edi, eax
add esp, 4
cmp edi, esi
jne 0x43918d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
inc edx
push edx
call fcn.00428230
mov esi, eax
add esp, 4
test esi, esi
jne 0x4391b3
push edi
call fcn.004283d0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0xc]
lea ecx, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push ecx
lea edx, [ebp - 8]
push esi
push edx
push edi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ecx
push esi
push ebx
push edx
push edi
call fcn.00437350
add esp, 0x14
mov ebx, eax
push esi
call fcn.004283d0
add esp, 4
push edi
call fcn.004283d0
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x439990
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, eax
test esi, esi
jne 0x4399b6
call fcn.00434290
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.00428230
mov edi, eax
add esp, 4
test edi, edi
jne 0x4399ca
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4399e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x439a0c
mov dword [0x4586cc], eax
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x14]
push edi
push 0
push ebx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x439a42
mov edx, dword [ebp + 0xc]
mov dword [0x4586cc], eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
pop edi
pop esi
pop ebp
ret
mov edx, dword [edi]
push edx
call fcn.00428230
mov esi, eax
add esp, 4
test esi, esi
je 0x439ac6
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edi
push esi
push ebx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x439a8b
push esi
mov dword [0x4586cc], eax
call fcn.004283d0
mov edx, dword [ebp + 0xc]
add esp, 4
xor esi, esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
pop edi
pop esi
pop ebp
ret
cmp dword [ebx], 2
jne 0x439ac6
push esi
call fcn.00439990
mov edi, eax
add esp, 4
test edi, edi
jne 0x439abb
push esi
call fcn.004283d0
mov edx, dword [ebp + 0xc]
add esp, 4
xor esi, esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
pop edi
pop esi
pop ebp
ret
push esi
call fcn.004283d0
add esp, 4
mov esi, edi
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x43d3c0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push edi
push 0
push 0
call ebx
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.00428230
mov esi, eax
add esp, 4
test esi, esi
jne 0x43d3f4
mov dword [0x4586cc], 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
push esi
push edi
call ebx
xor ecx, ecx
push esi
mov cl, byte [esi]
mov edi, ecx
call fcn.004283d0
add esp, 4
cmp edi, 0x61
jl 0x43d414
cmp edi, 0x7a
jg 0x43d414
sub edi, 0x20
lea eax, [edi - 0x41]
pop edi
pop esi
pop ebx
ret

Function at 0x43d9b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret