joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40572b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421d60
push esi
call sub.KERNEL32.dll_lstrcpyA
push esi
call fcn.00405d8e
push esi
call fcn.004056de
test eax, eax
jne 0x405750
xor eax, eax
jmp 0x40579f
test byte [0x424370], 0x80
je 0x405764
mov cl, byte [eax]
test cl, cl
je 0x40574c
cmp cl, 0x5c
je 0x40574c
mov edi, eax
sub edi, esi
jmp 0x40577e
call fcn.00405e2e
test eax, eax
je 0x405778
test byte [eax], 0x10
je 0x40574c
push esi
call fcn.00405692
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40576a
call fcn.0040564b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405810
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40583f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405883
test edi, edi
jne 0x40584a
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40587d
Function at 0x405887
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4058bf
push str.MoveFileExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4058bf
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405a03
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x422ae8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422ae8
je 0x405903
push 1
push 0
push esi
call fcn.00405810
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405a09
cmp eax, edi
jg 0x405a09
mov esi, 0x4226e8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405a09
cmp eax, edi
jg 0x405a09
push esi
push ebp
push str._s_s_r_n
push 0x4222e8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebp, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call sub.KERNEL32.dll_lstrcatA
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405a03
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x4059eb
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x4059df
push str._Rename__r_n
push edi
call fcn.004057a4
test eax, eax
jne 0x405a10
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call sub.KERNEL32.dll_lstrcpyA
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x4222e8
push eax
call fcn.004057f0
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x4243f0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40931c
push eax
call fcn.004057a4
test eax, eax
je 0x4059c6
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x405a39
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x405a2c
sub eax, edi
jmp 0x4059c8
Function at 0x405a3d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405aa1
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405a90
cmp dword [ebp + 0x14], 1
je 0x405a92
cmp dword [ebp + 0x14], 2
je 0x405a92
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x405e6c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422eec], 0
push esi
jne 0x405ea3
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405e7d
mov dword [ecx*4 + 0x422ee8], eax
inc ecx
cmp ecx, 0x100
jl 0x405e78
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405ed4
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422ee8]
xor eax, esi
inc ecx
dec edx
jne 0x405eb6
pop edi
not eax
pop esi
ret 0xc
Function at 0x401140
Capabilities:
Load windows common language runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x411d5c
call esi
push 0x411d70
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40116e
push 0x800
call eax
push 0x411d8c
call esi
push str.CLRCreateInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 4], 0
test eax, eax
je 0x4011e8
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push 0x411e2c
push 0x411e3c
call eax
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4011e0
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
push 0x411e4c
push str.v4.0.30319
push ecx
call dword [eax + 0xc]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4011e0
mov eax, dword [ecx]
lea edx, [esp + 4]
push edx
push 0x411dfc
push 0x411e1c
push ecx
call dword [eax + 0x24]
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x401207
lea eax, [esp + 4]
push eax
push 0x411dfc
push 0x411e1c
push 0
push 0
push 0
call dword [sym.imp.mscoree.dll_CorBindToRuntimeEx]
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x28]
mov eax, dword [esp + 4]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xc]
push edx
push 0x411e0c
push eax
mov ecx, dword [eax]
call dword [ecx]
mov edx, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
push str._RESOLVER
call fcn.00401010
mov edx, dword [esp + 0x10]
add esp, 4
mov ecx, dword [ebp + 8]
push str._ENTRYPOINT
call fcn.00401010
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401a94
Capabilities:
Parse pe header

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

