joyce8/EMBER2024-capa huggingface dataset:
Function at 0x570480
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x5e96d8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
xor eax, eax
mov edi, eax
sub esp, 0x14
mov eax, esp
mov dword [eax], ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x30]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], esi
xor ebx, ebx
lea edx, [esp + 0x50]
mov ecx, 0x64df48
mov eax, 0x64def0
mov dword [esp + 0x54], ebx
call fcn.00574ba0
add esp, 0x14
push 0x13
push str.UPnP_mapping_error
lea ecx, [esp + 0x68]
mov esi, eax
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
call fcn.0040b860
mov ebp, dword [esp + 0x9c]
mov eax, ebp
cdq
push edx
push eax
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x98], ebx
call fcn.004b02e0
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x3c], edx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x40], ecx
mov dx, word [eax + 0x14]
lea eax, [esp + 0x30]
add esp, 0xc
mov word [esp + 0x38], dx
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x570587
sub eax, edi
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x68]
call fcn.004320d0
cmp esi, 0x64df48
je 0x5705db
cmp dword [esi], ebp
jne 0x5705db
push 2
push 0x611e78
lea eax, [esp + 0x68]
call fcn.004320d0
mov esi, dword [esi + 4]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x5705c5
sub eax, edx
push eax
push esi
lea eax, [esp + 0x68]
call fcn.004320d0
mov esi, dword [esp + 0x14]
cmp byte [esi + 4], bl
je 0x5705f0
mov eax, dword [esi]
push eax
call dword [0x5fd188]
mov byte [esi + 4], bl
mov edx, dword [esp + 0x98]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 0x64f528
push ebx
sub esp, 0x1c
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [esp + 0x38], esp
mov dword [eax + 0x14], ebx
push edx
add ecx, 0x28
mov dword [eax + 0x18], ebx
call fcn.005713e0
cmp byte [esi + 4], bl
jne 0x570645
mov eax, dword [esi]
push eax
call dword [0x5fd18c]
mov byte [esi + 4], 1
cmp dword [esp + 0x78], 0x10
jb 0x570659
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0059b877
add esp, 4
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.005b88a9
add esp, 0x7c
ret 0xc
Function at 0x57c7e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5f25e8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
test esi, esi
push eax
push ecx
push ecx
mov eax, esp
mov dword [esp + 0x30], esp
mov dword [eax], esi
je 0x57c830
mov edx, esi
mov eax, 1
lock xadd dword [edx], eax
mov ecx, edi
call fcn.0057c9c0
test esi, esi
mov dword [esp + 0x14], 0xffffffff
je 0x57c85d
mov ecx, esi
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x57c85d
push esi
call fcn.0051bcb0
push esi
call fcn.0059b877
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0xc

Function at 0x57c880
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5f25e8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
test esi, esi
push eax
push ecx
push ecx
mov eax, esp
mov dword [esp + 0x30], esp
mov dword [eax], esi
je 0x57c8d0
mov edx, esi
mov eax, 1
lock xadd dword [edx], eax
mov ecx, edi
call fcn.0057ca50
test esi, esi
mov dword [esp + 0x14], 0xffffffff
je 0x57c8fd
mov ecx, esi
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x57c8fd
push esi
call fcn.0051bcb0
push esi
call fcn.0059b877
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0xc
Function at 0x5875d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5dff68
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00405390
mov dword [esi], 0x60508c
test edi, edi
mov dword [esp + 0x18], 0
je 0x58761a
add edi, 0x28
jmp 0x58761c
xor edi, edi
mov dword [esi + 0x28], 0x6051ec
mov ecx, dword [edi + 4]
test ecx, ecx
mov dword [esi + 0x2c], ecx
je 0x587634
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], 0x61c808
mov dword [esi + 0x28], 0x61c814
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x588bb0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5e55a9
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov edi, dword [esp + 0x34]
cmp edi, ecx
mov dword [esi], edx
mov edx, dword [eax]
mov dword [esi + 4], edx
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x28]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x30]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], edi
je 0x588c1c
lea eax, [edi + 4]
mov edx, 1
lock xadd dword [eax], edx
cmp edi, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], 1
je 0x588c56
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x588c56
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x588c56
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret

Function at 0x5898b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5df388
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea esi, [esp + 0xc]
call fcn.00559c90
mov esi, ebx
lea edi, [esp + 0xc]
mov dword [esp + 0x38], 0
call fcn.0054aae0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x58991d
test al, 1
jne 0x58991d
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x58991d
lea ecx, [esp + 0x14]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x599330
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5de6a1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
mov dword [esp + 0xc], 0
mov dword [esp + 0x28], 1
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x34]
sub esp, 8
test edi, edi
mov eax, esp
mov dword [esp + 0x18], esp
push ecx
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, esp
mov dword [esp + 0x4c], esp
mov dword [eax], edi
je 0x59939c
lea eax, [edi + 8]
mov ecx, 1
lock xadd dword [eax], ecx
lea ecx, [esp + 0x20]
call fcn.00595080
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [esi], edx
mov dword [esi + 4], ecx
mov ecx, dword [eax]
test ecx, ecx
mov dword [esi + 8], ecx
je 0x5993c7
add ecx, 8
mov edx, 1
lock xadd dword [ecx], edx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov edx, dword [eax + 8]
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0xc], 1
je 0x599405
add eax, 8
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x599405
test eax, eax
je 0x599405
lea ecx, [eax - 8]
test ecx, ecx
je 0x599405
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
test edi, edi
mov byte [esp + 0x28], 0
je 0x599430
lea eax, [edi + 8]
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x599430
test eax, eax
je 0x599430
lea ecx, [eax - 8]
test ecx, ecx
je 0x599430
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
Function at 0x5ba38c
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 0x5ba3c9
cmp dword [ebp + 0x14], edi
je 0x5ba3c9
cmp ecx, edi
jne 0x5ba3d0
call fcn.005baa20
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.005b8af4
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x5ba3e4
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x5ba405
cmp ebx, 0xffffffff
je 0x5ba3f4
push ebx
push edi
push ecx
call fcn.005be600
add esp, 0xc
cmp esi, edi
je 0x5ba3b1
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x5ba3b1
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x5ba421
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x5ba428
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x5ba519
test word [esi + 0xc], 0x10c
je 0x5ba47c
mov eax, dword [esi + 4]
test eax, eax
je 0x5ba47c
jl 0x5ba57a
cmp ebx, eax
mov edi, ebx
jb 0x5ba44d
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x5ba521
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.005b853e
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 0x5ba511
cmp ebx, dword [ebp - 0xc]
jb 0x5ba4e9
cmp dword [ebp - 0xc], 0
je 0x5ba4a6
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x5ba49b
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x5ba4a2
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x5ba4b1
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x5ba4b1
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x5ba54d
push eax
push dword [ebp - 8]
push esi
call fcn.005c18e4
pop ecx
push eax
call fcn.005c90e8
add esp, 0xc
test eax, eax
je 0x5ba58c
cmp eax, 0xffffffff
je 0x5ba57a
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x5ba511
push esi
call fcn.005c7241
cmp eax, 0xffffffff
pop ecx
je 0x5ba57e
cmp dword [ebp - 4], 0
je 0x5ba54d
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 0x5ba430
mov eax, dword [ebp + 0x14]
jmp 0x5ba3cb
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x5ba538
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.005be600
add esp, 0xc
call fcn.005baa20
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x5ba3c1
cmp dword [ebp + 0xc], 0xffffffff
je 0x5ba563
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.005be600
add esp, 0xc
call fcn.005baa20
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x5ba3c1
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x5ba3cb
or dword [esi + 0xc], 0x10
jmp 0x5ba57e
Function at 0x5d8b00
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x5dbac8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x5d8a80
push 0
push 0
call fcn.005bacd5
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x5d8b6b
lea ecx, [esp + 0x10]
call fcn.005b8659
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], 0x60519c
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.00491330
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x5d8b91
cmp eax, 0xffffffff
je 0x5d8b91
push eax
call dword [0x5fd3a4]
mov dword [esi], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [0x5fd104]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x40e2c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
jmp 0x40e2da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40e2e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40e2d0
mov eax, 1
add ebx, ebx
jne 0x40e2f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40e2e8
jne 0x40e304
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e2e8
xor ecx, ecx
sub eax, 3
jb 0x40e318
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40e38a
mov ebp, eax
add ebx, ebx
jne 0x40e323
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40e330
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40e354
inc ecx
add ebx, ebx
jne 0x40e340
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40e335
jne 0x40e351
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e335
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40e374
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40e365
jmp 0x40e2d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40e374
add edi, ecx
jmp 0x40e2d6
pop esi
mov edi, esi
mov ecx, 0x2b8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40e392
cmp byte [edi], 0
jne 0x40e392
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40e397
lea edi, [esi + 0xc000]
mov eax, dword [edi]
or eax, eax
je 0x40e406
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe644]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe6b0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40e3c4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe6b8]
or eax, eax
je 0x40e400
mov dword [ebx], eax
add ebx, 4
jmp 0x40e3e1
call dword [esi + 0xe6b4]
mov ebp, dword [esi + 0xe6bc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40e43a
sub esp, 0xffffff80
jmp 0x405be8
Function at 0x4069e9
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4422b6
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x45a630]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
push str.Global_MSIExecute
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], 1
and dword [esp + 0xc0], 0
test eax, eax
je 0x406af7
push 0x927c0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x45ddec], 1
mov dword [esp + 0x10], eax
jg 0x406ac1
lea eax, [esp + 0x1c]
push eax
call fcn.004020c9
lea eax, [esp + 0x1c]
push str.finish_waiting_for_mutex:
push eax
mov byte [esp + 0xc8], 1
call fcn.00404dc8
pop ecx
pop ecx
push dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
call fcn.004039fe
lea eax, [esp + 0x1c]
push eax
push 0x1a2
push 1
mov ebx, str.msi::waitForInstallationCompletion
mov edi, str.c:_re_workspace_8_2_build_windows_i586_cygwin_jdk8u74_6087_install_src_windows_common_MsiUtils.cpp
mov esi, 0x45ddec
call fcn.00405303
lea eax, [esp + 0x1c]
mov byte [esp + 0xc0], 0
call fcn.004015ad
cmp dword [esp + 0x10], 0x102
jne 0x406af7
xor bl, bl
or dword [esp + 0xc0], 0xffffffff
push dword [esp + 0x14]
call fcn.0041329e
pop ecx
mov al, bl
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, 1
jmp 0x406acd

