joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002f710
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004d678
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10067068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [edi + 0x58]
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [edi + 4], 0x1005a434
mov dword [edi + 0x30], 0x1005a43c
mov dword [edi + 0x38], 0x1005a0a8
mov dword [edi + 0x40], 0x1005a318
mov dword [edi + 0x54], vtable.CConfigLock.0
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
push ebx
mov dword [eax + 0x10], ecx
push eax
mov dword [ebp - 0x34], edi
mov dword [eax + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x1002f7a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1002f79d
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x1002f7a5
push eax
call fcn.10001000
mov dword [ebp - 4], ebx
xor eax, eax
mov word [ebp - 0x2c], ax
push 0x36
mov eax, str.SOFTWAREAdTrustMediaPrivDogMimeFilterExclusionList
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.1000cf60
push ebx
mov ecx, esi
push ecx
push 4
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.1002b790
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 8
jb 0x1002f7f9
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [edi + 0x30]
mov dword [edi + 0x2c], vtable.CConfigReader.0
mov ecx, dword [eax + 4]
mov dword [ecx + edi + 0x30], vtable.CConfigReader.1.0
mov edx, dword [edi + 0x38]
mov dword [edi + 0x34], vtable.CConfigWriter.0
mov eax, dword [edx + 4]
mov dword [eax + edi + 0x38], vtable.CConfigWriter.1.0
mov ecx, dword [edi + 0x40]
mov dword [edi + 0x3c], vtable.CConfigManipulation.0
mov edx, dword [ecx + 4]
mov dword [edx + edi + 0x40], vtable.CConfigManipulation.1.0
mov eax, dword [edi + 4]
mov dword [edi], vtable.CExclusionConfig.0
mov dword [edi + 0x2c], vtable.CExclusionConfig.1.0
mov dword [edi + 0x34], vtable.CExclusionConfig.2.0
mov dword [edi + 0x3c], vtable.CExclusionConfig.3.0
mov ecx, dword [eax + 4]
mov dword [ecx + edi + 4], vtable.CExclusionConfig.4.0
mov dword [edi + 0x44], ebx
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], ebx
mov byte [ebp - 4], 7
mov edx, dword [edi + 4]
mov eax, dword [edx + 4]
lea ecx, [eax + edi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
mov esi, edi
call fcn.1002baf0
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 4]
lea eax, [edx + edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10048188
mov esp, ebp
pop ebp
ret
Function at 0x10032620
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004d5a8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10067068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [edi + 0x58]
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [edi + 4], 0x1005a434
mov dword [edi + 0x30], 0x1005a43c
mov dword [edi + 0x38], 0x1005a0a8
mov dword [edi + 0x40], 0x1005a318
mov dword [edi + 0x54], vtable.CConfigLock.0
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
push ebx
mov dword [eax + 0x10], ecx
push eax
mov dword [ebp - 0x34], edi
mov dword [eax + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x100326b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x100326ad
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x100326b5
push eax
call fcn.10001000
mov dword [ebp - 4], ebx
xor eax, eax
mov word [ebp - 0x2c], ax
push 0x3e
mov eax, str.SOFTWAREAdTrustMediaPrivDogMimeFilterReplacementDirectives
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.1000cf60
push ebx
mov ecx, esi
push ecx
push 7
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.1002b790
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 8
jb 0x10032709
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [edi + 0x30]
mov dword [edi + 0x2c], vtable.CConfigReader.0
mov ecx, dword [eax + 4]
mov dword [ecx + edi + 0x30], vtable.CConfigReader.1.0
mov edx, dword [edi + 0x38]
mov dword [edi + 0x34], vtable.CConfigWriter.0
mov eax, dword [edx + 4]
mov dword [eax + edi + 0x38], vtable.CConfigWriter.1.0
mov ecx, dword [edi + 0x40]
mov dword [edi + 0x3c], vtable.CConfigManipulation.0
mov edx, dword [ecx + 4]
mov dword [edx + edi + 0x40], vtable.CConfigManipulation.1.0
mov eax, dword [edi + 4]
mov dword [edi], vtable.CReplacementConfig.0
mov dword [edi + 0x2c], vtable.CReplacementConfig.1.0
mov dword [edi + 0x34], vtable.CReplacementConfig.2.0
mov dword [edi + 0x3c], vtable.CReplacementConfig.3.0
mov ecx, dword [eax + 4]
mov dword [ecx + edi + 4], vtable.CReplacementConfig.4.0
mov dword [edi + 0x44], ebx
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], ebx
mov byte [ebp - 4], 7
mov edx, dword [edi + 4]
mov eax, dword [edx + 4]
lea ecx, [eax + edi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
mov esi, edi
call fcn.1002baf0
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 4]
lea eax, [edx + edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10048188
mov esp, ebp
pop ebp
ret
Function at 0x10033340
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10067068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push 0x7e
push eax
lea ecx, [ebp - 0x82]
mov edi, edx
push ecx
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x10c], edi
mov word [ebp - 0x84], ax
call sub.MSVCR100.dll_memset
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp dword [esi], 1
jne 0x1003339d
lea edx, [ebp - 0x84]
push str.FULL_PATH
push edx
call ebx
add esp, 8
cmp dword [esi], 0
jne 0x100333b3
lea eax, [ebp - 0x84]
push str.FQDN
push eax
call ebx
add esp, 8
cmp dword [esi], 2
jne 0x100333c9
lea ecx, [ebp - 0x84]
push str.FULL_PATH_BLOCK
push ecx
call ebx
add esp, 8
cmp dword [esi], 3
jne 0x100333df
lea edx, [ebp - 0x84]
push str.FQDN_BLOCK
push edx
call ebx
add esp, 8
lea eax, [ebp - 0x84]
lea edx, [eax + 2]
jmp 0x100333f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100333f0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x84]
push ecx
push 1
push 0
push str.type
push edi
call ebx
test eax, eax
jne 0x100334f4
cmp dword [esi + 0x18], 8
mov ecx, dword [esi + 0x14]
lea eax, [esi + 4]
jb 0x10033433
mov eax, dword [eax]
lea edx, [ecx + ecx + 2]
push edx
push eax
push 1
push 0
push str.replacement
push edi
call ebx
test eax, eax
jne 0x100334f4
cmp dword [esi + 0x34], 8
mov ecx, dword [esi + 0x30]
lea eax, [esi + 0x20]
jb 0x1003345b
mov eax, dword [eax]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push 0
push str.category
push edi
call ebx
test eax, eax
jne 0x100334f4
lea edx, [ebp - 0x104]
push str.source
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [esi + 0x3c]
mov eax, dword [ebp - 0x108]
add esp, 8
xor edi, edi
cmp esi, dword [eax + 0x40]
je 0x100334f2
lea ebx, [ebx]
push edi
lea ecx, [ebp - 0xf8]
push 0x1005995c
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esi + 0x10]
add esp, 0xc
inc edi
cmp dword [esi + 0x14], 8
jb 0x100334c4
mov ecx, dword [esi]
jmp 0x100334c6
mov ecx, esi
lea edx, [eax + eax + 2]
push edx
push ecx
mov ecx, dword [ebp - 0x10c]
push 1
push 0
lea eax, [ebp - 0x104]
push eax
push ecx
call ebx
test eax, eax
jne 0x100334f4
mov edx, dword [ebp - 0x108]
add esi, 0x1c
cmp esi, dword [edx + 0x40]
jne 0x100334a0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10048188
mov esp, ebp
pop ebp
ret
Function at 0x10035830
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ffa8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10067068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], ebx
cmp dword [ebp + 8], ebx
je 0x100358d7
mov dword [edi + 4], 0x1005a434
mov dword [edi + 0x30], 0x1005a43c
mov dword [edi + 0x38], 0x1005a0a8
mov dword [edi + 0x40], 0x1005a318
lea eax, [edi + 0x58]
xor ecx, ecx
mov dword [edi + 0x54], vtable.CConfigLock.0
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
push ebx
mov dword [eax + 0x10], ecx
push eax
mov dword [eax + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x100358cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x100358c5
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x100358cd
push eax
call fcn.10001000
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], 1
xor eax, eax
mov word [ebp - 0x2c], ax
push 0x32
mov eax, str.SOFTWAREAdTrustMediaPrivDogMimeFilterwhitelist
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.1000cf60
push ebx
mov ecx, esi
push ecx
push 8
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.1002b790
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 8
jb 0x10035921
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [edi + 0x30]
mov dword [edi + 0x2c], vtable.CConfigReader.0
mov ecx, dword [eax + 4]
mov dword [ecx + edi + 0x30], vtable.CConfigReader.1.0
mov edx, dword [edi + 0x38]
mov dword [edi + 0x34], vtable.CConfigWriter.0
mov eax, dword [edx + 4]
mov dword [eax + edi + 0x38], vtable.CConfigWriter.1.0
mov ecx, dword [edi + 0x40]
mov dword [edi + 0x3c], vtable.CConfigManipulation.0
mov edx, dword [ecx + 4]
mov dword [edx + edi + 0x40], vtable.CConfigManipulation.1.0
mov eax, dword [edi + 4]
mov dword [edi], vtable.CWhiteListConfig.0
mov dword [edi + 0x2c], vtable.CWhiteListConfig.1.0
mov dword [edi + 0x34], vtable.CWhiteListConfig.2.0
mov dword [edi + 0x3c], vtable.CWhiteListConfig.3.0
mov ecx, dword [eax + 4]
mov dword [ecx + edi + 4], vtable.CWhiteListConfig.4.0
mov dword [edi + 0x44], ebx
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], ebx
mov byte [ebp - 4], 7
mov edx, dword [edi + 4]
mov eax, dword [edx + 4]
lea ecx, [eax + edi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
mov esi, edi
call fcn.1002baf0
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 4]
lea eax, [edx + edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10048188
mov esp, ebp
pop ebp
ret 4
Function at 0x100444e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
xor bl, bl
or eax, 0xffffffff
xor ecx, ecx
mov byte [ebp - 1], bl
call fcn.1000d050
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.SOFTWAREAdTrustMediaPrivDog
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004459f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 8]
push ecx
push eax
lea edx, [ebp - 0x10]
push edx
push eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push str.resourcesDir
push eax
call ebx
test eax, eax
jne 0x1004458c
cmp dword [ebp - 0x10], 1
jne 0x1004458c
mov ecx, dword [ebp - 8]
push edi
push ecx
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_]
mov ecx, dword [ebp - 0xc]
add esp, 4
lea edx, [ebp - 8]
push edx
mov edi, eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0
push str.resourcesDir
push ecx
call ebx
test eax, eax
jne 0x10044581
push esi
mov eax, edi
call fcn.1000c130
mov ecx, esi
call fcn.100444a0
mov byte [ebp - 1], 1
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
pop edi
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c0a3
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x10067068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi], vtable.CTemporaryProtocolHandlerT_class_CTemporaryProtocolFolderHandler_.0
mov dword [esi + 4], vtable.CTemporaryProtocolHandlerT_class_CTemporaryProtocolFolderHandler_.1.0
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esi + 8], eax
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [ebp - 4], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov byte [ebp - 4], 1
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 7
mov word [esi + 0x1c], ax
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [esi + 0x38], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10046450
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004e298
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x10067068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [edi + 0x38]
lea ebx, [ecx + 2]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.10046980
add esp, 8
push 0x5c
lea ebx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.100468e0
mov eax, dword [ebp - 0x10]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x100464a3
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [edi + 0x1c]
call fcn.1000cf60
mov esi, dword [edi + 0x18]
mov eax, dword [ebp - 0x10]
mov ebx, eax
test esi, esi
je 0x10046519
cmp dword [esi], 0
je 0x1004650e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x100464e0
or eax, 0xffffffff
jmp 0x10046532
push str.CreateFileTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10046514
mov edx, dword [esi]
push 0
push 0
push edx
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ebx
call eax
jmp 0x10046532
cmp dword [esi + 4], 0
jne 0x10046519
or eax, 0xffffffff
jmp 0x10046532
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x10046578
call fcn.10004890
mov esi, eax
test esi, esi
jns 0x1004657b
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x10046563
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [edi + 0x14], eax
mov edx, dword [edi + 0x14]
lea ecx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x1004659e
call fcn.10004890
mov esi, eax
test esi, esi
js 0x10046544
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0
ja 0x100465a8
cmp eax, ebx
jbe 0x100465df
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x100465c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x800c0006
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jg 0x10046603
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10046740
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
xor eax, eax
push esi
push edi
mov dword [esp + 0xc], eax
cmp dword [ebp + 0x14], eax
jne 0x1004675e
lea ecx, [esp + 0xc]
mov dword [ebp + 0x14], ecx
mov esi, dword [ebp + 8]
push 1
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x10046791
call fcn.10004890
test eax, eax
js 0x10046795
mov eax, dword [esp + 0x10]
mov edi, eax
jmp 0x10046799
mov edi, dword [esp + 0x10]
mov edx, dword [esi + 0x14]
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x100467c0
call fcn.10004890
test eax, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp eax, edi
jne 0x100467da
cmp ecx, ebx
jne 0x100467da
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push 0
push eax
mov eax, dword [esi + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100467fb
call fcn.10004890
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10047f96
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x100699f4], 0
push esi
push edi
jne 0x10047f0c
call fcn.10047e78
test eax, eax
je 0x10047f51
mov eax, dword [0x100699f4]
cmp eax, 1
jne 0x10047f2d
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10047f51
jmp 0x10047f93
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x10047f93
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10047f55
xor eax, eax
jmp 0x10047f93
mov eax, dword [esi]
push dword [0x100699f4]
call edi
mov edi, eax
test edi, edi
je 0x10047f77
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x10047f93
lea edi, [esi + 0xff0]
push esi
push dword [0x100699f4]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x10047f7d
mov eax, esi
pop edi
pop esi
ret
jmp 0x10047ef8