Function at 0x40bf80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40bfad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40bfad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
jmp fcn.00431219
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x48061c50
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4806700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0x54
mov dword [ebp - 0x21c], 3
mov dword [ebp - 0x220], 1
mov dword [ebp - 8], 0
push 0x48061130
push 0x208
lea eax, [ebp - 0x218]
push eax
call fcn.48061b20
cmp dword [ebp + 0x10], 0
jne 0x48061cb2
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x48061dd3
cmp dword [ebp + 0xc], 0
je 0x48061cc2
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx]
test edx, edx
jne 0x48061cc9
mov dword [ebp + 0xc], 0x48061118
jmp 0x48061cd4
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 0x21c], 0
je 0x48061d8d
cmp dword [ebp - 8], 2
jae 0x48061d8d
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x224], ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x220]
push eax
push 0
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x48061d4e
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x21c], 0
je 0x48061d88
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x220]
push eax
call fcn.48064fe0
mov ecx, dword [ebp - 0x220]
cmp ecx, dword [ebp - 0x224]
jne 0x48061d7c
jmp 0x48061d8d
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x220], edx
jmp 0x48061ccb
cmp dword [ebp - 0x21c], 0
je 0x48061dce
cmp dword [ebp - 0x21c], 2
jne 0x48061dbd
mov eax, dword [ebp + 0xc]
push eax
call fcn.48064d60
test eax, eax
je 0x48061dbd
mov ecx, dword [ebp + 0xc]
push ecx
push 0x11
mov edx, dword [ebp + 0x10]
push edx
call fcn.48061ae0
jmp 0x48061dce
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x48061dd3
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.48065788
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48062e00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
rol esi, cl
inc ebp
stc
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.48062a7e
push eax
push esi
push dword [ebp + 8]
call fcn.48062a33
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.48062a7e
push eax
push esi
push dword [ebp + 8]
call fcn.48062a33
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
inc ebp
fld dword [esi + eax*8 + 0x45]
fimul dword [edx - 0x3a]
inc ebp
fisttp dword [edi - 0x3a]
inc ebp
fsub qword [edi - 0x3a]
inc ebp
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x48062f09
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.48062a7e
push eax
push esi
push dword [ebp + 8]
call fcn.48062a33
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.48062a6e
push 0x885004b6
popfd
jl 0x48062ef3
invalid
invalid
Function at 0x48063170
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x48063145
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x48063163
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
ror byte [ecx - 0x3e7443bb], cl
ror byte [ecx - 0x3e7443bb], cl
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x480631c1
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x480631a8
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x480631b1
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x480631bb
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4806319d
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x48063127
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4806320e
dec eax
je 0x48063205
sub eax, 3
je 0x480631fc
mov dword [ebp - 4], 0x40
jmp 0x4806322b
mov dword [ebp - 4], 4
jmp 0x48063211
mov dword [ebp - 4], 0x20
jmp 0x48063211
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4806325d
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x480631dd
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.48062a6e
dec eax
in eax, dx
push cs
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x48063269

