joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428250
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e4c8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x471644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0042d191
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00429e20
mov byte [ebp - 4], 2
push str..
lea ecx, [ebp - 0x10]
call fcn.004294b0
push 0
lea ecx, [ebp - 0x10]
call fcn.0042a350
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042d229
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4283db
lea ecx, [ebp - 0x2c]
call fcn.0042ce91
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x2c]
call fcn.00428fe0
test eax, eax
je 0x42835d
lea ecx, [ebp - 0x2c]
call fcn.0042d152
test eax, eax
jne 0x42835b
push 0x467514
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.00429e40
add esp, 0xc
mov byte [ebp - 4], 3
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042d52b
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x54]
push edx
lea ecx, [ebp - 0x30]
call fcn.00429050
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.0042a380
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
lea eax, [ebp - 0x30]
push eax
call fcn.00429e20
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x4c]
call fcn.00428250
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0042a380
jmp 0x4283d6
push 0x467518
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.00429e40
add esp, 0xc
mov byte [ebp - 4], 5
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042d52b
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x60]
push edx
lea ecx, [ebp - 0x34]
call fcn.00429050
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
call fcn.0042a380
push 0x80
lea ecx, [ebp - 0x34]
call fcn.0042a350
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x34]
call fcn.0042a350
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.0042a380
jmp 0x4282be
lea ecx, [ebp - 0x2c]
call fcn.0042cdab
lea ecx, [ebp + 8]
call fcn.0042a350
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x428429
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0042a380
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0042d1ba
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0042a380
mov eax, dword [ebp - 0x44]
jmp 0x42845a
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0042a380
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0042d1ba
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0042a380
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x428700
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e7b0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x471644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 4], 0
push str.File
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.00422570
lea ecx, [ebp - 0x10]
call fcn.00422550
test eax, eax
je 0x428843
push str.FileName
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00422600
mov ecx, eax
call fcn.004224c0
push eax
lea ecx, [ebp - 0x20]
call fcn.00429710
mov byte [ebp - 4], 1
push 0x467544
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x10]
call fcn.00422600
mov ecx, eax
call fcn.004224c0
push eax
lea ecx, [ebp - 0x1c]
call fcn.00429710
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.0042a350
push eax
call fcn.00446d7e
add esp, 4
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x24]
call fcn.00429e20
mov byte [ebp - 4], 3
push 0x46754c
lea ecx, [ebp - 0x24]
call fcn.004294b0
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00429050
mov edx, dword [ebp - 0x18]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
lea eax, [ebp - 0x24]
push eax
call fcn.00429e20
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x54]
call fcn.00428470
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x3c]
call fcn.0042a380
push 0x467550
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x10]
call fcn.00422690
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.0042a380
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0042a380
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0042a380
jmp 0x428740
push str.Path
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 8]
call fcn.00422570
lea ecx, [ebp - 0x14]
call fcn.00422550
test eax, eax
je 0x428914
push str.PathName
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x14]
call fcn.00422600
mov ecx, eax
call fcn.004224c0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00429710
mov byte [ebp - 4], 4
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x28]
call fcn.00429e20
mov byte [ebp - 4], 5
push 0x46757c
lea ecx, [ebp - 0x28]
call fcn.004294b0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00429050
push 0
lea ecx, [ebp - 0x28]
call fcn.0042a350
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ecx
mov ecx, esp
mov dword [ebp - 0x48], esp
lea edx, [ebp - 0x28]
push edx
call fcn.00429e20
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x54]
call fcn.00428700
push 0x467580
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00422690
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0042a380
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0042a380
jmp 0x428854
mov dword [ebp - 0x50], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0042a380
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x428940
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e7fb
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x471644]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0042a4e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xec]
call fcn.00422770
mov byte [ebp - 4], 2
push 0
push 0x74
lea ecx, [ebp + 8]
call fcn.0042a350
push eax
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0xec]
call fcn.00422940
push str.OutsideList
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xec]
call fcn.00422570
push str.Root
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
call fcn.00422570
push str.RootPath
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x18]
call fcn.00422600
mov ecx, eax
call fcn.004224c0
push eax
lea ecx, [ebp - 0x14]
call fcn.00429710
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10c]
add ecx, 0x603c
push ecx
lea ecx, [ebp - 0x20]
call fcn.00429e20
mov byte [ebp - 4], 4
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x20]
call fcn.00429050
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00429200
push ecx
mov ecx, esp
mov dword [ebp - 0x100], esp
lea edx, [ebp - 0x20]
push edx
call fcn.00429e20
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x10c]
call fcn.00428250
push 0
lea ecx, [ebp - 0x20]
call fcn.0042a350
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ecx
mov ecx, esp
mov dword [ebp - 0x104], esp
lea eax, [ebp - 0x20]
push eax
call fcn.00429e20
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x10c]
call fcn.00428700
mov dword [ebp - 0x108], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.0042a380
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.0042a380
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xec]
call fcn.004227a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0042a380
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0042a380
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00446d08
mov esp, ebp
pop ebp
ret 8
Function at 0x429220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
xor eax, eax
cmp dword [ebp + 0x10], 0
setne al
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x429245
push 0x80004005
call fcn.0042a3a0
xor ecx, ecx
jne 0x429229
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
je 0x429358
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
jbe 0x429350
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x42933f
cmp dword [ebp - 0x14], 2
jbe 0x4292a8
cmp dword [ebp - 0x14], 7
je 0x4292de
jmp 0x42933f
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x4292cd
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2 - 2]
test edx, edx
je 0x4292dc
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx], ax
mov eax, 0xd
jmp 0x42935b
jmp 0x42934e
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x42932e
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
cmp eax, 1
jb 0x42932e
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
shr edx, 1
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
jne 0x42932e
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
cmp eax, 1
jbe 0x42933d
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
shr edx, 1
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2 - 4]
test ecx, ecx
je 0x42933d
xor edx, edx
mov eax, dword [ebp + 8]
mov word [eax], dx
mov eax, 0xd
jmp 0x42935b
jmp 0x42934e
xor ecx, ecx
mov edx, dword [ebp + 8]
mov word [edx], cx
mov eax, 0xd
jmp 0x42935b
jmp 0x429358
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx], ax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42bf1c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x42bf64
call fcn.0042fbfc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42bf64
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42bfa7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x42bf90
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x42bf90
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x42bfa4
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42f22e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x42f252
cmp dword [edi + 0x54], 0
jne 0x42f252
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0042fbfc
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0042f1ef
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x435467
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4354ae
call fcn.0042fbfc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4354ae
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4354ca
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00434fdf
mov esi, eax
test edi, edi
je 0x4354c8
test ebx, ebx
je 0x4354c8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x43671c
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x45d2b5
call fcn.004490d5
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x436741
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x436787
lea ecx, [ebp - 0x10]
call fcn.0042a4e0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042a771
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0042a480
mov eax, esi
call fcn.004491ad
ret 8
Function at 0x446d08
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x471644]
jne 0x446d12
repz ret
jmp fcn.0044d276

Function at 0x456955
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0044cc85
and dword [ebp - 4], 0
cmp dword [0x475808], 0
mov ebx, eax
jne 0x456a06
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x456ab7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4637a0
push edi
call esi
test eax, eax
je 0x456ab7
push eax
call fcn.0044cc13
mov dword [esp], 0x463790
push edi
mov dword [0x475808], eax
call esi
push eax
call fcn.0044cc13
mov dword [esp], 0x46377c
push edi
mov dword [0x47580c], eax
call esi
push eax
call fcn.0044cc13
mov dword [esp], 0x463760
push edi
mov dword [0x475810], eax
call esi
push eax
call fcn.0044cc13
pop ecx
mov dword [0x475818], eax
test eax, eax
je 0x456a06
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044cc13
pop ecx
mov dword [0x475814], eax
mov eax, dword [0x475814]
cmp eax, ebx
je 0x456a5e
cmp dword [0x475818], ebx
je 0x456a5e
push eax
call fcn.0044cc8e
push dword [0x475818]
mov esi, eax
call fcn.0044cc8e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x456a5e
test edi, edi
je 0x456a5e
call esi
test eax, eax
je 0x456a55
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x456a55
test byte [ebp - 0xc], 1
jne 0x456a5e
or dword [ebp + 0x10], 0x200000
jmp 0x456a97
mov eax, dword [0x47580c]
cmp eax, ebx
je 0x456a97
push eax
call fcn.0044cc8e
pop ecx
test eax, eax
je 0x456a97
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x456a97
mov eax, dword [0x475810]
cmp eax, ebx
je 0x456a97
push eax
call fcn.0044cc8e
pop ecx
test eax, eax
je 0x456a97
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x475808]
call fcn.0044cc8e
pop ecx
test eax, eax
je 0x456ab7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x456ab9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401025
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x48e5fc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
test byte [0x492b50], 1
mov dword [ebp - 0x214], edi
jne 0x401071
mov eax, dword [0x491894]
or dword [0x492b50], 1
mov ecx, 0x491894
call dword [eax + 0xc]
add eax, 0x10
push 0x46e3b0
mov dword [0x492b4c], eax
call fcn.00448fb6
pop ecx
mov eax, dword [0x492b4c]
cmp dword [eax - 0xc], edi
jne 0x4010ba
push 0x20a
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.00449330
add esp, 0xc
push 1
push 0x25
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x492b4c
call fcn.004015d9
mov eax, dword [0x492b4c]
add eax, 0xfffffff0
call fcn.0040166c
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
call fcn.00448d93
leave
ret

