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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e6e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4d33a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x2c], 0
mov byte [ebp - 0x15], 1
mov ecx, dword [ebp - 0x28]
add ecx, 0x238
push ecx
lea ecx, [ebp - 0x14]
call fcn.00461ef0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
movzx eax, byte [edx + 6]
test eax, eax
jne 0x460cca
mov ecx, dword [ebp - 0x28]
cmp dword [ecx], 0
je 0x460cca
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x14]
push eax
movzx ecx, byte [ebp + 8]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 0x15], al
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x460cba
push 1
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x2c], eax
jmp 0x460cc1
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x28]
mov dword [ecx], 0
mov edx, dword [ebp - 0x28]
mov dword [edx], 0
mov eax, dword [ebp - 0x28]
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x28]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x1c], 0
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x28], 0
mov edx, dword [ebp - 0x28]
mov byte [edx + 6], 0
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x2c], 0
xor ecx, ecx
mov edx, dword [ebp - 0x28]
mov word [edx + 0x30], cx
mov al, byte [ebp - 0x15]
mov byte [ebp - 0x21], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004611b0
mov al, byte [ebp - 0x21]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x461a30
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
push 0
push 0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
call eax
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x461a73
xor eax, eax
jmp 0x461b15
mov dword [ebp - 8], 0
xor edx, edx
mov dword [ebp - 4], edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x461a97
cmp dword [ebp - 4], 0
jle 0x461aa5
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x461b15
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
push 0
push 0
push 0
push 2
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
jne 0x461ad9
xor eax, eax
jmp 0x461b15
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [ebp - 0x14]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 4], 0
jne 0x461b0f
xor eax, eax
jmp 0x461b15
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x461bd0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e710
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4d33a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x38], ecx
push 0
push 0
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x38]
mov eax, dword [edx + 4]
call eax
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x461c39
xor eax, eax
jmp 0x461d4e
mov dword [ebp - 0x20], 0
xor edx, edx
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x461c5d
cmp dword [ebp - 0x1c], 0
jle 0x461c6e
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x461d4e
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
push eax
call fcn.0047d5d0
add esp, 4
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], edx
jmp 0x461cbd
mov dword [ebp - 4], 0xffffffff
jmp 0x461cce
cmp dword [ebp - 0x14], 0
jne 0x461ce2
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x461d4e
mov dword [ebp - 0x28], 0
push 0
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x461d0d
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x20]
je 0x461d2d
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.0047e4a0
add esp, 4
xor eax, eax
jmp 0x461d4e
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x24]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x14]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x461d70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e740
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4d33a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 4], 0
je 0x461ecf
mov ecx, dword [ebp - 0x2c]
add ecx, 4
push ecx
lea ecx, [ebp - 0x14]
call fcn.00461ef0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0xc], 0xffffffff
je 0x461dcd
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0xc], 0
jne 0x461de8
mov byte [ebp - 0x25], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004611b0
mov al, byte [ebp - 0x25]
jmp 0x461ed1
mov ecx, dword [ebp - 0x2c]
add ecx, 0xc
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00461ef0
mov byte [ebp - 4], 1
movzx edx, byte [ebp + 8]
test edx, edx
je 0x461eb4
cmp dword [ebp + 0xc], 0
jne 0x461e18
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x30], ecx
jmp 0x461e1e
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
cmp edx, dword [ecx + 8]
jbe 0x461e3a
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x34], ecx
jmp 0x461e40
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x461e83
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
je 0x461ea7
mov byte [ebp - 0x26], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00461f10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004611b0
mov al, byte [ebp - 0x26]
jmp 0x461ed1
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00461f10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004611b0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x464950
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [0x4d33a4]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 8], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
mov ecx, dword [str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4649ae
xor eax, eax
jmp 0x464bb1
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x128]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x464ba4
cmp dword [ebp - 0x124], 0
jne 0x464ba4
mov dword [ebp - 0xc], 0x104
mov eax, dword [ebp - 0x128]
add eax, 1
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x238], 0
push 0x104
push 0
lea ecx, [ebp - 0x237]
push ecx
call fcn.0047e3a0
add esp, 0xc
mov dword [ebp - 0x23c], 0x104
lea edx, [ebp - 0x120]
push edx
mov eax, dword [str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318]
push eax
push str._s_s
lea ecx, [ebp - 0x238]
push ecx
call fcn.004653d0
add esp, 0x10
mov dword [ebp - 0x12c], 0
lea edx, [ebp - 0x12c]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x238]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x464b9f
mov byte [ebp - 0x348], 0
push 0x104
push 0
lea ecx, [ebp - 0x347]
push ecx
call fcn.0047e3a0
add esp, 0xc
mov dword [ebp - 0x34c], 0x104
mov dword [ebp - 0x240], 1
lea edx, [ebp - 0x34c]
push edx
lea eax, [ebp - 0x348]
push eax
lea ecx, [ebp - 0x240]
push ecx
push 0
mov edx, dword [0x4d2b98]
push edx
mov eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x464b92
lea ecx, [ebp - 0x348]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0048697e
add esp, 8
test eax, eax
jne 0x464b92
mov dword [ebp - 0x350], 4
mov dword [ebp - 0x354], 0
mov dword [ebp - 0x358], 4
lea eax, [ebp - 0x358]
push eax
lea ecx, [ebp - 0x354]
push ecx
lea edx, [ebp - 0x350]
push edx
push 0
mov eax, dword [str.Characteristics]
push eax
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x464b88
mov edx, dword [ebp - 0x354]
and edx, 1
mov dword [ebp - 0x35c], edx
je 0x464b70
mov dword [ebp - 0x10], 2
jmp 0x464b88
mov eax, dword [ebp - 0x354]
and eax, 4
mov dword [ebp - 0x35c], eax
je 0x464b88
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x124], 1
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4649c2
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0048638c
mov esp, ebp
pop ebp
ret
Function at 0x466c00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x466c24
xor eax, eax
jmp 0x466c29
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x467230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4d33a4]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x98], ecx
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4b67a0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x467362
mov dword [ebp - 0x94], 0x80
lea ecx, [ebp - 0x94]
push ecx
lea edx, [ebp - 0x90]
push edx
push 0
push 0
push 0x4b67ec
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x467358
movzx ecx, word [ebp - 0x90]
cmp ecx, 0x36
jne 0x4672bb
mov dword [ebp - 8], 1
jmp 0x467358
movzx edx, word [ebp - 0x90]
cmp edx, 0x37
jne 0x4672d3
mov dword [ebp - 8], 2
jmp 0x467358
movzx eax, word [ebp - 0x90]
cmp eax, 0x38
jne 0x4672e8
mov dword [ebp - 8], 3
jmp 0x467358
movzx ecx, word [ebp - 0x90]
cmp ecx, 0x31
jne 0x467300
movzx edx, word [ebp - 0x8e]
cmp edx, 0x30
je 0x46733c
movzx eax, word [ebp - 0x90]
cmp eax, 0x39
jne 0x467345
movzx ecx, word [ebp - 0x8e]
cmp ecx, 0x2e
jne 0x467345
movzx edx, word [ebp - 0x8c]
cmp edx, 0x31
jne 0x467345
movzx eax, word [ebp - 0x8a]
cmp eax, 0x30
jne 0x467345
movzx ecx, word [ebp - 0x88]
cmp ecx, 0x2e
jne 0x467345
mov dword [ebp - 8], 5
jmp 0x467358
movzx edx, word [ebp - 0x90]
cmp edx, 0x39
jne 0x467358
mov dword [ebp - 8], 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0048638c
mov esp, ebp
pop ebp
ret
Function at 0x46a7b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4d33a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x14], 0x54
mov byte [ebp - 0x13], 0x5a
mov byte [ebp - 0x12], 0x8f
mov byte [ebp - 0x11], 0x1a
mov byte [ebp - 0x10], 0x2a
mov byte [ebp - 0xf], 0x3c
mov byte [ebp - 0xe], 0x4e
mov byte [ebp - 0xd], 0x72
mov byte [ebp - 0xc], 0xa8
mov byte [ebp - 0xb], 0x1b
mov byte [ebp - 0xa], 0xa
mov byte [ebp - 9], 0xbd
mov byte [ebp - 8], 0x2a
mov byte [ebp - 7], 0x4c
mov byte [ebp - 6], 0x56
mov byte [ebp - 5], 0x15
mov eax, dword [ebp + 0xc]
shr eax, 4
shl eax, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
jmp 0x46a833
mov ecx, dword [ebp - 0x18]
add ecx, 0x10
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x1c]
jae 0x46a87a
mov dword [ebp - 0x20], 0
jmp 0x46a84d
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x10
jae 0x46a878
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
movzx eax, byte [ebp + edx - 0x14]
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx]
xor ecx, eax
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
mov byte [eax + edx], cl
jmp 0x46a844
jmp 0x46a82a
mov dword [ebp - 0x20], 0
jmp 0x46a895
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0xc]
jae 0x46a8ba
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ebp + ecx - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x18]
movzx ecx, byte [eax]
xor ecx, edx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x18]
mov byte [edx], cl
jmp 0x46a883
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048638c
mov esp, ebp
pop ebp
ret

