joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c300
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x41c3e2
cmp dword [ebp + 4], 0xffffffff
jne 0x41c3e2
push ebx
lea ebx, [ebp + 0x140]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov cl, byte [ecx + ebp + 0x13f]
cmp cl, 0x5c
je 0x41c372
cmp cl, 0x2f
je 0x41c372
mov edi, 0x476168
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
cmp edi, 1
pop ebx
jne 0x41c39e
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41c39e
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push edi
push ecx
push esi
call fcn.0041afa0
add esp, 0x10
test eax, eax
jne 0x41c3c1
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.0041b4c0
add esp, 4
mov dword [ebp], eax
neg eax
sbb eax, eax
pop edi
and eax, 0xfffffe00
pop esi
add eax, 0x200
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc
Function at 0x41c980
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
push ebp
je 0x41c9a8
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41c9a8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, dword [esp + 0x218]
mov cl, byte [ebp]
test cl, cl
je 0x41ca82
mov eax, ebp
mov edx, ebp
cmp cl, 0x2f
je 0x41c9c8
cmp cl, 0x5c
jne 0x41c9ca
mov eax, edx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x41c9be
push esi
cmp eax, ebp
push edi
je 0x41ca0c
sub eax, ebp
mov esi, ebp
mov ecx, eax
lea edi, [esp + 0x114]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x114], 0
lea eax, [esp + 0x114]
push eax
push ebx
call fcn.0041c980
add esp, 8
test ebx, ebx
mov byte [esp + 0x10], 0
je 0x41ca38
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
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 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 + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
cmp eax, 0xffffffff
pop esi
jne 0x41ca82
lea ecx, [esp + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x41d610
Capabilities:
Delete file

Disassembly:
sub esp, 0x12c
push edi
push str.bvisdhhofhdfbxbcvrghg
push str.C:UsersPublicDownloadsdhew.dat
call fcn.0041d050
mov edi, eax
add esp, 8
test edi, edi
jne 0x41d637
pop edi
add esp, 0x12c
ret
mov eax, dword [esp + 0x134]
push eax
push edi
call fcn.0041d130
add esp, 8
test eax, eax
je 0x41d65f
push edi
call fcn.0041d170
add esp, 4
xor eax, eax
pop edi
add esp, 0x12c
ret
lea ecx, [esp + 4]
push ecx
push 0xffffffffffffffff
push edi
call fcn.0041d070
add esp, 0xc
test eax, eax
je 0x41d686
push edi
call fcn.0041d170
add esp, 4
xor eax, eax
pop edi
add esp, 0x12c
ret
push ebx
mov ebx, dword [esp + 8]
push esi
xor esi, esi
test ebx, ebx
jle 0x41d6b2
lea edx, [esp + 0xc]
push edx
push esi
push edi
call fcn.0041d070
lea eax, [esp + 0x1c]
push eax
push esi
push edi
call fcn.0041d110
add esp, 0x18
inc esi
cmp esi, ebx
jl 0x41d692
push edi
call fcn.0041d170
add esp, 4
push str.C:UsersPublicDownloadsdhew.dat
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
pop ebx
mov eax, 1
pop edi
add esp, 0x12c
ret

Function at 0x41d6e0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push edi
mov edi, dword [esi + 0xc]
mov ecx, dword [eax]
mov eax, dword [edx]
mov dword [esp + 0x10], edi
mov edi, dword [esi + 8]
mov dword [esp + 0x28], edi
mov edi, dword [esi + 4]
mov esi, dword [esi]
mov dword [esp + 0x18], edi
mov edx, 0xf1bbcdc8
mov dword [esp + 0x14], esi
mov edi, 8
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x10]
mov esi, ecx
shl esi, 4
add esi, ebx
mov ebx, ecx
shr ebx, 5
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor esi, ebx
lea ebx, [ecx + edx]
xor esi, ebx
mov ebx, dword [esp + 0x14]
sub eax, esi
mov esi, eax
shl esi, 4
add esi, ebx
mov ebx, eax
shr ebx, 5
add ebx, ebp
xor esi, ebx
lea ebx, [eax + edx]
xor esi, ebx
add edx, 0x61c88647
sub ecx, esi
dec edi
jne 0x41d71c
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
mov ecx, dword [esp + 0x18]
pop ebx
mov dword [ecx], eax
add esp, 0xc
ret

Function at 0x41d7c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fopen]
push esi
push edi
push 0x47832c
push eax
call ebp
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
mov esi, eax
push 2
push 0
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov ebx, eax
call edi
push ebx
call sub.MFC42.DLL_operatornew
push esi
mov edi, eax
push ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
push esi
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [esp + 0x50]
push ecx
push ebx
push edi
call fcn.0041d780
mov edx, dword [esp + 0x64]
add esp, 0x48
push 0x476b80
push edx
call ebp
mov esi, eax
push esi
push ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
push edi
call sub.MFC42.DLL_operatordelete
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x420600
Capabilities:
Access peb ldr_data
Create thread
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x465c68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x20]
lea edi, [esi + 0x88]
push edi
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 4]
mov eax, dword [esi + 0x40]
sub ecx, edx
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 8]
mov ecx, dword [edi]
push esi
sub edx, ecx
mov dword [esi + 0x5c], edx
cdq
idiv dword [esi + 0x58]
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x94]
mov dword [0x499b5c], eax
mov ecx, dword [esi + 0x8c]
mov dword [0x499b54], ecx
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x54]
lea ecx, [esp + 0x18]
sub edx, eax
mov dword [0x499b50], edx
mov eax, dword [esi + 0x90]
mov dword [0x499b58], eax
call sub.MFC42.DLL_CWindowDC::CWindowDC
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
neg eax
sbb eax, eax
mov dword [esp + 0x30], 0
and eax, edx
lea ebp, [esi + 0x70]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, ebp
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x5c]
push eax
push ecx
mov ecx, dword [esp + 0x20]
lea ebx, [esi + 0x80]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebx
call sub.MFC42.DLL_CGdiObject::Attach
test ebx, ebx
je 0x4206d8
mov ebx, dword [ebx + 4]
mov edx, dword [esi + 0x74]
push ebx
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov edx, dword [0x499b64]
mov eax, 0x499b60
neg eax
sbb eax, eax
and eax, edx
push eax
mov eax, dword [esi + 0x74]
push edi
push eax
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esi + 0x64]
lea edi, [esi + 0x98]
push eax
push 0
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
push edi
mov ecx, ebp
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0x10]
mov dword [0x499b6c], 1
push ecx
push 0
push esi
push 0x4207a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 0x14]
mov dword [esi + 0x6c], eax
mov dword [esp + 0x30], 0xffffffff
call fcn.00428460
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x420d00
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x420d2e
mov eax, 3
add esp, 0x94
ret
cmp eax, 2
jne 0x420d68
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x420d43
add esp, 0x94
ret
cmp eax, 5
jne 0x420d5c
mov eax, dword [esp + 8]
test eax, eax
jne 0x420d5c
mov eax, 1
add esp, 0x94
ret
mov eax, 2
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret
Function at 0x420d80
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x465cff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
mov dword [esp + 4], 0
jne 0x420dcb
mov esi, dword [esp + 0x18]
push 0x487570
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
lea ecx, [esp + 0x1c]
call fcn.004280dc
xor eax, eax
xor ecx, ecx
mov al, byte [esi]
mov cl, byte [esi + 1]
push eax
xor edx, edx
mov dl, byte [esi + 2]
xor eax, eax
mov al, byte [esi + 3]
push ecx
push edx
push eax
lea ecx, [esp + 0x2c]
push str._d._d._d._d
push ecx
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x30]
add esp, 0x18
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x1c]
mov dword [esp + 4], 1
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x421ca0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x465e33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push sub.MFC42.DLL_CString::CString
push fcn.004280dc
push 8
lea eax, [esp + 0x14]
push 4
push eax
call fcn.00428624
mov esi, dword [esp + 0x3c]
xor ecx, ecx
xor ebx, ebx
mov cl, byte [esi + 3]
mov dword [esp + 0x30], ebx
mov edx, dword [ecx*4 + 0x47887c]
lea ecx, [esp + 8]
push edx
call sub.MFC42.DLL_CString::operator_1
lea eax, [esi + 0x24]
push ebx
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.00421120
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x48]
cmp eax, ebx
mov eax, str._Y__m__d__H:_M:_S
jne 0x421d2f
mov eax, str._H:_M:_S
lea edx, [esp + 0x3c]
push eax
push edx
lea ecx, [esi + 0x18]
call sub.MFC42.DLL_CTime::Format
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
push 0x475d7c
push ecx
mov byte [esp + 0x3c], 2
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esi + 0xc]
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.00420d80
mov edx, dword [eax]
xor ecx, ecx
mov cx, word [esi + 0x12]
lea eax, [esp + 0x14]
push ecx
push edx
push str._s__u
push eax
mov byte [esp + 0x40], 3
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
push ecx
push edx
lea eax, [esp + 0x20]
push str._u__u
push eax
call sub.MFC42.DLL_CString::Format
xor ecx, ecx
xor eax, eax
mov cl, byte [esi + 1]
mov al, byte [esi + 2]
add esp, 0x10
mov edx, dword [ecx*4 + 0x478894]
mov ecx, dword [eax*4 + 0x4788a8]
push edx
push ecx
lea edx, [esp + 0x24]
push 0x475d64
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [esi + 8]
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.00420d80
mov eax, dword [eax]
xor edx, edx
mov dx, word [esi + 0x10]
lea ecx, [esp + 0x20]
push edx
push eax
push str._s__u
push ecx
mov byte [esp + 0x40], 4
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
add esi, 0x128
push esi
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x10]
push 8
push ecx
push edx
call fcn.00422200
add esp, 0x14
lea eax, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
push sub.MFC42.DLL_CString::CString
push 8
push 4
push eax
call fcn.00428530
mov ecx, dword [esp + 0x28]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x421e80
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x465e63
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push sub.MFC42.DLL_CString::CString
push fcn.004280dc
push 8
lea eax, [esp + 0x10]
push 4
push eax
call fcn.00428624
mov esi, dword [esp + 0x38]
xor ecx, ecx
mov dword [esp + 0x2c], 0
mov cl, byte [esi + 3]
mov edx, dword [ecx*4 + 0x47887c]
lea ecx, [esp + 4]
push edx
call sub.MFC42.DLL_CString::operator_1
lea eax, [esi + 0x24]
push 0
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.00421120
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
xor edx, edx
lea eax, [esi + 0x22c]
mov dx, word [esi + 0x10]
lea ecx, [esp + 0xc]
push edx
push eax
push str._s__u
push ecx
call sub.MFC42.DLL_CString::Format
xor edx, edx
add esp, 0x10
mov dx, word [esi + 0x12]
lea eax, [esi + 0x26c]
push edx
push eax
lea ecx, [esp + 0x18]
push str._s__u
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
xor eax, eax
add esp, 0x10
mov al, byte [esi + 4]
add edx, ecx
shr eax, 6
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax*4 + 0x478888]
push ecx
push str._s__u
push edx
call sub.MFC42.DLL_CString::Format
xor eax, eax
xor edx, edx
mov al, byte [esi + 1]
mov dl, byte [esi + 2]
add esp, 0x10
mov ecx, dword [eax*4 + 0x478894]
mov eax, dword [edx*4 + 0x4788a8]
push ecx
push eax
lea ecx, [esp + 0x20]
push 0x475d64
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x54]
add esp, 0x10
test eax, eax
mov eax, str._Y__m__d__H:_M:_S
jne 0x421fa9
mov eax, str._H:_M:_S
lea edx, [esp + 0x38]
push eax
push edx
lea ecx, [esi + 0x14]
call sub.MFC42.DLL_CTime::Format
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push eax
push 0x475d7c
push ecx
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
add esi, 0x128
lea ecx, [esp + 0x20]
push esi
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x38]
push eax
lea ecx, [esp + 0xc]
push 8
push ecx
push edx
call fcn.00422200
add esp, 0x14
lea eax, [esp + 4]
mov dword [esp + 0x2c], 0xffffffff
push sub.MFC42.DLL_CString::CString
push 8
push 4
push eax
call fcn.00428530
mov ecx, dword [esp + 0x24]
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x422040
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x465ea3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
push sub.MFC42.DLL_CString::CString
push fcn.004280dc
push 6
lea eax, [esp + 0x18]
push 4
push eax
call fcn.00428624
mov esi, dword [esp + 0x38]
xor ecx, ecx
xor ebx, ebx
mov cl, byte [esi + 3]
mov dword [esp + 0x2c], ebx
mov edx, dword [ecx*4 + 0x47887c]
lea ecx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CString::operator_1
lea eax, [esi + 0x24]
push ebx
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.00421120
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x44]
cmp eax, ebx
mov eax, str._Y__m__d__H:_M:_S
jne 0x4220d0
mov eax, str._H:_M:_S
lea edx, [esp + 0x38]
push eax
push edx
lea ecx, [esi + 0x14]
call sub.MFC42.DLL_CTime::Format
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push eax
push 0x475d7c
push ecx
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
add edx, eax
xor eax, eax
mov al, byte [esi + 4]
push edx
shr eax, 6
lea edx, [esp + 0x1c]
mov ecx, dword [eax*4 + 0x478888]
push ecx
push str._s__u
push edx
call sub.MFC42.DLL_CString::Format
xor eax, eax
add esp, 0x10
mov al, byte [esi + 1]
lea edx, [esp + 0x1c]
mov ecx, dword [eax*4 + 0x478894]
push ecx
push 0x475d7c
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esi + 0xc]
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.00420d80
mov edi, eax
lea edx, [esi + 8]
lea eax, [esp + 0x38]
push edx
push eax
mov byte [esp + 0x34], 3
call fcn.00420d80
mov ecx, dword [edi]
mov edx, dword [eax]
add esi, 0x128
lea eax, [esp + 0x20]
push esi
push ecx
push edx
push str._s_____s___s
push eax
mov byte [esp + 0x40], 4
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x38]
push edx
lea eax, [esp + 0x14]
push 6
push eax
push ecx
call fcn.00422200
add esp, 0x14
lea edx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
push sub.MFC42.DLL_CString::CString
push 6
push 4
push edx
call fcn.00428530
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x422277
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x465ec6
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 ecx, [esi + 0x1c]
call sub.MFC42.DLL_CFile::CFile
lea edi, [esi + 0x44]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.004280dc
mov ecx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x46c618
mov dword [esi + 0x20], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call sub.MFC42.DLL_CString::Empty
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
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 0x423e66
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x466056
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov ecx, 0x46c660
xor eax, eax
mov dword [esp + 4], esi
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esi + 0x83c], ecx
push eax
mov ecx, esi
mov byte [esp + 0x14], 1
mov dword [esi], 0x46c65c
mov dword [esi + 0x30], eax
call fcn.004243a0
mov ecx, dword [esp + 8]
mov dword [esi + 0x34], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4247f0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x424810
xor eax, eax
add esp, 0x190
ret
cmp byte [esp], 2
je 0x424826
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
add esp, 0x190
ret
mov eax, 1
add esp, 0x190
ret
Function at 0x424ae0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c678
push 0x42879a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
push edi
mov dword [ebp - 0x12c], ecx
xor edi, edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push edi
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x424b47
mov eax, 0xfffffcdd
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 4], edi
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x124], edi
mov ebx, dword [ebp + 0xc]
push 0x104
lea ecx, [ebp - 0x120]
push ecx
push edi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x424bc7
push ebx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x12c]
call fcn.00424c00
mov esi, eax
mov dword [ebp - 0x124], esi
test esi, esi
je 0x424bbe
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
inc edi
mov dword [ebp - 0x128], edi
jmp 0x424b59
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x424f50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c698
push 0x42879a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x424fef
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x424fe1
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp + 0x1c]
jne 0x424fe1
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x425010
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x425040
xor eax, eax
ret 0x18
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 8]
push edx
mov edx, dword [esp + 0x1c]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x425075
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
ret 0x18
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
ret 0x18