joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4973bc
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
call fcn.004044d4
xor eax, eax
push ebp
push 0x4974f5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x24]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00412be4
push 0x400
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 0x14]
call fcn.004042e4
push eax
mov eax, dword [ebp + 0x14]
call fcn.004044e4
push eax
mov eax, ebx
call fcn.0041e0fc
push eax
call sub.USER32.dll_DrawTextA
lea eax, [ebp - 0x24]
call fcn.0045d254
add eax, 2
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
call fcn.0045d270
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
mov dword [ebp - 0xc], edx
sar edi, 1
jns 0x497447
adc edi, 0
mov edx, dword [ebp - 0x10]
add edx, eax
add edx, 2
sar edx, 1
jns 0x497456
adc edx, 0
sub edi, edx
mov edx, dword [ebp - 4]
sar edx, 1
jns 0x497462
adc edx, 0
mov ecx, dword [ebp - 0xc]
sar ecx, 1
jns 0x49746c
adc ecx, 0
sub edx, ecx
mov dword [ebp - 8], edx
lea eax, [eax + edi + 2]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
sar eax, 1
jns 0x497482
adc eax, 0
mov edx, dword [ebp - 0x14]
sar edx, 1
jns 0x49748c
adc edx, 0
sub eax, edx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
push 1
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp + 0x14]
call fcn.004042e4
push eax
mov eax, dword [ebp + 0x14]
call fcn.004044e4
push eax
mov eax, ebx
call fcn.0041e0fc
push eax
call sub.USER32.dll_DrawTextA
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov al, byte [ebp + 8]
push eax
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.004484ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4974fc
lea eax, [ebp + 0x14]
call fcn.00404024
ret
Function at 0x4b8270
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4b829e
mov eax, ebx
call fcn.004b8d24
cmp dword [ebx + 0x40], 0
je 0x4b8297
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4b830f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4b8301
cmp dword [ebx + 8], 0
je 0x4b82c0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4b82d2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4b8301
cmp dword [ebx + 8], 0
je 0x4b82b3
cmp eax, 3
je 0x4b82e5
dec eax
jne 0x4b82b3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4b82b3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4b82b3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4b832d
cmp dword [ebx + 0x14], 0xcc
je 0x4b832d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004b8338
pop ebx
ret

Function at 0x4c9490
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
mov ebx, eax
push 0xf003f
push 0
push 0
call sub.ADVAPI32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4c94b6
mov byte [ebp - 1], 0
jmp 0x4c950f
xor eax, eax
push ebp
push 0x4c9508
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_OpenServiceA
mov ebx, eax
lea eax, [ebp - 0x24]
push eax
push 1
push ebx
call sub.ADVAPI32.dll_ControlService
push ebx
call sub.ADVAPI32.dll_DeleteService
mov byte [ebp - 1], 1
push ebx
call sub.ADVAPI32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c950f
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_CloseServiceHandle
ret
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c9518
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004044d4
xor eax, eax
push ebp
push 0x4c95db
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.ADVAPI32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4c95c5
xor eax, eax
push ebp
push 0x4c95be
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004044e4
push eax
push 0
push 2
push 0x110
push 0xf01ff
push esi
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_CreateServiceA
mov ebx, eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
call sub.ADVAPI32.dll_StartServiceA
push ebx
call sub.ADVAPI32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c95c5
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c95e2
lea eax, [ebp - 4]
call fcn.00404024
ret

