joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x5a6079
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6bd6f8]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x38]
movzx ecx, cx
push eax
push ecx
push ebx
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x47522b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
cmp ebp, ebx
je 0x47522b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], 1
cmp edi, ebx
je 0x47521c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov byte [esp + 0x2c], 2
mov dword [esi], eax
mov dword [esi + 4], ecx
mov byte [esp + 0x2c], 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x2c], bl
cmp edi, ebx
je 0x47522b
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x475250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x5a7694
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6bd6f8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x24], ebx
push 0xc
mov dword [esp + 0x18], ebx
call fcn.00573487
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, 1
mov dword [esp + 0x24], ecx
cmp eax, ebx
je 0x4752a6
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
jmp 0x4752a8
xor eax, eax
mov byte [esp + 0x24], bl
mov edi, dword [esp + 0x2c]
mov dword [edi], eax
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
movzx ecx, word [esp + 0x30]
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x475347
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], 2
cmp ebp, ebx
je 0x475338
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x475334
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
je 0x475334
push edi
lea edx, [esp + 0x34]
push edx
mov edi, eax
call fcn.00475370
add esp, 8
mov byte [esp + 0x24], 3
mov ebx, dword [esp + 0x2c]
push eax
call fcn.0042d1e1
mov byte [esp + 0x24], 2
lea ebx, [esp + 0x30]
call fcn.004266a7
xor ebx, ebx
mov edi, dword [esp + 0x2c]
mov byte [esp + 0x24], bl
cmp ebp, ebx
je 0x475347
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x47afd0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5acf98
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x6bd6f8]
xor eax, esp
mov dword [esp + 0x810], eax
push ebx
push edi
mov eax, dword [0x6bd6f8]
xor eax, esp
push eax
lea eax, [esp + 0x820]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x828], ebx
mov dword [esp + 0x14], ebx
mov eax, dword [0x6d50f8]
mov edx, dword [eax + 0xc]
mov ecx, 0x6d50f8
mov dword [esp + 0x18], esi
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x828], ebx
mov dword [esp + 0x14], 1
mov dword [esp + 0xc], ebx
mov dword [esp + 0x828], 2
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x47b061
push eax
call edi
mov dword [esp + 0xc], ebx
lea eax, [esp + 0xc]
push eax
push 0x20119
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47b0dc
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push ebx
push str.ProgramFilesDir
push eax
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47b0dc
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x47b0dc
shr eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x1c], cx
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47b0c0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x20]
push edx
mov eax, esi
call fcn.0040b13c
mov byte [esp + 0x828], bl
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x47b0ee
push eax
call edi
mov eax, esi
mov ecx, dword [esp + 0x820]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.0057340c
add esp, 0x820
ret
Function at 0x483640
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5a5f94
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x6bd6f8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0x30], esi
push 0xc
mov dword [esp + 0x18], esi
call fcn.00573487
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, 1
mov dword [esp + 0x30], ecx
cmp eax, esi
je 0x483699
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
jmp 0x48369b
xor eax, eax
mov byte [esp + 0x30], 0
mov dword [ebp], eax
mov dword [esp + 0x30], esi
mov esi, dword [ebx]
mov edi, dword [ebp]
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
cmp esi, dword [edi + 4]
je 0x4836e6
mov eax, dword [edi]
push esi
push eax
call fcn.00576288
mov ecx, dword [edi + 4]
add esp, 8
mov dword [edi], eax
cmp esi, ecx
jbe 0x4836e3
mov edx, esi
sub edx, ecx
push edx
add ecx, eax
push 0
push ecx
call fcn.005780d0
add esp, 0xc
mov dword [edi + 4], esi
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
push 5
add edx, 0xfffffff3
mov dword [esp + 0x1c], edx
mov eax, dword [eax]
lea ecx, [ebx + 8]
push ecx
lea edx, [esp + 0x20]
push edx
add ecx, 5
push ecx
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.0056d2b4
mov esi, dword [ebp]
test eax, eax
jne 0x483766
mov edi, dword [esp + 0x10]
cmp edi, dword [esi + 4]
je 0x483782
mov eax, dword [esi]
push edi
push eax
call fcn.00576288
mov ecx, dword [esi + 4]
add esp, 8
mov dword [esi], eax
cmp edi, ecx
jbe 0x48374e
mov edx, edi
sub edx, ecx
push edx
add ecx, eax
push 0
push ecx
call fcn.005780d0
add esp, 0xc
mov dword [esi + 4], edi
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret
cmp dword [esi + 4], 0
je 0x483782
mov eax, dword [esi]
push 0
push eax
call fcn.00576288
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], 0
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret
Function at 0x4840d0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5acd24
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6bd6f8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
xor esi, esi
mov dword [esp + 0x18], esi
cmp dword [ebp], esi
jne 0x48410f
call fcn.00483980
mov eax, dword [ebp + 4]
cmp eax, esi
jne 0x48411b
call fcn.00483980
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x34], esi
call fcn.005639ac
add esp, 4
cmp eax, 6
jne 0x484208
jmp 0x484140
cmp dword [esp + 0x14], 0x3e8
jg 0x484208
cmp dword [esp + 0x30], 3
jg 0x484208
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 8
mov edi, eax
call fcn.00573487
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], 1
test esi, esi
je 0x484196
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x484198
xor esi, esi
mov byte [esp + 0x28], 0
mov eax, dword [ebp]
push esi
push 0x4837c0
push eax
call fcn.0054d7c2
add esp, 0xc
nop
push 1
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, 0xc0
je 0x4841b0
test eax, eax
je 0x4841cd
inc dword [esp + 0x30]
mov ecx, dword [ebp]
push 0
push 0
push ecx
call fcn.0054d7c2
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 4]
inc dword [esp + 0x14]
push edx
call fcn.0055d2fe
mov eax, dword [ebp + 4]
push eax
call fcn.005639ac
add esp, 8
xor esi, esi
cmp eax, 6
je 0x484140
cmp eax, 0x65
jne 0x484250
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
push eax
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov byte [ebx + 8], 1
call fcn.00537c51
add esp, 4
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x10], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], 1
mov eax, ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
cmp eax, 0x64
mov eax, dword [ebp + 4]
push eax
jne 0x484276
mov edx, dword [ebp]
mov dword [ebx], edx
mov dword [ebx + 4], eax
mov byte [ebx + 8], 0
call fcn.00537c51
add esp, 4
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x10], 0
jmp 0x48422c
call fcn.0055d2fe
mov ecx, dword [ebp]
push ecx
mov esi, eax
call fcn.00545f63
add esp, 8
push 0x6943d4
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x38], esi
call fcn.00577e65
int3
Function at 0x484660
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5acd24
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6bd6f8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [ebp], eax
jne 0x48469b
call fcn.00483980
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
push eax
mov ebx, ebp
call fcn.004849c0
mov ebx, eax
push ebx
call fcn.005639ac
add esp, 4
cmp eax, 6
jne 0x484796
cmp dword [esp + 0x14], 0x3e8
jg 0x484796
cmp dword [esp + 0x30], 3
jg 0x484796
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 8
mov edi, eax
call fcn.00573487
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], 1
test esi, esi
je 0x48471c
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x48471e
xor esi, esi
mov byte [esp + 0x28], 0
mov ecx, dword [ebp]
push esi
push 0x4837c0
push ecx
call fcn.0054d7c2
add esp, 0xc
push 1
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, 0xc0
je 0x484735
test eax, eax
je 0x484752
inc dword [esp + 0x30]
mov edx, dword [ebp]
push 0
push 0
push edx
call fcn.0054d7c2
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [esp + 0x14]
push ebx
call fcn.0055d2a7
mov eax, dword [esp + 0x3c]
add esp, 4
push eax
mov ebx, ebp
call fcn.004849c0
mov ebx, eax
push ebx
call fcn.005639ac
add esp, 4
cmp eax, 6
je 0x4846c3
push ebx
cmp eax, 0x65
jne 0x4847e3
mov ecx, dword [ebp]
mov esi, dword [esp + 0x38]
mov dword [esi], ecx
mov dword [esi + 4], ebx
mov byte [esi + 8], 1
call fcn.00537c51
add esp, 4
mov dword [esi + 0xc], eax
mov byte [esi + 0x10], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 1
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
cmp eax, 0x64
jne 0x484819
mov edx, dword [ebp]
mov esi, dword [esp + 0x38]
mov dword [esi], edx
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
call fcn.00537c51
mov dword [esi + 0xc], eax
mov eax, 1
add esp, 4
mov byte [esi + 0x10], al
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], eax
jmp 0x4847cb
call fcn.0055d2a7
mov esi, eax
mov eax, dword [ebp]
push eax
call fcn.00545f63
add esp, 8
push 0x6943d4
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], esi
call fcn.00577e65
int3
Function at 0x48ca70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b26e9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6bd6f8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x10], 0
mov eax, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push edx
push ecx
push eax
mov eax, dword [esp + 0x30]
push esi
push eax
call fcn.0048caf0
mov dword [esp + 0x14], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x14