Function at 0x10048188
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10067068]
jne 0x10048192
repz ret
jmp fcn.10048800
Function at 0x45ebb9
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4ca698], 0
push esi
push edi
jne 0x45eb2a
call fcn.0045ea84
test eax, eax
je 0x45eb6f
mov eax, dword [0x4ca698]
cmp eax, 1
jne 0x45eb4b
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x45eb6f
jmp 0x45ebb1
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x45ebb1
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x45eb73
xor eax, eax
jmp 0x45ebb1
mov eax, dword [esi]
push dword [0x4ca698]
call edi
mov edi, eax
test edi, edi
je 0x45eb95
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x45ebb1
lea edi, [esi + 0xff0]
push esi
push dword [0x4ca698]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x45eb9b
mov eax, esi
pop edi
pop esi
ret
jmp 0x45eb16

Function at 0x460f52
Capabilities:
Encrypt data using rc4 prga

Disassembly:
inc ebp
mov eax, 0x1804eb33
add ecx, esi

Function at 0x460f5c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push 0xaaf4fd
push 0xb1a40
jno 0x460f6c
dec edx
mov ch, bl
cmp esi, edx
test edx, edi
xchg eax, ecx
dec ecx
push 0xfff8a4e1
lea esi, [0x2f5784ea]
movsx ecx, si
pop edi
sub esi, 0x1ccea7ab
dec ecx
add edi, 0x76bae
dec ebx
mov eax, edx
imul eax, esi, 0xc63eb349
lea ebp, [0x85cff8a4]
mov ecx, 0x11077eb1
mov bh, 0x66
adc al, 2
inc ebx
imul eax, edx, 0xf8d29c44
call 0x460fff
test dl, ah
inc ebp
lea edi, [0xe0604c85]
jbe 0x460fc7
mov edi, 0x27f0e11d
xchg eax, ebx
dec esi
test edx, eax
mov dl, ch
imul ebx, esi, 0xb9116594
lea edi, [0xfff76d7f]
inc edx
add edi, 0x98cf1
jmp 0x460fea
imul ecx, ecx, 0
add ebp, 0xb4ea4d12
xor dh, 0x70
or ecx, edi
lea ebx, [0x810a2a5a]
lea esi, [0x84156418]
inc ebx

Function at 0x461b87
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00460f5c

Function at 0x461ffa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c6260]
jne 0x462004
repz ret
jmp fcn.004703e7