Function at 0x4c96d4
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
add esp, 0xffffffe0
mov ebx, eax
push 1
lea eax, [esp + 0x10]
push eax
call sub.ADVAPI32.dll_InitializeSecurityDescriptor
push 0
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x18]
push eax
call sub.ADVAPI32.dll_SetSecurityDescriptorDacl
mov dword [esp], 0xc
lea eax, [esp + 0xc]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xffffffff
push 0x4c9768
push 0xffffffffffffffff
push 6
call sub.KERNEL32.dll_OpenFileMappingA
mov esi, eax
mov dword [ebx + 0x380], esi
test esi, esi
jne 0x4c9748
push 0x4c9768
push 0x104
push 0
push 4
lea eax, [esp + 0x10]
push eax
push 0xffffffffffffffff
call sub.KERNEL32.dll_CreateFileMappingA
mov dword [ebx + 0x380], eax
push 0
push 0
push 0
push 6
mov eax, dword [ebx + 0x380]
push eax
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebx + 0x384], eax
add esp, 0x20
pop esi
pop ebx
ret
Function at 0x4c9bf8
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov dl, 1
mov eax, dword [0x42b730]
call fcn.0042b830
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c9c9a
xor eax, eax
push ebp
push 0x4c9c93
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 8]
call fcn.0042b8d0
xor ecx, ecx
mov edx, 0x4c9cd0
mov eax, dword [ebp - 8]
call fcn.0042b938
mov edx, 0x4c9d08
mov eax, dword [ebp - 8]
call fcn.0042bbd4
mov eax, dword [ebp - 8]
call fcn.0042b8a0
xor ecx, ecx
mov edx, 0x4c9d20
mov eax, dword [ebp - 8]
call fcn.0042b938
mov edx, 0x4c9d40
mov eax, dword [ebp - 8]
call fcn.0042ba5c
mov eax, dword [ebp - 8]
call fcn.0042b8a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c9c9a
mov eax, dword [ebp - 8]
call fcn.004032d4
ret
mov eax, 0x4c9d48
call fcn.004c9490
mov ax, word [0x4c9d58]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
mov cl, 2
mov edx, 0x4c9d64
call fcn.004b4690
pop ecx
pop ecx
pop ebp
ret
Function at 0x4c9e94
Capabilities:
Create process on windows
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ca02f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x42b730]
call fcn.0042b830
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4ca014
xor eax, eax
push ebp
push 0x4ca00d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 4]
call fcn.0042b8d0
mov cl, 1
mov edx, 0x4ca044
mov eax, dword [ebp - 4]
call fcn.0042b938
lea edx, [ebp - 0xc]
mov eax, dword [ebx + 0x310]
call fcn.004957b0
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0045c96c
mov ecx, dword [ebp - 8]
mov edx, 0x4ca06c
mov eax, dword [ebp - 4]
call fcn.0042bcd4
mov ecx, dword [0x4d0dc4]
mov edx, 0x4ca080
mov eax, dword [ebp - 4]
call fcn.0042bcd4
mov eax, dword [ebp - 4]
call fcn.0042b8a0
mov eax, 0x4ca08c
call fcn.004c9490
lea eax, [ebp - 0x10]
mov ecx, 0x4ca0a4
mov edx, dword [0x4d0dc4]
call fcn.00404330
mov ecx, dword [ebp - 0x10]
mov edx, 0x4ca0b4
mov eax, 0x4ca08c
call fcn.004c9518
xor ecx, ecx
mov edx, 0x4ca0c0
mov eax, dword [ebp - 4]
call fcn.0042b938
lea eax, [ebp - 0x14]
mov ecx, 0x4ca0f8
mov edx, dword [0x4d0dc4]
call fcn.00404330
mov ecx, dword [ebp - 0x14]
mov edx, 0x4ca10c
mov eax, dword [ebp - 4]
call fcn.0042bcd4
mov eax, dword [ebp - 4]
call fcn.0042b8a0
xor ecx, ecx
mov edx, 0x4ca124
mov eax, dword [ebp - 4]
call fcn.0042b938
mov ecx, 0x4ca160
mov edx, 0x4ca180
mov eax, dword [ebp - 4]
call fcn.0042bcd4
mov eax, dword [ebp - 4]
call fcn.0042b8a0
push 1
push 0
push 0
lea eax, [ebp - 0x18]
mov ecx, 0x4ca0f8
mov edx, dword [0x4d0dc4]
call fcn.00404330
mov eax, dword [ebp - 0x18]
call fcn.004044e4
push eax
push 0x4ca18c
push 0
call sub.SHELL32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca014
mov eax, dword [ebp - 4]
call fcn.004032d4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca036
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.00404048
ret