Function at 0x48064620
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x786], 0x33
mov byte [ebp - 0x785], 0x3c
mov byte [ebp - 0x784], 0x30
mov byte [ebp - 0x783], 0x3a
mov byte [ebp - 0x782], 0x2d
mov byte [ebp - 0x781], 0x71
mov byte [ebp - 0x780], 0x3b
mov byte [ebp - 0x77f], 0x33
mov byte [ebp - 0x77e], 0x33
mov byte [ebp - 0x77d], 0x5f
push 0xc
lea eax, [ebp - 0x78c]
push eax
call fcn.48062a7e
pop ecx
push eax
mov eax, dword [ebp - 0x28]
lea eax, [ebp + eax - 0x12c]
push eax
call fcn.480629df
add esp, 0xc
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x3a0], eax
jmp 0x480649e6
Function at 0x48065170
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x4806700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x8c], 0x11
mov dword [ebp - 0x64], 0
cmp dword [ebp + 0x14], 0
jne 0x480651ab
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x480652be
cmp dword [ebp + 0xc], 0
jne 0x480651d0
lea eax, [ebp - 0x60]
push eax
push 0x48061118
call sym.instapi.dll_GetInstanceIDFromName
test eax, eax
jne 0x480651ca
xor eax, eax
jmp 0x480652be
lea ecx, [ebp - 0x60]
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 8], 0
je 0x480651e4
mov edx, dword [ebp + 8]
movzx eax, word [edx]
test eax, eax
jne 0x4806526e
mov dword [ebp - 0x90], 0
lea ecx, [ebp - 0x90]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x4806526e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0xea
je 0x48065231
mov edx, dword [ebp - 0x94]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x480652be
mov eax, dword [ebp - 0x90]
shl eax, 1
call fcn.480657b0
mov dword [ebp - 0x9c], esp
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x90]
push ecx
mov edx, dword [ebp - 0x64]
push edx
push 1
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x48065268
xor eax, eax
jmp 0x480652be
mov eax, dword [ebp - 0x64]
mov dword [ebp + 8], eax
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x88]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sym.instapi.dll_GetInstanceNameFromID
test eax, eax
jne 0x480652a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x480652be
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x88]
push ecx
mov edx, dword [ebp + 8]
push edx
call sym.instapi.dll_GetSQLServerByName
lea esp, [ebp - 0x9c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.48065788
mov esp, ebp
pop ebp
ret 0x10
Function at 0x480652e0
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x4806700c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x14], 0
jne 0x48065315
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x48065439
cmp dword [ebp + 8], 0
je 0x48065325
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x48065390
lea edx, [ebp - 8]
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x48065390
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0xea
je 0x4806535c
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x48065439
mov eax, dword [ebp - 8]
shl eax, 1
call fcn.480657b0
mov dword [ebp - 0x60], esp
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 4], ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x4806538a
xor eax, eax
jmp 0x48065439
mov ecx, dword [ebp - 4]
mov dword [ebp + 8], ecx
push 0x42
push 0
lea edx, [ebp - 0x58]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
call sym.instapi.dll_IsDefaultInstanceName
test eax, eax
jne 0x480653cb
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x4806183c
push 0x20
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.MSVCR80.dll__snwprintf]
add esp, 0x14
jmp 0x480653de
push 0x20
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x58]
push edx
call dword [sym.imp.MSVCR80.dll_wcsncpy]
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx]
ja 0x48065427
cmp dword [ebp + 0x10], 0
jne 0x4806540d
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x48065439
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.MSVCR80.dll_wcscpy]
add esp, 8
mov eax, 1
jmp 0x48065439
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [edx], eax
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
lea esp, [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.48065788
mov esp, ebp
pop ebp
ret 0x10

Function at 0x48065788
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4806700c]
jne 0x48065792
repz ret
jmp fcn.48065b37
Function at 0x4125db
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43bc60]
jne 0x4125e5
repz ret
jmp fcn.00417adb

Function at 0x421a51
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041aa70
and dword [ebp - 4], 0
cmp dword [0x43faf8], 0
mov ebx, eax
jne 0x421b02
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x421bb3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x421bb3
push eax
call fcn.0041a9fe
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43faf8], eax
call esi
push eax
call fcn.0041a9fe
mov dword [esp], 0x431960
push edi
mov dword [0x43fafc], eax
call esi
push eax
call fcn.0041a9fe
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43fb00], eax
call esi
push eax
call fcn.0041a9fe
pop ecx
mov dword [0x43fb08], eax
test eax, eax
je 0x421b02
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041a9fe
pop ecx
mov dword [0x43fb04], eax
mov eax, dword [0x43fb04]
cmp eax, ebx
je 0x421b5a
cmp dword [0x43fb08], ebx
je 0x421b5a
push eax
call fcn.0041aa79
push dword [0x43fb08]
mov esi, eax
call fcn.0041aa79
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x421b5a
test edi, edi
je 0x421b5a
call esi
test eax, eax
je 0x421b51
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x421b51
test byte [ebp - 0xc], 1
jne 0x421b5a
or dword [ebp + 0x10], 0x200000
jmp 0x421b93
mov eax, dword [0x43fafc]
cmp eax, ebx
je 0x421b93
push eax
call fcn.0041aa79
pop ecx
test eax, eax
je 0x421b93
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x421b93
mov eax, dword [0x43fb00]
cmp eax, ebx
je 0x421b93
push eax
call fcn.0041aa79
pop ecx
test eax, eax
je 0x421b93
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43faf8]
call fcn.0041aa79
pop ecx
test eax, eax
je 0x421bb3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x421bb5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret