joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474f20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x474f27
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x474ffd
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x49cb08]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x49cb08]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x49cb08]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x49cb08]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x49cb08]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x49cb08]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x49cb08]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x49cb08]
add ecx, 8
sub edx, 8
dec esi
jne 0x474f40
pop edi
test edx, edx
je 0x47501a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x49cb08]
inc ecx
dec edx
jne 0x475001
not eax
pop esi
ret

Function at 0x475020
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x49cb08]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x49cb08]
mov dword [edx + 8], ecx
ret

Function at 0x475070
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x49cb08]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x49cb08]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x4757e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x475816
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47580c
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x475827
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.00482370
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x475850
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x475883
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47587e
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x4758ae
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x475895
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.00482370
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x4758c3
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x4758bd
cmp byte [esi + 8], 0
je 0x4758bd
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x475960
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x4759a7
cmp byte [esi + 1], 0
je 0x4759af
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x4759c2
cmp byte [esi + 1], 0
je 0x4759b6
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x4759ca
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x475981
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x4759ca
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x4759dc
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.00481197
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4759f9
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x475b0d
jmp 0x475a19
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x475a28
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x475a3f
mov ebx, 0x404
cmp byte [esi], 0
je 0x475a64
cmp byte [esi + 1], 0
je 0x475b0d
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x475a67
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x475a90
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x475a8b
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x475ab9
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x475aa1
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.00482370
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x475b0d
lea eax, [ebx - 3]
test eax, eax
js 0x475afb
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x475aef
cmp byte [eax + ecx + 1], 0x4b
jne 0x475aef
cmp byte [eax + ecx + 2], 5
jne 0x475aef
cmp byte [eax + ecx + 3], 6
je 0x475af5
test eax, eax
jns 0x475ad0
jmp 0x475afb
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x475b0d
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x475a10
mov eax, dword [ebp - 0x10]
push eax
call fcn.00480a32
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x476990
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
push edi
jne 0x476a2c
cmp dword [esi + 4], 0xffffffff
jne 0x476a2c
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4769c0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp eax, 0x5c
je 0x4769f7
cmp eax, 0x2f
je 0x4769f7
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4769e4
mov eax, dword [0x49a32c]
mov dword [edi], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
call fcn.00475740
add esp, 4
test eax, eax
jne 0x476a12
mov eax, dword [ebp + 8]
pop edi
pop ebp
ret 4
call fcn.00475b30
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ebp
ret 4
mov eax, 0x1000000
pop edi
pop ebp
ret 4

Function at 0x4770f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4a93dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x477124
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x477124
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x47720e
mov ecx, ebx
mov edx, ebx
cmp ax, 0x2f
je 0x477140
cmp ax, 0x5c
jne 0x477142
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x477134
push edi
cmp ecx, ebx
je 0x477182
sub ecx, ebx
sar ecx, 1
lea edi, [ecx + ecx]
push edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00482370
lea edx, [ebp - 0x414]
push edx
xor ecx, ecx
push esi
mov word [ebp + edi - 0x414], cx
call fcn.004770f0
add esp, 0x14
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x4771af
lea edx, [ebp - 0x20c]
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4771a0
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4771b3
lea edi, [ebp - 0x20c]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4771d0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x47720e
push 0
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0048036c
mov esp, ebp
pop ebp
ret
Function at 0x477dc0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
je 0x477eab
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x477df7
cmp dword [esi + 0x40], edi
jae 0x477df7
push eax
call fcn.00480861
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x477e0f
lea eax, [edi + edi]
push eax
call fcn.004808bd
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.00482370
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x477ea8
mov edx, dword [esi + 0x3c]
mov cl, byte [ebx + edx]
mov edi, dword [esi + 0x30]
mov byte [ebp + 8], cl
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x49b2c8]
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x38]
shr edi, 8
xor dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x49b2c8]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, byte [ebp + 8]
inc ebx
mov byte [ebx + ecx - 1], al
cmp ebx, dword [ebp + 0xc]
jb 0x477e27
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x477eea
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x477ecf
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.00482370
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x477f0c
push 0
lea edx, [ebp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x478bd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495868
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x4a93dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
mov dword [ebp - 4], 0
push ecx
mov word [ebp - 0x218], ax
call fcn.00489270
mov esi, dword [0x4acac8]
add esp, 0xc
test esi, esi
jne 0x478c34
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
mov eax, dword [0x4acb0c]
push 0x49a07c
xor edi, edi
mov ecx, 0x4acafc
call fcn.00402aa0
test eax, eax
jne 0x478ca0
push eax
push 0x17
lea edx, [ebp - 0x218]
push edx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x478c75
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x1c], 8
jb 0x478cc5
mov eax, dword [ebp + 8]
push eax
jmp 0x478cbd
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x478c80
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
mov esi, 0x4acafc
call fcn.00401d40
push 0
lea ecx, [ebp + 8]
push ecx
or eax, 0xffffffff
mov ecx, 0x4acb18
call fcn.00401a50
cmp dword [ebp + 0x1c], 8
jb 0x478cc5
mov edx, dword [ebp + 8]
push edx
call fcn.00480861
add esp, 4
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.0048036c
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x479050
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x40
push ebx
push edi
mov edi, 8
cmp dword [ebp + 0x1c], edi
jae 0x479068
lea eax, [ebp + 8]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4790c2
cmp dword [ebp + 0x1c], edi
jb 0x479094
mov eax, dword [ebp + 8]
push eax
call fcn.00480861
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], cx
cmp dword [ebp + 0x38], edi
jb 0x4790b5
mov edx, dword [ebp + 0x24]
push edx
call fcn.00480861
add esp, 4
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x3c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
push 0x3c
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.00489270
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x34], str.open
mov dword [ebp - 0x3c], 0x8040
cmp dword [ebp + 0x1c], edi
jb 0x4790fd
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
jmp 0x479103
lea edx, [ebp + 8]
mov dword [ebp - 0x30], edx
cmp dword [ebp + 0x38], edi
jb 0x479110
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x2c], eax
jmp 0x479116
lea ecx, [ebp + 0x24]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0x40]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x47916d
cmp dword [ebp + 0x1c], edi
jb 0x47913e
mov ecx, dword [ebp + 8]
push ecx
call fcn.00480861
add esp, 4
xor edx, edx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], dx
cmp dword [ebp + 0x38], edi
jb 0x47915f
mov eax, dword [ebp + 0x24]
push eax
call fcn.00480861
add esp, 4
pop esi
pop edi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret 0x3c
mov ecx, dword [ebp - 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 8]
push ecx
call esi
cmp dword [ebp + 0x1c], edi
jb 0x47919e
mov edx, dword [ebp + 8]
push edx
call fcn.00480861
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], ax
cmp dword [ebp + 0x38], edi
jb 0x4791bf
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.00480861
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x3c
Function at 0x479450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4950e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a93dc]
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 eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 4], ebx
call fcn.00479570
add esp, 4
test eax, eax
je 0x4794be
cmp dword [ebp - 0x18], 0x10
jb 0x4794b4
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00480861
add esp, 4
mov eax, 1
jmp 0x47954b
cmp dword [esi + 0x14], 8
jb 0x4794c6
mov esi, dword [esi]
push 0x49a2b8
push esi
call fcn.00480f05
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x4794f3
cmp dword [ebp - 0x18], 0x10
jb 0x4794ec
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00480861
add esp, 4
mov eax, 2
jmp 0x47954b
mov eax, dword [ebp - 0x2c]
mov ebx, 0x10
cmp dword [ebp - 0x18], ebx
jae 0x479503
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
push esi
push ecx
push 1
push eax
call fcn.00480ca5
push esi
mov edi, eax
call fcn.00480dd3
add esp, 0x14
cmp edi, dword [ebp - 0x1c]
je 0x479538
cmp dword [ebp - 0x18], ebx
jb 0x479531
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00480861
add esp, 4
mov eax, 3
jmp 0x47954b
cmp dword [ebp - 0x18], ebx
jb 0x479549
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00480861
add esp, 4
xor eax, eax
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.0048036c
mov esp, ebp
pop ebp
ret

