joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100756f
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14c
push esi
push edi
mov esi, 0x10022d0
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [0x1009364]
movsd dword es:[edi], dword [esi]
push 0xa
pop ecx
mov esi, 0x10022a4
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x42
pop ecx
movsb byte es:[edi], byte [esi]
mov esi, 0x1002198
lea edi, [ebp - 0x148]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14c]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x3c]
push eax
push 0x80000002
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
pop edi
pop esi
jne 0x1007604
lea eax, [ebp - 0x148]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10075dc
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x148]
push eax
push 1
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x100760e
push 0x10017df
call fcn.0100601d
cmp dword [ebp - 0x14c], 0
je 0x1007623
push dword [ebp - 0x14c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
call fcn.01007f42
leave
ret

Function at 0x1007632
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor edi, edi
inc word [0x1009590]
movzx eax, word [0x1009590]
push eax
push 0x10022f8
push dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0xf003f
push 1
push edi
push edi
push dword [ebp + 0xc]
push dword [0x1009578]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0x10022dc
push eax
call fcn.01007216
cmp dword [ebp - 8], 2
jne 0x10076a6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1007729
cmp dword [ebp - 8], 1
jne 0x1007729
push ebx
push esi
call fcn.010068eb
movzx eax, word [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
pop ebx
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push 0x10020b8
push dword [ebp - 4]
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push 0x100208c
push dword [ebp - 4]
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push 0x10020e8
push dword [ebp - 4]
call esi
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push 0x1001f60
push dword [ebp - 4]
call esi
call fcn.010069ab
push ebx
push 0x1009574
push ebx
push edi
push 0x1002098
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop edi
leave
ret 8
Function at 0x1007733
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [ebp + 8]
push dword [0x1009578]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1007764
push 0x1002388
push eax
call fcn.01007216
jmp 0x100779a
push dword [ebp - 4]
call fcn.01007135
push dword [ebp + 8]
push dword [0x1009578]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x1007786
call fcn.010068fc
jmp 0x1007791
push 0x1002308
push eax
call fcn.01007216
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4

Function at 0x10077a3
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x1009364]
push ebx
push esi
push edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 7
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
mov byte [ebp - 0x24], 0
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x20
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
xor esi, esi
push eax
push esi
push dword [0x1009578]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x28], 1
call ebx
test eax, eax
jne 0x1007893
mov edi, 0xffff
jmp 0x1007803
xor esi, esi
lea eax, [ebp - 0x2c]
push eax
push 0xf003f
push esi
lea eax, [ebp - 0x24]
push eax
push dword [0x1009578]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1007876
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push 0x1001f60
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1007858
call fcn.01004fb3
cmp esi, dword [ebp - 0x34]
je 0x100786f
call fcn.01005033
movzx esi, ax
cmp esi, edi
jne 0x100784e
lea eax, [ebp - 0x24]
push eax
call fcn.01007733
jmp 0x1007876
mov byte [0x1009530], 0
mov eax, dword [ebp - 0x28]
inc dword [ebp - 0x28]
push 0x20
lea ecx, [ebp - 0x24]
push ecx
push eax
push dword [0x1009578]
call ebx
test eax, eax
je 0x1007801
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007f42
leave
ret
Function at 0x10078a5
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1009364]
push ebx
push edi
push 7
pop ecx
xor ebx, ebx
mov dword [ebp - 4], eax
xor eax, eax
mov byte [ebp - 0x24], bl
push 0x20
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop edi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push dword [0x1009578]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, ebx
jne 0x100794a
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x1007954
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x24]
dec eax
push ecx
mov dword [ebp - 0x2c], eax
push eax
jmp 0x100792c
lea eax, [ebp - 0x24]
push eax
call fcn.01007733
dec dword [ebp - 0x2c]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x2c]
push dword [0x1009578]
mov dword [ebp - 0x28], edi
call esi
cmp eax, ebx
je 0x1007911
cmp eax, 0x103
pop esi
je 0x1007954
push 0x10011c4
jmp 0x100794f
push 0x10023f0
call fcn.0100601d
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01007f42
leave
ret
Function at 0x1007c51
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edi
lea ecx, [ebp - 0x1c]
push ecx
push 0x1009578
xor edi, edi
push edi
push 0xf003f
xor eax, eax
inc eax
push eax
push edi
push edi
push str.SystemCurrentControlSetServicesCissesrvLogs
mov ebx, 0x80000002
push ebx
mov dword [ebp - 0xc], 0x1e
mov dword [ebp - 0x10], 0x20
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
call esi
push 0x10024b8
push eax
mov dword [ebp - 8], eax
call fcn.01007216
cmp dword [ebp - 8], edi
je 0x1007cb5
mov dword [0x1009578], edi
jmp 0x1007ccd
call fcn.010078a5
mov word [0x1009594], di
mov word [0x1009590], di
call fcn.010068c9
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 0xf003f
push 1
push edi
push edi
push str.SystemCurrentControlSetServicesCissesrvParameters
push ebx
call esi
mov esi, eax
push 0x100248c
push esi
call fcn.01007216
cmp esi, edi
jne 0x1007d50
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
pop ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push 0x100204c
push dword [ebp - 4]
call esi
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push 0x1002038
push dword [ebp - 4]
call esi
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push 0x100205c
push dword [ebp - 4]
call esi
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
push 0x1002478
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1007d53
mov dword [ebp - 4], edi
mov eax, dword [0x1009578]
cmp eax, edi
je 0x1007d61
cmp dword [ebp - 4], edi
jne 0x1007d63
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1007f42
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1009364]
jne 0x1007f53
test ecx, 0xffff0000
jne 0x1007f53
ret
jmp fcn.01007f5d
Function at 0x1008042
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1002530
call fcn.010081cc
cmp word [0x1000000], 0x5a4d
jne 0x1008081
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x1008081
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x100809a
cmp ecx, 0x20b
je 0x1008087
and dword [ebp - 0x1c], 0
jmp 0x10080b1
cmp dword [eax + 0x1000084], 0xe
jbe 0x1008081
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x10080ab
cmp dword [eax + 0x1000074], 0xe
jbe 0x1008081
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1009a30], 0xffffffff
or dword [0x1009a34], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10098c8]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10098c4]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1009a38], eax
call fcn.01008264
cmp dword [0x1009370], 0
jne 0x100810e
push fcn.01008264
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100824d
push 0x1001160
push 0x100115c
call sub.msvcrt.dll__initterm
mov eax, dword [0x10098c0]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10098bc]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x1001158
push 0x1001150
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100633e
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], 0
jne 0x1008186
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10081bb
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01008207
ret
Function at 0x403700
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [0x4385dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x2b4], 0x22c
call dword [0x42a02c]
mov esi, eax
lea eax, [ebp - 0x2b4]
push eax
push esi
call dword [0x42a024]
xor ecx, ecx
mov dword [ebp - 0x4c], 0x510051
xor bl, bl
mov dword [ebp - 0x48], 0x430050
mov dword [ebp - 0x44], 0x540052
mov dword [ebp - 0x40], 0x2e0050
mov dword [ebp - 0x3c], 0x780065
mov dword [ebp - 0x38], 0x65
mov dword [ebp - 0x34], 0x360033
mov dword [ebp - 0x30], 0x740030
mov dword [ebp - 0x2c], 0x610072
mov dword [ebp - 0x28], 0x2e0079
mov dword [ebp - 0x24], 0x780065
mov dword [ebp - 0x20], 0x65
mov dword [ebp - 0x88], 0x610042
mov dword [ebp - 0x84], 0x640069
mov dword [ebp - 0x80], 0x530075
mov dword [ebp - 0x7c], 0x530064
mov dword [ebp - 0x78], 0x630076
mov dword [ebp - 0x74], 0x65002e
mov dword [ebp - 0x70], 0x650078
mov word [ebp - 0x6c], cx
mov dword [ebp - 0x68], 0x78006b
mov dword [ebp - 0x64], 0x730065
mov dword [ebp - 0x60], 0x6f0063
mov dword [ebp - 0x5c], 0x650072
mov dword [ebp - 0x58], 0x65002e
mov dword [ebp - 0x54], 0x650078
mov word [ebp - 0x50], cx
mov dword [ebp - 0x1c], 0x610072
mov dword [ebp - 0x18], 0x6d0076
mov dword [ebp - 0x14], 0x6e006f
mov dword [ebp - 0x10], 0x2e0064
mov dword [ebp - 0xc], 0x780065
mov dword [ebp - 8], 0x65
test eax, eax
je 0x4038bf
mov edi, dword [0x42a028]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.0040b57e
add esp, 8
test eax, eax
je 0x4038bd
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.0040b57e
add esp, 8
test eax, eax
je 0x4038bd
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.0040b57e
add esp, 8
test eax, eax
je 0x4038bd
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.0040b57e
add esp, 8
test eax, eax
je 0x4038bd
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.0040b57e
add esp, 8
test eax, eax
je 0x4038bd
lea eax, [ebp - 0x2b4]
push eax
push esi
call edi
test eax, eax
jne 0x403833
jmp 0x4038bf
mov bl, 1
push esi
call dword [0x42a030]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a9af
mov esp, ebp
pop ebp
ret
Function at 0x406c20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x4385dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edx, ecx
lea esi, [ecx + 1]
jmp 0x406c40
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406c40
sub ecx, esi
mov dword [ebp - 0x7c], 0
push ecx
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x90], 0x67452301
mov dword [ebp - 0x8c], 0xefcdab89
mov dword [ebp - 0x88], 0x98badcfe
mov dword [ebp - 0x84], 0x10325476
call fcn.00406350
add esp, 4
lea edx, [ebp - 0x90]
lea ecx, [ebp - 0x14]
call fcn.00406420
xor esi, esi
lea edi, [ebp - 0x37]
mov bl, byte [ebp + esi - 0x14]
movzx eax, bl
push eax
lea eax, [edi - 1]
push 0x434ab0
push eax
call fcn.0040c24e
shl bl, 4
movzx eax, bl
push eax
push 0x434ab0
push edi
call fcn.0040c24e
inc esi
add esp, 0x18
add edi, 2
cmp esi, 0x10
jl 0x406ca1
push 0x20
lea eax, [ebp - 0x38]
push eax
push 0x43ad40
call fcn.0040cc30
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 0x43ad40
pop edi
pop esi
pop ebx
call fcn.0040a9af
mov esp, ebp
pop ebp
ret
Function at 0x4087e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4385dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x434fa4
push ecx
lea eax, [ebp - 0x14]
mov edi, edx
push eax
xor esi, esi
call fcn.004278a4
mov eax, dword [ebp - 0x14]
add esp, 0xc
test eax, eax
je 0x40888c
push esi
push 0x64
push eax
call fcn.00427978
add esp, 0xc
cmp eax, 0xffffffff
je 0x40886f
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push 1
push 0xa
push eax
call fcn.00427bc0
add esp, 0x10
cmp eax, 1
jne 0x40886f
lea eax, [ebp - 0x10]
push eax
call fcn.0041f6e0
push 0
push 0x73
push dword [ebp - 0x14]
mov esi, eax
call fcn.00427978
add esp, 0x10
cmp eax, 0xffffffff
je 0x40886f
push dword [ebp - 0x14]
push 1
push 0x4f
push edi
call fcn.00427bc0
xor ecx, ecx
add esp, 0x10
cmp eax, 1
cmovne esi, ecx
push dword [ebp - 0x14]
call fcn.0040da75
add esp, 4
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a9af
mov esp, ebp
pop ebp
ret
push 0x434fa8
call fcn.0040c5f8
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
call fcn.0040a9af
mov esp, ebp
pop ebp
ret

Function at 0x408ab0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4385dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x1c], eax
mov bl, 1
mov eax, dword [ebp + 0xc]
push 0x434fc8
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x18], ecx
push eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call fcn.004278a4
add esp, 0xc
test eax, eax
je 0x408b09
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a9af
mov esp, ebp
pop ebp
ret 0xc
push esi
push edi
push dword [ebp - 8]
call fcn.00427ffd
push 2
push 0
push dword [ebp - 8]
mov esi, eax
call fcn.00427978
push dword [ebp - 8]
call fcn.00427ffd
push 0
push esi
push dword [ebp - 8]
mov edi, eax
call fcn.00427978
push edi
call fcn.0040a1ec
push dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 1
push edi
push eax
call fcn.00427bc0
lea eax, [edi + edi*2]
push eax
mov dword [ebp - 0x10], eax
call fcn.0040a1ec
mov esi, eax
mov eax, dword [ebp - 0x18]
sub edi, eax
push edi
mov edi, dword [ebp - 0x14]
add eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.00422610
add esp, 0x48
test eax, eax
je 0x408b7a
xor bl, bl
jmp 0x408ba7
push 0x434fcc
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push eax
call fcn.004278a4
add esp, 0xc
test eax, eax
je 0x408b96
xor bl, bl
jmp 0x408ba7
push dword [ebp - 0xc]
push 1
push dword [ebp - 0x10]
push esi
call fcn.0040e1f4
add esp, 0x10
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x408bb7
push eax
call fcn.0040da75
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x408bc7
push eax
call fcn.0040da75
add esp, 4
test edi, edi
je 0x408bd4
push edi
call fcn.0040a9be
add esp, 4
test esi, esi
je 0x408be1
push esi
call fcn.0040a9be
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a9af
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4011a2
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x41a717
call fcn.00418610
sub esp, 0x40
mov eax, dword [0x427480]
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
xor eax, ebp
lea ecx, [esi + 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov dword [ebp - 4], edi
lea ecx, [esi + 0x30]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [ebp - 4], 1
lea ecx, [esi + 0x4c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [ebp - 4], 2
lea ecx, [esi + 0x68]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [ebp - 4], 3
lea ecx, [esi + 0x84]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [ebp - 4], 4
lea eax, [ebp - 0x4c]
push eax
call fcn.0040c4c5
mov byte [ebp - 4], 5
mov dword [esp], str.XLBugHandler.dll
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00401149
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x401294
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._XL_SetBugReportRootDir_4
push ebx
call edi
push str._XL_InitBugHandler_20
push ebx
mov dword [esi], eax
call edi
push str._XL_SetPeerID_4
push ebx
mov dword [esi + 4], eax
call edi
push str._XL_SetReportShowMode_4
push ebx
mov dword [esi + 8], eax
call edi
push str._XL_SetAlwaysSendReport_4
push ebx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004186c1
leave
ret
Function at 0x403aa2
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x403ae2
mov esi, dword [esp + 0x10]
cmp dword [esi + 4], 0
je 0x403ae2
mov ebx, dword [sym.imp.ADVAPI32.dll_IsValidSid]
push eax
call ebx
test eax, eax
je 0x403ae2
push dword [esi + 4]
call ebx
test eax, eax
je 0x403ae2
push dword [esi + 4]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
jmp 0x403ae4
xor al, al
pop edi
pop esi
pop ebx
ret 4

Function at 0x403b71
Capabilities:
Check if file exists
Create process on windows

Disassembly:
mov eax, 0x41aa75
call fcn.00418610
sub esp, 0x280
mov eax, dword [0x427480]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor eax, ebp
push edi
mov dword [ebp - 0x10], eax
xor esi, esi
xor eax, eax
mov word [ebp - 0x218], si
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str..._net_monitor_i.exe
lea eax, [ebp - 0x218]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403c99
push 0x41d910
lea ecx, [ebp - 0x28c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [ebp - 4], esi
push ebx
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004039b9
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0x26c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x270], 0x3c
mov dword [ebp - 0x26c], 0x40
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x264], str.open
mov dword [ebp - 0x260], eax
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x270]
push eax
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x250], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.004186c1
leave
ret