joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457e80
Capabilities:
Access peb ldr_data
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ea31d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, 1
mov dword [esp + 0x24], ebx
cmp dword [0x103a984], 0
je 0x457ef2
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov byte [esp + 0x28], 2
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov byte [esp + 0x2c], 3
mov byte [esp + 0x2c], bl
mov ecx, esi
call fcn.00457080
lea eax, [esp + 0x2c]
push eax
add esi, 4
lea ecx, [esp + 0x10]
push esi
push ecx
call fcn.004029d0
mov byte [esp + 0x30], 4
push ebx
push str.SeBackupPrivilege
call fcn.004913e0
mov eax, dword [esp + 0x20]
add esp, 0x14
lea edx, [esp + 0x10]
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x457f5d
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0
push str.SeBackupPrivilege
call fcn.004913e0
mov eax, dword [esp + 0x18]
add esp, 8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x457f6c
push 0
push str.SeBackupPrivilege
call fcn.004913e0
add esp, 8
mov byte [esp + 0x24], bl
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x30]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret 8

Function at 0x458680
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0x174
mov eax, dword [0x53fa2c]
xor eax, esp
mov dword [esp + 0x170], eax
push esi
mov esi, dword [esp + 0x184]
push edi
mov edi, dword [esp + 0x184]
push 0x63
lea eax, [esp + 0x19]
push 0
push eax
mov byte [esp + 0x20], 0
call sub.MSVCR90.dll_memset
push 0xff
lea ecx, [esp + 0x89]
push 0
push ecx
mov byte [esp + 0x90], 0
call sub.MSVCR90.dll_memset
add esp, 0x18
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
push esi
push 0
mov dword [esp + 0x28], 0x64
mov dword [esp + 0x24], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x458726
pop edi
pop esi
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.004e0148
add esp, 0x174
ret
cmp byte [esp + 0x180], 0
je 0x45875a
lea ecx, [esp + 0x14]
push ecx
push bind
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_AddAccessDeniedAce]
pop edi
pop esi
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.004e0148
add esp, 0x174
ret
lea edx, [esp + 0x14]
push edx
push 0x101fffff
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
mov ecx, dword [esp + 0x178]
pop edi
pop esi
xor ecx, esp
call fcn.004e0148
add esp, 0x174
ret
Function at 0x45a300
Capabilities:
Enumerate network shares

