joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416160
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push edi
push 0x41c228
push eax
call fcn.00405fc8
mov edi, eax
add esp, 8
test edi, edi
jne 0x41617d
xor al, al
pop edi
ret
push esi
push 0
push 0
push edi
call fcn.00405e7f
push 8
call fcn.00404e5f
push edi
push 8
mov esi, eax
push 1
push esi
call fcn.00405bcd
add esp, 0x20
cmp eax, 8
jne 0x4161d2
cmp byte [esi], 0x4d
jne 0x4161d2
cmp byte [esi + 1], 0x4c
jne 0x4161d2
mov ecx, dword [esi + 2]
mov edx, dword [esp + 0x10]
xor ecx, 0xfd83e91a
push esi
mov dword [edx], ecx
call fcn.00405824
push edi
call fcn.004058b1
add esp, 8
pop esi
mov al, 1
pop edi
ret
push esi
call fcn.00405824
push edi
call fcn.004058b1
add esp, 8
pop esi
xor al, al
pop edi
ret

Function at 0x4161f0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x41c228
push eax
call fcn.00405fc8
mov esi, eax
add esp, 8
test esi, esi
jne 0x41620d
xor al, al
pop esi
ret
push edi
push 2
push 0
push esi
call fcn.00405e7f
push esi
call fcn.00405d87
push 0
push 0
push esi
mov edi, eax
call fcn.00405e7f
push edi
call fcn.00404e5f
mov ecx, dword [esp + 0x30]
push esi
push edi
push 1
push eax
mov dword [ecx], eax
call fcn.00405bcd
add esp, 0x30
push esi
cmp eax, edi
je 0x416255
call fcn.004058b1
add esp, 4
pop edi
xor al, al
pop esi
ret
mov edx, dword [esp + 0x18]
mov dword [edx], edi
call fcn.004058b1
add esp, 4
pop edi
mov al, 1
pop esi
ret

