joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012e0
Capabilities:
Encode data using base64

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
push esi
call fcn.004010e0
xor edi, edi
add esp, 4
mov dword [esp + 0x10], edi
xor ebp, ebp
mov eax, ebp
mov ecx, 3
cdq
idiv ecx
mov dword [esp + 0x14], edx
cmp dword [esp + 0x14], edi
jne 0x401326
lea edx, [esp + 0x20]
mov dword [esp + 0x20], edi
push edx
push esi
call fcn.00401110
add esp, 8
mov ebx, eax
jmp 0x40132a
mov ebx, dword [esp + 0x10]
cmp ebx, 0xd
je 0x40130a
cmp ebx, 0xa
je 0x40130a
cmp dword [esp + 0x20], 0xffffffff
je 0x401456
lea eax, [esp + 0x20]
mov dword [esp + 0x20], edi
push eax
push esi
call fcn.00401110
add esp, 8
cmp eax, 0x3d
mov dword [esp + 0x10], eax
je 0x401456
cmp eax, 0xd
je 0x40133f
cmp eax, 0xa
je 0x40133f
cmp dword [esp + 0x20], 0xffffffff
je 0x401456
cmp bl, 0x41
jb 0x401388
cmp bl, 0x5a
ja 0x401388
and ebx, 0xff
sub ebx, 0x41
jmp 0x4013d7
cmp bl, 0x61
jb 0x40139d
cmp bl, 0x7a
ja 0x40139d
and ebx, 0xff
sub ebx, 0x47
jmp 0x4013d7
cmp bl, 0x30
jb 0x4013b2
cmp bl, 0x39
ja 0x4013b2
and ebx, 0xff
add ebx, 4
jmp 0x4013d7
cmp bl, 0x2a
jne 0x4013be
mov ebx, 0x3e
jmp 0x4013d7
cmp bl, 0x2f
jne 0x4013ca
mov ebx, 0x3f
jmp 0x4013d7
sub bl, 0x3d
neg bl
sbb ebx, ebx
and ebx, 0xffffffbf
add ebx, 0x40
mov edx, dword [esp + 0x14]
lea ecx, [edx + edx + 2]
shl bl, cl
cmp al, 0x41
jb 0x4013f3
cmp al, 0x5a
ja 0x4013f3
and eax, 0xff
sub eax, 0x41
jmp 0x401438
cmp al, 0x61
jb 0x401405
cmp al, 0x7a
ja 0x401405
and eax, 0xff
sub eax, 0x47
jmp 0x401438
cmp al, 0x30
jb 0x401417
cmp al, 0x39
ja 0x401417
and eax, 0xff
add eax, 4
jmp 0x401438
cmp al, 0x2a
jne 0x401422
mov eax, 0x3e
jmp 0x401438
cmp al, 0x2f
jne 0x40142d
mov eax, 0x3f
jmp 0x401438
sub al, 0x3d
neg al
sbb eax, eax
and al, 0xbf
add eax, 0x40
shl dl, 1
mov cl, 4
sub cl, dl
shr al, cl
mov ecx, dword [esp + 0x1c]
or al, bl
push eax
push ecx
call fcn.00401190
add esp, 8
inc ebp
jmp 0x4012fc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret

Function at 0x401710
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1800
call fcn.00412700
mov ecx, dword [esp + 0x1808]
lea eax, [esp + 0x180c]
push eax
lea edx, [esp + 4]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_vsprintf]
mov ecx, dword [esp + 0x1810]
lea eax, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x814]
push 0x41809c
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x1c
lea eax, [esp + 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x1800
ret
Function at 0x401f80
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x412a58
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
mov ebx, ecx
test edi, edi
jne 0x401fad
xor eax, eax
jmp 0x4020b9
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [ebx + 4]
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + 0x508]
call sub.MFC42.DLL_CStringList::RemoveAll
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
push 0x80
push ebp
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x4180e8
push ebp
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x28], edi
jne 0x402019
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
jmp 0x4020b9
lea esi, [ebx + 0x108]
push edi
push 0x400
push esi
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
je 0x40209e
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402082
cmp byte [ecx + ebx + 0x107], 0xa
jne 0x402053
mov byte [ecx + ebx + 0x107], 0
push esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
push eax
lea ecx, [ebx + 0x508]
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CStringList::AddTail_1
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
push ecx
push 0x400
push esi
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x402033
mov edi, dword [esp + 0x28]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
mov edx, dword [esp + 0x18]
add esp, 4
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x4020d0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x412a78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [ecx + 0x524]
push ebx
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x14], ecx
je 0x40210f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov al, byte [ecx + 4]
lea ebx, [ecx + 4]
test al, al
jne 0x40212e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebp, eax
push 0x80
push ebx
mov dword [esp + 0x20], ebp
call esi
push 0x4180f0
push ebx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x402177
push ebp
push ebx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], 0
mov esi, dword [eax + 0x50c]
test esi, esi
je 0x4021c5
mov ebp, dword [sym.imp.MSVCRT.dll_fprintf]
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x10]
push ecx
push 0x4180ec
push edi
call ebp
add esp, 0xc
test esi, esi
jne 0x40219c
mov ebp, dword [esp + 0x18]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x402ef0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x504
push ebx
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov al, byte [esp + 8]
test al, al
je 0x402fcd
mov edi, dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, dword [sym.imp.MSVCRT.dll_fclose]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
xor esi, esi
push esi
lea ecx, [esp + 0x14]
push str.DXTP
push ecx
lea edx, [esp + 0x120]
push str._s_s_03d.tsp
push edx
call ebp
lea eax, [esp + 0x128]
push 0x418468
push eax
call edi
add esp, 0x1c
test eax, eax
je 0x402f96
push eax
call ebx
add esp, 4
inc esi
cmp esi, 0x64
jl 0x402f5a
lea ecx, [esp + 0x114]
push 0x418464
push ecx
call edi
add esp, 8
test eax, eax
pop esi
pop ebp
je 0x402fcd
push eax
call ebx
add esp, 4
lea edx, [esp + 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
xor eax, eax
pop ebx
add esp, 0x504
ret
pop edi
mov eax, 1
pop ebx
add esp, 0x504
ret
Function at 0x402fe0
Capabilities:
Compare security identifiers

Disassembly:
mov eax, 0x1014
call fcn.00412700
push ebx
push edi
xor ebx, ebx
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
mov dword [esp + 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
mov byte [esp + 8], bl
push eax
push 8
mov byte [esp + 0x11], bl
mov byte [esp + 0x12], bl
mov byte [esp + 0x13], bl
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403101
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push 0x1000
push edx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x40306c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CExecuteEnvironMent::QueryIfUserIsAdmin:_GetTokenInformation_Fail___d_
jmp 0x40310d
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x40309d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CExecuteEnvironMent::QueryIfUserIsAdmin:_AllocateAndInitializeSid_Fail___d_
jmp 0x40310d
mov eax, dword [esp + 0x1c]
push ebp
push esi
xor ebp, ebp
xor esi, esi
cmp eax, ebx
jbe 0x4030d6
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea edi, [esp + 0x28]
mov eax, dword [edi]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call ebx
test eax, eax
jne 0x4030d1
mov eax, dword [esp + 0x24]
inc esi
add edi, 8
cmp esi, eax
jb 0x4030b5
jmp 0x4030d6
mov ebp, 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push ebp
push str.CExecuteEnvironMent::QueryIfUserIsAdmin:_EqualSid___d_
push 0x418244
call fcn.00401710
add esp, 0xc
mov eax, ebp
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x1014
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CExecuteEnvironMent::QueryIfUserIsAdmin:_OpenProcessToken_Fail___d_
push 0x418244
call fcn.00401710
add esp, 0xc
xor eax, eax
pop edi
pop ebx
add esp, 0x1014
ret
Function at 0x403230
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x110]
mov eax, dword [ebx + 0x320]
push esi
push eax
push str.CExecuteEnvironMent::SetClientResourceDllName___d___s_
push 0x418244
call fcn.00401710
mov eax, dword [ebx + 0x320]
add esp, 0x10
test eax, eax
jne 0x403390
cmp dword [ebx + 0x324], 0xffffffff
je 0x403390
push ebp
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
push 0x104
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edx, dword [ebx + 0x324]
test edx, edx
jne 0x4032d5
mov edi, str.Softcamp_sds_
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp edx, 2
jne 0x403308
mov edi, str.SoftcampDSSOM_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x314]
cmp eax, 4
ja case.default.0x403313
jmp dword [eax*4 + 0x4033a8]
lea edx, [esp + 0x10]
mov edi, str.SOMRESKOR.dll
jmp 0x40334f
lea edx, [esp + 0x10]
mov edi, str.SOMRESJPN.dll
jmp 0x40334f
lea edx, [esp + 0x10]
mov edi, str.SOMRESENG.dll
jmp 0x40334f
lea edx, [esp + 0x10]
mov edi, str.SOMRESCHN.dll
jmp 0x40334f
lea edx, [esp + 0x10]
mov edi, str.SOMRESDEU.dll
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
add ebx, 8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x104
ret 4
add ebx, 8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop esi
pop ebx
add esp, 0x104
ret 4
Function at 0x4033c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x110]
mov eax, dword [ebx + 0x320]
push esi
push eax
push str.CExecuteEnvironMent::SetClientIniFileName___d___s_
push 0x418244
call fcn.00401710
mov eax, dword [ebx + 0x320]
add esp, 0x10
test eax, eax
jne 0x403536
cmp dword [ebx + 0x324], 0xffffffff
je 0x403536
push ebp
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
push 0x104
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edx, dword [ebx + 0x324]
test edx, edx
jne 0x403465
mov edi, str.Softcamp_sds_
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp edx, 2
jne 0x403498
mov edi, str.SoftcampDSSOM_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x314]
cmp eax, 4
ja case.default.0x4034a3
jmp dword [eax*4 + 0x403550]
lea edx, [esp + 0x10]
mov edi, str.SOMSTKOR.ini
jmp 0x4034df
lea edx, [esp + 0x10]
mov edi, str.SOMSTJPN.ini
jmp 0x4034df
lea edx, [esp + 0x10]
mov edi, str.SOMSTENG.ini
jmp 0x4034df
lea edx, [esp + 0x10]
mov edi, str.SOMSTCHN.ini
jmp 0x4034df
lea edx, [esp + 0x10]
mov edi, str.SOMSTDEU.INI
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
lea esi, [ebx + 0x10c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push str.CExecuteEnvironMent::SetClientIniFileName___s_
push 0x418244
call fcn.00401710
add esp, 0xc
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x104
ret 4
add ebx, 0x10c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop esi
pop ebx
add esp, 0x104
ret 4
Function at 0x403570
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x110]
mov eax, dword [ebx + 0x320]
push esi
push eax
push str.CExecuteEnvironMent::SetClientLogoFileName___d___s_
push 0x418244
call fcn.00401710
mov eax, dword [ebx + 0x320]
add esp, 0x10
test eax, eax
jne 0x403667
cmp dword [ebx + 0x324], 0xffffffff
je 0x403667
push ebp
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
push 0x104
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edx, dword [ebx + 0x324]
test edx, edx
jne 0x403615
mov edi, str.Softcamp_sdsImageDS1.bmp
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp edx, 2
jne 0x403648
mov edi, str.SoftcampDSSOMImageDS1.bmp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
add ebx, 0x210
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x104
ret 4
add ebx, 0x210
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop esi
pop ebx
add esp, 0x104
ret 4
Function at 0x4057e0
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x412c9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4ac
push ebx
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
call sub.MFC42.DLL_AfxGetModuleState
lea ecx, [esp + 0x118]
mov dword [esp + 0x118], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x405959
cmp dword [esp + 0x128], 2
jne 0x4058a9
push 1
lea edx, [esp + 0x18]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
push 0x1c
push edx
push eax
rep stosd dword es:[edi], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, str.SOM_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
jmp 0x405959
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1b0]
call fcn.00405db0
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x4c0], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1ac]
push eax
call fcn.00406000
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
mov edi, 0x419c18
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
lea ecx, [esp + 0x1ac]
mov dword [esp + 0x4c0], 0xffffffff
call fcn.00405e40
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x4c8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x4b8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x4b8
ret 4
Function at 0x405ea0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x412d2f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 4]
lea edi, [esi + 0x20b]
lea ebp, [esi + 0x10b]
push edi
lea ecx, [esi + 0xb]
push ebp
add esi, 8
push ecx
push esi
push eax
mov dword [esp + 0x30], 1
call dword [sym.imp.MSVCRT.dll__splitpath]
add esp, 0x14
lea ecx, [esp + 0xc]
push ebp
call sub.MFC42.DLL_CString::operator
push edi
lea ecx, [esp + 0x10]
call fcn.004123da
mov esi, dword [esp + 0x24]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00412368
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x406000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x412d8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 4]
lea edi, [esi + 0xb]
lea ebp, [esi + 8]
lea ecx, [esi + 0x20b]
add esi, 0x10b
push ecx
push esi
push edi
push ebp
push eax
mov dword [esp + 0x30], 1
call dword [sym.imp.MSVCRT.dll__splitpath]
add esp, 0x14
lea ecx, [esp + 0xc]
push ebp
call sub.MFC42.DLL_CString::operator
push edi
lea ecx, [esp + 0x10]
call fcn.004123da
mov esi, dword [esp + 0x24]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00412368
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4060b0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x4060dc
pop edi
pop esi
pop ebx
add esp, 8
ret 8
push esi
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x10]
add esp, 4
mov ebx, eax
push ebx
push esi
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x406101
pop edi
pop esi
pop ebx
add esp, 8
ret 8
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
push 0x418114
push ebx
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40613e
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, 0xd
push ebx
rep movsd dword es:[edi], dword [esi]
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x4061b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
push ebx
push esi
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x18]
push eax
push str.Applications_s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, str.ShellReadCommand
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x20019
lea ecx, [esp + 0x20]
push 0
push ecx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406245
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20c
ret 0xc
mov esi, dword [esp + 0x220]
mov edx, dword [esp + 0x224]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push esi
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x14]
push ecx
push 0
push 0x41f244
push edx
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x406299
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20c
ret 0xc
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
push str.__1_
push esi
call edi
add esp, 8
test eax, eax
jne 0x4062c8
push 0x419f04
push esi
call edi
add esp, 8
test eax, eax
je 0x4062cb
mov byte [eax], 0
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBlanksA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesA]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20c
ret 0xc

Function at 0x4062f0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
ret