Function at 0x407d6d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x24
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.004285e0
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
xor eax, eax
cmp word [ebp - 0x24], 9
sete al
leave
ret

Function at 0x407ffd
Capabilities:
Get common file path

Disassembly:
push 0x38
mov eax, 0x43f43e
call fcn.0042cf82
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x30], eax
mov esi, 0x104
lea eax, [ebp - 0x40]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
call fcn.004075d9
mov dword [ebp - 4], edi
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x3c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
sub edi, esi
push edi
call ebx
cmp eax, edi
jbe 0x408059
mov esi, eax
lea eax, [ebp - 0x40]
call fcn.004075d9
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
push esi
sub eax, esi
push eax
call ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401dac
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00408d75
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402978
test esi, esi
je 0x408088
push esi
call fcn.0042654b
pop ecx
mov eax, dword [ebp - 0x30]
call fcn.0042d005
ret
Function at 0x4082d7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442272
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x45a630]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov eax, dword [0x45a630]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
xor esi, esi
push 0x104
lea eax, [esp + 0x118]
push esi
push eax
mov edi, ecx
mov dword [esp + 0x2c], esi
call fcn.004285e0
add esp, 0xc
lea eax, [esp + 0x114]
push eax
push esi
push esi
push 0x8023
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov ebx, eax
cmp ebx, esi
je 0x408423
lea eax, [esp + 0x34]
push eax
call fcn.004020c9
lea eax, [esp + 0x34]
push str.SHGetFolderPath_0x
push eax
mov dword [esp + 0x238], esi
call fcn.00404dc8
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 4]
pop ecx
lea eax, [esp + eax + 0x38]
pop ecx
mov ecx, dword [eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [eax + 0x14], ecx
push 0x23
lea eax, [esp + 0x38]
push eax
call fcn.004074d4
lea eax, [esp + 0x34]
push str.__mode
push eax
call fcn.00404dc8
pop ecx
pop ecx
push 1
lea eax, [esp + 0x38]
push eax
call fcn.004074d4
lea eax, [esp + 0x34]
push 0x4488c0
push eax
call fcn.00404dc8
pop ecx
pop ecx
lea eax, [esp + 0x34]
push eax
lea edi, [esp + 0x28]
call fcn.004147de
lea ecx, [esp + 0xe8]
mov byte [esp + 0x230], 1
push ecx
lea esi, [esp + 0x18]
mov ecx, eax
mov dword [esp + 0x18], str.c:_re_workspace_8_2_build_windows_i586_cygwin_jdk8u74_6087_install_src_windows_common_SysInfo.cpp
mov dword [esp + 0x1c], str.SysInfo::SHGetFolderPathAdapter
mov dword [esp + 0x20], 0x179
call fcn.0040890a
lea eax, [esp + 0xec]
mov dword [esp], 0x451968
push eax
call fcn.0042cae9
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0xd0]
call fcn.00401dac
lea edx, [esp + 0xcc]
mov eax, edi
mov dword [esp + 0x230], 2
call fcn.00408d75
push esi
push 1
lea ecx, [esp + 0xd4]
call fcn.00402978
mov eax, edi
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00426556
mov esp, ebp
pop ebp
ret

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