Function at 0x4cab98
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4cac17
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
mov edx, 0x105
call fcn.00406b34
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.KERNEL32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
mov dl, byte [ebp - 0x105]
call fcn.0040420c
mov edx, dword [ebp - 0x10c]
mov eax, ebx
mov ecx, 0x4cac2c
call fcn.00404330
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cac1e
lea eax, [ebp - 0x10c]
call fcn.00404024
ret
Function at 0x4ea66a
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.004ea6e9
jae 0x4ea676
xor ecx, ecx
call fcn.004ea6e9
jae 0x4ea6a0
xor eax, eax
call fcn.004ea6e9
jae 0x4ea6b1
mov al, 0x10
call fcn.004ea6e9
adc al, al
jae 0x4ea692
jne 0x4ea6de
stosb byte es:[edi], al
jmp 0x4ea677
call fcn.004ea6f5
dec ecx
loop 0x4ea6bd
mov eax, ebp
call fcn.004ea6f3
jmp 0x4ea6df
lodsb al, byte [esi]
shr eax, 1
je 0x4ea705
adc ecx, 2
mov ebp, eax
jmp 0x4ea6df
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004ea6f3
cmp eax, 0x7d00
jae 0x4ea6dd
cmp eax, 0x500
jae 0x4ea6de
cmp eax, 0x7f
ja 0x4ea6df
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4ea677
pop ebp
ret 8

Function at 0x54e7b9
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0054e838
jae 0x54e7c5
xor ecx, ecx
call fcn.0054e838
jae 0x54e7ef
xor eax, eax
call fcn.0054e838
jae 0x54e800
mov al, 0x10
call fcn.0054e838
adc al, al
jae 0x54e7e1
jne 0x54e82d
stosb byte es:[edi], al
jmp 0x54e7c6
call fcn.0054e844
dec ecx
loop 0x54e80c
mov eax, ebp
call fcn.0054e842
jmp 0x54e82e
lodsb al, byte [esi]
shr eax, 1
je 0x54e854
adc ecx, 2
mov ebp, eax
jmp 0x54e82e
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0054e842
cmp eax, 0x7d00
jae 0x54e82c
cmp eax, 0x500
jae 0x54e82d
cmp eax, 0x7f
ja 0x54e82e
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x54e7c6
pop ebp
ret 8
Function at 0x40b850
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x572268
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5bd250]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x5bd250]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00407180
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push dword [ebp + 8]
push eax
call fcn.0040b770
add esp, 0x24
mov dword [esp + 0x38], 0
cmp dword [eax + 0x14], 0x10
jb 0x40b8cd
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ecx, esi
lea eax, [esp + 0xc]
push eax
call fcn.005453f0
cmp dword [esp + 0x24], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x40b8f6
push dword [esp + 0x10]
call fcn.0053ce3a
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, esi
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi], vtable.std::_System_error.0
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4114f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, edx
mov dword [ebp - 4], ecx
mov eax, 0x55555556
mov dword [ebp - 8], ebx
imul ebx
push esi
mov esi, edx
mov eax, ebx
shr esi, 0x1f
add esi, edx
push edi
lea ecx, [esi + esi*2]
xor esi, esi
sub eax, ecx
lea ecx, [ebx + 2]
mov dword [ebp - 0xc], eax
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax*4 + 1]
push eax
call fcn.00521d36
mov ecx, dword [ebp - 4]
mov ebx, eax
mov eax, dword [ebp - 8]
add esp, 4
xor edi, edi
test eax, eax
jle 0x4115e3
mov edi, edi
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
lea eax, [edx + edx*2]
mov edx, edi
sub edx, eax
jne 0x411575
movzx eax, byte [edi + ecx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi], al
inc esi
jmp 0x4115d7
cmp edx, 1
jne 0x41159e
mov eax, dword [ebp - 4]
movzx ecx, byte [edi + eax - 1]
movzx eax, byte [edi + eax]
and ecx, 3
add ecx, ecx
shr eax, 4
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [ebp - 4]
mov byte [ebx + esi], al
inc esi
jmp 0x4115d7
cmp edx, 2
jne 0x4115d7
mov edx, dword [ebp - 4]
movzx ecx, byte [edi + edx - 1]
movzx eax, byte [edi + edx]
and ecx, 0xf
shr eax, 6
movzx eax, byte [eax + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, edx
mov byte [ebx + esi], al
movzx eax, byte [edi + edx]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi + 1], al
add esi, 2
mov eax, dword [ebp - 8]
inc edi
cmp edi, eax
jl 0x411550
mov edx, dword [ebp - 0xc]
cmp edx, 1
jne 0x411614
movzx eax, byte [ecx + eax - 1]
and eax, 3
shl eax, 4
pop edi
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi], al
mov eax, ebx
mov word [ebx + esi + 1], 0x3d3d
mov byte [ebx + esi + 3], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edx, 2
jne 0x41163b
movzx eax, byte [ecx + eax - 1]
and eax, 0xf
pop edi
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi], al
mov eax, ebx
mov word [ebx + esi + 1], 0x3d
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov byte [ebx + esi], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411900
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.0053fec0
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov ebx, edx
test esi, esi
je 0x4119f7
test ebx, ebx
je 0x4119f7
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4119f7
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
push eax
call fcn.0053e230
add esp, 0xc
lea eax, [ebp - 0x400c]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x4119f7
cmp eax, 0x2000
ja 0x4119f7
lea ecx, [ebp - 0x4004]
push ecx
push eax
push edi
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4119e4
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x4008]
push eax
push 0x596378
lea eax, [ebp - 0x4004]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4119e4
mov ecx, dword [ebp - 0x4008]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
mov eax, dword [ebp + 8]
push 0x59637c
dec eax
push eax
push ebx
call fcn.00546433
add esp, 0x1c
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret

Function at 0x411be0
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor esi, esi
xor eax, eax
test edi, edi
je 0x411c70
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0053e230
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0x26
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Internet_Exploreriexplore.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411c6e
lea eax, [ebp - 0x20c]
push eax
push 0x596370
push 0x103
push edi
call fcn.00546433
add esp, 0x10
mov esi, 1
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
Function at 0x411da0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x411e61
cmp word [esi], 0
je 0x411e61
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x411de7
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0053e230
push esi
push 0x596370
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00546433
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x411e61
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x411e49
lea ecx, [ebp - 0x20c]
call fcn.00411da0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
Function at 0x411e90
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
mov eax, dword [0x5bd250]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x412049
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x412049
push 0x24c
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0
push 0
push eax
call fcn.0053e230
xor eax, eax
push 0x206
push eax
mov word [esp + 0x47c], ax
lea eax, [esp + 0x47e]
push eax
call fcn.0053e230
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x480]
add esp, 0x18
push 0x5963f4
push esi
push eax
call edi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x412049
mov ecx, 0x5963fc
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411f66
test dx, dx
je 0x411f62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411f66
add eax, 4
add ecx, 4
test dx, dx
jne 0x411f40
xor eax, eax
jmp 0x411f6b
sbb eax, eax
or eax, 1
test eax, eax
je 0x412006
mov eax, 0x596400
lea ecx, [esp + 0x3c]
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x411fa6
test dx, dx
je 0x411fa2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x411fa6
add ecx, 4
add eax, 4
test dx, dx
jne 0x411f80
xor eax, eax
jmp 0x411fab
sbb eax, eax
or eax, 1
test eax, eax
je 0x412006
xor eax, eax
push 0x206
push eax
mov word [esp + 0x268], ax
lea eax, [esp + 0x26a]
push eax
call fcn.0053e230
add esp, 0xc
lea eax, [esp + 0x3c]
test byte [esp + 0x10], 0x10
push eax
push esi
lea eax, [esp + 0x268]
push eax
je 0x411ff4
call edi
lea ecx, [esp + 0x260]
call fcn.00411e90
jmp 0x412006
call edi
lea eax, [esp + 0x260]
push eax
call fcn.00412670
add esp, 4
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x411f33
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x674]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
Function at 0x412060
Capabilities:
Check if file exists
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0x418], eax
test eax, eax
je 0x412207
test esi, esi
je 0x412207
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [ebp + 0x10], edi
je 0x4120b9
push esi
call ebx
test eax, eax
je 0x4120b9
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0053e230
push esi
push 0x596370
lea eax, [ebp - 0x414]
push 0x103
push eax
call fcn.00546433
add esp, 0x1c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x414]
call fcn.00411da0
test eax, eax
je 0x4121f4
cmp dword [ebp + 0x10], edi
je 0x412141
push esi
call ebx
test eax, eax
jne 0x4121f4
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop ebx
mov edi, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0053e230
push esi
push str._s.kr.bak
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00546433
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x412192
lea eax, [ebp - 0x20c]
push eax
call fcn.00412670
add esp, 4
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push esi
mov dword [ebp - 0x41c], eax
call ebx
test eax, eax
jne 0x4121bd
push eax
push esi
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
cmp dword [ebp - 0x41c], 0
je 0x4121f4
lea eax, [ebp - 0x20c]
test edi, edi
jne 0x4121eb
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
push eax
call fcn.00412670
add esp, 4
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret