joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ad40
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47f083
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00472914
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00477fa9
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004794c5
test eax, eax
je 0x43ae5c
mov ecx, dword [esp + 0x3c]
call fcn.00477fd6
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43ae20
push edi
mov ecx, esi
call fcn.00475643
mov ecx, esi
call fcn.0043afc0
cmp dword [esp + 0x38], 1
jne 0x43ae55
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0047577e
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43d870
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43d8a3
push esi
call fcn.00440980
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43d89c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43d929
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43d912
mov eax, dword [esi + 8]
test eax, eax
je 0x43d8c7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43d90e
cmp eax, 2
je 0x43d912
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43d8ba
cmp eax, 3
je 0x43d8ed
cmp eax, 1
jne 0x43d8ba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43d8ba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43d8ba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043d950
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43d938
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043d950
add esp, 4
pop esi
ret

Function at 0x44ba00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5658f8]
xor edx, edx
cmp eax, edx
jne 0x44ba26
xor eax, eax
mov byte [eax + 0x5657f8], al
inc eax
cmp eax, 0x100
jl 0x44ba0e
mov dword [0x5658f8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5657f8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x44bab7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x44ba8a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x44ba58
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x44bb30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x44bb83
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x44bb6a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x452500
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47f51e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00452e20
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x538a7c
call fcn.004710a3
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x452593
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004710a3
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x45258c
push 0
mov ecx, eax
call fcn.00449630
mov dword [esi + 0xc], eax
jmp 0x452595
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x452595
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x473709
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x473741
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004717bd
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00471795
jmp 0x47374d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x474dfb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x474e3d
call fcn.0047a8b5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x474e3d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x474e34
xor eax, eax
jmp 0x474e45
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00474e4b
pop edi
pop esi
pop ebx
ret 4
Function at 0x47ade5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47ae13
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47ae31
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047ad4b
jmp 0x47ae31
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47ae31
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047ad4b
test edi, edi
mov eax, edi
jne 0x47ae1b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401880
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437099
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x44c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x150], edi
mov dword [edi + 4], fcn.00427b01
mov dword [edi + 8], fcn.004280d8
mov dword [edi + 0xc], fcn.00427afc
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x8000
mov dword [edi], vtable.t_heap.0
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x150], edi
mov dword [edi + 0x18], 0
mov byte [edi + 0x1c], 1
lea esi, [edi + 0x20]
mov dword [ebp - 4], 0
mov dword [ebp - 0x158], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00402f90
mov dword [esi], eax
xor eax, eax
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 7
mov word [edi + 0x28], ax
mov dword [edi + 0x40], eax
mov dword [ebp - 4], 1
mov dword [edi + 0x48], 0xffffffff
mov dword [edi + 0x4c], 0xffffffff
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], 1
cmp dword [edi + 0x40], eax
jne 0x401a29
lea ecx, [ebp - 0x14c]
call fcn.00402770
mov byte [ebp - 4], 2
cmp dword [ebp - 0x148], 0
je 0x401a00
cmp byte [ebp - 0x30], 0
lea eax, [ebp - 0x140]
cmove eax, dword [ebp - 0x144]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401a00
shr eax, 4
not al
and al, 1
je 0x401a00
cmp byte [ebp - 0x30], 0
lea edx, [ebp - 0x140]
mov dword [ebp - 0x18], 0
cmove edx, dword [ebp - 0x144]
add edx, 4
mov dword [ebp - 0x14], 7
mov ecx, edx
xor eax, eax
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4019d0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00402e40
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.004067e0
lea ecx, [ebp - 0x28]
call fcn.00402d90
cmp byte [ebp - 0x30], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x401a29
mov eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x140]
cmp eax, ecx
je 0x401a29
push eax
call fcn.00427afc
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421b57
mov esp, ebp
pop ebp
ret
Function at 0x402290
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43711b
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x44c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp byte [0x44fb61], 0
je 0x4022d1
xor eax, eax
jmp 0x40245a
call fcn.00404ad0
test al, al
jne 0x4022ca
call fcn.004041e0
test al, al
je 0x4022ca
call fcn.00403850
test al, al
je 0x40230b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push str.CheckSig1
push eax
call fcn.0040a170
mov ecx, eax
call fcn.0040a2f0
mov ecx, eax
call fcn.0040a660
sub esp, 0x10
lea ecx, [ebp - 0x134]
push 0
push esi
call fcn.00405860
mov dword [ebp - 4], 0
lea eax, [ebp - 0x128]
cmp byte [ebp - 0x18], 0
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40242a
shr eax, 4
not al
and al, 1
je 0x40242a
call fcn.00403730
cmp byte [0x44fb59], 0
jne 0x4023ff
push 0x114
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.004238c0
push 0x114
lea eax, [ebp - 0x35c]
push 0
push eax
call fcn.004238c0
add esp, 0x18
lea edx, [ebp - 0x35c]
lea ecx, [ebp - 0x248]
call fcn.00404930
mov eax, dword [ebp - 0x244]
cmp eax, 6
ja 0x4023d1
jne 0x4023f8
mov ecx, dword [ebp - 0x240]
cmp ecx, 2
jb 0x4023f8
movzx eax, byte [0x44fb58]
cmp ecx, 3
mov edx, 1
cmovae eax, edx
mov byte [0x44fb58], al
jmp 0x4023d8
mov byte [0x44fb58], 1
mov eax, dword [ebp - 0x358]
cmp eax, 0xa
jae 0x4023f1
cmp eax, 6
jne 0x4023f8
cmp dword [ebp - 0x354], 3
jb 0x4023f8
mov byte [0x44fb58], 1
mov byte [0x44fb59], 1
cmp byte [0x44fb58], 0
mov edx, edi
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
je 0x40241e
call fcn.00402080
add esp, 8
mov esi, eax
jmp 0x40242f
call fcn.00401ba0
add esp, 8
mov esi, eax
jmp 0x40242f
mov esi, 1
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x402458
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x402458
push eax
call fcn.00427afc
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421b57
mov esp, ebp
pop ebp
ret
Function at 0x4043d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4372e1
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x44c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
lea ecx, [ebp - 0x32c]
call fcn.004057c0
mov dword [ebp - 4], 0
mov byte [ebp - 0x334], 0
mov dword [ebp - 0x338], 0
push 0x80000002
lea ecx, [ebp - 0x208]
call fcn.00409b40
sub esp, 0xc
mov byte [ebp - 4], 2
lea eax, [ebp - 0x338]
lea ecx, [ebp - 0x208]
push str.SoftwareSogouInput
push eax
call fcn.00409de0
test al, al
je 0x404549
push 0x105
lea ecx, [ebx + 8]
mov dword [ebx + 0x120], 0x105
call fcn.00404130
cmp byte [ebx + 0x11c], 0
lea eax, [ebx + 0xc]
jne 0x40447f
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x330]
mov dword [ebp - 0x33c], 0
push ecx
add eax, 4
mov dword [ebp - 0x330], 0x208
push eax
lea eax, [ebp - 0x33c]
push eax
push 0
push 0
push dword [ebp - 0x204]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4044ff
cmp byte [ebp - 0xe0], 0
lea edi, [ebp - 0x1f0]
push eax
cmove edi, dword [ebp - 0x1f4]
lea ecx, [ebp - 0x338]
call fcn.00407100
push 0x444cc4
mov esi, eax
push 0x444420
push esi
call fcn.00403f30
lea ecx, [edi + 4]
push ecx
push 0x444420
push esi
call fcn.00403f30
add esp, 0x18
jmp 0x404542
cmp dword [ebp - 0x33c], 1
je 0x4045f1
cmp byte [ebp - 0xe0], 0
lea esi, [ebp - 0x1f0]
push 0x444cd4
cmove esi, dword [ebp - 0x1f4]
lea ecx, [ebp - 0x338]
call fcn.00403170
lea edx, [esi + 4]
push edx
push 0x444420
push eax
call fcn.00403f30
add esp, 0xc
mov ecx, ebx
call fcn.00403c70
xor bl, bl
mov eax, dword [ebp - 0x204]
mov dword [ebp - method.t_reg.virtual_0], vtable.t_reg.0
test eax, eax
je 0x404566
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0xe0], 0
mov dword [ebp - 0x204], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40459c
mov eax, dword [ebp - 0x1f4]
lea ecx, [ebp - 0x1f0]
cmp eax, ecx
je 0x40459c
push eax
call fcn.00427afc
add esp, 4
lea ecx, [ebp - 0x338]
call fcn.00406fb0
cmp byte [ebp - 0x210], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4045d3
mov eax, dword [ebp - 0x324]
lea ecx, [ebp - 0x320]
cmp eax, ecx
je 0x4045d3
push eax
call fcn.00427afc
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421b57
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.00403e50
push 0xc8
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.004238c0
add esp, 0xc
mov dword [ebp - 0x330], 0xc8
lea eax, [ebp - 0x330]
lea ecx, [ebp - 0x208]
push 1
push 0x4444a4
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x338]
push eax
call fcn.00409ef0
test al, al
je 0x404549
push 0x4444a0
push 0x444420
push ebx
call fcn.00403f30
lea eax, [ebp - 0xd8]
push eax
push 0x444420
push ebx
call fcn.00403f30
add esp, 0x18
mov bl, 1
jmp 0x40454b
Function at 0x4046e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push 0
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push dword [esi - 0x350]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x404760
lea edi, [esi - 0x33c]
cmp byte [esi - 0x22c], al
jne 0x404729
mov edi, dword [esi - 0x340]
mov ecx, dword [ebp + 8]
call fcn.00407180
push 0x4443b0
mov esi, eax
push 0x444420
push esi
call fcn.00403f30
lea ecx, [edi + 4]
push ecx
push 0x444420
push esi
call fcn.00403f30
add esp, 0x18
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp - 4]
cmp edi, ebx
je 0x4047f6
cmp byte [esi - 0x22c], 0
lea ebx, [esi - 0x33c]
jne 0x404780
mov ebx, dword [esi - 0x340]
mov ecx, dword [ebp + 8]
push 0x4444b4
call fcn.00403170
push 0x4444c4
mov esi, eax
push 0x444420
push esi
call fcn.00403f30
push dword [ebp + 0x10]
push 0x444418
push esi
call fcn.00403f30
push 0x4444d0
push 0x444420
push esi
call fcn.00403f30
push edi
push 0x444418
push esi
call fcn.00403f30
push 0x4444e0
push 0x444420
push esi
call fcn.00403f30
lea eax, [ebx + 4]
push eax
push 0x444420
push esi
call fcn.00403f30
add esp, 0x48
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x404850
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, ecx
mov dword [ebp - 4], 0
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
push ecx
push eax
mov edi, edx
mov dword [ebp - 8], 0
xor bl, bl
mov dword [ebp - 0x10], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x404890
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push eax
call fcn.00427b01
add esp, 4
mov esi, eax
push esi
push dword [ebp - 4]
push 0
push dword [ebp - 0xc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x404911
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x4444a0
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x404911
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
movzx eax, word [ecx + 0xa]
mov word [edi], ax
movzx eax, word [ecx + 8]
mov word [edi + 2], ax
movzx eax, word [ecx + 0xe]
mov word [edi + 4], ax
movzx eax, word [ecx + 0xc]
mov word [edi + 6], ax
test edx, edx
je 0x40490f
movzx eax, word [ecx + 0x12]
mov word [edx], ax
movzx eax, word [ecx + 0x10]
mov word [edx + 2], ax
movzx eax, word [ecx + 0x16]
mov word [edx + 4], ax
movzx eax, word [ecx + 0x14]
mov word [edx + 6], ax
mov bl, 1
test esi, esi
je 0x40491e
push esi
call fcn.00427afc
add esp, 4
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404930
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x44c040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.004238c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x404987
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421b57
mov esp, ebp
pop ebp
ret
push str.kernel32.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00427bcd
lea eax, [ebp - 0x21c]
push eax
lea edx, [ebp - 0x214]
lea ecx, [ebp - 0x20c]
call fcn.00404850
add esp, 0x10
test al, al
je 0x404975
movzx eax, word [ebp - 0x214]
mov dword [edi + 4], eax
movzx eax, word [ebp - 0x212]
mov dword [edi + 8], eax
movzx eax, word [ebp - 0x210]
mov dword [edi + 0xc], eax
xor eax, eax
mov dword [edi], 0x114
mov dword [edi + 0x10], 2
mov word [edi + 0x14], ax
test esi, esi
je 0x404a22
movzx eax, word [ebp - 0x21c]
mov dword [esi + 4], eax
movzx eax, word [ebp - 0x21a]
mov dword [esi + 8], eax
movzx eax, word [ebp - 0x218]
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [esi], 0x114
mov dword [esi + 0x10], 2
mov word [esi + 0x14], ax
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00421b57
mov esp, ebp
pop ebp
ret
Function at 0x405520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4373db
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x44c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x138], ecx
mov eax, dword [ebp + 0xc]
xor edi, edi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x13c], edi
cmp dword [eax + 4], ebx
jbe 0x4055a8
mov esi, eax
mov eax, ebx
lea edi, [ebp - 0x13c]
and eax, 1
mov ecx, esi
lea edi, [edi + eax*2]
call fcn.00403f10
movzx eax, word [eax + ebx*2]
push eax
call fcn.00428e30
xor word [edi], ax
inc ebx
add esp, 4
cmp ebx, dword [esi + 4]
jb 0x405571
mov edi, dword [ebp - 0x13c]
mov esi, dword [ebp - 0x144]
mov eax, 4
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
mov word [ebp - 0x1a], ax
lea ecx, [ebp - 0x12c]
lea eax, [ebp - 0x128]
mov byte [ebp - 0x18], 1
push 1
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.00404130
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
cmove eax, dword [ebp - 0x12c]
xor ecx, ecx
mov word [eax + 4], cx
push str.Local_
lea eax, [ebp - 0x134]
mov dword [ebp - 4], ecx
push 0x444420
push eax
call fcn.00403f30
push str.mutex_file_
lea eax, [ebp - 0x134]
push 0x444420
push eax
call fcn.00403f30
push edi
lea eax, [ebp - 0x134]
push str.0x_p
push eax
call fcn.00403f30
mov ecx, dword [ebp - 0x138]
lea eax, [ebp - 0x128]
add esp, 0x24
cmp byte [ebp - 0x18], 0
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
push esi
call fcn.00408ea0
test al, al
jne 0x40571f
cmp dword [esi], 0
je 0x40568d
nop dword [eax]
mov esi, dword [esi]
add esi, 0x124
cmp dword [esi], 0
jne 0x405680
push pe_nt_image_headers32
call fcn.0042187c
mov edi, eax
add esp, 4
lea ebx, [edi + 8]
mov dword [ebp - 0x138], edi
mov eax, 4
mov ecx, ebx
mov dword [edi], vtable.t_str.0
mov word [ebx + 0x112], ax
lea eax, [ebx + 4]
mov byte [ebx + 0x114], 1
mov dword [ebx], eax
mov dword [eax], 0
push 1
mov dword [ebp - 0x138], eax
mov dword [edi + 0x120], 0
mov dword [edi + 4], 0
call fcn.00404130
cmp byte [ebx + 0x114], 0
mov eax, dword [ebp - 0x138]
jne 0x4056fa
mov eax, dword [ebx]
xor ecx, ecx
push 0x44476c
mov word [eax + 4], cx
push 0x444420
mov dword [edi + 0x124], ecx
push edi
mov dword [esi], edi
call fcn.00403f30
add esp, 0xc
xor bl, bl
jmp 0x405721
mov bl, 1
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40574a
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x40574a
push eax
call fcn.00427afc
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421b57
mov esp, ebp
pop ebp
ret 8