joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402920
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
push edi
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionTelephonyLocationsLocation0
push 0x80000002
mov dword [esp + 0x28], 1
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4029b0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.OutsideAccess
push ecx
call ebx
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
not ecx
dec ecx
push ecx
push edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
push eax
push 0
push str.OutsideAccess
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionTelephonyLocationsLocation0
push 0x80000002
call esi
test eax, eax
jne 0x402a1f
lea ecx, [esp + 0x18]
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.LongDistanceAccess
push ecx
call ebx
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
not ecx
dec ecx
push ecx
push edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
push eax
push 0
push str.LongDistanceAccess
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x402b70
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
sub esp, 0x100
push esi
push edi
mov edi, dword [esp + 0x110]
test edi, edi
je 0x402bc9
mov eax, dword [0x411a80]
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
push 0
push 0
push 0x404
push eax
call esi
push edi
call fcn.00403b00
add esp, 4
push eax
call fcn.00402b40
mov ecx, dword [0x411a80]
add esp, 4
push 0
push 0
push 0x464
push ecx
call esi
xor eax, eax
pop edi
pop esi
add esp, 0x100
ret
mov eax, dword [esp + 0x10c]
cmp eax, 3
jg 0x402c33
je 0x402c18
test eax, eax
jne 0x402db9
mov ecx, dword [0x411a6c]
call fcn.004010c0
push eax
lea edx, [esp + 0xc]
push 0x40d464
push edx
call fcn.00404900
add esp, 0xc
lea eax, [esp + 8]
push eax
call fcn.00402b40
add esp, 4
mov eax, 1
pop edi
pop esi
add esp, 0x100
ret
push 0x40d444
call fcn.00402b40
add esp, 4
mov eax, 1
pop edi
pop esi
add esp, 0x100
ret
cmp eax, 0x2000
jg 0x402d8d
je 0x402c82
sub eax, 5
je 0x402c67
dec eax
jne 0x402db9
push 0x40d420
call fcn.00402b40
add esp, 4
mov eax, 1
pop edi
pop esi
add esp, 0x100
ret
push 0x40d410
call fcn.00402b40
add esp, 4
mov eax, 1
pop edi
pop esi
add esp, 0x100
ret
push 0x40d408
call fcn.00402b40
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
mov edi, 0x64
call fcn.00402a60
push 0xa
call esi
dec edi
jne 0x402c9a
push 0x40d3fc
call fcn.00402b40
add esp, 4
mov edi, 0x64
call fcn.00402a60
push 0xa
call esi
dec edi
jne 0x402cb8
push 0x40d3f0
call fcn.00402b40
add esp, 4
mov edi, 0x64
call fcn.00402a60
push 0xa
call esi
dec edi
jne 0x402cd6
push 0x40d3e0
call fcn.00402b40
mov ecx, dword [0x411a6c]
add esp, 4
mov dword [ecx + 8], 1
mov edx, dword [0x411a6c]
push 5
push 0
mov dword [edx + 0x14], 0
mov eax, dword [0x411a74]
mov edx, dword [0x411a80]
push 0
shl eax, 5
mov ecx, dword [eax + 0x411934]
push ecx
push str.open
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
push 0x3e8
call fcn.00402dd0
add esp, 8
push 1
push 0x3ea
call fcn.00402dd0
add esp, 8
push 1
push 0x3eb
call fcn.00402dd0
add esp, 8
push 0
push 0x3f0
call fcn.00402dd0
add esp, 8
call fcn.00401050
mov eax, dword [0x411a80]
push 6
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop edi
pop esi
add esp, 0x100
ret
cmp eax, 0x2001
jne 0x402db9
mov ecx, dword [0x411a6c]
call fcn.00401e20
mov ecx, dword [0x411a6c]
mov dword [ecx + 8], 0
mov edx, dword [0x411a6c]
mov dword [edx + 0x14], 0
pop edi
mov eax, 1
pop esi
add esp, 0x100
ret

