joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a337c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4a341e
cmp dword [ebx + 0x94], 0
jne 0x4a3418
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4a32c8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4a3418
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4a33de
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4a3418
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0042f18c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4a33ed
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4a363c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4b5280]
cmp dword [eax + 0x170], 0
je 0x4a37a1
test bl, bl
jne 0x4a36ef
cmp dword [esi + 0x9c], 0
jne 0x4a36e4
mov eax, esi
call fcn.004a652c
push eax
push 0x4a3548
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4a36b5
mov eax, dword [0x4b5280]
cmp byte [eax + 0xd3], 0
je 0x4a36b5
mov eax, dword [esi + 0xd8]
call fcn.00407e64
mov edi, eax
cmp edi, 0
jl 0x4a36b5
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4a369e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4a36e4
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0042f18c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4a36c4
inc dword [esi + 0x9c]
jmp 0x4a37a1
cmp dword [esi + 0x9c], 0
jle 0x4a37a1
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4a37a1
cmp dword [esi + 0x44], 0
je 0x4a374c
mov eax, dword [0x4b5280]
cmp byte [eax + 0xd3], 0
je 0x4a374c
mov eax, dword [esi + 0xd8]
call fcn.00407e64
mov edi, eax
cmp edi, 0
jl 0x4a374c
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4a3735
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4a377b
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0042f18c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4a375b
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x496808]
call fcn.00408024
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4a43f0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4a445b
cmp byte [ebx + 0xd3], 0
jne 0x4a445b
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040699c
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4a4448
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4a4468
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406860
jmp 0x4a4468
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406860
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4a5c90
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4a5cfe
mov eax, esi
call fcn.0047e3e4
test al, al
je 0x4a5cfe
mov eax, dword [ebx + 0x84]
call fcn.0047e038
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4a5cfe
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4a5cf2
push 0
mov eax, dword [ebx + 0x84]
call fcn.0047e038
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00475010
jmp 0x4a5cfe
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004a5ac8
pop esi
pop ebx
ret
Function at 0x41ff90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 0x10], edi
mov edx, dword [ebx + 0x13c]
test edx, edx
mov ecx, edx
mov eax, dword [ebx + 0x38]
mov edi, dword [ebx + 0x40]
jne 0x41ffb5
mov ecx, 0x20000
sub edi, eax
cmp edi, ecx
ja 0x41ffe3
push 0
lea edx, [ebp - 8]
push edx
push edi
push eax
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xffffffff
test eax, eax
je 0x420058
mov ecx, 1
jmp 0x420058
test edx, edx
mov ecx, edi
mov dword [ebp - 0x18], edi
mov edi, eax
jne 0x41fff3
mov edx, 0x20000
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], esi
mov esi, ecx
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
push edi
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x420022
mov edi, dword [ebp - 0x18]
mov ecx, 0xffffffff
mov esi, dword [ebp - 0x14]
jmp 0x420058
mov edx, dword [ebx + 0x13c]
test edx, edx
mov eax, dword [ebp - 8]
jne 0x420034
mov edx, 0x20000
sub esi, eax
add edi, eax
cmp esi, edx
jae 0x420045
mov dword [ebp - 4], esi
test esi, esi
jne 0x420049
jmp 0x42004d
test esi, esi
je 0x42004d
test eax, eax
ja 0x41fffb
mov edi, dword [ebp - 0x18]
mov ecx, 1
mov esi, dword [ebp - 0x14]
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0xf8]
mov dword [ebx + 0x40], edx
add edx, eax
xor eax, eax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov eax, edi
mov dword [ebx + 0x44], edx
cdq
mov eax, dword [ebx + 0xc0]
add edi, eax
mov dword [ebx + 0xc0], edi
adc edx, dword [ebx + 0xc4]
and byte [ebx + 0x16d], 0xfb
mov dword [ebx + 0xc4], edx
cmp ecx, 0xffffffff
mov dword [ebx + 0xb8], edi
mov dword [ebx + 0xbc], edx
je 0x4200b8
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xe8], eax
mov eax, 0x26
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x428ca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 0x10], edi
mov edx, dword [ebx + 0x13c]
test edx, edx
mov ecx, edx
mov eax, dword [ebx + 0x38]
mov edi, dword [ebx + 0x40]
jne 0x428cc5
mov ecx, 0x20000
sub edi, eax
cmp edi, ecx
ja 0x428cf3
push 0
lea edx, [ebp - 8]
push edx
push edi
push eax
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xffffffff
test eax, eax
je 0x428d68
mov ecx, 1
jmp 0x428d68
test edx, edx
mov ecx, edi
mov dword [ebp - 0x18], edi
mov edi, eax
jne 0x428d03
mov edx, 0x20000
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], esi
mov esi, ecx
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
push edi
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x428d32
mov edi, dword [ebp - 0x18]
mov ecx, 0xffffffff
mov esi, dword [ebp - 0x14]
jmp 0x428d68
mov edx, dword [ebx + 0x13c]
test edx, edx
mov eax, dword [ebp - 8]
jne 0x428d44
mov edx, 0x20000
sub esi, eax
add edi, eax
cmp esi, edx
jae 0x428d55
mov dword [ebp - 4], esi
test esi, esi
jne 0x428d59
jmp 0x428d5d
test esi, esi
je 0x428d5d
test eax, eax
ja 0x428d0b
mov edi, dword [ebp - 0x18]
mov ecx, 1
mov esi, dword [ebp - 0x14]
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0xf8]
mov dword [ebx + 0x40], edx
add edx, eax
xor eax, eax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov eax, edi
mov dword [ebx + 0x44], edx
cdq
mov eax, dword [ebx + 0xc0]
add edi, eax
mov dword [ebx + 0xc0], edi
adc edx, dword [ebx + 0xc4]
and byte [ebx + 0x16d], 0xfb
mov dword [ebx + 0xc4], edx
cmp ecx, 0xffffffff
mov dword [ebx + 0xb8], edi
mov dword [ebx + 0xbc], edx
je 0x428dc8
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xe8], eax
mov eax, 0x26
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x42fe10
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ebx
mov ebx, 1
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 0
push 1
push 0x50fd30
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x42fe9c
mov eax, 0x51eb851f
mov ecx, ebx
imul ebx
sar edx, 5
mov eax, ebx
sar ecx, 0x1f
sub edx, ecx
imul esi, edx, 0x64
sub eax, esi
jne 0x42fe9c
cmp ebx, 0x15f90
jl 0x42fe93
cmp ebx, 0x1d4c0
jge 0x42fe70
mov eax, 0x32
jmp 0x42fe95
cmp ebx, 0x2bf20
jge 0x42fe7f
mov eax, 0x64
jmp 0x42fe95
mov eax, 0x1482
cmp ebx, 0x57d78
jl 0x42fe95
mov eax, 0xfa
jmp 0x42fe95
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
test eax, eax
je 0x42feb0
inc ebx
cmp ebx, 0x57e40
jl 0x42fe28
mov eax, dword [ebp - 4]
test eax, eax
je 0x42feca
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.0044fa30
add esp, 4
mov eax, dword [0x50fd34]
test eax, eax
jne 0x42ff00
cmp dword [0x4fe8e0], 1
je 0x42ff84
xor ebx, ebx
xor esi, esi
cmp dword [0x50fd2c], 0
je 0x42ff44
mov dword [0x50fd34], 1
cmp dword [0x4fe8e0], 1
je 0x42ff2f
mov dword [0x50fd30], 0
push dword [0x50fd28]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42ffa2
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
push 2
call fcn.00477890
push ebx
push 0x16
call fcn.00477890
add esp, 0x10
jmp 0x42ff00
mov dword [0x50fd2c], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x50fd28], eax
cmp eax, 0xffffffff
jne 0x42ff68
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x42feed
push 0x42fda0
call fcn.004782b0
push 0x42fd60
call fcn.004782b0
add esp, 8
jmp 0x42feed
push 1
push 2
call fcn.00477890
mov esi, eax
push 1
push 0x16
call fcn.00477890
add esp, 0x10
mov ebx, eax
jmp 0x42fee4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x70
call fcn.00435ac0
add esp, 0xc
test eax, eax
je 0x42ffcc
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, 0x70
mov ecx, dword [edx + 0x4fe83c]
mov dword [eax + edx - 4], ecx
mov ebx, dword [edx + 0x4fe838]
mov dword [eax + edx - 8], ebx
mov esi, dword [edx + 0x4fe834]
mov dword [eax + edx - 0xc], esi
mov ecx, dword [edx + 0x4fe830]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x42ffd4
push dword [ebp - 0x10]
push dword [0x50fd28]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x10]
jmp 0x42ff1e
Function at 0x430020
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ebx
mov ebx, 1
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 0
push 1
push 0x50fd30
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4300ac
mov eax, 0x51eb851f
mov ecx, ebx
imul ebx
sar edx, 5
mov eax, ebx
sar ecx, 0x1f
sub edx, ecx
imul esi, edx, 0x64
sub eax, esi
jne 0x4300ac
cmp ebx, 0x15f90
jl 0x4300a3
cmp ebx, 0x1d4c0
jge 0x430080
mov eax, 0x32
jmp 0x4300a5
cmp ebx, 0x2bf20
jge 0x43008f
mov eax, 0x64
jmp 0x4300a5
mov eax, 0x1482
cmp ebx, 0x57d78
jl 0x4300a5
mov eax, 0xfa
jmp 0x4300a5
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4300c0
inc ebx
cmp ebx, 0x57e40
jl 0x430038
mov eax, dword [ebp - 4]
test eax, eax
je 0x4300da
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.0044fa30
add esp, 4
mov eax, dword [0x50fd34]
test eax, eax
jne 0x430110
cmp dword [0x4fe8e0], 1
je 0x4301a9
xor ebx, ebx
xor esi, esi
cmp dword [0x50fd2c], 0
je 0x430166
mov dword [0x50fd34], 1
cmp dword [0x4fe8e0], 1
je 0x430151
mov dword [0x50fd30], 0
push dword [0x50fd28]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x4301e7
mov eax, dword [ebp + 8]
mov dword [eax], ebx
cmp dword [0x4fe8e0], 1
je 0x4301c7
xor eax, eax
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push esi
push 2
call fcn.00477890
push ebx
push 0x16
call fcn.00477890
add esp, 0x10
jmp 0x430110
mov dword [0x50fd2c], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x50fd28], eax
cmp eax, 0xffffffff
jne 0x43018d
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4300fd
push 0x42fda0
call fcn.004782b0
push 0x42fd60
call fcn.004782b0
add esp, 8
jmp 0x4300fd
push 1
push 2
call fcn.00477890
mov esi, eax
push 1
push 0x16
call fcn.00477890
add esp, 0x10
mov ebx, eax
jmp 0x4300f4
push 1
push 2
call fcn.00477890
push 1
push 0x16
mov dword [ebx + 0x64], eax
call fcn.00477890
add esp, 0x10
mov dword [ebx + 0x68], eax
jmp 0x430145
lea eax, [ebp - 0x10]
push eax
push 0
push 0x70
call fcn.00435ac0
add esp, 0xc
test eax, eax
je 0x43020e
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, 0x70
mov ecx, dword [edx + 0x4fe83c]
mov dword [eax + edx - 4], ecx
mov ebx, dword [edx + 0x4fe838]
mov dword [eax + edx - 8], ebx
mov esi, dword [edx + 0x4fe834]
mov dword [eax + edx - 0xc], esi
mov ecx, dword [edx + 0x4fe830]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x430216
push dword [ebp - 0x10]
push dword [0x50fd28]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp - 0x10]
jmp 0x430133
Function at 0x431e70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 0x10], edi
mov edx, dword [ebx + 0x13c]
test edx, edx
mov ecx, edx
mov eax, dword [ebx + 0x38]
mov edi, dword [ebx + 0x40]
jne 0x431e95
mov ecx, 0x20000
sub edi, eax
cmp edi, ecx
ja 0x431ec3
push 0
lea edx, [ebp - 8]
push edx
push edi
push eax
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xffffffff
test eax, eax
je 0x431f38
mov ecx, 1
jmp 0x431f38
test edx, edx
mov ecx, edi
mov dword [ebp - 0x18], edi
mov edi, eax
jne 0x431ed3
mov edx, 0x20000
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], esi
mov esi, ecx
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
push edi
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x431f02
mov edi, dword [ebp - 0x18]
mov ecx, 0xffffffff
mov esi, dword [ebp - 0x14]
jmp 0x431f38
mov edx, dword [ebx + 0x13c]
test edx, edx
mov eax, dword [ebp - 8]
jne 0x431f14
mov edx, 0x20000
sub esi, eax
add edi, eax
cmp esi, edx
jae 0x431f25
mov dword [ebp - 4], esi
test esi, esi
jne 0x431f29
jmp 0x431f2d
test esi, esi
je 0x431f2d
test eax, eax
ja 0x431edb
mov edi, dword [ebp - 0x18]
mov ecx, 1
mov esi, dword [ebp - 0x14]
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0xf8]
mov dword [ebx + 0x40], edx
add edx, eax
xor eax, eax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov eax, edi
mov dword [ebx + 0x44], edx
cdq
mov eax, dword [ebx + 0xc0]
add edi, eax
mov dword [ebx + 0xc0], edi
adc edx, dword [ebx + 0xc4]
and byte [ebx + 0x16d], 0xfb
mov dword [ebx + 0xc4], edx
cmp ecx, 0xffffffff
mov dword [ebx + 0xb8], edi
mov dword [ebx + 0xbc], edx
je 0x431f98
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xe8], eax
mov eax, 0x26
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x438980
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x43fb30
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]

