joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a110
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebx, ecx
push esi
push edi
xor edi, edi
cmp dword [ebx + 0x78], edi
jne 0x42a143
cmp dword [ebx + 0x6c], edi
je 0x42a148
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, edi
je 0x42a140
mov ecx, dword [ebx + 0x70]
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, edi
mov dword [ebx + 0x78], eax
jne 0x42a143
mov dword [ebx + 0x6c], edi
cmp dword [ebx + 0x6c], edi
jne 0x42a183
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0xa0]
lea edx, [esp + 0x10]
push edi
push edx
push esi
push eax
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42a179
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x42a179
cmp esi, eax
je 0x42a1c5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov edx, dword [ebx + 0x74]
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebx + 0x70]
add edx, ebp
cmp edx, eax
jbe 0x42a1a6
mov ecx, ebx
call fcn.0042a1e0
test eax, eax
jne 0x42a1a6
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edi, dword [ebx + 0x74]
mov eax, dword [ebx + 0x78]
mov esi, dword [esp + 0x18]
mov ecx, ebp
add edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [ebx + 0x74], ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 8
Function at 0x42aad0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43df98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x38]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0
call sub.MFC42.DLL_CTime::CTime
lea ecx, [esp + 0x38]
push 0x457508
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CTime::Format
lea edx, [esp + 0x20]
push 3
push edx
mov ecx, eax
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x1c]
push 0x45645c
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CTime::Format
lea ecx, [esp + 0x24]
push 0x457504
push ecx
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 4
call sub.MFC42.DLL_CTime::Format
lea edx, [esp + 0x18]
push 3
push edx
mov ecx, eax
mov byte [esp + 0x38], 5
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 7
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
push 0x457500
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CTime::Format
lea ecx, [esp + 0x10]
push str._H:_M:_S
push ecx
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 8
call sub.MFC42.DLL_CTime::Format
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push str._s___s__s__s__s_GMT
push ecx
mov byte [esp + 0x4c], 9
call sub.MFC42.DLL_CString::Format_1
add esp, 0x1c
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
push edx
push str.If_Modified_Since:__s
push eax
mov byte [esp + 0x3c], 0xa
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [esp + 0x14]
add esp, 0xc
mov ecx, dword [eax - 8]
push 0x20000000
push ecx
mov ecx, dword [esi + 0x9c]
push eax
push ecx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
pop esi
jne 0x42ac33
push eax
push eax
call sub.MFC42.DLL_AfxThrowInternetException
lea ecx, [esp + 4]
mov byte [esp + 0x2c], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x42b300
Capabilities:
Read data from internet
Receive data

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xe4]
mov ecx, dword [esi + 0xd4]
push eax
push ecx
mov ecx, esi
call fcn.0042b830
mov ecx, esi
call fcn.00429eb0
test eax, eax
jne 0x42b332
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
pop ecx
ret
lea ebp, [esi + 0xa4]
mov ecx, 0xa
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov edx, dword [esi + 0x68]
mov ebx, dword [esi + 0xe4]
mov dword [ebp], 0x28
mov dword [esi + 0xb8], edx
mov eax, dword [esi + 0x64]
cmp eax, ebx
jbe 0x42b362
mov eax, ebx
mov dword [esi + 0xbc], eax
mov eax, dword [esi + 0x9c]
push esi
push 1
push ebp
push eax
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x42b3c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x42b392
push eax
push 0
call sub.MFC42.DLL_AfxThrowInternetException
lea ecx, [esp + 0x10]
push 1
push ecx
mov ecx, esi
call fcn.0042d220
test eax, eax
jne 0x42b40b
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x12c]
cmp edx, eax
jne 0x42b416
mov eax, dword [esi + 0x128]
test eax, eax
je 0x42b3d1
push eax
push 0
call sub.MFC42.DLL_AfxThrowInternetException
jmp 0x42b3d1
mov ecx, esi
call fcn.0042d280
test eax, eax
jne 0x42b40b
mov edi, dword [esi + 0xbc]
test edi, edi
je 0x42b42d
mov edx, dword [esi + 0xe0]
mov eax, dword [esi + 0xb8]
add edx, edi
push edi
push eax
mov ecx, esi
mov dword [esi + 0xe0], edx
sub ebx, edi
call fcn.0042a110
test eax, eax
je 0x42b474
push edi
mov ecx, esi
call fcn.0042b940
jmp 0x42b359
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
pop ecx
ret
push 0x457968
mov ecx, esi
call fcn.0042b210
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
pop ecx
ret
mov ecx, esi
call fcn.0042a1e0
test eax, eax
je 0x42b474
mov eax, dword [esi + 0xe4]
cmp eax, 0xffffffff
je 0x42b461
cmp eax, dword [esi + 0xe0]
je 0x42b461
push 4
push 3
mov ecx, esi
call fcn.0042a920
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
push 0
push 2
mov ecx, esi
call fcn.0042a920
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
push 5
push 3
mov ecx, esi
call fcn.0042a920
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x42c750
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43e1fb
push eax
mov dword fs:[0], esp
sub esp, 0x78
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SoftwareMicrosoftInternet_Explorer
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42c884
lea ecx, [esp + 8]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x1c]
push str.Version
push eax
mov dword [esp + 0x20], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42c884
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp]
mov dword [esp + 0x80], 0
call sub.MFC42.DLL_CString::CString_2
push 0x2e
lea ecx, [esp + 8]
mov byte [esp + 0x84], 1
call sub.MFC42.DLL_CString::Find_2
lea edx, [esp + 0x10]
push eax
push edx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 4]
mov byte [esp + 0x84], 2
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x80], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp eax, 5
mov byte [esp + 0x80], 0
lea ecx, [esp]
jl 0x42c86b
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x80], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
add esp, 0x84
ret
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x80], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x78]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x84
ret