Disassembly:
push 0xffffffffffffffff
push 0x4ea83f
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x53fa2c]
xor eax, esp
mov dword [esp + 0x4a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0x4b8]
mov dword fs:[0], eax
push 0x5116d8
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90.dll_Ordinal_310]
xor ebx, ebx
mov dword [esp + 0x4c0], ebx
push 0x5116d8
lea ecx, [esp + 0x30]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov byte [esp + 0x4c0], 1
push 0x5116d8
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov byte [esp + 0x4c0], 2
push ebx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x24]
push edx
push 2
push ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x34], ebx
call sub.NETAPI32.dll_NetShareEnum
test eax, eax
jne 0x45a4cd
push 0x3ff
lea eax, [esp + 0xb9]
push ebx
push eax
mov byte [esp + 0xc0], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x18], ebx
jbe 0x45a4c3
mov ebp, dword [esp + 0x14]
mov edx, dword [ebp]
cmp word [edx], bx
je 0x45a40b
mov eax, edx
lea esi, [eax + 2]
jmp 0x45a3f0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45a3f0
sub eax, esi
sar eax, 1
cmp word [edx + eax*2 - 2], 0x24
je 0x45a4ad
cmp dword [0x103a97c], 0x22
jne 0x45a479
mov eax, dword [ebp + 0x18]
lea ecx, [esp + 0x34]
push 3
mov dword [esp + 0x34], ecx
push eax
lea ecx, [esp + 0x38]
call fcn.00402e70
mov byte [esp + 0x4c0], 3
sub esp, 0x84
mov edi, esp
push str.LoadSFReadOnly__s
mov ecx, 0x21
lea esi, [esp + 0xb8]
push 1
rep movsd dword es:[edi], dword [esi]
call fcn.00465570
add esp, 0x8c
mov byte [esp + 0x4c0], 2
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x34]
cmp eax, edx
je 0x45a479
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov ecx, dword [ebp + 0x18]
push ebx
push ebx
push 0x400
lea eax, [esp + 0xc0]
push eax
push 0xffffffffffffffff
push ecx
push ebx
push ebx
call fcn.004dece0
mov eax, dword [esp + 0x4e8]
lea edx, [esp + 0xd4]
push edx
push eax
call fcn.00458790
add esp, 0x28
mov eax, dword [esp + 0x1c]
inc eax
add ebp, 0x20
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x18]
jb 0x45a3de
mov ecx, dword [esp + 0x14]
push ecx
call sub.NETAPI32.dll_NetApiBufferFree
mov byte [esp + 0x4c0], 1
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [esp + 0x4c0], bl
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0x4c0], 0xffffffff
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x4b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4a0]
xor ecx, esp
call fcn.004e0148
add esp, 0x4b0
ret
Function at 0x45fe50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
push ebp
push eax
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
je 0x45fe95
cmp eax, 0xffffffff
je 0x45fe95
add esi, eax
cmp esi, edi
je 0x45fe95
mov eax, dword [ebx + 4]
push 0
mov ecx, edi
sub ecx, esi
push ecx
lea edx, [esi + ebp]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
jne 0x45fe71
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x460ae0
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x474], 0
jne 0x460af9
push 0
call fcn.0045ff00
mov dword [esi + 0x470], eax
push edi
push 0x38
lea edi, [esi + 0xc]
push 0
push edi
call sub.MSVCR90.dll_memset
lea eax, [esi + 0x470]
add esp, 0xc
cmp dword [eax], 0
mov dword [edi], 4
mov dword [esi + 0x3c], 0x400212
mov dword [esi + 0x30], 0x80
mov dword [esi + 0x2c], 0x800
je 0x460b3a
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], eax
push 0
lea eax, [esi + 0x44]
push eax
push 0
push 0
push edi
push 0
push 2
push str.Microsoft_Unified_Security_Protocol_Provider
push 0
call sub.Secur32.dll_AcquireCredentialsHandleA
pop edi
test eax, eax
jge 0x460b74
push 0
push 0x4ff784
push str.ClientInit_error
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
ret 4
cmp byte [esp + 8], 0
jne 0x460b6e
mov ecx, esi
call fcn.004606e0
pop esi
ret 4
Function at 0x464700
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push esi
push edi
push 0xf0000000
push 0x18
mov edi, ecx
push 0
lea esi, [edi + 4]
push 0
push esi
mov dword [esi], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call ebx
test eax, eax
jne 0x464762
push 0xf0000008
push 0x18
push eax
push eax
push esi
call ebx
test eax, eax
jne 0x464762
push 0xf0000010
push 0x18
push eax
push eax
push esi
call ebx
test eax, eax
je 0x464762
push 0xf0000008
push 0x18
push 0
push 0
push esi
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x464ac0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x250
mov eax, dword [0x53fa2c]
xor eax, esp
mov dword [esp + 0x24c], eax
cmp dword [0x103a984], 0
mov eax, dword [esp + 0x258]
push ebx
mov ebx, dword [esp + 0x258]
push ebp
mov ebp, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x268]
push edi
mov edi, dword [esp + 0x274]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], edi
je 0x464b74
push 0x3c
lea ecx, [esp + 0x24]
push 0
push ecx
call sub.MSVCR90.dll_memset
mov edx, dword [esp + 0x284]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0x3c
mov dword [esp + 0x28], 0x500
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x44], 0
mov dword [esp + 0x30], str.runas
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [esp + 0x40]
jmp 0x464c4e
lea edx, [esp + 0x5c]
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x464b80
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x464b90
sub eax, edx
cmp eax, 2
jbe 0x464bf2
cmp byte [esi + 1], 0x3a
jne 0x464bf2
mov edi, dword [sym.imp.MSVCR90.dll_strchr]
push 0x22
push esi
call edi
add esp, 8
test eax, eax
jne 0x464bf2
push 0x20
push esi
call edi
add esp, 8
test eax, eax
je 0x464bf2
lea edx, [esp + 0x5d]
mov byte [esp + 0x5c], 0x22
mov eax, esi
sub edx, esi
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x464bd0
lea edi, [esp + 0x5c]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x464be0
mov cx, word [0x50e01c]
mov word [edi], cx
mov edi, dword [esp + 0x278]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edi
push edx
push ebp
lea eax, [esp + 0x68]
push eax
push ecx
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteA]
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
jmp 0x464c20
cmp eax, 0x20
jg 0x464c4e
push 0x3e8
call ebp
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push edi
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x68]
push ecx
push edx
push eax
call ebx
inc esi
cmp esi, 5
jl 0x464c20
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e0148
add esp, 0x250
ret
Function at 0x464fe0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ebada
mov eax, dword fs:[0]
push eax
sub esp, 0x54c
mov eax, dword [0x53fa2c]
xor eax, esp
mov dword [esp + 0x548], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0x560]
mov dword fs:[0], eax
mov dword [esp + 0x568], 1
push 0x200
lea eax, [esp + 0x160]
push 0
push eax
call sub.MSVCR90.dll_memset
push 0x200
lea ecx, [esp + 0x36c]
push 0
push ecx
call sub.MSVCR90.dll_memset
add esp, 0x18
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [esp + 0x568], 2
mov eax, dword [esp + 0x570]
cmp dword [eax - 0xc], 0x200
jg 0x4651d7
mov edx, dword [esp + 0x574]
mov ebp, dword [sym.imp.MSVCR90.dll_sprintf]
push edx
push eax
lea eax, [esp + 0x364]
push str._s._s
push eax
call ebp
lea ecx, [esp + 0x36c]
push ecx
push str.DeleteAllEx_start__s_
push 1
call fcn.0043d500
add esp, 0x1c
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x360]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4651d7
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, dword [esp + 0x570]
cmp dword [esi - 0xc], 0x200
ja 0x4651b9
push 0x200
lea ecx, [esp + 0x160]
push 0
push ecx
call sub.MSVCR90.dll_memset
lea edx, [esp + 0x54]
push edx
push esi
lea eax, [esp + 0x170]
push 0x5027d8
push eax
call ebp
add esp, 0x1c
test byte [esp + 0x1c], 0x10
jne 0x4651a9
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0xa
jle 0x4651a9
lea edx, [esp + 0x15c]
push edx
push str.DeleteFile_13__s_
push 8
call fcn.0043d500
add esp, 0xc
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x46516b
lea ecx, [esp + 0x15c]
push ecx
push str.DeleteFile_success:_s
push 8
call fcn.0043d500
add esp, 0xc
jmp 0x4651a9
lea edx, [esp + 0x18]
push edx
call fcn.00491540
mov byte [esp + 0x56c], 3
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x164]
push ecx
push str.DeleteFile_err__s_:_s
push 8
call fcn.0043d500
add esp, 0x14
mov byte [esp + 0x568], 2
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea edx, [esp + 0x1c]
push edx
push edi
call ebx
test eax, eax
jne 0x4650d0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x35c]
push eax
push str.DeleteAllEx_end__s_
push 1
call fcn.0043d500
add esp, 0xc
mov byte [esp + 0x568], 1
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [esp + 0x568], 0
lea ecx, [esp + 0x570]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0x568], 0xffffffff
lea ecx, [esp + 0x574]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x560]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x548]
xor ecx, esp
call fcn.004e0148
add esp, 0x558
ret
Function at 0x465240
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4ebb19
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0x38], 0
push 0
push str.Scan
lea ecx, [esp + 0x48]
call dword [sym.imp.mfc90.dll_Ordinal_2481]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x465320
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x40]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xc]
push eax
push 0
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
mov edx, dword [esp + 0x28]
push 1
push 0
push 0
push edx
call fcn.004e0460
mov esi, eax
mov eax, dword [esp + 0x2c]
mov ecx, edx
xor edx, edx
add esi, eax
mov eax, dword [0x53ed94]
adc ecx, edx
cdq
cmp ecx, edx
jb 0x465342
ja 0x4652fb
cmp esi, eax
jbe 0x465342
mov eax, dword [esp + 0x40]
cmp dword [eax - 0xc], 0xa
jle 0x465320
push eax
push str.DeleteFile_14__s_
push 8
call fcn.0043d500
mov eax, dword [esp + 0x4c]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp + 0x38], ebx
lea ecx, [esp + 0x40]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
test ecx, ecx
ja 0x46536e
jb 0x46534d
cmp esi, 0xa
jae 0x46536e
mov eax, dword [esp + 0x40]
cmp dword [eax - 0xc], 0xa
jle 0x465320
push eax
push str.DeleteFile_15__s_
push 8
call fcn.0043d500
mov ecx, dword [esp + 0x4c]
add esp, 0xc
push ecx
jmp 0x46531a
mov dword [esp + 0x38], ebx
lea ecx, [esp + 0x40]
call dword [sym.imp.mfc90.dll_Ordinal_601]
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x465450
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4ebb89
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x53fa2c]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0x134]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x13c], esi
push 0x124
lea eax, [esp + 0x10]
push esi
push eax
mov dword [esp + 0x14], esi
call sub.MSVCR90.dll_memset
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4654fc
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4654f5
mov edi, edi
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x148]
call dword [sym.imp.mfc90.dll_Ordinal_1607]
test eax, eax
je 0x46553b
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4654d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x13c], 0xffffffff
lea ecx, [esp + 0x144]
call dword [sym.imp.mfc90.dll_Ordinal_601]
xor eax, eax
mov ecx, dword [esp + 0x134]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004e0148
add esp, 0x138
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x13c], 0xffffffff
lea ecx, [esp + 0x144]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, esi
jmp 0x465516
Function at 0x465570
Capabilities:
Create directory
Set file attributes
Write file on windows