Function at 0x479570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x47958c
pop edi
lea eax, [esi + 1]
pop esi
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x479596
mov eax, dword [edi]
jmp 0x479598
mov eax, edi
push eax
push 0xb6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4795b2
lea eax, [edi + 2]
pop edi
pop esi
pop ebp
ret
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x4795c9
lea eax, [ebx + 3]
pop ebx
pop edi
pop esi
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
jne 0x4795df
pop ebx
pop edi
lea eax, [esi + 4]
pop esi
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x4795f4
pop ebx
pop edi
mov eax, 5
pop esi
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
push eax
call fcn.00403e50
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4798a0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4a93dc]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4798d7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048036c
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push 0
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4798c7
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4798c7
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0048036c
mov esp, ebp
pop ebp
ret

Function at 0x479940
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49622a
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4a93dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0xd8], 0x49a3d8
mov dword [ebp - 0xc8], 0x49a3e0
mov dword [ebp - 0x78], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0xd8]
mov dword [ebp - 4], esi
mov edi, 1
push ecx
mov dword [ebp - 0x30], edi
call fcn.004077f0
mov dword [ebp - 4], edi
mov edx, dword [ebp - 0xd8]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0xc0]
push ecx
mov dword [ebp + eax - 0xd8], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
call fcn.00407b20
mov dword [ebp - 0xc0], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], esi
lea edx, [ebp - 0xc8]
push str.5101E1FD_7EEC_4639_AF25_FCAB6018BABE
push edx
mov dword [ebp - 4], 3
call fcn.004080f0
add esp, 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0xd8]
call fcn.00406ef0
cmp dword [eax + 0x14], 8
jb 0x479a12
mov eax, dword [eax]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp dword [ebp - 0x18], 8
mov edi, eax
jb 0x479a2f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00480861
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
cmp edi, esi
je 0x479a66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x479a66
lea ecx, [ebp - 0xd8]
mov dword [ebp - 4], 0xffffffff
call fcn.00406300
mov al, 1
jmp 0x479a7a
lea ecx, [ebp - 0xd8]
mov dword [ebp - 4], 0xffffffff
call fcn.00406300
xor al, al
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.0048036c
mov esp, ebp
pop ebp
ret
Function at 0x47a480
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49614e
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4a93dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [edi + 0x14], eax
mov ecx, 7
mov dword [edi + 0x18], ecx
xor edx, edx
mov word [edi + 4], dx
mov dword [edi + 0x34], ecx
mov dword [edi + 0x30], eax
mov word [edi + 0x20], dx
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], eax
mov dword [ebp - 4], eax
mov dword [edi + 0x60], ecx
mov dword [edi + 0x5c], eax
mov word [edi + 0x4c], dx
mov dword [edi + 0x7c], ecx
mov dword [edi + 0x78], eax
mov word [edi + 0x68], ax
push edi
mov byte [ebp - 4], 2
call fcn.0047ac70
mov ecx, edi
call fcn.0047b0c0
lea esi, [edi + 0x3c]
call fcn.0047d050
mov esi, dword [edi + 0x3c]
push 7
add esi, 0x38
mov eax, str.updater
call fcn.00401d40
mov esi, dword [edi + 0x3c]
push 7
add esi, 0x1c
mov eax, str.updater
call fcn.00401d40
mov esi, dword [edi + 0x3c]
push 7
add esi, 0x70
mov eax, str.updater
call fcn.00401d40
mov esi, dword [edi + 0x3c]
push 0xf
add esi, 0x8c
mov eax, str.application_zip
call fcn.00401d40
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4