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

Disassembly:
sub esp, 8
mov eax, dword [esi]
push 0
push 0
push eax
mov dword [esp + 0x10], 0
call fcn.00408f29
mov ecx, dword [esi]
push ecx
push 2
lea edx, [esp + 0x14]
push 1
push edx
call fcn.004085da
mov ax, word [esp + 0x1c]
add esp, 0x1c
cmp al, 0x4d
jne 0x403200
cmp ah, 0x5a
jne 0x403200
mov eax, dword [esi]
push 0
push 0x3c
push eax
call fcn.00408f29
mov ecx, dword [esi]
push ecx
push 1
lea edx, [esp + 0x18]
push 4
push edx
call fcn.004085da
mov eax, dword [esp + 0x20]
mov ecx, dword [esi]
push 0
add eax, 0x18
push eax
push ecx
call fcn.00408f29
mov edx, dword [esi]
push edx
push 1
lea eax, [esp + 0x30]
push 2
push eax
call fcn.004085da
mov ax, word [esp + 0x38]
add esp, 0x38
cmp al, 0xb
jne 0x403200
cmp ah, 1
jne 0x4031c9
mov eax, 0x98
jmp 0x4031d3
cmp ah, 2
jne 0x403200
mov eax, 0xa8
mov ecx, dword [esp + 4]
mov edx, dword [esi]
push 0
add eax, ecx
push eax
push edx
call fcn.00408f29
mov eax, dword [esi]
push eax
push 1
lea ecx, [esp + 0x18]
push 4
push ecx
call fcn.004085da
mov eax, dword [esp + 0x20]
add esp, 0x1c
test eax, eax
jne 0x403203
or eax, 0xffffffff
add esp, 8
ret