Function at 0x43fb3c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], esi
mov esi, ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ebx
mov ebx, edx
mov dword [ebp - 4], edi
mov edx, eax
mov dword [ecx], 0
cmp dword [0x519f00], 0
je 0x43fc13
cmp dword [ebp + 0x20], 2
je 0x43fb73
cmp dword [ebp + 0x20], 1
jne 0x43fb82
mov eax, 0xffffffff
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x18], 0
je 0x43fb92
cmp dword [ebp + 0x20], 0xfffffffa
je 0x43fcd8
cmp dword [ebp + 0x20], 0
je 0x43fce4
xor ecx, ecx
xor edi, edi
cmp dword [ebp + 0x18], 0
je 0x43fbc7
cmp dword [ebp + 0x1c], 0
je 0x43fbc7
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
call fcn.004c8680
push edi
call fcn.004c87f0
mov edx, dword [ebp - 0x10]
add esp, 8
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x43fc13
push edi
push esi
push ebx
call fcn.004c8720
add esp, 0xc
mov esi, eax
mov eax, dword [ebp + 0x14]
cmp esi, 0xffffffff
mov dword [eax], esi
je 0x43fd08
push 0
push edi
push 2
push 0x4e1c84
call fcn.004c86e0
add esp, 0x10
mov edx, dword [ebp + 0x14]
mov eax, 1
mov byte [esi + ebx], 0xa
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
inc dword [edx]
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10], edx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x24]
test ecx, ecx
mov edx, dword [ebp - 0x10]
mov dword [edi], 0
je 0x43fc3b
mov edi, dword [ecx + 0x13c]
test edi, edi
jne 0x43fc40
mov edi, 0x20000
cmp esi, edi
jbe 0x43fcb4
cmp dword [ebp + 0x20], 0
je 0x43fcb4
test ecx, ecx
je 0x43fc58
mov edi, dword [ecx + 0x13c]
test edi, edi
jne 0x43fc5d
mov edi, 0x20000
mov dword [ebp - 0x10], edx
push 0
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43fca2
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
add ebx, edx
sub esi, edx
add dword [ecx], edx
cmp dword [ebp + 0x24], 0
je 0x43fc97
mov edx, dword [ebp + 0x24]
mov edx, dword [edx + 0x13c]
test edx, edx
jne 0x43fc9c
mov edx, 0x20000
cmp esi, edx
ja 0x43fca2
mov edi, esi
test esi, esi
je 0x43fccb
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x18]
jne 0x43fccb
test eax, eax
jne 0x43fc60
jmp 0x43fccb
push 0
lea ecx, [ebp - 0x18]
push ecx
push esi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edi, edx
mov ecx, 1
jmp 0x43fba6
mov dword [ebp - 0x10], edx
call fcn.004c8910
mov edx, dword [ebp - 0x10]
mov edi, eax
cmp dword [0x519f00], 0
je 0x43fbcb
mov ecx, 1
jmp 0x43fba0
xor eax, eax
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x442c10
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x44f860
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
mov esi, dword [eax + 0x7c]
test esi, esi
mov dword [ebp - 0xc], edi
je 0x44fa1c
mov edx, dword [0x4fe8e0]
mov edi, dword [esi + 0x14]
lea eax, [edi*4]
shl edi, 5
sub edi, eax
cmp edx, 2
lea ebx, [edi + 0x5146a8]
jge 0x44f8af
mov eax, dword [ebx]
test eax, eax
jne 0x44f8f0
mov dword [edi + 0x5146a8], 1
jmp 0x44f8f0
push ebx
call fcn.004302b0
add esp, 4
test eax, eax
jne 0x44f8ea
cmp dword [edi + 0x5146a4], 0
je 0x44f9fc
mov dword [edi + 0x5146a8], 0
push 0xffffffffffffffff
push dword [edi + 0x5146a4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call fcn.004302b0
add esp, 4
mov edx, dword [0x4fe8e0]
cmp edx, 1
je 0x44f9e8
mov eax, dword [esi + 0x18]
dec eax
mov dword [esi + 0x18], eax
test eax, eax
jle 0x44f95f
mov eax, dword [0x4fe8e0]
cmp eax, 1
je 0x44f944
cmp eax, 2
jge 0x44f91f
mov dword [edi + 0x5146a8], 0
jmp 0x44f935
mov dword [edi + 0x5146a8], 0
push dword [edi + 0x5146a4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push dword [edi + 0x5146b8]
push dword [edi + 0x5146b4]
call fcn.00430290
add esp, 8
mov eax, dword [0x4fe8e0]
jmp 0x44f90e
mov edx, dword [esi]
test edx, edx
je 0x44f96b
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x44f976
mov dword [eax], edx
jmp 0x44f97c
mov dword [edi + 0x5146a0], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x7c], 0
mov eax, dword [0x4fe8e0]
cmp eax, 1
je 0x44f9cd
cmp eax, 2
jge 0x44f9a1
mov dword [edi + 0x5146a8], 0
jmp 0x44f9b7
mov dword [edi + 0x5146a8], 0
push dword [edi + 0x5146a4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi + 8]
call fcn.00435b80
push esi
call fcn.00435b80
add esp, 8
jmp 0x44f935
push dword [edi + 0x5146b8]
push dword [edi + 0x5146b4]
call fcn.00430290
add esp, 8
mov eax, dword [0x4fe8e0]
jmp 0x44f990
lea eax, [edi + 0x5146b4]
push eax
call fcn.00430260
add esp, 4
jmp 0x44f8f9
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 0x5146a4], eax
mov dword [edi + 0x5146a8], 0
jmp 0x44f8d3
xor eax, eax
mov esi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x44fa30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call fcn.00446820
mov ebx, dword [ebp + 8]
cmp dword [0x519f00], 0
jne 0x44fa57
test ebx, ebx
je 0x44fa4c
mov eax, dword [ebx]
jmp 0x44fa4e
xor eax, eax
push eax
call fcn.00476190
add esp, 4
test ebx, ebx
je 0x44fa5f
mov eax, dword [ebx]
jmp 0x44fa61
xor eax, eax
push eax
call fcn.004c88d0
add esp, 4
jmp 0x44fa44
Function at 0x451230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 0x10], edi
mov edx, dword [ebx + 0x13c]
test edx, edx
mov ecx, edx
mov eax, dword [ebx + 0x38]
mov edi, dword [ebx + 0x40]
jne 0x451255
mov ecx, 0x20000
sub edi, eax
cmp edi, ecx
ja 0x451283
push 0
lea edx, [ebp - 8]
push edx
push edi
push eax
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xffffffff
test eax, eax
je 0x4512f8
mov ecx, 1
jmp 0x4512f8
test edx, edx
mov ecx, edi
mov dword [ebp - 0x18], edi
mov edi, eax
jne 0x451293
mov edx, 0x20000
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], esi
mov esi, ecx
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
push edi
push dword [ebx + 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4512c2
mov edi, dword [ebp - 0x18]
mov ecx, 0xffffffff
mov esi, dword [ebp - 0x14]
jmp 0x4512f8
mov edx, dword [ebx + 0x13c]
test edx, edx
mov eax, dword [ebp - 8]
jne 0x4512d4
mov edx, 0x20000
sub esi, eax
add edi, eax
cmp esi, edx
jae 0x4512e5
mov dword [ebp - 4], esi
test esi, esi
jne 0x4512e9
jmp 0x4512ed
test esi, esi
je 0x4512ed
test eax, eax
ja 0x45129b
mov edi, dword [ebp - 0x18]
mov ecx, 1
mov esi, dword [ebp - 0x14]
mov edx, dword [ebx + 0x38]
mov eax, dword [ebx + 0xf8]
mov dword [ebx + 0x40], edx
add edx, eax
xor eax, eax
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], eax
mov eax, edi
mov dword [ebx + 0x44], edx
cdq
mov eax, dword [ebx + 0xc0]
add edi, eax
mov dword [ebx + 0xc0], edi
adc edx, dword [ebx + 0xc4]
and byte [ebx + 0x16d], 0xfb
mov dword [ebx + 0xc4], edx
cmp ecx, 0xffffffff
mov dword [ebx + 0xb8], edi
mov dword [ebx + 0xbc], edx
je 0x451358
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xe8], eax
mov eax, 0x26
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x491150
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4fedc0]
jne 0x49115a
repz ret
jmp fcn.004a3080