Function at 0x42cf90
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x42cfa2
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call edi
mov ecx, dword [esi + 0x14]
push ecx
call edi
lea edx, [esp + 8]
mov dword [esp + 8], 0
push edx
push 0
push esi
push 0x42ce10
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
jg 0x42cfe0
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esi + 0xc]
mov dword [esi + 4], eax
test ecx, ecx
je 0x42cff3
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi + 0x10]
push ebx
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x10]
mov ebx, eax
push ecx
call edi
xor eax, eax
test ebx, ebx
pop ebx
pop edi
sete al
pop esi
pop ecx
ret
Function at 0x42d020
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x42d06c
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 8]
mov edx, dword [esi + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x42d055
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop esi
ret 4
mov ecx, dword [esi + 4]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 4], 0
pop esi
ret 4
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop esi
ret 4

Function at 0x42deb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43e416
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 4]
mov ecx, edi
call fcn.0042f610
lea ebx, [esi + 0x30]
mov dword [esp + 0x18], 0
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x18], 1
mov dword [esi], vtable.CUpdateRecordIO.0
call fcn.0042f890
push 0x457968
mov ecx, ebx
call fcn.004326b6
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x42f2b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43e586
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 4]
mov ecx, edi
call fcn.0042f610
lea ebx, [esi + 0x30]
mov dword [esp + 0x18], 0
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x18], 1
mov dword [esi], vtable.CPushUpdateInfoIO.0
call fcn.0042f890
push 0x457968
mov ecx, ebx
call fcn.004326b6
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x431270
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43e830
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
lea eax, [esp + 0x10]
push esi
push eax
push 0x104
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 8]
mov esi, eax
push ecx
call fcn.004314b0
add esp, 4
mov ebx, 1
cmp esi, 0x104
mov dword [esp + 0x120], ebx
ja 0x4312f8
mov eax, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x4312f8
mov esi, dword [esp + 0x128]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x10], ebx
jmp 0x43135f
push str.c:_temp_
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0xc]
mov byte [esp + 0x120], 2
push edx
call fcn.00431390
add esp, 4
test eax, eax
jne 0x431338
mov esi, dword [esp + 0x128]
push 0x457820
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x10], ebx
jmp 0x43134f
mov esi, dword [esp + 0x128]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x120], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x118]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret

Function at 0x431390
Capabilities:
Create directory

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
push edi
mov eax, dword [ebp]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x43143f
push esi
push 0x5c
mov ecx, ebp
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
test esi, esi
jl 0x43143f
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x14]
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
lea ecx, [esp + 0x3c]
mov edi, eax
call sub.MFC42.DLL_CString::CString
test edi, edi
je 0x431408
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x431408
and eax, 0x10
test al, al
jne 0x431432
lea eax, [esp + 0x10]
push esi
push eax
mov ecx, ebp
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
lea ecx, [esp + 0x10]
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x43144c
mov ecx, dword [ebp]
inc esi
cmp esi, dword [ecx - 8]
jl 0x4313ab
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
Function at 0x4315d0
Capabilities:
Copy file
Set file attributes

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x38]
push 0
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, eax
test ebx, ebx
jne 0x431633
push edi
mov ecx, 9
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
pop edi
je 0x431633
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x431633
test al, 7
je 0x431633
and al, 0xf8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x24
ret

Function at 0x4318f0
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43e8f8
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x24
lea ecx, [esp + 0x34]
push ebx
push ebp
push esi
push edi
push eax
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x44]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
or ebp, 0xffffffff
test eax, eax
je 0x4319c6
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x4319c6
push 0
push eax
mov eax, dword [esp + 0x4c]
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, ebp
je 0x4319c6
mov ebx, dword [esp + 0x48]
test ebx, ebx
jne 0x4319a5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], ebp
call sub.MFC42.DLL_CString::CString
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebp
jne 0x431983
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x431983
mov dword [ebx], ebp
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], ebp
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x34]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x431ce0
Capabilities:
Encode data using base64

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
mov eax, dword [eax]
push edi
mov dword [esp + 0x10], eax
mov ebx, dword [eax - 8]
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x18], ebx
jne 0x431d13
mov eax, ebx
pop edi
cdq
and edx, 3
pop esi
add eax, edx
pop ebp
sar eax, 2
inc eax
pop ebx
lea eax, [eax + eax*2]
pop ecx
ret
xor ebp, ebp
xor eax, eax
xor edi, edi
test ebx, ebx
jle 0x431dca
xor esi, esi
xor edx, edx
cmp ebp, ebx
jge 0x431d7d
mov ebx, dword [esp + 0x10]
xor ecx, ecx
shl edx, 6
mov cl, byte [ebx + ebp]
inc ebp
cmp ecx, 0x60
jle 0x431d42
add ecx, 0xffffffb9
or edx, ecx
jmp 0x431d71
cmp ecx, 0x40
jle 0x431d4e
add ecx, 0xffffffbf
or edx, ecx
jmp 0x431d71
cmp ecx, 0x3d
jne 0x431d56
inc edi
jmp 0x431d71
cmp ecx, 0x2f
jle 0x431d62
add ecx, 4
or edx, ecx
jmp 0x431d71
jne 0x431d69
or edx, 0x3f
jmp 0x431d71
cmp ecx, 0x2b
jne 0x431d71
or edx, 0x3e
mov ebx, dword [esp + 0x18]
inc esi
cmp esi, 4
jne 0x431d25
jmp 0x431d82
cmp esi, 4
jne 0x431dba
lea ecx, [eax + 3]
mov esi, ecx
sub esi, edi
cmp esi, dword [esp + 0x20]
jg 0x431dc8
cmp ecx, eax
je 0x431db1
dec ecx
test edi, edi
je 0x431da3
mov esi, eax
sub esi, edi
add esi, 3
cmp ecx, esi
jge 0x431daa
mov esi, dword [esp + 0x1c]
mov byte [ecx + esi], dl
shr edx, 8
cmp ecx, eax
jne 0x431d93
mov ecx, 3
sub ecx, edi
add eax, ecx
cmp ebp, ebx
jl 0x431d21
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x431dd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43e918
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, dword [esp + 0x2c]
test esi, esi
mov dword [esp + 4], 0
je 0x431e89
xor eax, eax
push edi
mov dword [esp + 0xd], eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x11], eax
mov byte [esp + 0xc], 0
mov dword [esp + 0x15], eax
mov word [esp + 0x19], ax
mov byte [esp + 0x1b], al
call sub.MFC42.DLL_CString::CString_2
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x24], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x10]
push esi
push ecx
call fcn.004249c7
lea edx, [esp + 0x18]
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.00430db0
mov esi, dword [esp + 0x40]
add esp, 0x14
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov esi, dword [esp + 0x28]
push 0x457968
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x431eb0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43e955
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x457968
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_1
mov edi, 1
lea eax, [esp + 0x14]
push edi
push 0x1a
push eax
push 0
mov dword [esp + 0x130], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x431f26
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xc]
call fcn.004326b6
mov edx, dword [esp + 8]
mov eax, dword [edx - 8]
test eax, eax
jne 0x431f4a
mov esi, dword [esp + 0x128]
push 0x457830
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0xc], edi
jmp 0x431fa3
push ebx
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x456120
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
pop ebx
je 0x431f8c
push 0x456120
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [esp + 0x128]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0xc], edi
lea ecx, [esp + 8]
mov byte [esp + 0x120], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x118]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x434177
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strlen
mov esi, dword [ebp + 8]
pop ecx
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push 1
push eax
mov ecx, esi
call fcn.00434102
lea eax, [ebp - 4]
push 2
push eax
mov ecx, esi
call fcn.00434102
movzx eax, word [ebp - 4]
push eax
mov ecx, esi
push dword [ebp + 0x10]
call fcn.00434102
movzx edi, word [ebp - 4]
mov eax, dword [esi]
xor ecx, ecx
mov cl, byte [ebp - 3]
sub eax, edi
add eax, dword [esi + 4]
xor cl, byte [ebp - 4]
xor edx, edx
test edi, edi
jle 0x4341e3
mov bl, byte [edx + eax]
not bl
xor bl, cl
mov byte [edx + eax], bl
inc edx
movzx edi, word [ebp - 4]
cmp edx, edi
jl 0x4341d0
movzx eax, byte [ebp + 0xc]
dec eax
cmp eax, 9
ja case.0x4341f1.8
jmp dword [eax*4 + 0x434338]
push 4
lea ecx, [ebp + 0x14]
pop eax
push eax
push ecx
mov dword [ebp + 0x10], eax
push eax
lea eax, [ebp + 0x10]
jmp 0x43424d
push 1
pop eax
mov dword [ebp + 0x10], eax
push eax
lea eax, [ebp + 0x14]
push eax
push 4
lea eax, [ebp + 0x10]
jmp 0x43424d
push 2
pop eax
mov dword [ebp + 0x10], eax
push eax
lea eax, [ebp + 0x14]
push eax
push 4
lea eax, [ebp + 0x10]
jmp 0x43424d
push 4
lea ecx, [ebp + 0x14]
pop eax
push eax
push ecx
mov dword [ebp + 0x10], eax
push eax
lea eax, [ebp + 0x10]
jmp 0x43424d
push 4
lea ecx, [ebp + 0x14]
pop eax
push eax
push ecx
mov dword [ebp + 0x10], eax
push eax
lea eax, [ebp + 0x10]
push eax
mov ecx, esi
call fcn.00434102
mov ecx, eax
call fcn.00434102
jmp case.0x4341f1.8
mov eax, dword [ebp + 0x14]
push 4
mov ecx, esi
mov ebx, dword [eax - 8]
lea eax, [ebp + 0x10]
push eax
mov dword [ebp + 0x10], ebx
call fcn.00434102
mov edx, dword [ebp + 0x14]
mov ecx, eax
push dword [edx - 8]
push edx
call fcn.00434102
mov eax, dword [esi]
xor ecx, ecx
sub eax, ebx
mov cl, bh
add eax, dword [esi + 4]
xor cl, bl
xor esi, esi
test ebx, ebx
jle case.0x4341f1.8
mov dl, byte [esi + eax]
not dl
xor dl, cl
mov byte [esi + eax], dl
inc esi
cmp esi, ebx
jl 0x43429c
jmp case.0x4341f1.8
mov eax, dword [ebp + 0x14]
and dword [ebp + 8], 0
and dword [ebp + 0x10], 0
lea edx, [ebp + 8]
mov ecx, dword [eax]
push edx
lea edx, [ebp + 0x10]
push edx
push eax
call dword [ecx + 0x74]
mov eax, dword [ebp + 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.00434102
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 8]
call fcn.00434102
push dword [ebp + 8]
jmp 0x43432d
mov eax, dword [ebp + 0x14]
and dword [ebp + 8], 0
and dword [ebp + 0x10], 0
lea edx, [ebp + 8]
mov ecx, dword [eax]
push edx
lea edx, [ebp + 0x10]
push edx
push eax
call dword [ecx + 0xb8]
mov eax, dword [ebp + 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.00434102
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 8]
call fcn.00434102
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
pop esi
pop ebx
leave
ret