joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435f80
Capabilities:
Check if file exists
Delete file
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x626fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00573e40
add esp, 0xc
mov dword [ebp - 0x214], 0x208
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push 0x5fe9bc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4360bb
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x5fe9ac
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x43601c
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e545
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push edi
push dword [ebp - 0x210]
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
nop word [eax + eax]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43606a
push 0x64
call edi
inc esi
cmp esi, 0x1e
jl 0x436040
jmp 0x436080
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x1005
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea eax, [ebp - 0x210]
push eax
push 2
push 0
push 0x5fe9bc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4360b8
push 0x5fe9ac
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x210]
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0056e545
mov esp, ebp
pop ebp
ret
Function at 0x4360d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x626fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.00573e40
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00573e40
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.00573e40
push 0
push 0
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.0057c95f
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0057c473
add esp, 0x44
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0057b0e4
push 0x600158
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0057b0e4
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
lea eax, [ebp - 0x20c]
add esp, 0x18
push eax
call esi
test eax, eax
jne 0x4361a7
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e545
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0057c473
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0057b0e4
push 0x60016c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0057b0e4
add esp, 0x24
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x436196
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0057c473
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0057b0e4
push 0x60013c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0057b0e4
add esp, 0x24
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x436196
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0057c473
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0057b0e4
push 0x600148
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0057b0e4
add esp, 0x24
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
neg eax
pop esi
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.0056e545
mov esp, ebp
pop ebp
ret
Function at 0x4366d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
sub ecx, edx
cmp ecx, 4
ja 0x4366ec
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
movsx eax, byte [edx + 2]
push ebx
movzx ebx, al
movsx eax, byte [edx + 3]
shl eax, 8
or ebx, eax
movsx eax, byte [edx + 1]
movzx eax, al
shl ebx, 8
or ebx, eax
movsx eax, byte [edx]
movzx eax, al
shl ebx, 8
push edi
or ebx, eax
xor edi, edi
lea eax, [ecx - 4]
push eax
lea ecx, [ebp - 0xc]
call fcn.004375a0
mov eax, dword [esi + 4]
lea ecx, [edi + 4]
sub eax, dword [esi]
cmp eax, ecx
jbe 0x43674c
mov edx, dword [ebp - 0xc]
mov eax, dword [esi]
mov al, byte [eax + ecx]
xor al, 0xb8
mov byte [edx + ecx - 4], al
inc ecx
movzx eax, al
xor edi, eax
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmp ecx, eax
jb 0x436732
cmp edi, ebx
je 0x436763
lea ecx, [ebp - 0xc]
xor bl, bl
call fcn.004117d0
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
cmp esi, eax
je 0x436797
mov ecx, esi
call fcn.004117d0
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc]
mov bl, 1
call fcn.004117d0
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x438180
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x626fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x5fff34
push 0x5ffef8
mov edi, edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4381bd
lea ecx, [ebp - 0x118]
push ecx
call eax
push 0x3c
lea eax, [ebp - 0x154]
push 0
push eax
call fcn.00573e40
add esp, 0xc
mov dword [ebp - 0x154], 0x3c
cmp dword [ebp - 0x114], 5
mov ecx, 0x6001fc
mov eax, 0x600208
mov dword [ebp - 0x150], 0x40
cmovne eax, ecx
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x154]
push eax
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x138], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0056e545
mov esp, ebp
pop ebp
ret

Function at 0x438240
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x626fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4382b2
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4382b2
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax + eax]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00573bb3
add esp, 8
test eax, eax
jne 0x4382cc
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x438290
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e545
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056e545
mov esp, ebp
pop ebp
ret