Function at 0x416560
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x2c]
push ebp
push esi
mov ebp, dword [edi + 0x3c]
sub ebp, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea edx, [ebx + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x4165de
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00405140
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x4165b1
sub eax, ebx
jmp 0x4165b3
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x4165a2
mov ecx, dword [edi + 0x40]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x4165d2
sub eax, ebx
jmp 0x4165d4
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x4165c3
add ebp, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x416639
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
mov ecx, ebp
add edx, dword [edi + 0x38]
push edx
call fcn.00416420
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
add esp, 4
cmp edx, 3
jb 0x416625
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x416639
mov edx, dword [edi]
cmp dword [edx + 4], 0
jne 0x416566
pop esi
pop ebp
pop ebx
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, eax
shr edi, 2
xor edx, edx
test edi, edi
jle 0x40103d
push ebx
lea ecx, [ecx]
mov ecx, dword [esi + edx*4]
mov eax, ecx
shl ecx, 0x10
shr eax, 0x10
or eax, ecx
mov ecx, eax
shr ecx, 8
mov ebx, eax
shl ebx, 8
xor ecx, ebx
and ecx, 0xff00ff
shl eax, 8
xor ecx, eax
mov dword [esi + edx*4], ecx
inc edx
cmp edx, edi
jl 0x401010
pop ebx
pop edi
ret
Function at 0x405990
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SOFTWAREWinSock2Kaseya_Agent_LSP
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405a67
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, 0x40
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push eax
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x34], 0x100
call esi
cmp eax, 0x103
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
je 0x405a47
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
push eax
call ebx
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push eax
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x34], 0x100
call esi
cmp eax, 0x103
jne 0x405a04
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SOFTWAREWinSock2Kaseya_Agent_LSP
push 0x80000002
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406140
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, eax
xor eax, eax
mov dword [esp + 0x30], eax
xor ecx, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x40], eax
mov eax, dword [esi]
mov dword [esp + 0x50], ecx
push edi
xor edi, edi
mov dword [esp + 0x58], ecx
xor ebp, ebp
xor ebx, ebx
cmp eax, 0x5cd0009
mov dword [esp + 0x30], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], edi
jne 0x406244
cmp dword [esi + 8], 6
jne 0x406244
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x68]
lea eax, [esp + 0x34]
push eax
lea ecx, [esi + 0xc]
push ecx
push 6
push edx
push esi
call fcn.0040cf70
add esp, 0x18
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x406229
cmp dword [esp + 0x5c], 4
jne 0x406229
cmp dword [esp + 0x4c], edi
mov edx, dword [esp + 0x34]
jg 0x4061ef
mov edx, edi
cmp dword [esp + 0x50], edi
mov ecx, dword [esp + 0x38]
jg 0x4061fd
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x54], edi
jle 0x406207
mov ebp, dword [esp + 0x3c]
cmp dword [esp + 0x58], edi
jle 0x406211
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
push eax
push ebx
push ebp
push ecx
push edx
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [esp + 0x10], eax
jmp 0x406231
mov dword [esp + 0x10], 0x7d0
mov edx, dword [esi + 8]
lea ecx, [esp + 0x30]
push ecx
push edx
call fcn.0040d090
add esp, 8
jmp 0x40624c
mov dword [esp + 0x10], 0x7d0
lea ecx, [esp + 0x24]
push ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x24], eax
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 4]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esi]
push 1
push edx
push eax
push ecx
mov dword [esp + 0x3c], 4
call fcn.0040ce20
add esp, 0x20
mov dword [esp + 0x10], eax
cmp eax, edi
mov eax, dword [esp + 0x14]
jne 0x4062bd
cmp eax, edi
mov ecx, dword [esp + 0x24]
jne 0x40629e
cmp ecx, edi
jg 0x4062bd
push 3
push ecx
push eax
call fcn.0040c720
add esp, 0xc
mov dword [esp + 0x10], eax
cmp eax, edi
mov eax, dword [esp + 0x14]
je 0x4062c5
mov esi, 0x7d3
jmp 0x4062c9
mov dword [esp + 0x18], 0x7d2
mov esi, dword [esp + 0x18]
cmp eax, edi
je 0x4062d6
push eax
call fcn.004143d6
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
Function at 0x407b10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x314
push edi
xor eax, eax
mov ecx, 0x42
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x110]
push eax
push 0xc
call fcn.0040f6b0
lea eax, [esp + 0x11c]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407b46
sub eax, edx
test eax, eax
jle 0x407bb2
cmp eax, 0x100
jge 0x407bb2
lea ecx, [esp + 0x114]
push 0x421a30
push ecx
call fcn.00414350
add esp, 8
test eax, eax
jne 0x407b95
mov eax, dword [str.http:__]
lea edx, [esp + 0x114]
push edx
push eax
lea ecx, [esp + 0x10]
push str._s_s
push ecx
call fcn.004142bd
add esp, 0x10
jmp 0x407bee
xor eax, eax
jmp 0x407ba0
mov cl, byte [esp + eax + 0x114]
mov byte [esp + eax + 8], cl
inc eax
test cl, cl
jne 0x407ba0
jmp 0x407bee
mov edx, dword [str.http:__www.kaseya.com]
mov eax, dword [0x4219b0]
mov ecx, dword [0x4219b4]
mov dword [esp + 8], edx
mov edx, dword [0x4219b8]
mov dword [esp + 0xc], eax
mov eax, dword [0x4219bc]
mov dword [esp + 0x10], ecx
mov cx, word [0x4219c0]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], cx
push 1
push 0
push 0
lea edx, [esp + 0x14]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x407d70
Capabilities:
Get file version info

