joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54f708
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5ba318]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.005432ef
and dword [ebp - 0x14], 0
cmp dword [0x5c2084], 0
mov dword [ebp - 0x18], eax
jne 0x54f7bb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x54f863
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x54f863
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x595990
push ebx
mov dword [0x5c2084], eax
call edi
push eax
call esi
push 0x59597c
push ebx
mov dword [0x5c2088], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5c208c], eax
call edi
push eax
call esi
mov dword [0x5c2094], eax
test eax, eax
je 0x54f7bb
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5c2090], eax
mov eax, dword [0x5c2090]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x54f814
cmp dword [0x5c2094], ecx
je 0x54f814
push eax
call esi
push dword [0x5c2094]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x54f814
test ebx, ebx
je 0x54f814
call edi
test eax, eax
je 0x54f80b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x54f80b
test byte [ebp - 8], 1
jne 0x54f814
or dword [ebp + 0x10], 0x200000
jmp 0x54f847
mov eax, dword [0x5c2088]
cmp eax, dword [ebp - 0x18]
je 0x54f847
push eax
call esi
test eax, eax
je 0x54f847
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x54f847
mov eax, dword [0x5c208c]
cmp eax, dword [ebp - 0x18]
je 0x54f847
push eax
call esi
test eax, eax
je 0x54f847
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5c2084]
call esi
test eax, eax
je 0x54f863
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x54f865
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053996e
leave
ret

Function at 0x43f6a4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x43f6aa
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x6ea4335b
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
mov ecx, 0x6df96e7f
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x5df69b
Capabilities:
Check for software breakpoints

Disassembly:
ja 0x5df71b
daa
push ebx
pushal
dec esp
salc
invalid
loope 0x5df788
movsd dword es:[edi], dword [esi]
mov esp, 0x319bf132
mov bl, 0x60
Function at 0x402350
Capabilities:
Create thread

Disassembly:
cmp dword [esi], 0
jne 0x402390
push 0
push 0
push 0
mov dword [esi + 0x44], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x40], eax
test eax, eax
je 0x402390
push 0
push 0
push esi
push 0x402460
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x3e8
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
ret
Function at 0x404680
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x471050]
xor eax, esp
mov dword [esp + 0x208], eax
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4046be
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x4046d3
lea ecx, [esp]
push ecx
mov eax, SysReAllocString
mov ecx, 0x104
mov edx, esi
call fcn.00401360
mov eax, esi
lea edx, [eax + 2]
jmp 0x4046e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4046e0
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x404747
mov ecx, 0x104
mov eax, esi
mov edi, edi
cmp word [eax], 0
je 0x404723
add eax, 2
sub ecx, 1
jne 0x404700
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042c9e9
add esp, 0x20c
ret
test ecx, ecx
je 0x404747
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esi + eax*2]
push 0x45cc38
mov eax, SysReAllocString
call fcn.00401360
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042c9e9
add esp, 0x20c
ret

Function at 0x404c40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x455c68
mov eax, dword fs:[0]
push eax
mov eax, dword [0x471050]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor ecx, ecx
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov word [esi + 4], cx
push eax
lea eax, [esp + 0x1c]
mov ecx, esi
call fcn.00402910
cmp dword [esp + 0x2c], 8
mov dx, word [esp + 0x30]
mov word [esi + 0x1c], dx
jb 0x404ca1
mov eax, dword [esp + 0x18]
push eax
call fcn.0042ce2b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 0x20
Function at 0x404d80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x455f00
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x471050]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [esp + 0x60]
mov edi, eax
mov eax, esi
shr eax, 4
inc eax
push ecx
movzx edx, ax
push edx
push 6
and esi, 0xf
push edi
mov ebp, esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
xor eax, eax
mov word [esp + 0x1c], ax
push eax
mov eax, 0x45c064
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
call fcn.00402de0
mov ecx, dword [esp + 0x64]
xor esi, esi
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x20]
mov dword [esp + 0x60], esi
call fcn.00402910
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x404e2a
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0042ce2b
add esp, 4
cmp ebx, esi
je 0x404f0f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x404f0f
mov bl, 1
mov byte [esp + 0x17], bl
mov edi, eax
xor edx, edx
lea esp, [esp]
movzx ecx, word [edi]
add edi, 2
cmp cx, si
je 0x404e65
movzx ecx, cx
cmp edx, ebp
je 0x404e81
lea edi, [edi + ecx*2]
inc edx
cmp edx, 0x10
jl 0x404e50
mov al, bl
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov dword [esp + 0x48], esi
xor edx, edx
lea ebx, [ecx + 1]
lea esi, [esp + 0x34]
mov dword [esp + 0x4c], 7
mov word [esp + 0x38], dx
call fcn.004069b0
mov eax, esi
mov esi, dword [esp + 0x64]
push 0xffffffffffffffff
push 0
mov ecx, esi
mov dword [esp + 0x60], 1
call fcn.00402910
mov ebp, 8
cmp dword [esp + 0x4c], ebp
jb 0x404ed1
mov eax, dword [esp + 0x38]
push eax
call fcn.0042ce2b
add esp, 4
cmp dword [esi + 0x18], ebp
jb 0x404edb
mov edx, dword [esi + 4]
jmp 0x404ede
lea edx, [esi + 4]
test ebx, ebx
je 0x404ef7
cmp ebx, 0x7fffffff
ja 0x404ef7
push edi
mov eax, SysReAllocString
mov ecx, ebx
call fcn.00401360
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
xor al, al
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
Function at 0x404f30
Capabilities:
Identify system language via api

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov cx, ax
and eax, 0x3ff
shr cx, 0xa
add eax, 0xfffffffc
movzx ecx, cx
cmp eax, 0x1a
ja case.0x404f54.13
jmp dword [eax*4 + 0x405124]
cmp cx, 1
jne 0x404f72
push str.zh_TW
push 0x104
push esi
call fcn.00401230
ret
push str.zh_CN
push 0x104
push esi
call fcn.00401230
ret
push str.cs_CZ
push 0x104
push esi
call fcn.00401230
ret
push str.da_DK
push 0x104
push esi
call fcn.00401230
ret
push str.nl_NL
push 0x104
push esi
call fcn.00401230
ret
cmp cx, 2
jne 0x404fcd
push str.en_GB
push 0x104
push esi
call fcn.00401230
ret
push str.en_US
push 0x104
push esi
call fcn.00401230
ret
push str.fi_FI
push 0x104
push esi
call fcn.00401230
ret
push str.fr_FR
push 0x104
push esi
call fcn.00401230
ret
push str.de_DE
push 0x104
push esi
call fcn.00401230
ret
push str.el_GR
push 0x104
push esi
call fcn.00401230
ret
push str.hu_HU
push 0x104
push esi
call fcn.00401230
ret
push str.it_IT
push 0x104
push esi
call fcn.00401230
ret
push str.ja_JP
push 0x104
push esi
call fcn.00401230
ret
push str.ko_KR
push 0x104
push esi
call fcn.00401230
ret
push str.no_NO
push 0x104
push esi
call fcn.00401230
ret
push str.pl_PL
push 0x104
push esi
call fcn.00401230
ret
cmp cx, 1
jne 0x40509f
push str.pt_BR
push 0x104
push esi
call fcn.00401230
ret
push str.pt_PT
push 0x104
push esi
call fcn.00401230
ret
push str.ru_RU
push 0x104
push esi
call fcn.00401230
ret
cmp cx, 2
jne 0x4050d8
push str.es_MX
push 0x104
push esi
call fcn.00401230
ret
push str.es_ES
push 0x104
push esi
call fcn.00401230
ret
push str.sv_SE
push 0x104
push esi
call fcn.00401230
ret
push 0x45cc3c
push 0x104
push esi
call fcn.00401230
ret
push str.en_US
mov eax, SysReAllocString
mov ecx, 0x104
mov edx, esi
call fcn.00401360
ret
Function at 0x405190
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x214
mov eax, dword [0x471050]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 4]
push eax
push 0x45a5bc
push 1
push 0
push 0x45a5cc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x405214
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x45a5dc
push eax
mov eax, dword [ecx]
call eax
test eax, eax
mov eax, dword [esp + 4]
mov ecx, dword [eax]
jl 0x405208
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
test eax, eax
jge 0x40522c
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0042c9e9
add esp, 0x214
ret
lea eax, [esp + 0xc]
mov ecx, eax
mov edx, 0x103
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffefb]
test ecx, ecx
je 0x405260
movzx ecx, word [esi + eax]
test cx, cx
je 0x405260
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x405240
jmp 0x405264
test edx, edx
jne 0x405267
sub eax, 2
xor edx, edx
mov word [eax], dx
lea ecx, [esp + 0xc]
xor eax, eax
push ecx
mov word [esp + 0x216], ax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [esp + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
lea ecx, [esp + 0xc]
push ecx
push eax
call edx
test eax, eax
jl 0x4051f6
test ebx, ebx
je 0x4052b3
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push ebx
push eax
call edx
test eax, eax
jl 0x4051f6
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push edi
push eax
call edx
mov esi, eax
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x214]
test esi, esi
setge al
pop esi
xor ecx, esp
call fcn.0042c9e9
add esp, 0x214
ret
Function at 0x405300
Capabilities:
Check if file exists
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
mov eax, dword [0x471050]
xor eax, esp
mov dword [esp + 0xc8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov ecx, 0x2e
mov esi, str._000214A0_0000_0000_C000_000000000046__r_nProp319_2_r_n_InternetShortcut__r_nURL_s_r_nIDList_r_n
lea edi, [esp + 0x18]
mov dword [esp + 0x10], eax
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405340
sub eax, edx
sar eax, 1
lea edi, [eax + 0x61]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042c9de
mov esi, eax
add esp, 4
test esi, esi
je 0x4053b2
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40538a
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80000080
push 2
push 0
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
test ebx, ebx
jne 0x4053c9
push esi
call fcn.0042d587
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0042c9e9
mov esp, ebp
pop ebp
ret
lea eax, [edi + edi]
push eax
push 0
push esi
call fcn.0042e870
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
dec edi
push edi
push esi
call fcn.004012b0
mov eax, esi
add esp, 0x1c
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4053f0
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0x18]
push ecx
lea edx, [eax + eax]
push edx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0042d587
mov ecx, dword [esp + 0xd8]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.0042c9e9
mov esp, ebp
pop ebp
ret
Function at 0x406ce0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x455dd8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x471050]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00402910
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406d36
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.004068d0
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00402910
cmp dword [esp + 0x24], 8
jb 0x406d7f
mov edx, dword [esp + 0x10]
push edx
call fcn.0042ce2b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x408140
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4034
call fcn.0043ddd0
mov eax, dword [0x471050]
xor eax, esp
mov dword [esp + 0x4030], eax
push ebx
push edi
mov edi, dword [esp + 0x4040]
xor ebx, ebx
cmp byte [edi + 0xc70], bl
je 0x408292
cmp dword [edi + 0xe7c], ebx
je 0x408292
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0xc], ebx
call fcn.0042d917
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0042d601
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
push str._02d:_02d:_02d
lea eax, [esp + 0x54]
push 0x2000
push eax
call fcn.004012b0
lea eax, [esp + 0x5c]
add esp, 0x24
mov dword [esp + 8], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4081d0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, edx
push ebx
sar eax, 1
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [edi + 0xe7c]
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x48]
push eax
push ecx
call esi
mov eax, dword [esp + 0x4048]
lea edx, [esp + 0x404c]
push edx
push eax
lea ecx, [esp + 0x44]
push 0x1fff
push ecx
call fcn.0042cde4
add esp, 0x10
cmp eax, ebx
jl 0x408239
cmp eax, 0x1fff
ja 0x408239
jne 0x408243
xor edx, edx
mov word [esp + 0x403a], dx
jmp 0x408243
xor eax, eax
mov word [esp + 0x403a], ax
lea eax, [esp + 0x3c]
mov dword [esp + 0xc], ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408250
sub eax, edx
push ebx
sar eax, 1
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [edi + 0xe7c]
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x48]
push eax
push ecx
call esi
mov eax, dword [edi + 0xe7c]
push ebx
lea edx, [esp + 0x10]
push edx
push 4
push 0x45d290
push eax
mov dword [esp + 0x20], ebx
call esi
pop esi
mov ecx, dword [esp + 0x4038]
pop edi
pop ebx
xor ecx, esp
call fcn.0042c9e9
add esp, 0x4034
ret
Function at 0x4082d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x438
mov eax, dword [0x471050]
xor eax, esp
mov dword [esp + 0x434], eax
cmp byte [esi + 0xc70], 0
jne 0x40830a
mov eax, dword [esi + 0xe7c]
test eax, eax
je 0x408353
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xe7c], 0
jmp 0x408353
cmp dword [esi + 0xe7c], 0
jne 0x408360
cmp word [esi + 0xc72], 0
lea eax, [esi + 0xc72]
je 0x408353
push 0
push 0x80000080
push 4
push 0
push 3
push 0xc0000004
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0xe7c], eax
test eax, eax
je 0x408353
push 2
push 0
push 0xfffffffffffffffe
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esi + 0xe7c], 0
je 0x4084ef
lea eax, [esp + 8]
push edi
push eax
call fcn.0042d917
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0042d601
mov edx, dword [esi + 0xe7c]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0xc
push 0
lea eax, [esp + 0xc]
push eax
push 2
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], 0
mov byte [esp + 0x18], 0xff
mov byte [esp + 0x19], 0xfe
call edi
push str._r_n
lea eax, [esp + 0x3c]
push 0x200
push eax
call fcn.004012b0
lea eax, [esp + 0x44]
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4083d0
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0xe7c]
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x44]
push eax
push ecx
call edi
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
push str.Install_Date:__02d__02d__04d_r_n
lea edx, [esp + 0x48]
push 0x200
push edx
call fcn.004012b0
lea eax, [esp + 0x50]
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408425
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0xe7c]
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x44]
push eax
push ecx
call edi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
push str._02d:_02d:_02d__Started_logging_r_n
lea edx, [esp + 0x48]
push 0x200
push edx
call fcn.004012b0
lea eax, [esp + 0x50]
add esp, 0x18
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408480
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0xe7c]
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x44]
push eax
push ecx
call edi
push 0x45d378
lea edx, [esp + 0x3c]
push 0x200
push edx
call fcn.004012b0
lea eax, [esp + 0x44]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4084c6
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0xe7c]
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x44]
push eax
push ecx
call edi
pop edi
mov ecx, dword [esp + 0x434]
xor eax, eax
cmp dword [esi + 0xe7c], eax
setne al
xor ecx, esp
call fcn.0042c9e9
add esp, 0x438
ret
Function at 0x408510
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x434
mov eax, dword [0x471050]
xor eax, esp
mov dword [esp + 0x430], eax
cmp dword [esi + 0xe7c], 0
je 0x408656
lea eax, [esp + 4]
push eax
call fcn.0042d917
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0042d601
push str._r_n_r_n
lea eax, [esp + 0x40]
push 0x200
push eax
mov dword [esp + 0x18], 0
call fcn.004012b0
lea eax, [esp + 0x48]
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408570
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esi + 0xe7c]
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x40]
push eax
push ecx
call edi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
push str._02d:_02d:_02d__Stopping_install_logging_r_n
lea edx, [esp + 0x44]
push 0x200
push edx
call fcn.004012b0
lea eax, [esp + 0x4c]
add esp, 0x18
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4085d0
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esi + 0xe7c]
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x40]
push eax
push ecx
call edi
push str._r_n_r_n_r_n
lea edx, [esp + 0x38]
push 0x200
push edx
call fcn.004012b0
lea eax, [esp + 0x40]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408616
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esi + 0xe7c]
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x40]
push eax
push ecx
call edi
mov edx, dword [esi + 0xe7c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xe7c], 0
pop edi
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.0042c9e9
add esp, 0x434
ret
Function at 0x418d60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0xc], edi
mov edx, edi
cmp edi, ecx
jb 0x418da1
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x418d7f
mov dword [esp + 0xc], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x418e0a
cmp dword [eax + 0xc], edi
jne 0x418e04
mov esi, dword [ebp + 0xc]
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x418ddc
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x418e00
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x418dc8
test ecx, ecx
je 0x418e23
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x418e00
cmp ecx, 1
jbe 0x418e23
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x418e00
cmp ecx, 2
jbe 0x418e23
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x418e23
mov ebx, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x418db6
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov eax, ebx
call fcn.00418cb0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
mov cl, byte [eax + 5]
movzx edx, byte [edx + 0x14]
movzx ebx, cl
not edx
and ebx, 3
test bl, dl
je 0x418e1c
pop edi
xor cl, 3
pop esi
mov byte [eax + 5], cl
pop ebx
mov esp, ebp
pop ebp
ret