Disassembly:
sub esp, 0xa0c
mov eax, dword [0x53fa2c]
xor eax, esp
mov dword [esp + 0xa08], eax
push ebx
push ebp
push esi
push edi
push 0x1ff
lea eax, [esp + 0x1d]
push 0
push eax
call sub.MSVCR90.dll_memset
push 0x3ff
lea ecx, [esp + 0x229]
push 0
push ecx
mov byte [esp + 0x230], 0
call sub.MSVCR90.dll_memset
push 0x3ff
lea edx, [esp + 0x635]
push 0
push edx
mov byte [esp + 0x63c], 0
call sub.MSVCR90.dll_memset
mov eax, dword [str.c:Log]
mov cx, word [0x510e28]
mov dl, byte [0x510e2a]
mov ebx, dword [sym.imp.MSVCR90.dll__access]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
push 0
push eax
mov word [esp + 0x48], cx
mov byte [esp + 0x4a], dl
call ebx
add esp, 0x2c
test eax, eax
je 0x465613
push 0
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.MSVCR90.dll__time64]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.MSVCR90.dll__localtime64]
mov ebp, eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
inc ecx
push ecx
add edx, 0x76c
push edx
lea eax, [esp + 0x228]
push str._04d
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
lea eax, [esp + 0x230]
add esp, 0x18
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x465660
lea edi, [esp + 0x18]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x465670
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push 0
push ecx
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 8
test eax, eax
jne 0x4656bb
lea edx, [esp + 0x18]
push 0x504ff8
push edx
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov esi, eax
jmp 0x4656ea
lea eax, [esp + 0x18]
push 0x504ff4
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
cmp byte [0x103a972], 0
mov esi, eax
je 0x4656ea
push 1
call edi
push 2
lea ecx, [esp + 0x1c]
push ecx
call ebx
push 1
call edi
test esi, esi
je 0x465787
mov eax, dword [esp + 0xa24]
lea edx, [esp + 0xa28]
push edx
push eax
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.MSVCR90.dll_vsprintf]
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x224]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
lea ecx, [esp + 0x638]
push 0x510df0
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
lea eax, [esp + 0x640]
add esp, 0x28
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x465748
push esi
sub eax, edx
push 1
push eax
lea edx, [esp + 0x624]
push edx
call dword [sym.imp.MSVCR90.dll_fwrite]
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x14
cmp byte [0x103a972], 0
je 0x465787
push 1
call edi
push 2
lea eax, [esp + 0x1c]
push eax
call ebx
push 1
call edi
mov ecx, dword [esp + 0xa18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e0148
add esp, 0xa0c
ret
Function at 0x465b90
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push 0x510e74
push 1
push 0
push 0x510e64
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [edi], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x465bf4
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov esi, eax
test esi, esi
jl 0x465bf4
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push edi
push eax
call edx
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x465c04
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x465c14
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x465e10
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ebc42
mov eax, dword fs:[0]
push eax
mov eax, 0x1010
call fcn.004e03c0
mov eax, dword [0x53fa2c]
xor eax, esp
mov dword [esp + 0x100c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0x1024]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1034]
mov dword [esp + 0x102c], 1
push 0x7ff
xor edi, edi
lea eax, [esp + 0x25]
push edi
push eax
mov byte [esp + 0x2c], 0
call sub.MSVCR90.dll_memset
push 0x7ff
lea ecx, [esp + 0x831]
mov ebx, 0x800
push edi
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edi
mov byte [esp + 0x838], 0
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x1050]
add esp, 0x18
lea edx, [esp + 0x18]
push edx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, dword [esp + 0x18]
cmp eax, edi
je 0x465ecb
cmp esi, edi
je 0x465f91
xor ebp, ebp
test esi, esi
je 0x465f91
test edi, edi
jne 0x465f86
push ebx
lea ecx, [esp + 0x24]
push edi
push ecx
call sub.MSVCR90.dll_memset
push ebx
lea edx, [esp + 0x830]
push edi
push edx
call sub.MSVCR90.dll_memset
add esp, 0x18
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x824]
push ecx
push edi
push edi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
push ebp
push esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov edi, eax
test edi, edi
jne 0x465f4a
cmp dword [esp + 0x14], ebx
jae 0x465f4a
mov ecx, dword [esp + 0x103c]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.MSVCR90.dll_strstr]
add esp, 8
test eax, eax
jne 0x465f55
mov esi, dword [esp + 0x18]
inc ebp
test esi, esi
jne 0x465ed5
jmp 0x465f91
mov byte [esp + 0x102c], 0
lea ecx, [esp + 0x1038]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0x102c], 0xffffffff
lea ecx, [esp + 0x103c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov al, 1
jmp 0x465fc0
test esi, esi
je 0x465f91
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x102c], 0
lea ecx, [esp + 0x1038]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0x102c], 0xffffffff
lea ecx, [esp + 0x103c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
xor al, al
mov ecx, dword [esp + 0x1024]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004e0148
add esp, 0x101c
ret