Disassembly:
sub esp, 0x118
push ebp
mov ebp, dword [esp + 0x120]
test ebp, ebp
mov dword [esp + 0x10], 0
je 0x407f3b
mov edx, dword [esp + 0x124]
test edx, edx
je 0x407f3b
push ebx
mov ebx, dword [esp + 0x12c]
push esi
push edi
xor eax, eax
mov ecx, ebx
mov esi, ecx
shr ecx, 2
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov edi, edx
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [0x421a90]
mov edx, dword [0x421a94]
mov eax, dword [str.agentmon.exe]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], eax
mov al, byte [0x421a98]
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x34], al
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x407e51
push esi
call fcn.00414902
mov edi, eax
add esp, 4
xor eax, eax
test edi, edi
mov dword [esp + 0x14], edi
je 0x407e53
mov ecx, esi
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push edi
push esi
push eax
lea ecx, [esp + 0x2c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x407e5e
push edi
call fcn.004143d6
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x118
ret
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push str.StringFileInfo000004b0ProductVersion
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x407ea7
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
mov esi, dword [esp + 0x10]
mov edi, ebp
jge 0x407e95
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x407eb6
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x407eb6
push ebx
push str.Unknown
push ebp
call fcn.00414960
add esp, 0xc
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push str.StringFileInfo000004b0ProductBuild
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x407f08
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
mov edi, dword [esp + 0x130]
mov esi, dword [esp + 0x10]
jge 0x407ef6
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x407f1e
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x407f1e
mov ecx, dword [esp + 0x130]
push ebx
push str.Unknown
push ecx
call fcn.00414960
add esp, 0xc
mov edx, dword [esp + 0x14]
push edx
call fcn.004143d6
add esp, 4
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
add esp, 0x118
ret
xor eax, eax
pop ebp
add esp, 0x118
ret
Function at 0x408480
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20
push esi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 8]
push ecx
mov esi, 1
call fcn.0040c9f0
add esp, 8
push str.GlobalKaUsrTaskMutex
push esi
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [0x427698], eax
je 0x4084e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4084c9
xor eax, eax
pop esi
add esp, 0x20
ret
mov eax, dword [0x427698]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov dword [0x427698], 0
pop esi
add esp, 0x20
ret
or eax, 0xffffffff
pop esi
add esp, 0x20
ret
Function at 0x408560
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x42081b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x427680]
push ebx
push ebp
push esi
xor esi, esi
or ebp, 0xffffffff
xor ebx, ebx
cmp eax, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], esi
je 0x4086f8
cmp dword [edi], 0x5cd000f
jne 0x4086f0
cmp dword [edi + 8], 2
jne 0x4086f0
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x28]
push ecx
lea edx, [edi + 0xc]
push edx
push 2
push eax
push edi
call fcn.0040cf70
add esp, 0x18
cmp eax, esi
mov dword [esp + 0xc], eax
jne 0x4086d5
cmp dword [esp + 0x2c], 4
jne 0x4086d5
cmp dword [esp + 0x30], esi
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
jle 0x40860e
mov ebx, dword [esp + 0x28]
mov eax, edx
and eax, 0xffff
cmp eax, 0x64
jne 0x408682
cmp dword [0x427690], esi
jne 0x40866d
push 0xc
call fcn.00415011
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, esi
mov dword [esp + 0x3c], esi
je 0x408641
mov ecx, eax
call fcn.00410c00
jmp 0x408643
xor eax, eax
cmp eax, esi
mov dword [esp + 0x3c], 0xffffffff
mov dword [0x427690], eax
je 0x40866d
mov edx, dword [0x427680]
push 0x8001
push edx
mov ecx, eax
call fcn.00410da0
xor ebp, ebp
mov dword [esp + 0xc], esi
cmp ebx, esi
je 0x4086dd
mov cl, byte [ebx]
xor eax, eax
cmp cl, 0x31
sete al
mov dword [0x42768c], eax
jmp 0x4086dd
cmp eax, 0x65
mov ecx, dword [0x427690]
jne 0x4086be
cmp ecx, esi
je 0x4086dd
call fcn.00410c30
mov ecx, dword [0x427690]
cmp ecx, esi
mov ebx, ecx
je 0x4086b0
call fcn.00410c20
push ebx
call fcn.00414914
add esp, 4
mov dword [0x427690], esi
xor ebp, ebp
mov dword [esp + 0xc], esi
jmp 0x4086dd
cmp ecx, esi
je 0x4086dd
push ebx
push edx
call fcn.00410e70
test eax, eax
je 0x4086dd
xor ebp, ebp
mov dword [esp + 0xc], esi
jmp 0x4086dd
mov dword [esp + 0xc], 0x7d0
mov edx, dword [edi + 8]
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.0040d090
add esp, 8
jmp 0x4086f8
mov dword [esp + 0xc], 0x7d0
lea ecx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [edi + 4]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [edi]
push 1
push edx
push eax
push ecx
mov dword [esp + 0x34], 4
call fcn.0040ce20
add esp, 0x20
mov dword [esp + 0xc], eax
cmp eax, esi
mov eax, dword [esp + 0x10]
jne 0x408769
cmp eax, esi
mov ecx, dword [esp + 0x1c]
jne 0x40874a
cmp ecx, esi
jg 0x408769
push 3
push ecx
push eax
call fcn.0040c720
add esp, 0xc
mov dword [esp + 0xc], eax
cmp eax, esi
mov eax, dword [esp + 0x10]
je 0x40876e
mov ebp, 0x7d3
jmp 0x40876e
mov ebp, 0x7d2
cmp eax, esi
je 0x40877b
push eax
call fcn.004143d6
add esp, 4
mov ecx, dword [esp + 0x34]
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x409450
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4278ac]
test eax, eax
push esi
mov esi, dword [esp + 8]
jne 0x40949c
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push esi
mov dword [0x4278ac], 1
call edi
mov eax, dword [0x427684]
push 0
push 0x407f50
push esi
push 0x70
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 0
push esi
call edi
pop edi
mov dword [0x4278ac], 0
pop esi
ret
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
pop esi
ret

Function at 0x4094b0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4278b0]
test eax, eax
jne 0x409502
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push esi
mov dword [0x4278b0], 1
call edi
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [0x427684]
push 0
push 0x408a40
push esi
push 0x73
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 0
push esi
call edi
pop edi
mov dword [0x4278b0], 0
pop esi
ret
Function at 0x409f40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x24]
mov eax, dword [esi]
lea ecx, [esp + 0x24]
push ecx
push 0x20019
push 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x18], 0
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a013
mov ecx, dword [esi]
mov edx, dword [esp + 0x20]
push ebx
mov ebx, ecx
shr ecx, 2
push edi
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
test eax, eax
je 0x409fef
lea ecx, [esp + 0x10]
push ecx
push edx
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x2c]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x409fd6
pop edi
pop ebx
mov eax, 0xfffffffe
pop esi
add esp, 8
ret
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
pop edi
mov dword [edx], eax
pop ebx
mov dword [esi], ecx
xor eax, eax
pop esi
add esp, 8
ret
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
mov dword [eax], 0x1020001
pop ebx
mov dword [esi], 0
xor eax, eax
pop esi
add esp, 8
ret
or eax, 0xffffffff
pop esi
add esp, 8
ret
Function at 0x40a300
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0xc
push edi
push str.KaseyaLangXlateListSema
push 0
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
jne 0x40a348
push str.ERROR:_Failed_to_create_list_mutex_in_unloadLangXml___n
call fcn.00409e90
add esp, 4
xor eax, eax
pop edi
add esp, 0xc
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1388
push edi
call esi
cmp eax, 0x80
jne 0x40a366
push 0x1388
push edi
call esi
test eax, eax
je 0x40a386
push str.ERROR:_Failed_to_obtain_list_mutex_in_unloadLangXml___n
call fcn.00409e90
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
add esp, 0xc
ret
mov esi, dword [0x427ae8]
test esi, esi
je 0x40a3a1
mov eax, esi
mov esi, dword [esi]
push eax
call fcn.004143d6
add esp, 4
test esi, esi
jne 0x40a390
push edi
mov dword [0x427ae8], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
add esp, 0xc
ret

