joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f6df0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
lea esp, [esp - 4]
mov edi, edx
mov dword [esp], eax
lea eax, [ecx - 1]
mov esi, eax
mov ecx, 0
cmp esi, ecx
jl 0x4f6e38
sub ecx, 1
lea esi, [esi]
add ecx, 1
mov al, byte [esp]
mov dl, byte [edi]
xor dl, al
movzx eax, dl
mov ebx, eax
mov eax, dword [esp]
shr eax, 8
mov edx, dword [ebx*4 + 0x642b60]
xor edx, eax
mov dword [esp], edx
add edi, 1
cmp esi, ecx
jg 0x4f6e10
mov eax, dword [esp]
lea esp, [esp + 4]
pop edi
pop esi
pop ebx
ret

Function at 0x4feb60
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x4feb90
mov eax, esi
call fcn.00502fc0
cmp byte [esi + 0x40], 0
je 0x4feb89
mov dword [esi + 0x14], 0xcf
mov bl, 1
jmp 0x4fec28
mov dword [esi + 0x14], 0xcb
cmp dword [esi + 0x14], 0xcb
jne 0x4fec0a
mov eax, dword [esi + 0x184]
cmp byte [eax + 0x10], 0
je 0x4fec02
lea esi, [esi]
cmp dword [esi + 8], 0
je 0x4febb9
mov eax, esi
mov edx, dword [esi + 8]
call dword [edx]
mov eax, esi
mov edx, dword [esi + 0x184]
call dword [edx]
mov edi, eax
test edi, edi
jne 0x4febcd
mov bl, 0
jmp 0x4fec28
cmp edi, 2
je 0x4fec02
cmp dword [esi + 8], 0
je 0x4febac
cmp edi, 3
je 0x4febe2
cmp edi, 1
jne 0x4febac
mov eax, dword [esi + 8]
add dword [eax + 4], 1
mov edx, dword [esi + 8]
mov eax, dword [edx + 4]
cmp eax, dword [edx + 8]
jl 0x4febac
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x110]
add dword [edx + 8], eax
jmp 0x4febac
mov eax, dword [esi + 0x70]
mov dword [esi + 0x78], eax
jmp 0x4fec1f
cmp dword [esi + 0x14], 0xcc
je 0x4fec1f
mov ecx, dword [esi + 0x14]
mov eax, esi
mov dl, 0x14
call fcn.004fef10
mov eax, esi
call fcn.004fec30
mov bl, al
mov al, bl
pop edi
pop esi
pop ebx
ret
Function at 0x56b240
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 4]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x56b256
jmp 0x56b291
mov eax, dword [0x5994b0]
mov edx, dword [ebp - 4]
mov eax, dword [eax + 0x14c]
cmp eax, dword [edx + 0x28]
je 0x56b26b
jmp 0x56b291
mov eax, dword [0x5994b0]
cmp byte [eax + 0x104], 0
je 0x56b27b
jmp 0x56b291
mov eax, dword [0x59b6b0]
mov edx, dword [0x59b6b0]
mov edx, dword [edx]
call dword [edx + 0x6c]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov ebx, dword [ebp - 4]
mov eax, dword [0x59b6b0]
mov edx, dword [0x59b6b0]
mov edx, dword [edx]
call dword [edx + 0x6c]
cmp eax, dword [ebx + 4]
je 0x56b2ae
jmp 0x56b38a
mov eax, dword [0x5994b0]
cmp byte [eax + 0x104], 0
je 0x56b2c1
jmp 0x56b38a
mov eax, dword [0x59b6b0]
mov edx, dword [0x59b6b0]
mov edx, dword [edx]
call dword [edx + 0x6c]
call fcn.0057e830
mov eax, dword [0x5994b0]
cmp dword [eax + 0x14c], 0
jne 0x56b2e6
jmp 0x56b352
push 0x10
push 0
mov eax, dword [0x5994b0]
mov eax, dword [eax + 0x14c]
push dword [eax + 0x23c]
mov eax, dword [0x5994b0]
mov eax, dword [eax + 0x14c]
push dword [eax + 0x230]
mov eax, dword [0x5994b0]
mov eax, dword [eax + 0x14c]
push dword [eax + 0x128]
push 0
mov eax, dword [ebp - 4]
push dword [eax + 4]
call sub.user32.dll_SetWindowPos
mov eax, dword [0x5994b0]
mov eax, dword [eax + 0x14c]
call fcn.00424e50
test al, al
jne 0x56b340
jmp 0x56b352
push 0
mov eax, dword [0x5994b0]
call fcn.00441ef0
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x112
mov eax, dword [ebp - 4]
push dword [eax + 4]
call sub.user32.dll_DefWindowProcA
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x2c], 0
mov eax, dword [0x5994b0]
call fcn.00444dc0
jmp 0x56b3e1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x56b395
jmp 0x56b3e1
mov eax, dword [ebp - 4]
mov edx, dword [0x5994b0]
mov eax, dword [eax + 0x28]
cmp eax, dword [edx + 0x14c]
je 0x56b3ab
jmp 0x56b3e1
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push 0x112
mov eax, dword [ebp - 4]
push dword [eax + 4]
call sub.user32.dll_DefWindowProcA
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x2c], 0
mov eax, dword [0x5994b0]
call fcn.00444dc0
pop ebx
leave
ret
Function at 0x5713a0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x34]
push ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov byte [ebp - 0xc], 0
mov eax, dword [ebp - 8]
push dword [eax - 8]
call sub.user32.dll_GetClipboardData
mov edx, dword [ebp - 8]
mov dword [edx - 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0x14], 0
jne 0x5713d1
jmp 0x571450
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalSize
mov edx, dword [ebp - 8]
mov dword [edx - 0x1c], eax
mov eax, dword [ebp - 8]
cmp dword [eax - 0x1c], 0
jg 0x5713ed
jmp 0x571450
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalLock
mov edx, dword [ebp - 8]
mov dword [edx - 0x18], eax
mov eax, 1
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x18]
call fcn.0040db40
call fcn.0040f650
push eax
test eax, eax
jne 0x571432
mov eax, dword [ebp - 8]
mov edx, dword [eax - 0x18]
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 0x1c]
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
call dword [ebx + 0x84]
call fcn.0040ddc0
mov eax, dword [ebp - 8]
push dword [eax - 0x14]
call sub.kernel32.dll_GlobalUnlock
pop eax
test eax, eax
je 0x57144c
call fcn.0040def0
mov byte [ebp - 0xc], 1
mov al, byte [ebp - 0xc]
pop ebx
leave
ret
Function at 0x571af0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x78]
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov eax, 1
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x20]
call fcn.0040db40
call fcn.0040f650
push eax
test eax, eax
jne 0x571c5e
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
push eax
push 2
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x571b55
jmp 0x571bf9
lea eax, [ebp - 0x40]
call fcn.00403e80
lea eax, [ebp - 0x44]
call fcn.00403e80
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
lea eax, [ebp - 0x44]
call fcn.004bbcd0
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
call fcn.00409050
lea eax, [ebp - 0x44]
call fcn.00403e80
lea eax, [ebp - 0x54]
call fcn.00403e80
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x10]
call fcn.004bbc80
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x44]
call fcn.00409050
call fcn.004c6800
mov ebx, eax
mov eax, str._DataSize
push eax
push dword [ebp - 0x40]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x44]
mov edx, str.TWin32WidgetSet.ClipboardGetOwnerShip_DataHandle
mov eax, ebx
call fcn.004c7ac0
mov eax, dword [ebp - 0xc]
mov byte [eax - 0x10], 0
jmp 0x571c5e
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
mov eax, 1
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x60]
call fcn.0040db40
call fcn.0040f650
push eax
test eax, eax
jne 0x571c3c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
call dword [ebx + pe_nt_image_headers32]
call fcn.0040ddc0
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalUnlock
pop eax
test eax, eax
je 0x571c53
call fcn.0040def0
push dword [ebp - 0x10]
push dword [ebp - 4]
call sub.user32.dll_SetClipboardData
call fcn.0040ddc0
lea eax, [ebp - 0x54]
call fcn.00403e80
lea eax, [ebp - 0x44]
call fcn.00403e80
lea eax, [ebp - 0x40]
call fcn.00403e80
pop eax
test eax, eax
je 0x571c85
call fcn.0040def0
pop ebx
leave
ret
Function at 0x4010f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40110b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401144
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401140
jmp 0x401130
cmp esi, eax
jae 0x401144
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401130
cmp esi, eax
jb 0x40114b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401290
Capabilities:
Get hostname
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x426168]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push 0x3a
lea eax, [ebp - 0x3e]
push esi
push eax
mov dword [ebp - 0x98], ecx
mov word [ebp - 0x40], si
call fcn.0040e580
add esp, 0xc
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0x40]
push edx
mov dword [ebp - 0x88], 0x1e
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
cmp byte [ebp + 8], 0
je 0x4012fb
mov eax, dword [ebp - 0x88]
cmp eax, 0x1d
jae 0x4012fb
mov word [ebp + eax*2 - 0x40], 0x24
add eax, 1
mov dword [ebp - 0x88], eax
push ebx
push edi
push 0x43
lea eax, [ebp - 0x83]
push esi
push eax
mov byte [ebp - 0x84], 0
call fcn.0040e580
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
add esp, 0xc
mov dword [ebp - 0x94], 0x44
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x8c], 2
jmp 0x401340
lea ecx, [ebp - 0x9c]
push ecx
lea edx, [ebp - 0x90]
push edx
push esi
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0x40]
push edx
push 0
call ebx
mov edi, eax
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x401390
test esi, esi
jne 0x401390
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040cdcc
add esp, 4
mov esi, eax
sub dword [ebp - 0x8c], 1
jne 0x401340
test esi, esi
je 0x4013a6
push esi
call fcn.0040d2a5
add esp, 4
test edi, edi
pop edi
pop ebx
je 0x4013e3
mov esi, dword [ebp - 0x98]
push esi
lea eax, [ebp - 0x84]
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x4013d0
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x4013e3
mov eax, dword [esi]
test eax, eax
je 0x4013e3
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040d2aa
mov esp, ebp
pop ebp
ret 4
Function at 0x401910
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cf00
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x426168]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
test eax, eax
mov dword [ebp - 0x14], 0x80004005
jle 0x401a25
mov edx, dword [0x428980]
mov eax, dword [edx + 0xc]
mov ecx, 0x428980
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
push 0
push 0
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.PATH
call edi
mov esi, eax
test esi, esi
je 0x4019cf
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, esi
or eax, ecx
jge 0x4019a4
push esi
lea ecx, [ebp - 0x10]
call fcn.00402920
mov ebx, dword [ebp - 0x10]
test esi, esi
jl 0x401a89
cmp esi, dword [ebx - 8]
jg 0x401a89
push esi
push ebx
mov dword [ebx - 0xc], esi
push str.PATH
mov word [ebx + esi*2], 0
call edi
lea edi, [ebp - 0x10]
call fcn.00402510
cmp dword [ebx - 0xc], 0
je 0x4019e4
push 1
push 0x420c20
lea ecx, [ebp - 0x10]
call fcn.00402810
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00402810
mov esi, dword [ebp - 0x10]
push esi
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401a25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x401a51
push str.DllRegisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401a4a
call eax
mov dword [ebp - 0x14], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401a74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401000
int3
Function at 0x402c70
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x426168]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x43
lea eax, [ebp - 0x47]
push ebx
push eax
mov esi, ecx
mov byte [ebp - 0x48], bl
call fcn.0040e580
mov eax, dword [esi + 4]
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], ebx
je 0x402cbc
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 4], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x402ccd
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 8], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x402cde
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x4c], 2
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x50]
push edx
push eax
mov eax, dword [esi]
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x48]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
mov eax, dword [ebp - 0x50]
cmp eax, ebx
je 0x402d27
cmp dword [esi + 4], ebx
jne 0x402d27
lea ecx, [eax + eax]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 4], eax
sub dword [ebp - 0x4c], 1
jne 0x402ce5
cmp edi, ebx
je 0x402d9f
lea edi, [esi + 8]
push edi
lea edx, [ebp - 0x48]
push edx
call sub.ADVAPI32.dll_ConvertSidToStringSidW
cmp eax, ebx
je 0x402d4f
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x402d9f
mov eax, dword [esi]
cmp eax, ebx
je 0x402d66
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x402d7f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 4], ebx
mov eax, dword [edi]
cmp eax, ebx
je 0x402d8e
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edi], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x402d9f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d2aa
mov esp, ebp
pop ebp
ret
Function at 0x403310
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ce90
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x426168]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 8]
mov si, word [edi]
neg si
sbb esi, esi
and esi, 0x7ff8ffa9
add esi, 0x80070057
js 0x40342e
lea ecx, [ebp - 0x34]
call fcn.00408980
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x20]
and eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, ebx
jne 0x4033a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40341d
cmp eax, ebx
jg 0x40339a
mov esi, eax
jmp 0x40341d
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x40341d
lea edx, [ebp - 0x10]
push edx
push 0x420df4
mov dword [ebp - 0x10], ebx
call sub.ADVAPI32.dll_ConvertStringSidToSidW
cmp eax, ebx
je 0x40340c
push str.SeSecurityPrivilege
call fcn.00403280
add esp, 4
cmp eax, ebx
je 0x40340c
push str.SeTakeOwnershipPrivilege
call fcn.00403280
add esp, 4
cmp eax, ebx
je 0x40340c
cmp dword [edi - 4], 1
jle 0x4033f4
mov eax, dword [edi - 0xc]
push eax
lea ecx, [ebp + 8]
call fcn.00402970
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
push ecx
push edx
push ebx
push eax
push 0x1d
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x40341d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x40342e
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x14], ebx
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403451
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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

Function at 0x403b30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
add eax, 0x662
push ebx
mov dword [ebp - 4], eax
push edi
mov edi, edi
push 0x822
push 0
push esi
call fcn.0040e580
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x42971c
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [ebp - 4]
push 0x420cd2
push eax
push ebx
push edi
push ecx
push str._s_u__u__u_s
push esi
call fcn.0040da05
add esp, 0x1c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403b40
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4042f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
push esi
je 0x404305
test eax, eax
je 0x404305
xor esi, esi
jmp 0x40430a
mov esi, 0x80070057
test esi, esi
mov dword [ebp - 4], 0
jl 0x4043af
push edi
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x404350
call edi
test eax, eax
jle 0x40434e
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x40439e
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov esi, eax
test esi, esi
jl 0x40439e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push 0
lea edx, [ebp - 8]
push edx
mov edx, dword [ebp - 4]
push ecx
push edx
push 0xffffffffffffffff
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40439e
call edi
test eax, eax
jle 0x40439c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp dword [ebp - 4], 0
pop edi
je 0x4043af
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404fd0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41caab
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x426168]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 0xf0], eax
je 0x405014
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x405016
xor eax, eax
lea edi, [eax + eax]
lea eax, [edi + 2]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x405145
mov eax, dword [ebp - 0xf0]
push edi
push eax
push esi
call fcn.0040e600
add esp, 0xc
push esi
mov word [edi + esi], bx
call dword [sym.imp.USER32.dll_CharLowerW]
lea ecx, [ebp - 0xec]
call fcn.0040a1a0
lea ecx, [ebp - 0xec]
mov dword [ebp - 4], ebx
call fcn.00409020
push edi
push esi
lea ecx, [ebp - 0xec]
call fcn.0040a1f0
lea ecx, [ebp - 0xec]
call fcn.0040a260
lea ecx, [ebp - 0xec]
call fcn.00409070
mov edi, eax
test edi, edi
je 0x405123
cmp byte [edi], bl
je 0x405123
mov ecx, dword [str.Global_]
mov edx, dword [0x421178]
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x30
sub ecx, eax
push ecx
push edi
lea edx, [ebp + eax - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x44]
push eax
push ebx
push ebx
mov byte [ebp - 0x15], bl
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
test ebx, ebx
je 0x405123
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405123
cmp eax, 0x80
je 0x405123
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp - 0xec]
mov dword [ebp - 4], 0xffffffff
call fcn.00409010
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040d2aa
mov esp, ebp
pop ebp
ret 4