joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
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
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219

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

Disassembly:
pushal
call 0x43100c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x43b63f
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
dec eax
add edx, 0xae85db7f
add eax, eax
call fcn.0043b67d
dec eax
dec eax
mov edx, eax
xor dword [edi], ebx
sub eax, eax
inc edi
add eax, 0xccf9a9ff
cmp edi, esi
jne fcn.0043b63f
sub esp, 4
mov dword [esp], 0xdc4795a9
pop edx
ret
Function at 0x92c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x92c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x92c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x92c06a
add dl, dl
jne 0x92c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x92c0dc
xor eax, eax
add dl, dl
jne 0x92c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x92c17d
add dl, dl
jne 0x92c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x92c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x92c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x92c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x92c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x92c075
mov eax, 1
add dl, dl
jne 0x92c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x92c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x92c0e1
sub eax, ebx
mov ebx, 1
jne 0x92c128
mov ecx, 1
add dl, dl
jne 0x92c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x92c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x92c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x92c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x92c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x92c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x92c136
cmp eax, 0x7d00
jae 0x92c16d
cmp eax, 0x500
jb 0x92c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x92c075
cmp eax, 0x7f
ja 0x92c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x92c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x92c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x92c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x44c323
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x46b578
call fcn.0044ca51
push 1
call fcn.0044c4de
pop ecx
test al, al
jne 0x44c1cc
push 7
call fcn.0044d2fd
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0044c4a9
mov byte [ebp - 0x24], al
mov eax, dword [0x484c10]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x44c1c5
test eax, eax
jne 0x44c236
mov dword [0x484c10], ecx
push 0x45151c
push 0x451504
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x44c219
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x44c31d
push 0x451500
push 0x451440
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x484c10], 2
jmp 0x44c23b
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0044c63b
pop ecx
call fcn.0044d2f1
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x44c26b
push esi
call fcn.0044c5ae
pop ecx
test al, al
je 0x44c26b
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0044d52c
call esi
call fcn.0044d2f7
mov esi, eax
cmp dword [esi], edi
je 0x44c289
push esi
call fcn.0044c5ae
pop ecx
test al, al
je 0x44c289
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.0044d412
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.0044d445
test al, al
jne 0x44c2c2
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x44c2cb
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0044c658
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x44c31d
call fcn.0044ca97
ret
call fcn.0044c032
jmp 0x44c1ad

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x5708c0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x5708f8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x5708ee
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x5708fa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x5708e0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x402c10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
dec dword [ecx - 0xbb7b]
dec dword [ebp + 0x5d88d445]
aam 0x50
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
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0040280b
push eax
push esi
push dword [ebp + 8]
call fcn.004027c0
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004027fb
jmp 0x402c99
push ecx
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.004027fb
sbb cl, bl
mov bl, 0xbc
lea eax, [ebp - 0x84]
push eax
call fcn.0040280b
push eax
push esi
push dword [ebp + 8]
call fcn.004027c0
add esp, 0x10
mov dword [ebp - 0xc0], eax
push 0x40
push 0x1000
push dword [ebp + 0xc]
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je 0x402ff4
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.0040276c
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x402d6b
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.0040276c
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x402d38
call fcn.004027fb
dec ebx
wait
jns 0x402d49
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0x88], edi
invalid
invalid
Function at 0x402f30
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x402ed2
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x402ef0
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
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x402f4e
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 0x402f35
invalid
add al, 0x80
or al, 8
add dword [ecx], edi
pop ebp
or byte [esp + eax - 0x80], dh
or al, 8
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x402f3e
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x402f48
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x402f2a
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x402eb4
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 0x402f9b
dec eax
je 0x402f92
sub eax, 3
je 0x402f89
mov dword [ebp - 4], 0x40
jmp 0x402fb8
mov dword [ebp - 4], 4
jmp 0x402f9e
mov dword [ebp - 4], 0x20
jmp 0x402f9e
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
invalid
xchg ebp, eax
Function at 0x4030e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.0040280b
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004027c0
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
cmpsb byte [esi], byte es:[edi]
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.0040280b
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004027c0
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.004027fb
and dword [edx], eax
jns 0x40326e
and byte [ebp - 0x534], 0
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
movsd dword es:[edi], dword [esi]
int3
mov byte [ebp - 0x530], 0xd4
Function at 0x404e10
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x94
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0x64], eax
mov dword [ebp - 0x28], 0x11
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x7c], 0
jne 0x404e4a
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x404f2e
cmp dword [ebp + 0x74], 0
jne 0x404e71
lea eax, [ebp - 0x14]
push eax
push 0
push str.MSSQLSERVER
call sym.instapi120.dll_GetSvcInstanceIDFromName
test eax, eax
jne 0x404e6b
xor eax, eax
jmp 0x404f2e
lea ecx, [ebp - 0x14]
mov dword [ebp + 0x74], ecx
cmp dword [ebp + 0x70], 0
je 0x404e81
mov edx, dword [ebp + 0x70]
movzx eax, word [edx]
test eax, eax
jne 0x404eed
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x404eed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xea
je 0x404ebc
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x404f2e
mov eax, dword [ebp - 0x1c]
shl eax, 1
call fcn.00406b30
mov dword [ebp - 0x24], esp
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 1
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x404ee7
xor eax, eax
jmp 0x404f2e
mov eax, dword [ebp - 0x18]
mov dword [ebp + 0x70], eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp + 0x40]
push edx
mov eax, dword [ebp + 0x74]
push eax
call sym.instapi120.dll_GetInstanceNameFromID
test eax, eax
jne 0x404f19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x404f2e
mov edx, dword [ebp + 0x7c]
push edx
mov eax, dword [ebp + 0x78]
push eax
lea ecx, [ebp + 0x40]
push ecx
mov edx, dword [ebp + 0x70]
push edx
call sym.instapi120.dll_GetSQLServerByName
lea esp, [ebp - 0x2c]
mov ecx, dword [ebp + 0x64]
xor ecx, ebp
call fcn.0040623d
add ebp, 0x68
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405770
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x14], 0x80
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x10]
mov ax, word [edx]
mov word [ebp - 2], ax
add dword [ebp - 0x10], 2
cmp word [ebp - 2], 0
jne 0x40578e
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x20]
sar ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
shl ecx, 1
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40588b
push 5
push str._dp_
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004051a0
movzx ecx, al
test ecx, ecx
je 0x405829
mov edx, dword [ebp - 8]
cmp edx, dword [0x409378]
jb 0x40581e
mov eax, dword [0x409378]
shl eax, 1
push eax
push 0x409388
mov ecx, dword [ebp - 0xc]
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov edx, dword [0x409378]
mov dword [ebp - 0x1c], edx
jmp 0x40583e
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 8]
jle 0x405884
mov ecx, dword [ebp - 0x14]
shl ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 8]
shl ecx, 1
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
jmp 0x405886
jmp 0x40588b
jmp 0x4057d5
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x4058a0
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0x80
mov eax, dword [ebp - 4]
shl eax, 1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4059b9
mov dword [ebp - 8], 0xffffffff
cmp dword [ebp + 8], 0
je 0x405926
cmp dword [ebp + 0xc], 0
je 0x405926
push 0x409798
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0x407c58
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
sub edx, 1
cmp dword [ebp - 8], edx
je 0x405926
mov eax, dword [ebp - 0xc]
push eax
call fcn.00405150
test eax, eax
je 0x405926
mov dword [ebp - 8], 0xffffffff
cmp dword [ebp - 8], 0xffffffff
jne 0x40594f
push 0x409590
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0x407c58
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
je 0x405966
cmp dword [ebp + 0xc], 0
je 0x405966
mov edx, dword [ebp - 4]
sub edx, 1
cmp dword [ebp - 8], edx
je 0x40597d
cmp dword [ebp + 8], 0
je 0x405972
cmp dword [ebp + 0xc], 0
jne 0x4059b2
mov eax, dword [ebp - 4]
sub eax, 2
cmp dword [ebp - 8], eax
jne 0x4059b2
mov ecx, dword [ebp - 4]
shl ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
shl eax, 1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
jmp 0x4059b4
jmp 0x4059b9
jmp 0x4058c7
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x40623d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x406247
repz ret
jmp fcn.004065f6
Function at 0x10001d90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push str.______ViewFolder___IN______
push 0x80000
mov esi, ecx
call fcn.10001000
mov edi, dword [ebp + 8]
push edi
push str.lpszFolderPath___s
push 0x40000
call fcn.10001000
add esp, 0x14
push 5
push 0
push 0
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
cmp edi, 0x20
jbe 0x10001de0
mov dword [esi + 4], 0
jmp 0x10001e01
mov dword [esi + 4], 7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.ViewFolder_failed__hInst__0x_X__LastError___d
push 0x20000
call fcn.10001000
add esp, 0x10
mov eax, dword [esi + 4]
push eax
push str.______ViewFolder___OUT_______return___d
push 0x80000
call fcn.10001000
mov eax, dword [esi + 4]
add esp, 0xc
pop edi
pop esi
pop ebp
ret 4

Function at 0x10002500
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push edi
push str.ViewWebPage_URL___s
push 0x40000
mov esi, ecx
call fcn.10001000
add esp, 0xc
push 5
push 0
push 0
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x10002546
mov dword [esi + 4], 0
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebp
ret 4
mov dword [esi + 4], 8
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebp
ret 4
Function at 0x10002620
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x101685e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x40e
mov esi, ecx
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.100fb220
push str.______LaunchExtApp___IN______
push 0x80000
call fcn.10001000
push ebx
push edi
push esi
push str.lpszAppPath__0x_X__lpszCmdLine__0x_X__lpszFolderPath__0x_X
push 0x40000
call fcn.10001000
add esp, 0x28
mov ecx, 0x44
lea eax, [ebp - 0x468]
mov byte [eax], 0
inc eax
dec ecx
jne 0x10002680
mov dword [ebp - 0x468], 0x44
test esi, esi
jne 0x100026b7
test edi, edi
jne 0x100026b7
test ebx, ebx
jne 0x100026b7
push str.LaunchExtApp_param_error
push 0x20000
lea esi, [ecx + 1]
call fcn.10001000
add esp, 8
jmp 0x10002795
push ebx
push str.lpszFolderPath__0x_X
push 0x40000
call fcn.10001000
add esp, 0xc
test edi, edi
je 0x10002705
push edi
test esi, esi
je 0x100026f1
push esi
push str._s__s
lea edx, [ebp - 0x414]
push 0x208
push edx
call fcn.100fa3fd
add esp, 0x14
xor esi, esi
jmp 0x10002705
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.100fa729
add esp, 0xc
lea ecx, [ebp - 0x414]
push ecx
push str.Start_CreateProcess_CmdLine___s
push 0x40000
call fcn.10001000
add esp, 0xc
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x468]
push eax
push ebx
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x414]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10002777
mov edx, dword [ebp - 0x424]
push 0x1388
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [ebp - 0x420]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x424]
push ecx
call esi
xor esi, esi
jmp 0x10002795
mov esi, 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess_failed._LastError___d
push 0x20000
call fcn.10001000
add esp, 0xc
push esi
push str.______LaunchExtApp___OUT_______return___d
push 0x80000
call fcn.10001000
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100fa3ee
mov esp, ebp
pop ebp
ret