Disassembly:
cmp dword [eax + 0x14], 0x10
jb 0x408b8e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret

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

Disassembly:
cmp dword [eax + 0x14], 0x10
jb 0x408ba6
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x408bba
test al, 0x10
je 0x408bba
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x408dd5
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
push esi
push edi
mov edi, eax
cmp dword [edi + 0x14], 0x10
jb 0x408dee
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
test al, al
je 0x408e76
cmp dword [0x45ddec], 0
jg 0x408e6c
lea eax, [esp + 0x10]
push eax
call fcn.004020c9
lea eax, [esp + 0x10]
push str.Deleted__
push eax
call fcn.00404dc8
sub esp, 0x14
mov esi, esp
mov dword [esp + 0x28], esp
push edi
call fcn.00401d8b
lea esi, [esp + 0x2c]
call fcn.0040390d
mov esi, eax
push str.__file
push esi
call fcn.00404dc8
pop ecx
pop ecx
push esi
push 0x1fd
push 0
mov ebx, str.FileUtils::deleteFile
mov edi, str.c:_re_workspace_8_2_build_windows_i586_cygwin_jdk8u74_6087_install_src_windows_common_FileUtils.cpp
mov esi, 0x45ddec
call fcn.00405303
lea eax, [esp + 0x10]
call fcn.004015ad
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x408e6c
cmp eax, 3
je 0x408e6c
xor eax, eax
jmp 0x408e6f

Function at 0x408e8a
Capabilities:
Check if file exists
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
cmp dword [0x45ddec], 0
push ebx
push esi
push edi
mov ebx, str.FileUtils::deleteDirectory
mov edi, str.c:_re_workspace_8_2_build_windows_i586_cygwin_jdk8u74_6087_install_src_windows_common_FileUtils.cpp
jg 0x408f09
lea eax, [esp + 0x10]
push eax
call fcn.004020c9
lea eax, [esp + 0x10]
push str.deleteDirectory_
push eax
call fcn.00404dc8
sub esp, 0x14
mov esi, esp
mov dword [esp + 0x28], esp
push dword [ebp + 8]
call fcn.00401d8b
lea esi, [esp + 0x2c]
call fcn.0040390d
mov esi, eax
push 0x4488c0
push esi
call fcn.00404dc8
pop ecx
pop ecx
push esi
push 0x20c
push 0
mov esi, 0x45ddec
call fcn.00405303
lea eax, [esp + 0x10]
call fcn.004015ad
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x408f14
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
test al, al
je 0x408f94
cmp dword [0x45ddec], 0
jg 0x408f8a
lea eax, [esp + 0x10]
push eax
call fcn.004020c9
lea eax, [esp + 0x10]
push str.Deleted__
push eax
call fcn.00404dc8
sub esp, 0x14
mov esi, esp
mov dword [esp + 0x28], esp
push dword [ebp + 8]
call fcn.00401d8b
lea esi, [esp + 0x2c]
call fcn.0040390d
mov esi, eax
push str.__directory
push esi
call fcn.00404dc8
pop ecx
pop ecx
push esi
push 0x20f
push 0
mov esi, 0x45ddec
call fcn.00405303
lea eax, [esp + 0x10]
call fcn.004015ad
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x408f8a
cmp eax, 3
je 0x408f8a
xor eax, eax
jmp 0x408f8d