joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43982d
Capabilities:
Read file on windows

Disassembly:
push 0x2c
mov eax, 0x46d670
call fcn.004411da
push 0x476d84
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
xor ebx, ebx
push eax
call fcn.00438ffd
add esp, 0xc
mov cl, byte [eax + 4]
mov edi, dword [eax]
mov byte [ebp - 0xd], cl
mov byte [eax + 4], bl
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], cl
xor esi, esi
inc esi
mov dword [ebp - 4], esi
cmp byte [ebp - 0x1c], bl
je 0x439877
push dword [ebp - 0x20]
mov byte [ebp - 0x1c], bl
call fcn.00465da1
pop ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0xe]
mov byte [ebp - 4], 2
push eax
push 0x100001
lea ecx, [ebp - 0x24]
call fcn.00416934
push edi
push 0x100000
push esi
mov esi, dword [ebp - 0x24]
push esi
call fcn.0044b01d
mov ebx, eax
add esp, 0x10
cmp ebx, 0x100000
ja 0x439948
push edi
call fcn.00453216
pop ecx
test eax, eax
je 0x4398cb
push 0x133
jmp 0x43994d
push edi
call fcn.004531ea
pop ecx
test eax, eax
jne 0x4398dd
push 0x13b
jmp 0x43994d
push ebx
push esi
call fcn.0043a0b4
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xe]
push eax
lea eax, [esi + ebx]
push eax
push esi
call fcn.00416905
test esi, esi
je 0x43992b
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x439922
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00407e86
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
pop ecx
pop ecx
push eax
push esi
call fcn.00440d30
pop ecx
pop ecx
cmp byte [ebp - 0xd], 0
mov dword [ebp - 4], 3
je 0x43993f
push edi
call fcn.00465da1
pop ecx
mov eax, dword [ebp + 8]
call fcn.004411a8
ret
push 0xc8
lea ecx, [ebp - 0x38]
call fcn.004104a2
push 0x48a188
lea eax, [ebp - 0x38]
push eax
call fcn.00442f9e
int3
Function at 0x43cfd0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, SysReAllocString
push edi
mov edi, dword [esp + 0x24]
test edi, edi
jl 0x43d054
jg 0x43cffd
test esi, esi
je 0x43d054
test edi, edi
jg 0x43cffd
jl 0x43cff9
cmp esi, ebp
jae 0x43cffd
mov eax, esi
jmp 0x43cfff
mov eax, ebp
and dword [esp + 0x1c], 0
cmp dword [esp + 0x14], 0xffffffff
je 0x43d045
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43d02f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x43d04f
jmp 0x43d045
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x43d040
add ebx, eax
cdq
sub esi, eax
sbb edi, edx
jmp 0x43cfe5
cmp eax, 0xffffffff
jne 0x43d04f
call fcn.00446579
cmp dword [eax], 4
je 0x43cfe5
or eax, 0xffffffff
jmp 0x43d056
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x43f08c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push 4
pop edx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x477df0]
sub edx, 1
jne 0x43f093
ret

Function at 0x441cd5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x441d14
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x441d14
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x441d14
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x441d14
cmp dword [ecx + 0x74], 0xe
jbe 0x441d14
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x459ac0
Capabilities:
Read file on windows

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

Function at 0x45fd87
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045fa04

Function at 0x465ed0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x465efd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x465efd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401508
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push esi
push edi
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x28], 1
push eax
push 0x104
mov word [ebp - 0x24], 5
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x25c]
push eax
call esi
xor edi, edi
cmp word [ebp + eax*2 - 0x25e], 0x5c
jne 0x401577
lea eax, [ebp - 0x25c]
push eax
call esi
mov word [ebp + eax*2 - 0x25e], di
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x25c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 5
pop edi
neg eax
sbb eax, eax
pop esi
inc eax
leave
ret

Function at 0x4015a5
Capabilities:
Read file on windows

Disassembly:
push esi
push 0x403064
push dword [esp + 0xc]
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x4015bf
pop esi
ret
push edi
push 0
push 0x45b113
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov edi, dword [esp + 0x1c]
push 0xc
pop ecx
xor eax, eax
push esi
push 0x30
rep stosd dword es:[edi], eax
push 1
pop edi
push edi
push dword [esp + 0x28]
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
cmp eax, 0x30
je 0x4015f4
xor edi, edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov eax, edi
pop edi
pop esi
ret

Function at 0x401601
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
push dword [esp + 0x1c]
shr ecx, 2
push dword [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0x10
cmp eax, 0xffffffff
je 0x401652
push dword [esp + 0x10]
push esi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, esi
je 0x40165e
push ebx
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
jmp 0x401660
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4016fa
Capabilities:
Encode data using xor

Disassembly:
inc ebp
mov al, cl
xchg bh, ch
push 0x451494
sub eax, 0x25fcb04f
imul ebp, ebx
xchg dh, cl
imul eax, edx, 0xb9e840f6
xchg ch, al
imul eax, ebx
sub ebx, esi
dec eax
inc bl
movzx edx, dx
test bh, dh
lea ecx, [0x2eb140cd]
cmp ebp, 0xd6e37a44
movsx eax, cl
lea ebx, [0x25bcc43d]
mov edx, ecx
call 0x4016fa
test ebp, 0x1acb30c3
xor dh, ch
inc ah
xchg edx, ecx
test edi, 0x7b59e3ce
cmp edi, ebp
pop ecx
mov edi, esi
xor al, al
imul ebx, esi
xchg ebx, edi
dec bh
sub edx, edx
lea ebx, [0x926882d7]
xchg dl, dl
cmp eax, ebp
mov bl, dl
inc edx
movzx esi, dh
inc ebx
test bl, 0x42
mov ebx, ecx
mov edx, edx
mov al, 0x80
and edx, eax
imul esi, ebp, 0x9e01abc7
imul ebx, ecx
dec ebx
xchg bl, dl
test bh, 0xac
inc ebx
imul esi, ebx, 0x5c90530
mov ebp, 0x203ebb30
test al, al
imul ebp, ecx, 0x21f9b907
and edx, 0
sub bh, ah
and eax, 0x948c35b7
or edx, 0xa5c0a
imul eax, eax
add edx, 0x1c9
xadd ecx, edx
mov bh, 0x63
dec esi
movsx esi, ax
sub ecx, 0x3db
xor dl, dl
mov ah, 0x37
dec edi
push 0x2014c1
push 0x960120
mov bh, 0x2a
test edi, edx
ja 0x401791
inc edi
imul edi, eax
test ecx, 0x7799ef74
xor esi, ecx
sbb al, 1
sub ebx, 0x7068e555
mov ebx, 0xd48e3c78
dec esi
sub ebp, ebp
lea ebx, [0x490c92da]
and eax, edx
test ah, 0x59
xchg esi, ebp
test bl, 0x64
test esi, 0x473bba2d
mov dl, bl
push 0
pop edi
mov bl, 0x8c
movzx ebp, dx
xor eax, 0xcbe5779
mov edx, ebp
dec al
mov eax, 0x86e852f7
mov ah, 0x59
test bh, 0x1f
test ebp, ebx
add edi, 0xa3f
inc ebx
test dl, ch
sub edi, 0xa3e
dec ebp
mov eax, 0x5f539b3f
test esi, 0xca4328cf
mov ebp, ecx
cmp eax, ecx
mov edx, 0x5c8ecd10
cmp edi, 0x182
jb 0x4017c5
imul eax, ebx, 0x7aaf6aa6
jmp 0x401822
push ecx
jbe 0x401828
test bh, 5
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
xor eax, eax
mov cl, 1
mov esi, 0x100
movzx edx, cl
mov byte [ebp + edx - 0x108], al
mov dl, cl
and dl, 0x80
mov byte [ebp + eax - 0x208], cl
inc eax
neg dl
sbb dl, dl
mov bl, cl
and dl, 0x1b
add bl, bl
xor dl, bl
xor cl, dl
cmp eax, esi
jl 0x401015
mov cl, 1
mov eax, 0x40cc50
movzx edx, cl
shl edx, 0x18
mov dword [eax], edx
mov dl, cl
and dl, 0x80
add eax, 4
neg dl
sbb dl, dl
and dl, 0x1b
add cl, cl
xor cl, dl
cmp eax, 0x40cc78
jl 0x401046
and dword [0x40f204], 0
push 0x63
pop ebx
xor ecx, ecx
mov dword [0x40c050], ebx
inc ecx
movzx eax, byte [ebp + ecx - 0x108]
lea edx, [ebp - 0x109]
sub edx, eax
mov dl, byte [edx]
mov al, dl
rol al, 1
xor dl, al
rol al, 1
xor dl, al
rol al, 1
xor dl, al
rol al, 1
xor al, dl
xor al, bl
movzx eax, al
mov dword [ecx*4 + 0x40c050], eax
mov dword [eax*4 + 0x40f078], ecx
inc ecx
cmp ecx, esi
jl 0x40107b
xor ecx, ecx
mov edi, 0xff
mov dl, byte [ecx + 0x40c050]
mov al, dl
and al, 0x80
neg al
sbb al, al
and al, 0x1b
mov bl, dl
add bl, bl
xor al, bl
movzx esi, al
mov bl, byte [ecx + 0x40f078]
movzx edx, dl
mov eax, esi
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, esi
xor eax, edx
mov dword [ecx + 0x40ec78], eax
ror eax, 8
mov dword [ecx + 0x40e878], eax
ror eax, 8
mov dword [ecx + 0x40e478], eax
ror eax, 8
mov dword [ecx + 0x40e078], eax
test bl, bl
je 0x40113e
movzx edx, byte [ebp - 0xfd]
movzx eax, bl
movzx eax, byte [ebp + eax - 0x108]
add eax, edx
cdq
mov esi, edi
idiv esi
movzx eax, byte [ebp + edx - 0x208]
mov dword [ebp - 4], eax
jmp 0x401142
and dword [ebp - 4], 0
test bl, bl
je 0x40116c
movzx edx, byte [ebp - 0xfb]
movzx eax, bl
movzx eax, byte [ebp + eax - 0x108]
add eax, edx
cdq
mov esi, edi
idiv esi
movzx eax, byte [ebp + edx - 0x208]
mov dword [ebp - 8], eax
jmp 0x401170
and dword [ebp - 8], 0
test bl, bl
je 0x401197
movzx edx, byte [ebp - 0xff]
movzx eax, bl
movzx eax, byte [ebp + eax - 0x108]
add eax, edx
cdq
mov esi, edi
idiv esi
movzx esi, byte [ebp + edx - 0x208]
jmp 0x401199
xor esi, esi
test bl, bl
je 0x4011c0
movzx edx, byte [ebp - 0xfa]
movzx eax, bl
movzx eax, byte [ebp + eax - 0x108]
add eax, edx
cdq
mov ebx, edi
idiv ebx
movzx eax, byte [ebp + edx - 0x208]
jmp 0x4011c2
xor eax, eax
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, dword [ebp - 8]
add ecx, 4
shl eax, 8
xor eax, dword [ebp - 4]
mov dword [ecx + 0x40dc74], eax
ror eax, 8
mov dword [ecx + 0x40d874], eax
ror eax, 8
mov dword [ecx + 0x40c84c], eax
ror eax, 8
mov dword [ecx + 0x40c44c], eax
cmp ecx, 0x400
jl 0x4010be
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402544
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret

Function at 0x405ebc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 4]
push eax
mov ebx, 0x20019
push ebx
push 0
push dword [ebp + 8]
mov edi, SysReAllocString
push edi
call esi
test eax, eax
je 0x405ef0
xor eax, eax
jmp 0x405f7b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push dword [ebp - 4]
mov dword [ebp - 8], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
jne 0x405ee9
push str.ScriptEngine
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 4]
push eax
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x210]
push eax
push edi
call esi
test eax, eax
jne 0x405ee9
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
sete al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406151
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 8], 0
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, 0x40a328
jle 0x4061ac
push dword [ebp - 4]
call fcn.00403142
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push ebx
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc dword [ebp - 4]
mov ecx, dword [esi + 0xc]
mov eax, dword [ebp - 4]
cmp eax, dword [ecx + 8]
jl 0x406178
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 8]
dec eax
mov dword [ebp - 4], eax
js 0x4061e9
jmp 0x4061bd
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x10]
push eax
call fcn.00403142
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push ebx
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
dec dword [ebp - 4]
jns 0x4061ba
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406b63
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftPowerShell
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406ba5
mov edi, dword [ebp + 8]
mov esi, str.powershell.exe
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x406cbe
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x324]
push eax
mov edi, 0x104
push ebx
jmp 0x406bf2
xor eax, eax
mov cl, byte [ebp + eax - 0x324]
mov byte [ebp + eax - 0x428], cl
inc eax
cmp cl, bl
jne 0x406bc7
inc dword [ebp - 0xc]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x324]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
mov dword [ebp - 8], edi
call esi
test eax, eax
je 0x406bc5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 7
pop ecx
mov esi, str.SOFTWAREMicrosoftPowerShell_
lea edi, [ebp - 0x11c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x428]
movsw word es:[edi], word [esi]
push eax
lea eax, [ebp - 0x11c]
push eax
movsb byte es:[edi], byte [esi]
call fcn.0040636f
lea eax, [ebp - 0x11c]
push str.ShellIdsMicrosoft.PowerShell
push eax
call fcn.0040636f
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x11c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406b92
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x324]
push eax
push ebx
push ebx
push 0x40a334
push dword [ebp - 4]
mov dword [ebp - 0x10], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x406b92
mov esi, dword [ebp + 8]
push 0x22
pop eax
mov word [esi], ax
lea eax, [ebp - 0x324]
push eax
push esi
call fcn.0040636f
push 0x40a330
push esi
call fcn.0040636f
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401340
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebx
push ebp
push esi
push edi
mov edi, eax
mov edx, 0x220
or ecx, 0xffffffff
mov esi, edi
movzx eax, byte [esi]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x413050]
inc esi
dec edx
jne 0x401352
mov ebp, dword [edi + 0x224]
lea ebx, [ecx + ebp]
test ebp, ebp
je 0x4013b3
mov edi, dword [edi + 0x220]
lea ecx, [ecx]
mov edx, 0xb3c
or ecx, 0xffffffff
mov esi, edi
lea ebx, [ebx]
movzx eax, byte [esi]
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x413050]
inc esi
dec edx
jne 0x401390
add ebx, ecx
add edi, 0xb3c
dec ebp
jne 0x401380
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x401570
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push esi
mov edx, 0x68
or eax, 0xffffffff
mov esi, ecx
lea ecx, [ecx]
movzx ecx, byte [esi]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x413050]
inc esi
dec edx
jne 0x401580
pop esi
ret