Function at 0x40a3d0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x1c]
push edi
xor edi, edi
cmp ebx, edi
jne 0x40a3e8
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0xc
ret
push ebp
push str.KaseyaLangXlateListSema
push edi
lea eax, [esp + 0x14]
push eax
mov dword [ebx], edi
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebp, eax
cmp ebp, edi
jne 0x40a42c
push str.ERROR:_Failed_to_create_list_mutex_in_getLangXlateStr___n
call fcn.00409e90
add esp, 4
pop ebp
mov eax, edi
pop edi
pop ebx
add esp, 0xc
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1388
push ebp
call esi
cmp eax, 0x80
jne 0x40a44a
push 0x1388
push ebp
call esi
test eax, eax
je 0x40a46c
push str.ERROR:_Failed_to_obtain_list_mutex_in_getLangXlateStr___n
call fcn.00409e90
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
add esp, 0xc
ret
mov esi, dword [0x427ae8]
test esi, esi
je 0x40a48b
mov eax, dword [esp + 0x20]
lea ebx, [ebx]
cmp dword [esi + 4], eax
je 0x40a4a6
mov esi, dword [esi]
test esi, esi
jne 0x40a480
or edi, 0xffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
add esp, 0xc
ret
mov eax, dword [esi + 8]
test eax, eax
je 0x40a48b
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a4b0
sub eax, edx
lea edi, [eax + 1]
push edi
push 1
call fcn.004151a4
add esp, 8
test eax, eax
mov dword [ebx], eax
je 0x40a4fe
mov ecx, dword [esp + 0x24]
cmp ecx, 1
jl 0x40a4ed
cmp ecx, edi
jg 0x40a4ed
dec ecx
push ecx
mov ecx, dword [esi + 8]
push ecx
push eax
call fcn.00414960
add esp, 0xc
xor edi, edi
jmp 0x40a48e
mov edx, dword [esi + 8]
mov cl, byte [edx]
inc edx
mov byte [eax], cl
inc eax
test cl, cl
jne 0x40a4f0
xor edi, edi
jmp 0x40a48e
mov edi, 0x4099
jmp 0x40a48e
Function at 0x40adb0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x214
push ebx
push esi
push edi
push str.KaseyaStatisticLogByPeriodSema
xor ebx, ebx
push ebx
lea eax, [esp + 0x18]
mov edi, 1
push eax
mov dword [esp + 0x1c], 0xc
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0xc], esi
jne 0x40ae15
lea ecx, [esp + 0x20]
push str.ERROR:_Failed_to_create_mutex_in_buildStatLogByStatPeriod__._n
push ecx
call fcn.004142bd
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], edi
call fcn.0040c060
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x214
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40ae53
lea eax, [esp + 0x20]
push str.ERROR:_Failed_to_obtain_mutex_in_buildStatLogByStatPeriod__._n
push eax
call fcn.004142bd
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], edi
call fcn.0040c060
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x214
ret
mov edi, dword [0x427af0]
cmp edi, ebx
push ebp
mov ebp, dword [esp + 0x228]
je 0x40aea5
lea esi, [ebp + 0x14]
lea eax, [edi + 0xc]
jmp 0x40ae70
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40ae94
test cl, cl
je 0x40ae90
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40ae94
add eax, 2
add esi, 2
test cl, cl
jne 0x40ae70
xor eax, eax
jmp 0x40ae99
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40aef8
mov ebx, edi
mov edi, dword [edi]
test edi, edi
jne 0x40ae65
push 0x114
call fcn.00414902
mov esi, eax
add esp, 4
test esi, esi
jne 0x40aee1
push 0x114
lea edx, [esp + 0x28]
push str.Failed_to_allocate__d_bytes_for_the_firewall_log_table._n
push edx
call fcn.004142bd
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], 1
call fcn.0040c060
add esp, 0x10
xor eax, eax
test ebx, ebx
mov ecx, 0x45
mov edi, esi
rep stosd dword es:[edi], eax
jne 0x40af33
mov dword [0x427af0], esi
jmp 0x40af35
test edi, edi
je 0x40aea5
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40af1b
mov eax, dword [ebp + 4]
add dword [edi + 4], eax
js 0x40af12
mov eax, dword [ebp + 4]
test eax, eax
jge 0x40af78
mov dword [edi + 4], 0x7fffffff
jmp 0x40af78
mov ecx, dword [ebp + 4]
add dword [edi + 8], ecx
js 0x40af2a
mov eax, dword [ebp + 4]
test eax, eax
jge 0x40af78
mov dword [edi + 8], 0x7fffffff
jmp 0x40af78
mov dword [ebx], esi
lea eax, [ebp + 0x14]
lea edx, [esi + 0xc]
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40af40
mov eax, dword [ebp + 8]
test eax, eax
mov eax, dword [ebp + 4]
jne 0x40af64
test eax, eax
mov dword [esi + 4], eax
jge 0x40af72
mov dword [esi + 4], 0x7fffffff
jmp 0x40af72
test eax, eax
mov dword [esi + 8], eax
jge 0x40af72
mov dword [esi + 8], 0x7fffffff
mov dword [esi], 0
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x214
ret