Function at 0x4382f0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x626fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 2
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x43837c
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x43837c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax + eax]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00573bb3
add esp, 8
test eax, eax
je 0x43836d
push dword [ebp - 0x228]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x438340
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0056e545
mov esp, ebp
pop ebp
ret
Function at 0x43bafa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0044834d
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43bb31
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0043bb52
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43f6cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x43f711
call fcn.0044834d
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x43f711
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x43f72d
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0044eb3f
mov ebx, eax
test edi, edi
je 0x43f72b
test esi, esi
je 0x43f72b
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x440139
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4401f7
cmp dword [esi + 0x20], 0
je 0x4401f7
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4401f7
cmp dword [ebp + 8], 0
je 0x4401f7
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0044834d
push 0x5c4ac0
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4401c8
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4401f7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.00451ad8
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x4401e8
test edi, edi
je 0x4401e8
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x4401f3
mov ecx, esi
call fcn.0043fedc
mov eax, ebx
jmp 0x4401f9
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x444709
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5bdbfb
call fcn.0056ebb4
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x44472f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x44478e
call fcn.00444df3
push eax
lea ecx, [ebp - 0x10]
call fcn.0040b190
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.0056eb77
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0057e5f0
push eax
call fcn.004098f0
add esp, 0x14
test esi, esi
je 0x444781
push esi
call fcn.0057e65c
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00409aa0
mov eax, ebx
call fcn.0056eb7d
ret 8

Function at 0x4535db
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x4535f5
mov edi, dword [esi + 0xc]
jmp 0x453635
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x45360e
call fcn.004469c2
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x453623
call fcn.004469c2
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x453635
call fcn.004469c2
call fcn.0044834d
cmp dword [eax + 0x3c], 0
je 0x45364a
push edi
mov ecx, ebx
call fcn.00452c6f
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00453827
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x453673
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x45367f
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x470eff
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00444653
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x470f3b
call fcn.00471121
mov dword [esi + 0xc], 1
jmp 0x470f40
call fcn.00471121
cmp dword [esi], 0
je 0x470f89
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x470f63
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0043f7a2
jmp 0x470f74
push 0xff
mov ecx, esi
call fcn.0040b150
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0043aa94
jmp 0x470fad
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x470fad
push dword [esi]
push dword [ebp - 4]
call fcn.0044a543
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x471076
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00471121
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4710be
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0043f7a2
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0043aa94
jmp 0x4710c9
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0044a543
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4a8f93
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x4a8fac
call fcn.0044834d
mov esi, dword [eax + 0xc]
push 0x6000a4
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4a9002
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4a9001
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4a8fe2
xor esi, esi
jmp 0x4a8ff8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.004a900a
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x58c867
Capabilities:
Read file on windows

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

Function at 0x591d32
Capabilities:
Set environment variable

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