Function at 0x4010db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x48e5fc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
test byte [0x492b48], 1
mov dword [ebp - 0x214], edi
jne 0x401127
mov eax, dword [0x491894]
or dword [0x492b48], 1
mov ecx, 0x491894
call dword [eax + 0xc]
add eax, 0x10
push 0x46e3bd
mov dword [0x492b44], eax
call fcn.00448fb6
pop ecx
mov eax, dword [0x492b44]
cmp dword [eax - 0xc], edi
jne 0x401170
push 0x20a
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.00449330
add esp, 0xc
push 1
push 0x24
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x492b44
call fcn.004015d9
mov eax, dword [0x492b44]
add eax, 0xfffffff0
call fcn.0040166c
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
call fcn.00448d93
leave
ret

Function at 0x40176f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401786
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4017bb
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4017b7
cmp edi, eax
jae 0x4017bb
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4017a9
cmp edi, eax
jb 0x4017bf
xor eax, eax
jmp 0x4017c9
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x401b77
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
push esi
push dword [ebp + 8]
mov word [eax], si
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
jne 0x401b9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x401c19
push ebx
push edi
call fcn.00447e5b
mov ebx, eax
cmp ebx, esi
pop ecx
jne 0x401bb2
push 8
pop esi
jmp 0x401c18
push ebx
push edi
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x401c09
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x47a9ec
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401c09
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push 0x47a9f0
push 0x7e
push dword [ebp + 0xc]
call fcn.004493aa
add esp, 0x1c
jmp 0x401c11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
call fcn.00449925
pop ecx
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x401c1f
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x48e5fc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
push eax
push esi
mov dword [ebp - 0x54], eax
call fcn.00401b77
pop ecx
pop ecx
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401c71
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401d50
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 0x50]
push eax
push 0x40
lea eax, [ebp - 0x4c]
push eax
push ebx
mov dword [ebp - 0x58], 0xb
call esi
test eax, eax
je 0x401d4d
cmp dword [ebp - 0x50], 0x40
jne 0x401d4d
cmp word [ebp - 0x4c], 0x5a4d
jne 0x401d4d
push edi
push edi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x50]
push eax
push 0xf8
lea eax, [ebp - 0x184]
push eax
push ebx
call esi
test eax, eax
je 0x401d4d
cmp dword [ebp - 0x50], 0xf8
jne 0x401d4d
cmp dword [ebp - 0x184], 0x4550
jne 0x401d4d
push dword [ebp - 0x54]
call fcn.00448d7d
mov ebx, eax
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x60], edi
call fcn.00449bef
push 9
pop ecx
mov esi, eax
lea edi, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x88]
mov eax, dword [ebp - 0x78]
push dword [ebp - 0x84]
inc eax
push dword [ebp - 0x80]
push dword [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x74]
add eax, 0x76c
push eax
push str.__04d__02d__02d__02d:_02d:_02d
push 0x7e
pop eax
sub eax, ebx
push eax
mov eax, dword [ebp - 0x54]
lea eax, [eax + ebx*2]
push eax
call fcn.004493aa
add esp, 0x2c
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448d93
leave
ret
Function at 0x404496
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov ebx, eax
push dword [ebx]
call esi
push dword [ebx + 4]
mov edi, eax
call esi
and dword [ebp - 4], 0
mov ebx, eax
mov eax, dword [ebp - 4]
push dword [eax + 0x4813dc]
call esi
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
cmp dword [ebp - 4], 0x10
mov dword [ebp + ecx - 0x14], eax
jl 0x4044b8
push 0x10
xor eax, eax
pop ecx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 0x10]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x14]
sub eax, 0x61c88647
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 8]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
dec ecx
jne 0x4044d9
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp + 8]
push ebx
mov dword [edi], eax
call esi
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40452c
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, eax
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
and dword [ebp - 4], 0
mov edi, eax
mov eax, dword [ebp - 4]
push dword [eax + 0x4813dc]
call esi
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
cmp dword [ebp - 4], 0x10
mov dword [ebp + ecx - 0x14], eax
jl 0x40454e
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 8]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
sub edi, edx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0x10]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x14]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
sub ebx, edx
add eax, 0x61c88647
dec ecx
jne 0x404572
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov ebx, dword [ebp + 8]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret