joyce8/EMBER2024-capa huggingface dataset:
Function at 0x980250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x994808
push 0x984288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x980329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x980329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.009831d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x980329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x980329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x98032c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00980351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x980d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x980d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x980d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x980d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x980d94
push eax
push esi
call fcn.0098320b
add esp, 8
pop esi
ret 0x10

Function at 0x980da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x980e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x980e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x999320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00982dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x980dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x980e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x980ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x980eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x999320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00982dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x980eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x980e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x981000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x981131
push esi
call fcn.00984145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00973080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x981131
push 0
push ebp
call fcn.009733a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00973260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x98108b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.009732f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x981121
push 0x999918
push edi
call fcn.009823f0
push eax
push ebx
push esi
call fcn.00980f60
push 0x9998f8
push edi
call fcn.009823f0
push eax
push ebx
push esi
call fcn.00980f60
push 0x9998d8
push edi
call fcn.009823f0
push eax
push ebx
push esi
call fcn.00980f60
push 0x9998c0
push edi
call fcn.009823f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00980f60
push 0x9998a0
push edi
call fcn.009823f0
push eax
push ebx
push esi
call fcn.00980f60
push 0x999888
push edi
call fcn.009823f0
push eax
push ebx
push esi
call fcn.00980f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x9821b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00982140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00982140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00982140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00982140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x982bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x982c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x99487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x982c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x982c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x430006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x41a250
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 0x2d585d0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x41a2dc
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 0x41a2dc
cmp ebx, 0x15f90
jl 0x41a2d3
cmp ebx, 0x1d4c0
jge 0x41a2b0
mov eax, 0x32
jmp 0x41a2d5
cmp ebx, 0x2bf20
jge 0x41a2bf
mov eax, 0x64
jmp 0x41a2d5
mov eax, 0x1482
cmp ebx, 0x57d78
jl 0x41a2d5
mov eax, 0xfa
jmp 0x41a2d5
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
test eax, eax
je 0x41a2f0
inc ebx
cmp ebx, 0x57e40
jl 0x41a268
mov eax, dword [ebp - 4]
test eax, eax
je 0x41a30a
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.00430460
add esp, 4
mov eax, dword [0x2d585d4]
test eax, eax
jne 0x41a340
cmp dword [0x4fd5c0], 1
je 0x41a3c4
xor ebx, ebx
xor esi, esi
cmp dword [0x2d585cc], 0
je 0x41a384
mov dword [0x2d585d4], 1
cmp dword [0x4fd5c0], 1
je 0x41a36f
mov dword [0x2d585d0], 0
push dword [0x2d585c8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41a3e2
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.0046e050
push ebx
push 0x16
call fcn.0046e050
add esp, 0x10
jmp 0x41a340
mov dword [0x2d585cc], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x2d585c8], eax
cmp eax, 0xffffffff
jne 0x41a3a8
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41a32d
push 0x41a1e0
call fcn.0046ea70
push 0x41a1a0
call fcn.0046ea70
add esp, 8
jmp 0x41a32d
push 1
push 2
call fcn.0046e050
mov esi, eax
push 1
push 0x16
call fcn.0046e050
add esp, 0x10
mov ebx, eax
jmp 0x41a324
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x70
call fcn.004245d0
add esp, 0xc
test eax, eax
je 0x41a40c
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 + 0x4fd51c]
mov dword [eax + edx - 4], ecx
mov ebx, dword [edx + 0x4fd518]
mov dword [eax + edx - 8], ebx
mov esi, dword [edx + 0x4fd514]
mov dword [eax + edx - 0xc], esi
mov ecx, dword [edx + 0x4fd510]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x41a414
push dword [ebp - 0x10]
push dword [0x2d585c8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x10]
jmp 0x41a35e
Function at 0x41a460
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 0x2d585d0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x41a4ec
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 0x41a4ec
cmp ebx, 0x15f90
jl 0x41a4e3
cmp ebx, 0x1d4c0
jge 0x41a4c0
mov eax, 0x32
jmp 0x41a4e5
cmp ebx, 0x2bf20
jge 0x41a4cf
mov eax, 0x64
jmp 0x41a4e5
mov eax, 0x1482
cmp ebx, 0x57d78
jl 0x41a4e5
mov eax, 0xfa
jmp 0x41a4e5
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
test eax, eax
je 0x41a500
inc ebx
cmp ebx, 0x57e40
jl 0x41a478
mov eax, dword [ebp - 4]
test eax, eax
je 0x41a51a
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.00430460
add esp, 4
mov eax, dword [0x2d585d4]
test eax, eax
jne 0x41a550
cmp dword [0x4fd5c0], 1
je 0x41a5e9
xor ebx, ebx
xor esi, esi
cmp dword [0x2d585cc], 0
je 0x41a5a6
mov dword [0x2d585d4], 1
cmp dword [0x4fd5c0], 1
je 0x41a591
mov dword [0x2d585d0], 0
push dword [0x2d585c8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x41a627
mov eax, dword [ebp + 8]
mov dword [eax], ebx
cmp dword [0x4fd5c0], 1
je 0x41a607
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.0046e050
push ebx
push 0x16
call fcn.0046e050
add esp, 0x10
jmp 0x41a550
mov dword [0x2d585cc], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x2d585c8], eax
cmp eax, 0xffffffff
jne 0x41a5cd
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41a53d
push 0x41a1e0
call fcn.0046ea70
push 0x41a1a0
call fcn.0046ea70
add esp, 8
jmp 0x41a53d
push 1
push 2
call fcn.0046e050
mov esi, eax
push 1
push 0x16
call fcn.0046e050
add esp, 0x10
mov ebx, eax
jmp 0x41a534
push 1
push 2
call fcn.0046e050
push 1
push 0x16
mov dword [ebx + 0x64], eax
call fcn.0046e050
add esp, 0x10
mov dword [ebx + 0x68], eax
jmp 0x41a585
lea eax, [ebp - 0x10]
push eax
push 0
push 0x70
call fcn.004245d0
add esp, 0xc
test eax, eax
je 0x41a64e
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 + 0x4fd51c]
mov dword [eax + edx - 4], ecx
mov ebx, dword [edx + 0x4fd518]
mov dword [eax + edx - 8], ebx
mov esi, dword [edx + 0x4fd514]
mov dword [eax + edx - 0xc], esi
mov ecx, dword [edx + 0x4fd510]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x41a656
push dword [ebp - 0x10]
push dword [0x2d585c8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp - 0x10]
jmp 0x41a573
Function at 0x41c2b0
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 0x41c2d5
mov ecx, 0x20000
sub edi, eax
cmp edi, ecx
ja 0x41c303
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 0x41c378
mov ecx, 1
jmp 0x41c378
test edx, edx
mov ecx, edi
mov dword [ebp - 0x18], edi
mov edi, eax
jne 0x41c313
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 0x41c342
mov edi, dword [ebp - 0x18]
mov ecx, 0xffffffff
mov esi, dword [ebp - 0x14]
jmp 0x41c378
mov edx, dword [ebx + 0x13c]
test edx, edx
mov eax, dword [ebp - 8]
jne 0x41c354
mov edx, 0x20000
sub esi, eax
add edi, eax
cmp esi, edx
jae 0x41c365
mov dword [ebp - 4], esi
test esi, esi
jne 0x41c369
jmp 0x41c36d
test esi, esi
je 0x41c36d
test eax, eax
ja 0x41c31b
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 0x41c3d8
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 0x424d60
Capabilities:
Check mutex on windows

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

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x42dcf0
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 0x42dd15
mov ecx, 0x20000
sub edi, eax
cmp edi, ecx
ja 0x42dd43
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 0x42ddb8
mov ecx, 1
jmp 0x42ddb8
test edx, edx
mov ecx, edi
mov dword [ebp - 0x18], edi
mov edi, eax
jne 0x42dd53
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 0x42dd82
mov edi, dword [ebp - 0x18]
mov ecx, 0xffffffff
mov esi, dword [ebp - 0x14]
jmp 0x42ddb8
mov edx, dword [ebx + 0x13c]
test edx, edx
mov eax, dword [ebp - 8]
jne 0x42dd94
mov edx, 0x20000
sub esi, eax
add edi, eax
cmp esi, edx
jae 0x42dda5
mov dword [ebp - 4], esi
test esi, esi
jne 0x42dda9
jmp 0x42ddad
test esi, esi
je 0x42ddad
test eax, eax
ja 0x42dd5b
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 0x42de18
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 0x430290
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 0x43044c
mov edx, dword [0x4fd5c0]
mov edi, dword [esi + 0x14]
lea eax, [edi*4]
shl edi, 5
sub edi, eax
cmp edx, 2
lea ebx, [edi + 0x2d5d368]
jge 0x4302df
mov eax, dword [ebx]
test eax, eax
jne 0x430320
mov dword [edi + 0x2d5d368], 1
jmp 0x430320
push ebx
call fcn.0041a6f0
add esp, 4
test eax, eax
jne 0x43031a
cmp dword [edi + 0x2d5d364], 0
je 0x43042c
mov dword [edi + 0x2d5d368], 0
push 0xffffffffffffffff
push dword [edi + 0x2d5d364]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call fcn.0041a6f0
add esp, 4
mov edx, dword [0x4fd5c0]
cmp edx, 1
je 0x430418
mov eax, dword [esi + 0x18]
dec eax
mov dword [esi + 0x18], eax
test eax, eax
jle 0x43038f
mov eax, dword [0x4fd5c0]
cmp eax, 1
je 0x430374
cmp eax, 2
jge 0x43034f
mov dword [edi + 0x2d5d368], 0
jmp 0x430365
mov dword [edi + 0x2d5d368], 0
push dword [edi + 0x2d5d364]
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 + 0x2d5d378]
push dword [edi + 0x2d5d374]
call fcn.0041a6d0
add esp, 8
mov eax, dword [0x4fd5c0]
jmp 0x43033e
mov edx, dword [esi]
test edx, edx
je 0x43039b
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4303a6
mov dword [eax], edx
jmp 0x4303ac
mov dword [edi + 0x2d5d360], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x7c], 0
mov eax, dword [0x4fd5c0]
cmp eax, 1
je 0x4303fd
cmp eax, 2
jge 0x4303d1
mov dword [edi + 0x2d5d368], 0
jmp 0x4303e7
mov dword [edi + 0x2d5d368], 0
push dword [edi + 0x2d5d364]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi + 8]
call fcn.00424690
push esi
call fcn.00424690
add esp, 8
jmp 0x430365
push dword [edi + 0x2d5d378]
push dword [edi + 0x2d5d374]
call fcn.0041a6d0
add esp, 8
mov eax, dword [0x4fd5c0]
jmp 0x4303c0
lea eax, [edi + 0x2d5d374]
push eax
call fcn.0041a6a0
add esp, 4
jmp 0x430329
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 0x2d5d364], eax
mov dword [edi + 0x2d5d368], 0
jmp 0x430303
xor eax, eax
mov esi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x430460
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call fcn.0042c340
mov ebx, dword [ebp + 8]
cmp dword [0x2d62c40], 0
jne 0x430487
test ebx, ebx
je 0x43047c
mov eax, dword [ebx]
jmp 0x43047e
xor eax, eax
push eax
call fcn.0046d4c0
add esp, 4
test ebx, ebx
je 0x43048f
mov eax, dword [ebx]
jmp 0x430491
xor eax, eax
push eax
call fcn.004bfc40
add esp, 4
jmp 0x430474
Function at 0x449be0
Capabilities:
Read file on windows

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