Function at 0x401960
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ecx
cmp dword [edi + 0x4414], 0
je 0x4019e5
cmp dword [edi + 0x410], 0
push esi
jne 0x401981
mov esi, edi
call fcn.004019f0
test eax, eax
je 0x4019e4
push 2
push 0
push 0
push dword [edi + 0x410]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [edi + 0x4414]
add eax, eax
push eax
lea esi, [edi + 0x414]
push esi
push dword [edi + 0x410]
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [edi + 0x410]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0x4000
push 0
push esi
mov dword [edi + 0x4414], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
pop esi
pop ecx
ret
Function at 0x4019f0
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x20c], eax
cmp word [esi], 0
push ebx
push edi
je 0x401a2c
push str.SQLDUMPER_ERRORLOG.log
push esi
push 0x40d580
mov eax, 0x104
lea edi, [esp + 0x18]
call fcn.00401210
add esp, 0xc
mov ebx, eax
jmp 0x401a6f
lea ecx, [esp + 0xc]
mov edi, str.SQLDUMPER_ERRORLOG.log
mov eax, ecx
xor ebx, ebx
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x401a5e
movzx eax, word [edi + ecx]
test ax, ax
je 0x401a5e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x401a40
jmp 0x401a62
test edx, edx
jne 0x401a6a
sub ecx, 2
mov ebx, 0x8007007a
xor eax, eax
mov word [ecx], ax
test ebx, ebx
jns 0x401a8c
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0040bb9d
add esp, 0x210
ret
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x410], eax
cmp eax, 0xffffffff
jne 0x401b3a
cmp word [esi], 0
mov dword [esi + 0x410], 0
je 0x401b0f
lea ecx, [esp + 0xc]
mov edi, str.SQLDUMPER_ERRORLOG.log
mov eax, ecx
xor ebx, ebx
mov edx, 0x104
sub edi, eax
lea esp, [esp]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x401afe
movzx eax, word [edi + ecx]
test ax, ax
je 0x401afe
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x401ae0
jmp 0x401b02
test edx, edx
jne 0x401b0a
sub ecx, 2
mov ebx, 0x8007007a
xor eax, eax
mov word [ecx], ax
test ebx, ebx
js 0x401a73
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x410], eax
mov eax, dword [esi + 0x410]
cmp eax, 0xffffffff
jne 0x401b51
mov dword [esi + 0x410], 0
jmp 0x401b83
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x401b83
push eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 2
push 0x412ff0
push dword [esi + 0x410]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401a73
mov ecx, dword [esp + 0x214]
xor eax, eax
cmp dword [esi + 0x410], eax
pop edi
setne al
pop ebx
xor ecx, esp
call fcn.0040bb9d
add esp, 0x210
ret
Function at 0x401e60
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x20
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
lea eax, [esp + 8]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401f0b
lea eax, [esp + 0x10]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x401ef1
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x1c]
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x401ed6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x401ef1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AdjustTokenPrivileges____completed_with_status___08x_
push 2
mov ebx, 0x415428
call fcn.00401660
add esp, 0xc
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0040bb9d
add esp, 0x20
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken____failed___08x_
push 1
mov ebx, 0x415428
call fcn.00401660
mov ecx, dword [esp + 0x28]
add esp, 0xc
pop ebx
xor ecx, esp
call fcn.0040bb9d
add esp, 0x20
ret
Function at 0x4021a0
Capabilities:
Delete file
Get system information on windows
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x89c
push ebx
push esi
push edi
mov dword [esp + 0x10], 0x419860
call fcn.00401e60
call fcn.0040a2e0
push 0x419868
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403540
test eax, eax
je 0x402205
call fcn.00404170
test eax, eax
je 0x402205
push dword [ebp + 0x10]
call fcn.00403350
test eax, eax
jne 0x402205
call fcn.00403c80
test eax, eax
je 0x402205
mov dword [0x419860], 3
call fcn.00407160
call fcn.004045a0
call fcn.00405110
mov eax, dword [0x419eac]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x402247
push eax
call esi
cmp dword [0x419860], 5
mov dword [0x419eac], 0xffffffff
jae 0x402247
push 0x419a96
call edi
call fcn.00404aa0
mov ebx, 0x415428
test eax, eax
je 0x40226f
push str.Watson_Invoke:_Yes
push 2
call fcn.00401660
add esp, 8
lea ecx, [esp + 0x10]
call fcn.00408720
jmp 0x40227e
push str.Watson_Invoke:_No
push 2
call fcn.00401660
add esp, 8
mov eax, dword [0x419864]
cmp eax, 0xffffffff
je 0x402295
push eax
call esi
mov dword [0x419864], 0xffffffff
mov eax, dword [0x419eac]
cmp eax, 0xffffffff
je 0x4022bc
push eax
call esi
cmp dword [0x419860], 5
mov dword [0x419eac], 0xffffffff
jae 0x4022bc
push 0x419a96
call edi
test dword [0x419eb0], 0x2000
mov dword [0x419860], 6
je 0x40231f
call fcn.00405270
mov eax, dword [0x419864]
cmp eax, 0xffffffff
je 0x4022ee
push eax
call esi
mov dword [0x419864], 0xffffffff
mov eax, dword [0x419eac]
cmp eax, 0xffffffff
je 0x402315
push eax
call esi
cmp dword [0x419860], 5
mov dword [0x419eac], 0xffffffff
jae 0x402315
push 0x419a96
call edi
mov dword [0x419860], 6
call fcn.00407100
mov eax, dword [0x4374bc]
test eax, eax
je 0x402370
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x402344
mov edi, str.Unable_to_set_service_thread_event
call fcn.00406520
jmp 0x402370
push 0xffffffffffffffff
push dword [0x4374c0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402360
mov edi, str.Unable_to_complete_wait_for_service_thread
call fcn.00406520
push dword [0x4374c0]
call esi
push dword [0x4374bc]
call esi
test dword [0x419eb0], 0x200
je 0x402389
push 0
push 0x3a98
call dword [sym.imp.KERNEL32.dll_SleepEx]
push dword [0x415054]
call dword [sym.imp.KERNEL32.dll_ExitProcess]