Function at 0x403210
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
lea eax, [esi + 0x68]
push 0x41b4d8
push eax
call fcn.00403ac0
add esp, 8
test eax, eax
mov dword [esi], eax
jne 0x403231
or eax, 0xffffffff
pop esi
ret
push edi
push 2
push 0
push eax
call fcn.00408f29
mov ecx, dword [esi]
push ecx
call fcn.00409204
add esp, 0x10
mov edi, eax
call fcn.004030e0
test eax, eax
jge 0x403285
call fcn.00403130
mov edi, eax
cmp edi, 1
jl 0x403341
push ebx
xor ebx, ebx
mov eax, edi
call fcn.004030e0
test eax, eax
jge 0x40327b
add ebx, 1
sub edi, 1
cmp ebx, 8
jl 0x403265
cmp ebx, 8
pop ebx
je 0x403341
mov edx, dword [esi + 0x18]
push edx
mov dword [esi + 0x406c], 0
call sub.WS2_32.dll_ntohl
sub edi, eax
mov eax, dword [esi + 0x1c]
push 0
push eax
mov dword [esi + 4], edi
call sub.WS2_32.dll_ntohl
add eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
call fcn.00408f29
mov edx, dword [esi + 0x20]
add esp, 0xc
push edx
call sub.WS2_32.dll_ntohl
push eax
call fcn.00407343
add esp, 4
test eax, eax
mov dword [esi + 8], eax
jne 0x4032e3
push str.Could_not_allocate_buffer_for_TOC.
call fcn.00401280
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi]
mov ecx, dword [esi + 0x20]
push eax
push 1
push ecx
call sub.WS2_32.dll_ntohl
mov edx, dword [esi + 8]
push eax
push edx
call fcn.004085da
add esp, 0x10
cmp eax, 1
jae 0x403316
push str.Could_not_read_from_file.
call fcn.00401280
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi + 0x20]
push eax
call sub.WS2_32.dll_ntohl
add eax, dword [esi + 8]
mov ecx, dword [esi]
push ecx
mov dword [esi + 0xc], eax
call fcn.0040830f
add esp, 4
test eax, eax
je 0x403347
push str.Error_on_file
call fcn.00401280
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x40688e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4221a8]
jne 0x406898
repz ret
jmp fcn.0040b261
Function at 0x40833e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x40837b
cmp dword [ebp + 0x14], edi
je 0x40837b
cmp ecx, edi
jne 0x408382
call fcn.0040b9c0
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0040b961
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x408396
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4083b7
cmp ebx, 0xffffffff
je 0x4083a6
push ebx
push edi
push ecx
call fcn.004068a0
add esp, 0xc
cmp esi, edi
je 0x408363
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x408363
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4083d3
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4083da
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4084cb
test word [esi + 0xc], 0x10c
je 0x40842e
mov eax, dword [esi + 4]
test eax, eax
je 0x40842e
jl 0x40852c
cmp ebx, eax
mov edi, ebx
jb 0x4083ff
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4084d3
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041086c
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4084c3
cmp ebx, dword [ebp - 0xc]
jb 0x40849b
cmp dword [ebp - 0xc], 0
je 0x408458
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x40844d
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x408454
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x408463
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x408463
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4084ff
push eax
push dword [ebp - 8]
push esi
call fcn.00407668
pop ecx
push eax
call fcn.0041076f
add esp, 0xc
test eax, eax
je 0x40853e
cmp eax, 0xffffffff
je 0x40852c
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4084c3
push esi
call fcn.0041008e
cmp eax, 0xffffffff
pop ecx
je 0x408530
cmp dword [ebp - 4], 0
je 0x4084ff
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4083e2
mov eax, dword [ebp + 0x14]
jmp 0x40837d
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4084ea
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004068a0
add esp, 0xc
call fcn.0040b9c0
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x408373
cmp dword [ebp + 0xc], 0xffffffff
je 0x408515
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004068a0
add esp, 0xc
call fcn.0040b9c0
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x408373
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x40837d
or dword [esi + 0xc], 0x10
jmp 0x408530
Function at 0x40e769
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x422720]
je 0x40e784
inc edi
cmp edi, 0x17
jb 0x40e775
cmp edi, 0x17
jae 0x40e904
push ebp
push 3
call fcn.004150d8
cmp eax, 1
pop ecx
je 0x40e8d0
push 3
call fcn.004150d8
test eax, eax
pop ecx
jne 0x40e7b8
cmp dword [0x422460], 1
je 0x40e8d0
cmp ebx, 0xfc
je 0x40e903
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x42b040
push ebp
call fcn.0040ef0b
add esp, 0xc
test eax, eax
je 0x40e7ee
push esi
push esi
push esi
push esi
push esi
call fcn.0040b865
add esp, 0x14
push 0x104
mov esi, 0x42b059
push esi
push 0
mov byte [0x42b15d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40e832
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040ef0b
add esp, 0xc
test eax, eax
je 0x40e832
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040b865
add esp, 0x14
push esi
call fcn.0040cdf0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40e877
push esi
call fcn.0040cdf0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42b354
push 0x41f3e4
sub ecx, eax
push ecx
push eax
call fcn.00415025
add esp, 0x14
test eax, eax
je 0x40e877
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040b865
add esp, 0x14
jmp 0x40e879
xor esi, esi
push 0x41f3e0
push ebx
push ebp
call fcn.0040f1df
add esp, 0xc
test eax, eax
je 0x40e899
push esi
push esi
push esi
push esi
push esi
call fcn.0040b865
add esp, 0x14
push dword [edi*8 + 0x422724]
push ebx
push ebp
call fcn.0040f1df
add esp, 0xc
test eax, eax
je 0x40e8bb
push esi
push esi
push esi
push esi
push esi
call fcn.0040b865
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00414e68
add esp, 0xc
jmp 0x40e903
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40e903
cmp ebp, 0xffffffff
je 0x40e903
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x422724]
push dword [esi]
call fcn.0040cdf0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x40f250
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x40f27d
call fcn.0040b9d3
mov dword [eax], esi
call fcn.0040b9c0
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040b961
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x40f259
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40f2ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040b9e6
pop ecx
call fcn.0040b9c0
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x40f2d3
test al, 1
je 0x40f2d3
test byte [esp + 0xc], 2
je 0x40f2d3
call fcn.0040b9d3
mov dword [eax], 5
call fcn.0040b9c0
mov dword [eax], 0xd
jmp 0x40f2a3
xor eax, eax
pop esi
ret
Function at 0x414e68
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040d4cc
xor ebx, ebx
cmp dword [0x42b598], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x414f3e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41501e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41f660
push edi
call esi
cmp eax, ebx
je 0x41501e
push eax
call fcn.0040d45e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42b598], eax
call esi
push eax
call fcn.0040d45e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42b59c], eax
call esi
push eax
call fcn.0040d45e
mov dword [0x42b5a0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00409553
test eax, eax
pop ecx
pop ecx
je 0x414f0c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b865
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x414f3e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040d45e
cmp eax, ebx
pop ecx
mov dword [0x42b5a8], eax
je 0x414f3e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040d45e
pop ecx
mov dword [0x42b5a4], eax
mov eax, dword [0x42b5a4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x414fc3
cmp dword [0x42b5a8], ecx
je 0x414fc3
push eax
call fcn.0040d4d5
push dword [0x42b5a8]
mov esi, eax
call fcn.0040d4d5
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x414fc3
cmp edi, ebx
je 0x414fc3
call esi
cmp eax, ebx
je 0x414f90
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x414f90
test byte [ebp - 0x18], 1
jne 0x414fc3
lea eax, [ebp - 0x10]
push eax
call fcn.0040958a
test eax, eax
pop ecx
je 0x414fab
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040b865
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x414fba
or dword [ebp + 0x10], 0x200000
jmp 0x414ffe
or dword [ebp + 0x10], 0x40000
jmp 0x414ffe
mov eax, dword [0x42b59c]
cmp eax, dword [ebp - 8]
je 0x414ffe
push eax
call fcn.0040d4d5
cmp eax, ebx
pop ecx
je 0x414ffe
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x414ffe
mov eax, dword [0x42b5a0]
cmp eax, dword [ebp - 8]
je 0x414ffe
push eax
call fcn.0040d4d5
cmp eax, ebx
pop ecx
je 0x414ffe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42b598]
call fcn.0040d4d5
cmp eax, ebx
pop ecx
je 0x41501e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x415020
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x405310
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.004614b0
mov eax, dword [0x4ca3f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
push 0x4000
push 0
push eax
call fcn.0046d470
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x405406
test edi, edi
je 0x405406
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x405406
cmp eax, 0x3fff
ja 0x405406
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x405406
lea eax, [ebp - 0x400c]
push eax
lea eax, [ebp - 0x4010]
push eax
push 0x4a461c
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x405406
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.0046d470
mov ecx, dword [ebp - 0x4010]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x4a489c
lea eax, [esi - 1]
push eax
push edi
call fcn.00405e70
add esp, 0x28
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461490
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00461490
mov esp, ebp
pop ebp
ret
Function at 0x405f10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4ca3f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x405f97
test ebx, ebx
je 0x405f97
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x405f97
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x405f97
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x405f91
push esi
push ebx
push edi
call fcn.0046c970
add esp, 0xc
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x405f91
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461490
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00461490
mov esp, ebp
pop ebp
ret

Function at 0x405fb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406009
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406009
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x405ffa
cmp esi, edx
jae 0x406009
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x405fe8
cmp esi, edx
jae 0x406009
cmp word [esi], 0
je 0x406009
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x406930
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a7e0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4ca3f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.004611b8
mov edi, eax
add esp, 4
test edi, edi
je 0x4069e2
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0041cd68
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413170
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b8bb
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push ebx
push esi
push edi
mov eax, dword [0x4ca3f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.004230f0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4132d7
push 0x55
push str.d:jenkins.jenkinsworkspacemaster_luwx_cleanwechat_clean_srcwechat_clean_wnd.cc
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], al
call fcn.00407ba0
push 3
push 0x4a4a40
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
call fcn.00407ba0
mov byte [ebp - 4], 1
call fcn.004230f0
mov edi, eax
lea ecx, [ebp - 0xd4]
push 0x70
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00403750
mov esi, eax
push str.Close_Msg
push esi
mov byte [ebp - 4], 2
call fcn.00404660
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xd4]
call fcn.004048c0
mov edx, dword [ebp - 0x10]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x41327c
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413272
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413311
push edx
push ecx
call fcn.004611e8
add esp, 8
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x4132c5
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4132bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413316
push edx
push ecx
call fcn.004611e8
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebx + 0x58]
test ecx, ecx
je 0x4132f6
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov dword [ebx + 0x58], 0
mov ecx, ebx
call fcn.0041a620
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0047089a
call fcn.0047089a
int3
Function at 0x4222b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cb0a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4ca3f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.LogUtils::LogAppender.0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 1
mov dword [esi + 0x10], 0
call fcn.00405420
mov ecx, eax
test ecx, ecx
je 0x422474
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
lea ebx, [esi + 0x18]
call fcn.00405420
mov ecx, eax
test ecx, ecx
je 0x42247e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.00405420
mov ecx, eax
test ecx, ecx
je 0x422488
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xffffffff
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 5
mov dword [esi + 0x10], eax
test edx, edx
jne 0x422392
xor ecx, ecx
jmp 0x4223b0
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4223a0
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00405d90
push edi
mov ecx, ebx
call fcn.00404450
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4223cc
xor ecx, ecx
jmp 0x4223e4
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4223d4
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.00405d90
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.00422e70
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.00404450
mov edx, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422425
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x42245e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42245e
cmp dword [esi + 0x10], 0
je 0x422455
push dword [edi]
call fcn.0047bbf2
add esp, 4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00404f60
push 0x80004005
call fcn.00404f60
push 0x80004005
call fcn.00404f60
int3