Function at 0x449bec
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 [0x2d62c40], 0
je 0x449cc3
cmp dword [ebp + 0x20], 2
je 0x449c23
cmp dword [ebp + 0x20], 1
jne 0x449c32
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 0x449c42
cmp dword [ebp + 0x20], 0xfffffffa
je 0x449d88
cmp dword [ebp + 0x20], 0
je 0x449d94
xor ecx, ecx
xor edi, edi
cmp dword [ebp + 0x18], 0
je 0x449c77
cmp dword [ebp + 0x1c], 0
je 0x449c77
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
call fcn.004bf9f0
push edi
call fcn.004bfb60
mov edx, dword [ebp - 0x10]
add esp, 8
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x449cc3
push edi
push esi
push ebx
call fcn.004bfa90
add esp, 0xc
mov esi, eax
mov eax, dword [ebp + 0x14]
cmp esi, 0xffffffff
mov dword [eax], esi
je 0x449db8
push 0
push edi
push 2
push 0x4d9d4c
call fcn.004bfa50
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 0x449ceb
mov edi, dword [ecx + 0x13c]
test edi, edi
jne 0x449cf0
mov edi, 0x20000
cmp esi, edi
jbe 0x449d64
cmp dword [ebp + 0x20], 0
je 0x449d64
test ecx, ecx
je 0x449d08
mov edi, dword [ecx + 0x13c]
test edi, edi
jne 0x449d0d
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 0x449d52
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 0x449d47
mov edx, dword [ebp + 0x24]
mov edx, dword [edx + 0x13c]
test edx, edx
jne 0x449d4c
mov edx, 0x20000
cmp esi, edx
ja 0x449d52
mov edi, esi
test esi, esi
je 0x449d7b
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x18]
jne 0x449d7b
test eax, eax
jne 0x449d10
jmp 0x449d7b
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 0x449c56
mov dword [ebp - 0x10], edx
call fcn.004bfc80
mov edx, dword [ebp - 0x10]
mov edi, eax
cmp dword [0x2d62c40], 0
je 0x449c7b
mov ecx, 1
jmp 0x449c50
xor eax, eax
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret