joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ccf0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440190
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x44f598]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push edi
push 2
mov dword [ebp - 4], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x254]
push eax
push esi
mov dword [ebp - 0x254], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41ce2d
lea eax, [ebp - 0x254]
push eax
push esi
mov dword [ebp - 0x254], 0x22c
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x41ce26
mov edi, edi
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebp - 0x230], ax
je 0x41cda5
lea eax, [ebp - 0x230]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41cd96
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x28]
call fcn.00412fe0
cmp dword [ebp + 0x1c], 8
push dword [ebp + 0x18]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push 0
mov byte [ebp - 4], 1
call fcn.00420880
test eax, eax
je 0x41ce0f
cmp dword [ebp - 0x14], 8
mov byte [ebp - 4], 0
jb 0x41cdee
push dword [ebp - 0x28]
call fcn.00425b0a
add esp, 4
lea eax, [ebp - 0x254]
push eax
push esi
mov dword [ebp - 0x254], 0x22c
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41cd70
jmp 0x41ce26
cmp dword [ebp - 0x14], 8
mov edi, dword [ebp - 0x24c]
jb 0x41ce26
push dword [ebp - 0x28]
call fcn.00425b0a
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x1c], 8
jb 0x41ce3e
push dword [ebp + 8]
call fcn.00425b0a
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426314
mov esp, ebp
pop ebp
ret
Function at 0x41d980
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440688
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1714
call fcn.004279f0
mov eax, dword [0x44f598]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0
push 0x4495b5
lea ecx, [ebp - 0x65c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x648], 0xf
mov dword [ebp - 0x64c], 0
mov byte [ebp - 0x65c], 0
call fcn.004046c0
push 4
push str.c0
lea ecx, [ebp - 0x6d4]
mov byte [ebp - 4], 2
mov dword [ebp - 0x6c0], 0xf
mov dword [ebp - 0x6c4], 0
mov byte [ebp - 0x6d4], 0
call fcn.004046c0
push 3
push 0x442c60
lea ecx, [ebp - 0x6a4]
mov byte [ebp - 4], 3
mov dword [ebp - 0x690], 0xf
mov dword [ebp - 0x694], 0
mov byte [ebp - 0x6a4], 0
call fcn.004046c0
push 0x37
push str._otptjejhjemghgstehqiqrirtrhhtrnm_52424c4_nuyiv2qmr2nw
lea ecx, [ebp - 0x68c]
mov byte [ebp - 4], 4
mov dword [ebp - 0x678], 0xf
mov dword [ebp - 0x67c], 0
mov byte [ebp - 0x68c], 0
call fcn.004046c0
lea eax, [ebp - 0x68c]
push eax
push 4
mov byte [ebp - 4], 5
call fcn.0041c2b0
add esp, 8
lea ecx, [ebp - 0x674]
push 0
push 0x4495b5
mov byte [ebp - 0x1709], 0
mov dword [ebp - 0x660], 0xf
mov dword [ebp - 0x664], 0
mov byte [ebp - 0x674], 0
call fcn.004046c0
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
lea eax, [ebp - 0x7f4]
push eax
mov byte [ebp - 4], 6
call fcn.00420200
add esp, 8
cmp dword [ebp - 0x7e4], 0
mov byte [ebp - 4], 7
je 0x41db0f
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x7f4]
push eax
lea ecx, [ebp - 0x6a4]
mov byte [ebp - 0x1709], 1
call fcn.0040b150
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x62c], ax
lea eax, [ebp - 0x62a]
push eax
call fcn.00426dc0
add esp, 0xc
lea eax, [ebp - 0x62c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0xcbc]
call fcn.00421880
lea ecx, [ebp - 0x14b4]
mov byte [ebp - 4], 8
call fcn.004218b0
lea ecx, [ebp - 0x1184]
mov byte [ebp - 4], 9
call fcn.004218b0
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1184]
mov byte [ebp - 4], 0xa
call fcn.00421910
lea ecx, [ebp - 0xcbc]
call fcn.00421930
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x44bdb8
lea eax, [ebp - 0x1724]
push eax
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x1724], 1
call fcn.00426323
lea eax, [ebp - 0x14b4]
push eax
push 0
lea ecx, [ebp - 0x1184]
call fcn.00421930
push eax
call fcn.0041c480
add esp, 0xc
test eax, eax
jne 0x41dbf0
mov eax, 0x41dbe4
ret
mov eax, 0x41dbf6
ret
Function at 0x420340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440798
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x44f598]
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
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x420465
cmp byte [ebx + 0x45], 0
je 0x420465
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x420394
xor al, al
jmp 0x420467
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
cmp ecx, 0x10
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 8
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4203fe
dec eax
je 0x420402
sub eax, 2
je 0x42044e
xor bl, bl
jmp 0x420450
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edx
sub esi, eax
je 0x420434
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [ebp - 0x28]
cmovae eax, edx
push 1
push eax
call fcn.0042887d
add esp, 0x10
cmp esi, eax
jne 0x4203fa
cmp byte [ebx + 0x45], 0
je 0x42044e
test esi, esi
jne 0x4203c4
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00409880
jmp 0x4203c4
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x420461
push dword [ebp - 0x28]
call fcn.00425b0a
add esp, 4
mov al, bl
jmp 0x420467
mov al, 1
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.00426314
mov esp, ebp
pop ebp
ret
Function at 0x420bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4408b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x44f598]
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
mov ebx, ecx
mov ecx, dword [ebp + 8]
cmp ecx, 0xffffffff
jne 0x420bfc
xor eax, eax
jmp 0x420d8c
mov eax, dword [ebx + 0x20]
mov edx, dword [eax]
test edx, edx
je 0x420c2a
mov esi, dword [ebx + 0x30]
mov edi, dword [esi]
lea eax, [edi + edx]
cmp edx, eax
jae 0x420c2a
lea eax, [edi - 1]
mov dword [esi], eax
mov ecx, dword [ebx + 0x20]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov byte [edx], al
jmp 0x420d8c
cmp dword [ebx + 0x50], 0
jne 0x420c38
or eax, 0xffffffff
jmp 0x420d8c
mov edx, dword [ebx + 0xc]
lea eax, [ebx + 0x44]
cmp dword [edx], eax
jne 0x420c59
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x3c]
mov dword [edx], eax
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
sub ecx, ecx
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
cmp dword [ebx + 0x40], 0
jne 0x420c7e
push dword [ebx + 0x50]
movsx eax, cl
push eax
call fcn.004284b9
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, dword [ebp + 8]
mov eax, ecx
jmp 0x420d8c
mov byte [ebp - 0x2c], cl
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
cmp ecx, 0x10
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 8
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
mov esi, dword [ebx + 0x40]
lea eax, [ebp - 0x30]
mov edi, dword [esi]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebx + 0x48]
push eax
mov ecx, esi
call dword [edi + 0x1c]
test eax, eax
js 0x420d76
cmp eax, 1
jg 0x420d56
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x30]
cmp edi, 0x10
lea eax, [ebp - 0x28]
cmovae eax, ecx
sub esi, eax
je 0x420d27
push dword [ebx + 0x50]
lea eax, [ebp - 0x28]
push esi
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call fcn.0042887d
add esp, 0x10
cmp esi, eax
jne 0x420d76
lea eax, [ebp - 0x2c]
mov byte [ebx + 0x45], 1
cmp dword [ebp - 0x34], eax
jne 0x420d51
test esi, esi
jne 0x420cb1
cmp dword [ebp - 0x18], 0x20
jae 0x420d76
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00409880
jmp 0x420cb1
mov ebx, dword [ebp + 8]
jmp 0x420d79
cmp eax, 3
jne 0x420d76
push dword [ebx + 0x50]
push dword [ebp - 0x2c]
call fcn.0041b360
or ecx, 0xffffffff
add esp, 8
test al, al
cmovne ecx, dword [ebp + 8]
mov ebx, ecx
jmp 0x420d79
or ebx, 0xffffffff
cmp dword [ebp - 0x14], 0x10
jb 0x420d8a
push dword [ebp - 0x28]
call fcn.00425b0a
add esp, 4
mov eax, ebx
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.00426314
mov esp, ebp
pop ebp
ret 4
Function at 0x4370f4
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44f598]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0042af8b
mov dword [ebp - 0x14], eax
cmp dword [0x4528d0], edi
jne 0x4371e5
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x437172
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4372c5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4372c5
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4372c5
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4528d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4528d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4528d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4528e0], eax
test eax, eax
je 0x4371e2
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4528dc], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x43720a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4371fd
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x43721f
push 4
pop eax
jmp 0x4372c7
cmp dword [ebp - 0x14], edi
je 0x43721f
push dword [0x4528d0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x437204
mov eax, dword [0x4528dc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x43727d
cmp dword [0x4528e0], esi
je 0x43727d
push eax
call ebx
push dword [0x4528e0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x43727d
test eax, eax
je 0x43727d
call ecx
test eax, eax
je 0x437272
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x437272
test byte [ebp - 8], 1
jne 0x43727d
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4372ad
mov eax, dword [0x4528d4]
cmp eax, esi
je 0x4372aa
push eax
call ebx
test eax, eax
je 0x4372aa
call eax
mov edi, eax
test edi, edi
je 0x4372aa
mov eax, dword [0x4528d8]
cmp eax, esi
je 0x4372aa
push eax
call ebx
test eax, eax
je 0x4372aa
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4528d0]
call ebx
test eax, eax
je 0x4372c5
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4372c7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00426314
leave
ret
Function at 0x439704
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042e1eb
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x43973c
xor eax, eax
jmp 0x439768
cmp esi, dword [ebp - 4]
je 0x439765
cmp dword [ebp + 0xc], 0
je 0x439765
push dword [edi + 0x9c]
call fcn.00439312
push dword [edi + 0x9c]
mov esi, eax
call fcn.0042b6f7
pop ecx
pop ecx
cmp esi, eax
je 0x439738
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x407d00
Capabilities:
Reference sql statements

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c477
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x67c
mov eax, dword [0x42729c]
mov dword [ebp - 0x14], eax
push edi
mov dword [ebp - 0x67c], ecx
mov ax, word [0x41ded4]
mov word [ebp - 0x414], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x41c]
call fcn.00418f50
mov dword [ebp - 4], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x10], 0
push 0x12c
lea ecx, [ebp - 0x674]
push ecx
mov edx, dword [ebp - 0x67c]
add edx, 8
push edx
call fcn.00409ed0
add esp, 0xc
test eax, eax
jne 0x407da9
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x41c]
call fcn.00418f70
jmp 0x407f18
lea eax, [ebp - 0x674]
push eax
push str.SELECT_count___FROM_master.dbo.sysprocesses_WHERE_spid___10_AND_dbid__db_id__s_
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.MSVCR71.dll_swprintf]
add esp, 0xc
mov ecx, 0x432214
call fcn.004188a0
mov dword [ebp - 0x680], eax
push 0
lea ecx, [ebp - 0x41c]
call fcn.00418fc0
push eax
lea edx, [ebp - 0x414]
push edx
mov eax, dword [ebp - 0x680]
push eax
mov ecx, dword [ebp - 0x680]
mov edx, dword [ecx]
call dword [edx + 0x170]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x407ebe
lea ecx, [ebp - 0x41c]
call fcn.00418fa0
test eax, eax
je 0x407ebe
lea ecx, [ebp - 0x41c]
call fcn.00419000
mov dword [ebp - 0x684], eax
lea eax, [ebp - 0x418]
push eax
mov ecx, dword [ebp - 0x684]
push ecx
mov edx, dword [ebp - 0x684]
mov eax, dword [edx]
call dword [eax + 0x2c]
push eax
call fcn.00407110
add esp, 4
test eax, eax
jne 0x407ebe
mov dword [ebp - 0x678], 0
jmp 0x407e75
mov ecx, dword [ebp - 0x678]
add ecx, 1
mov dword [ebp - 0x678], ecx
mov edx, dword [ebp - 0x678]
cmp edx, dword [ebp - 0x418]
jge 0x407ebe
lea ecx, [ebp - 0x41c]
call fcn.00419000
mov dword [ebp - 0x688], eax
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x678]
push ecx
mov edx, dword [ebp - 0x688]
push edx
mov eax, dword [ebp - 0x688]
mov ecx, dword [eax]
call dword [ecx + 0x40]
push eax
call fcn.00407110
add esp, 4
jmp 0x407e66
cmp dword [ebp - 0x10], 0
jle 0x407f06
push 0x1000
push 0x42e6c0
push 0x34
call fcn.00409ba0
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x67c]
add eax, 8
push eax
push 0x42e6c0
push 0x4298a0
call dword [sym.imp.MSVCR71.dll_swprintf]
add esp, 0x10
push 0x4298a0
call fcn.00407f40
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x41c]
call fcn.00418f70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00419641
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x409a70
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x42729c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x409a9f
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR71.dll__wremove]
add esp, 4
jmp 0x409ae0
cmp dword [ebp + 8], 0
je 0x409ac9
push 0
push 0
push 0x400
lea ecx, [ebp - 0x408]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jg 0x409ad0
mov eax, 1
jmp 0x409ae0
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR71.dll_remove]
add esp, 4
mov ecx, dword [ebp - 4]
call fcn.00419641
mov esp, ebp
pop ebp
ret
Function at 0x40f7f0
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x42729c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40f81c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x40f86c
cmp dword [ebp + 8], 0
je 0x40f836
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
cmp eax, 0x3fc
jbe 0x40f83b
or eax, 0xffffffff
jmp 0x40f86c
push 0
push 0
push 0x800
lea edx, [ebp - 0x808]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [ebp - 0x38], 0
lea ecx, [ebp - 0x808]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp - 4]
call fcn.00419641
mov esp, ebp
pop ebp
ret
Function at 0x40f880
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1a70
call fcn.00419810
mov eax, dword [0x42729c]
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x40f8ad
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x40f8ad
cmp dword [ebp + 0xc], 1
jge 0x40f8b2
jmp 0x40fadc
mov dword [ebp - 0x260], 0xffffffff
mov edx, dword [ebp + 0xc]
imul edx, edx, 0xe10
mov dword [ebp - 0x25c], edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1a68]
push ecx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x1260]
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xa60]
push edx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x1a68]
push ecx
call fcn.004076b0
add esp, 8
test eax, eax
jne 0x40f926
jmp 0x40fadc
lea edx, [ebp - 0x1260]
push edx
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
sub eax, 1
mov dword [ebp - 0x1a6c], eax
jmp 0x40f950
mov eax, dword [ebp - 0x1a6c]
sub eax, 1
mov dword [ebp - 0x1a6c], eax
cmp dword [ebp - 0x1a6c], 0
jbe 0x40f995
mov ecx, dword [ebp - 0x1a6c]
movzx edx, word [ebp + ecx*2 - 0x1260]
cmp edx, 0x5f
jne 0x40f993
mov eax, dword [ebp - 0x1a6c]
mov word [ebp + eax*2 - 0x1260], 0
push 0x420d5c
lea ecx, [ebp - 0x1260]
push ecx
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
jmp 0x40f995
jmp 0x40f941
lea edx, [ebp - 0xa60]
push edx
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
sub eax, 1
mov dword [ebp - 0x1a6c], eax
jmp 0x40f9bf
mov eax, dword [ebp - 0x1a6c]
sub eax, 1
mov dword [ebp - 0x1a6c], eax
cmp dword [ebp - 0x1a6c], 0
jbe 0x40f9ef
mov ecx, dword [ebp - 0x1a6c]
movzx edx, word [ebp + ecx*2 - 0xa60]
cmp edx, 0x5c
jne 0x40f9ed
mov eax, dword [ebp - 0x1a6c]
mov word [ebp + eax*2 - 0xa5e], 0
jmp 0x40f9ef
jmp 0x40f9b0
mov dword [ebp - 0x1264], 0xffffffff
lea ecx, [ebp - 0x258]
push ecx
lea edx, [ebp - 0x1260]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x1264], eax
cmp dword [ebp - 0x1264], 0xffffffff
je 0x40fadc
mov dword [ebp - 0x1a70], 0
lea eax, [ebp - 0x1a70]
push eax
lea ecx, [ebp - 0x22c]
push ecx
call fcn.004076b0
add esp, 8
test eax, eax
je 0x40fab3
mov edx, dword [ebp - 0x260]
cmp edx, dword [ebp - 0x1a70]
jle 0x40fab3
mov eax, dword [ebp - 0x1a70]
push eax
mov ecx, dword [ebp - 0x260]
push ecx
call dword [sym.imp.MSVCR71.dll_difftime]
add esp, 8
call fcn.0041977c
cmp eax, dword [ebp - 0x25c]
jle 0x40fab3
lea edx, [ebp - 0xa60]
push edx
lea eax, [ebp - 0x1a68]
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x1a68]
push edx
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
lea eax, [ebp - 0x1a68]
push eax
call fcn.00409a70
add esp, 4
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp - 0x1264]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40fa20
mov eax, dword [ebp - 0x1264]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
call fcn.00419641
mov esp, ebp
pop ebp
ret
Function at 0x411390
Capabilities:
Reference sql statements

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.00419810
mov eax, dword [0x42729c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x200c], ecx
mov eax, dword [ebp - 0x200c]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x200c]
mov eax, dword [edx]
push eax
push str.DELETE_FROM_msdb.dbo.log_shipping_plan_history_WHERE_plan_id__N_s_AND_DATEDIFF__mi__end_time__GETDATE________SELECT_history_retention_period_FROM_msdb.dbo.log_shipping_plans_WHERE_plan_id__N_s_
lea ecx, [ebp - 0x2008]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, 0x432214
call fcn.004188a0
mov dword [ebp - 0x2010], eax
push 0
push 0
lea edx, [ebp - 0x2008]
push edx
mov eax, dword [ebp - 0x2010]
push eax
mov ecx, dword [ebp - 0x2010]
mov edx, dword [ecx]
call dword [edx + 0x16c]
mov ecx, dword [ebp - 4]
call fcn.00419641
mov esp, ebp
pop ebp
ret