Function at 0x402dd0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x411a80]
push esi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, 1
jne 0x402e02
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
pop esi
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
pop esi
ret
Function at 0x403310
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
je 0x40332b
xor eax, eax
add esp, 0x210
ret
lea eax, [esp]
push eax
push 0x40b298
push 1
push 0
push 0x40b1a8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x403351
xor eax, eax
add esp, 0x210
ret
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x40b598
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
je 0x403371
xor eax, eax
add esp, 0x210
ret
mov eax, dword [esp]
mov edx, dword [esp + 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
je 0x403390
xor eax, eax
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
lea eax, [esp + 8]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
test eax, eax
je 0x4033cc
xor eax, eax
add esp, 0x210
ret
mov eax, dword [esp]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
add esp, 0x210
ret

Function at 0x403400
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push edi
mov edi, 0x411a90
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 8], 0x104
mov dword [esp + 0xc], 1
jne 0x403470
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403470
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push 0x411a90
push edx
push eax
mov eax, dword [esp + 0x14]
push str.ProgramFilesDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x411a90
pop edi
add esp, 0xc
ret
Function at 0x404fa0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b5a8
push 0x408768
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x411be0], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x411bdc], ecx
shl ecx, 8
add ecx, edx
mov dword [0x411bd8], ecx
shr eax, 0x10
mov dword [0x411bd4], eax
call fcn.004051a0
test eax, eax
jne 0x40500a
push 0x1c
call fcn.00405170
add esp, 4
mov dword [ebp - 4], 0
call fcn.00408560
call fcn.00408550
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4130f8], eax
call fcn.00407f10
mov dword [0x411b94], eax
test eax, eax
je 0x40503d
mov eax, dword [0x4130f8]
test eax, eax
jne 0x405047
push 0xffffffffffffffff
call fcn.00407870
add esp, 4
call fcn.00407c60
call fcn.00407b70
call fcn.00407840
mov esi, dword [0x4130f8]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x405126
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40508e
test al, al
je 0x40508e
and eax, 0xff
push eax
call fcn.00407b10
add esp, 4
test eax, eax
je 0x405068
inc esi
mov dword [ebp - 0x64], esi
jmp 0x405068
cmp byte [esi], 0x22
jne 0x405097
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x4050a7
cmp al, 0x20
ja 0x4050a7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x405097
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4050c8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4050cd
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00407870
jmp 0x40510b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x405097
inc esi
mov dword [ebp - 0x64], esi
jmp 0x405126

Function at 0x405170
Capabilities:
Terminate process

Disassembly:
cmp dword [0x411b9c], 1
jne 0x40517e
call fcn.00408840
mov eax, dword [esp + 4]
push eax
call fcn.00408880
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4078b0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x411c10]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x4078cf
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x411c0c], 1
mov byte [0x411c08], bl
jne 0x407929
mov ecx, dword [0x4130ec]
test ecx, ecx
je 0x407917
mov esi, dword [0x4130e8]
sub esi, 4
cmp esi, ecx
jb 0x407917
mov eax, dword [esi]
test eax, eax
je 0x407910
call eax
mov ecx, dword [0x4130ec]
sub esi, 4
cmp esi, ecx
jae 0x407902
push 0x40d020
push 0x40d018
call fcn.00407960
add esp, 8
push 0x40d02c
push 0x40d024
call fcn.00407960
add esp, 8
test ebx, ebx
jne 0x407950
push ebp
mov dword [0x411c10], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x407f10
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x411d20]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x407f52
call edi
mov esi, eax
test esi, esi
je 0x407f3c
mov eax, 1
jmp 0x407f4d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40805f
mov eax, 2
mov dword [0x411d20], eax
cmp eax, 1
jne 0x407ff2
test esi, esi
jne 0x407f6b
call edi
mov esi, eax
test esi, esi
je 0x40805f
cmp word [esi], 0
mov eax, esi
je 0x407f85
add eax, 2
cmp word [eax], 0
jne 0x407f73
add eax, 2
cmp word [eax], 0
jne 0x407f73
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x407fe4
push edi
call fcn.00404850
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x407fe4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x407fd6
push ebx
call fcn.00404750
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40805f
test ebx, ebx
jne 0x408003
call ebp
mov ebx, eax
test ebx, ebx
je 0x40805f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40801b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40800b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40800b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00404850
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40803d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x408880
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x411450
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4088a4
add eax, 8
inc ebp
cmp eax, 0x4114e0
jb 0x408895
cmp ecx, dword [ebp*8 + 0x411450]
jne 0x408a4b
mov eax, dword [0x411b9c]
cmp eax, 1
je 0x408a0d
test eax, eax
jne 0x4088d0
cmp dword [0x40f064], 1
je 0x408a0d
cmp ecx, 0xfc
je 0x408a4b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40890b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x408954
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x40b97c
add ebx, ecx
push ebx
call fcn.0040a1f0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40b95c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x411454]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040a160
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x412fe0]
test eax, eax
je 0x408a1e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x408a28
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x411454]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x408c60
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x4130e0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x408e0d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x412fe0]
lea edi, [ecx*4 + 0x412fe0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x408e0d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x408cce
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x408cdf
push 2
push ebp
push eax
call fcn.00408ba0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x408e3e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x408d89
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x408d3a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x408d27
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x408d0a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408e2f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x408d85
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x408d06
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x408dfe
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408dd2
cmp eax, 5
jne 0x408dbb
mov dword [0x411bcc], eax
mov dword [0x411bc8], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.004093c0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x408df2
cmp byte [ebp], 0x1a
jne 0x408df2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x411bc8], 0x1c
jmp 0x408e17
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x411bc8], 9
pop edi
pop esi
pop ebp
mov dword [0x411bcc], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x408d85
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408e6f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x408d89
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x408d89
Function at 0x40a410
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00404970
mov eax, dword [0x4130e0]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x40a572
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x412fe0]
test byte [edx + ecx*8 + 4], 1
je 0x40a572
push 1
push ebp
push ebx
call fcn.00408ba0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x40a57c
push 2
push ebp
push ebx
call fcn.00408ba0
add esp, 0xc
cmp eax, 0xffffffff
je 0x40a57c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x40a518
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.0040a760
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x40a4bf
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00408c60
add esp, 0xc
cmp eax, 0xffffffff
je 0x40a4db
sub esi, eax
test esi, esi
jle 0x40a4f1
jmp 0x40a4b0
cmp dword [0x411bcc], 5
jne 0x40a4ee
mov dword [0x411bc8], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.0040a760
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00408ba0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x40a559
push 0
push ecx
push ebx
call fcn.00408ba0
add esp, 0xc
push ebx
call fcn.00409640
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x40a559
mov dword [0x411bc8], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x411bcc], eax
push 0
push edi
push ebx
call fcn.00408ba0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x411bc8], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x1000de18
Capabilities:
Authenticate hmac
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffff7
push 0x64
push eax
cmp dword [ebp + 0x10], 1
jne 0x1000e043
call fcn.1000df3e
invalid
and eax, edi
xor eax, eax
inc eax
leave
add esp, 4
ret 0xc
Function at 0x1000feb4
Capabilities:
Authenticate hmac

Disassembly:
pop dword [0x1002916c]
xor word [0x100293d3], 0xca1
Function at 0x10012eaa
Capabilities:
Authenticate hmac

Disassembly:
pop dword [0x10029479]
mov dword [0x10029166], eax
mov dword [0x1002965d], edx
mov dword [0x100296fa], eax
Function at 0x10014159
Capabilities:
Authenticate hmac

Disassembly:
pop dword [0x100292af]
mov dword [0x10029836], esi
Function at 0x10016839
Capabilities:
Authenticate hmac

Disassembly:
pop dword [0x1002932f]
call fcn.1001695f
sub dword [eax], 0x6f6a7600
jp 0x1001684d
insb byte es:[edi], dx
jno 0x100168a9
jb 0x10016852
insd dword es:[edi], dx
mov ebx, dword [eax + 0x73]
push edi
push 0x81557f72
jbe 0x100168d4
add byte [eax], 0x58
push ebp
add byte [ebx], bl
push esp
imul ebx, dword [edx], 0x5c587e58
pop esp
pop eax

Function at 0x10016a97
Capabilities:
Authenticate hmac

Disassembly:
pop dword [0x10029128]
or word [0x10029599], 0x31e
Function at 0x1001706a
Capabilities:
Authenticate hmac

Disassembly:
pop dword [0x100295bc]
call fcn.1001718d
pop esp
add byte [edi - 0x7c], ch
pop eax
pop ebx
insb byte es:[edi], dx
add byte [eax + eax], bl
lea ebp, [eax]
invalid

Function at 0x1001718d
Capabilities:
Authenticate hmac

Disassembly:
pop dword [0x10029715]
and word [0x100292e8], 0x5d8
mov dword [0x10029209], edx
Function at 0x466dc0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x403926
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401a48
mov eax, dword [0x4d11a8]
xor edi, edi
push edi
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x3c], edi
call dword [fcn.0040119c]
test ax, ax
jne 0x466f8a
mov eax, dword [0x4d11a8]
mov ecx, dword [eax]
lea edx, [ebp - 0x3c]
push edx
push eax
call dword [ecx + 0x88]
fnclex
cmp eax, edi
jge 0x466e3d
mov ecx, dword [0x4d11a8]
push 0x88
push 0x412a3c
push ecx
push eax
call dword [fcn.00401088]
cmp dword [ebp - 0x3c], 1
jne 0x466f8a
mov edx, dword [0x4d11a8]
push edx
lea eax, [ebp - 0x18]
push eax
call dword [fcn.004010cc]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0x42055c
call fcn.004c4b30
mov esi, dword [fcn.004012f8]
lea ecx, [ebp - 0x18]
call esi
mov edx, dword [ebp - 0x14]
push edx
call dword [fcn.00401020]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4d1248]
cmp eax, edi
mov dword [ebp - 0x28], 8
jne 0x466ea4
push 0x4d1248
push 0x404928
call dword [fcn.0040122c]
mov eax, dword [0x4d1248]
mov edx, dword [ebp - 0x28]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebp - 0x24]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x20]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x1c]
push 0xfffffdfa
mov dword [ecx + 0xc], edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x304]
mov edi, dword [fcn.004010c0]
push eax
lea edx, [ebp - 0x18]
push edx
call edi
mov ebx, dword [fcn.004012dc]
push eax
call ebx
lea ecx, [ebp - 0x18]
call esi
lea ecx, [ebp - 0x28]
call dword [fcn.0040102c]
mov eax, dword [0x4d11a8]
push eax
lea ecx, [ebp - 0x18]
push ecx
call dword [fcn.004010cc]
push eax
lea edx, [ebp - 0x14]
push edx
push 0x4205b4
call fcn.004c4b30
lea ecx, [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x14]
push eax
call dword [fcn.00401020]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4d1248]
test eax, eax
mov dword [ebp - 0x28], 8
jne 0x466f48
push 0x4d1248
push 0x404928
call dword [fcn.0040122c]
mov eax, dword [0x4d1248]
mov edx, dword [ebp - 0x28]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebp - 0x24]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x20]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x1c]
push 0xfffffdfa
mov dword [ecx + 0xc], edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x300]
push eax
lea edx, [ebp - 0x18]
push edx
call edi
push eax
call ebx
lea ecx, [ebp - 0x18]
call esi
lea ecx, [ebp - 0x28]
call dword [fcn.0040102c]
push 0x466fa5
jmp 0x466fa4
ret