Function at 0x48ff90
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5ac87d
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x6bd6f8]
xor eax, esp
mov dword [esp + 0x810], eax
push edi
mov eax, dword [0x6bd6f8]
xor eax, esp
push eax
lea eax, [esp + 0x81c]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x824], edi
mov dword [esp + 0x10], edi
mov eax, dword [0x6d50f8]
mov edx, dword [eax + 0xc]
mov ecx, 0x6d50f8
mov dword [esp + 0x14], esi
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x824], edi
lea eax, [esp + 8]
push eax
push 0x20119
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 1
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x490087
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
push edi
push str.ProgramFilesDir
push eax
mov dword [esp + 0x24], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49007c
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x49007c
shr eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x18], cx
lea eax, [esp + 0x18]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x490060
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x1c]
push edx
mov eax, esi
call fcn.0040b13c
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x81c]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x810]
xor ecx, esp
call fcn.0057340c
add esp, 0x820
ret
Function at 0x492e80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5bbf0a
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x6bd6f8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x14], 0
mov eax, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push edx
push ecx
push eax
push esi
call fcn.00492f00
add esp, 0x18
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 1
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x4960d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5aa11c
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6bd6f8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
push esi
call fcn.00482e10
xor edi, edi
mov dword [esp + 0x1c], edi
lea eax, [esi + 0x18]
push eax
call fcn.00482e10
mov byte [esp + 0x1c], 1
lea eax, [esi + 0x50]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esp + 0xc], eax
mov dword [eax], 0xffffffff
mov byte [esp + 0x1c], 2
mov dword [eax + 4], edi
mov byte [esp + 0x1c], 3
add eax, 8
mov dword [esp + 0x10], eax
mov dword [eax], edi
mov dword [esp + 0x1c], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 4
Function at 0x496580
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5bd4fa
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6bd6f8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
push esi
mov dword [esp + 0x24], 0
call fcn.00491ac0
add esp, 0x1c
mov dword [esp + 0x14], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x496920
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b2422
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6bd6f8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x24]
xor ebx, ebx
push ecx
mov byte [esp + 0x1b], bl
call fcn.004b0530
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x496a48
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp dword [esp + 0x18], ebx
ja 0x496998
cmp edi, 0x10
jbe 0x496a48
mov eax, dword [esp + 0x28]
push 4
push str.MSDB
push eax
call fcn.00578644
add esp, 0xc
test eax, eax
jne 0x496a48
mov ebx, dword [esp + 0x28]
add edi, 0xfffffffc
lea ecx, [esp + 0x14]
push edi
add ebx, 4
push ecx
call fcn.00483640
add esp, 8
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x14]
cmp dword [eax], 0
je 0x496a1a
cmp dword [eax + 4], 0
je 0x496a1a
lea ebx, [esi + 8]
mov edi, ebx
call fcn.004964c0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov edi, dword [esi]
push 1
push 0
push ecx
push eax
call fcn.0046e800
add esp, 0x10
test al, al
je 0x496a1a
mov esi, dword [esi]
push esi
mov eax, ebx
call fcn.00496170
test al, al
je 0x496a1a
mov byte [esp + 0x13], 1
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x14]
dec dword [eax + 8]
mov esi, eax
add eax, 8
cmp dword [eax], 0
jne 0x496a48
xor edi, edi
call fcn.00428aec
mov edx, dword [esp + 0x14]
push edx
call fcn.00573401
add esp, 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x38], 0xffffffff
lea eax, [esp + 0x20]
push eax
call fcn.004b06b0
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x499010
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x49c570
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x5b2371
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x6bd6f8]
xor eax, esp
mov dword [esp + 0x64], eax
push ebp
push esi
push edi
mov eax, dword [0x6bd6f8]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x88]
mov dword [esp + 0x14], 0
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x8c]
push ecx
lea esi, [esp + 0x20]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
call fcn.0042c9ec
add esp, 4
lea eax, [esp + 0x10]
push eax
mov ecx, esi
push ecx
call fcn.0049c4a0
mov esi, 1
mov dword [esp + 0x80], esi
push eax
push ebp
call fcn.00470d80
add esp, 8
mov dword [esp + 0x14], esi
mov byte [esp + 0x80], 0
mov eax, dword [esp + 0x10]
dec dword [eax + 8]
mov esi, eax
add eax, 8
cmp dword [eax], 0
jne 0x49c64a
xor edi, edi
call fcn.00428aec
mov edx, dword [esp + 0x10]
push edx
call fcn.00573401
add esp, 4
mov dword [esp + 0x10], edi
mov eax, ebp
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0057340c
add esp, 0x74
ret

Function at 0x49c670
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
mov edi, eax
mov ebx, ecx
test edi, edi
jbe 0x49c6b5
push ebp
jmp 0x49c680
mov edx, dword [esi + 4]
movzx ebp, byte [ebx]
mov ecx, dword [esi]
mov eax, edx
shr eax, 0x18
shld edx, ecx, 8
xor eax, ebp
and eax, 0xff
xor edx, dword [eax*8 + 0x670f8c]
shl ecx, 8
xor ecx, dword [eax*8 + 0x670f88]
dec edi
inc ebx
mov dword [esi], ecx
mov dword [esi + 4], edx
test edi, edi
ja 0x49c680
pop ebp
pop edi
pop ebx
ret
Function at 0x49ea10
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a9f30
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x6bd6f8]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
xor ebx, ebx
push eax
mov byte [esp + 0x1b], bl
call fcn.004a0270
add esp, 4
cmp eax, ebx
jne 0x49ebc9
push 0x54
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.005780d0
mov eax, dword [esi]
add esp, 0xc
push ebx
push ebx
lea ecx, [esp + 0x34]
push ebx
push ecx
call fcn.0049fa30
add esp, 0x10
test eax, eax
jne 0x49eba3
mov edx, dword [ebp + 0xc]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push edx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x90], ebx
cmp esi, 0xffffffff
je 0x49eb53
mov edi, 0x10000
lea ebx, [esp + 0x20]
call fcn.00426662
mov byte [esp + 0x90], 1
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx]
mov edi, dword [ebp + 8]
mov ecx, dword [ebx + 4]
push eax
mov eax, dword [edi]
call fcn.004a0440
add esp, 4
test eax, eax
jle 0x49eb24
push 0
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], eax
mov ecx, dword [ebx]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49eb24
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x49eb24
add dword [esp + 0x18], eax
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
push eax
mov eax, dword [edi]
call fcn.004a0440
add esp, 4
test eax, eax
jg 0x49eaea
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [esp + 0x90], 0
add dword [ebx + 8], 0xffffffff
jne 0x49eb53
xor edi, edi
mov esi, ebx
call fcn.00428aec
push ebx
call fcn.00573401
mov esi, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp ecx, dword [esp + 0x4c]
jne 0x49eb72
cmp eax, dword [esp + 0x50]
jne 0x49eb72
mov byte [esp + 0x17], 1
jmp 0x49eb8c
cmp esi, 0xffffffff
je 0x49eb7a
push esi
call edi
mov edx, dword [ebp + 0xc]
push edx
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x49eba3
push eax
call edi
mov eax, dword [ebp + 8]
mov edi, dword [eax]
call fcn.004a06c0
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, bl
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8