Function at 0x59a486
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x401330
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x404
mov eax, dword [0x4249a8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [esp + 0x408], eax
call edi
push eax
lea eax, [esp + 0xc]
push eax
call fcn.004026f5
mov esi, eax
xor ecx, ecx
mov cx, word [esi]
push ecx
call fcn.004026e2
add esp, 0xc
test eax, eax
jne 0x401386
jmp 0x401370
xor edx, edx
mov dx, word [esi + 2]
add esi, 2
push edx
call fcn.004026e2
add esp, 4
test eax, eax
je 0x401370
lea eax, [esp + 8]
push 0x5c
push eax
mov word [esi], 0
call fcn.004026ad
add esp, 8
test eax, eax
jne 0x4013a2
call edi
jmp 0x4013a5
add eax, 2
cmp word [eax], 0
pop edi
mov ecx, eax
pop esi
je 0x4013bf
nop
cmp word [ecx], 0x20
je 0x4013bf
add ecx, 2
cmp word [ecx], 0
jne 0x4013b0
push eax
push str.Usage_:__n_ls__n_t_MasterPath____MASTER_DEVICE_PATH___n_t_DeviceType____DUMP_DEVICE_TYPE___n_t_DevicePath____DUMP_DEVICE_NAME___n_t_DatabaseName__DATABASE_NAME_TO_BE_DUMPED__n_t_AllTables______YES_OR_NO__n_t_Table_________TABLE_NAME__n_t_Silent________YES_OR_NO__n_t_InitTape______YES_OR_NO__n_t_UnloadTape____YES_OR_NO__n_t_TableFile_____NAMEOFFILE_WHICH_CONTAINS_LIST_OF_TABLES_TO_EXPORT_n_t_ExcludeTable__TABLENAME__n_t_CodePage_t_Server_CodePage_Override_n_t
push 0x424768
mov word [ecx], 0
call fcn.004025b2
mov ecx, dword [esp + 0x40c]
call fcn.0040274c
add esp, 0x410
ret

Function at 0x4013f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4249a8]
push esi
mov dword [esp + 0x21c], eax
lea eax, [esp + 4]
mov esi, ecx
mov ecx, dword [str.SoftwareMicrosoftMSSQLServerMSSQLServerParameters]
push eax
push ecx
push 0x80000002
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x401486
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 8]
mov word [esp + 0x18], ax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push str.SQLArg0
push edx
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x24], 2
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401486
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
add ecx, 0x84
push ecx
call fcn.004026f5
mov edx, dword [esi + 4]
add esp, 8
mov dword [edx + 0x2084], 0
mov eax, dword [esp + 4]
test eax, eax
pop esi
je 0x401496
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x218]
call fcn.0040274c
add esp, 0x21c
ret
Function at 0x4029aa
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x424e10], esi
push edi
jne 0x4029ca
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x424e0c], esi
mov byte [0x424e08], al
jne 0x402a30
mov ecx, dword [0x42538c]
test ecx, ecx
je 0x402a11
mov eax, dword [0x425388]
sub eax, 4
cmp eax, ecx
jmp 0x402a0a
mov eax, dword [eax]
test eax, eax
je 0x4029fc
call eax
mov eax, dword [0x425388]
sub eax, 4
cmp eax, dword [0x42538c]
mov dword [0x425388], eax
jae 0x4029f4
mov eax, 0x40c024
mov esi, 0x40c02c
cmp eax, esi
mov edi, eax
jae 0x402a30
mov eax, dword [edi]
test eax, eax
je 0x402a29
call eax
add edi, 4
cmp edi, esi
jb 0x402a21
mov eax, 0x40c030
mov esi, 0x40c038
cmp eax, esi
mov edi, eax
jae 0x402a4f
mov eax, dword [edi]
test eax, eax
je 0x402a48
call eax
add edi, 4
cmp edi, esi
jb 0x402a40
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x402a69
push dword [ebp + 8]
mov dword [0x424e10], 1
call fcn.00402906
pop ebp
ret

Function at 0x404aae
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00404e00
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404b49
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x424dd0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x404b49
cmp eax, 1
je 0x404b6a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404b49
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x404b16
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x404b45
xor eax, eax
inc eax
jmp 0x404b89
cmp edi, eax
jae 0x404b4d
xor eax, eax
jmp 0x404b89
cmp eax, esi
jae 0x404b54
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x424dd0]
jmp 0x404b6d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405951
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4249a8]
mov ecx, dword [ebp + 0x98]
push ebx
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4249f0]
je 0x405986
inc eax
cmp eax, 0x13
jb 0x405977
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4249f0]
jne 0x405aa9
mov eax, dword [0x424e20]
cmp eax, 1
je 0x405a84
cmp eax, edx
jne 0x4059b6
cmp dword [0x4249c0], 1
je 0x405a84
cmp ecx, 0xfc
je 0x405aa9
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4059ec
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.004073f0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00406130
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x405a20
mov eax, edi
push eax
call fcn.00406130
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40af7c
push edi
call fcn.004074f0
add esp, 0x10
push edi
call fcn.00406130
push dword [esi + 0x4249f4]
mov ebx, eax
call fcn.00406130
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00404e00
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004073f0
push edi
push ebx
call fcn.00407400
push 0x40af78
push ebx
call fcn.00407400
push dword [esi + 0x4249f4]
push ebx
call fcn.00407400
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004072f0
add esp, 0x2c
jmp 0x405aa9
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x4249f4]
push dword [esi]
call fcn.00406130
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x8c]
call fcn.0040274c
pop edi
pop esi
pop ebx
add ebp, 0x90
leave
ret