Function at 0x4757e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
xor eax, eax
jne 0x4757e9
xor ecx, ecx
jne 0x4757e9
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x475822
call fcn.00449223
jmp 0x475838
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
je 0x475836
push 0x26
call fcn.004075d0
add esp, 4
jmp 0x475838
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x476900
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp + 8]
call fcn.0042ab8b
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x476936
xor eax, eax
xor edx, edx
jmp 0x4769a1
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x476962
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x476962
xor eax, eax
xor edx, edx
jmp 0x4769a1
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov cl, 0x20
call fcn.0047f860
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 8]
xor edx, edx
add ecx, dword [ebp - 0x10]
adc edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x477220
Capabilities:
Delete directory
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0167
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4d33a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.:_test4822FBB5_0309_420f_9DA2_FA5B8B854946
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0044bd45
add esp, 0xc
mov dword [ebp - 4], 0
push str._test4822FBB5_0309_420f_9DA2_FA5B8B854947.txt
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x4c]
push eax
call fcn.0044bd45
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.0042ab8b
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x2c]
call fcn.0042ab8b
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 0x2d], 0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00476210
add esp, 4
test eax, eax
je 0x47733a
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea ecx, [ebp - 0x4c]
call fcn.0042ab8b
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0xffffffff
je 0x47732c
push 0
push 0
push 0
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x54], 0
push 0
lea eax, [ebp - 0x54]
push eax
push 0xa
push 0x4b7e24
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x477313
mov byte [ebp - 0x2d], 1
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x4c]
call fcn.0042ab8b
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
lea eax, [ebp - 0x2c]
push eax
call fcn.004770e0
add esp, 8
mov cl, byte [ebp - 0x2d]
mov byte [ebp - 0x55], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.0042aec4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0042aec4
mov al, byte [ebp - 0x55]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048638c
mov esp, ebp
pop ebp
ret
Function at 0x4787a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a034e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4d33a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
push str.GlobalMutex_BIDUI18NGUID_
lea ecx, [ebp - 0x2c]
call fcn.0042b44e
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.0042ab8b
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00448427
lea ecx, [ebp - 0x2c]
call fcn.0042ab8b
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 0x38]
mov dword [ecx], eax
mov edx, dword [ebp - 0x38]
cmp dword [edx], 0
je 0x47883f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x47883f
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0042aec4
mov eax, dword [ebp - 0x30]
jmp 0x478858
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0042aec4
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048638c
mov esp, ebp
pop ebp
ret 4
Function at 0x47d1e9
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4d7778], 0
push esi
push edi
jne 0x47d15f
call fcn.0047d0cb
test eax, eax
je 0x47d1a4
mov eax, dword [0x4d7778]
cmp eax, 1
jne 0x47d180
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x47d1a4
jmp 0x47d1e6
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x47d1e6
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 0x47d1a8
xor eax, eax
jmp 0x47d1e6
mov eax, dword [esi]
push dword [0x4d7778]
call edi
mov edi, eax
test edi, edi
je 0x47d1ca
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x47d1e6
lea edi, [esi + 0xff0]
push esi
push dword [0x4d7778]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x47d1d0
mov eax, esi
pop edi
pop esi
ret
jmp 0x47d14b

Function at 0x47e1d7
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x47e212
invalid
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x47e1f9
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x47e20a
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x47e214
inc edi
add eax, 0x28
cmp edi, esi
jb 0x47e1ef
xor eax, eax
pop edi
pop esi
ret

Function at 0x47e4a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [di - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0047e197
dec esp
popfd
mov eax, 0xc0458d26
push eax
call fcn.0047e1a7
push eax
push esi
push dword [ebp + 8]
call fcn.0047e15c
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.0047e197
clc
mov edx, 0xe8458d65
mov byte [ebp - 0x18], bl
push eax
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.0047e1a7
push eax
push esi
push dword [ebp + 8]
call fcn.0047e15c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11