joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f425
Capabilities:
Terminate process

Disassembly:
call fcn.0040d245
push 0x5c
push 0x40f558
call fcn.00409ab0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x437270
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
jne 0x415729
xor esi, esi
inc esi
mov eax, dword [0x43726c]
cmp eax, esi
je 0x415748
mov eax, dword [0x43726c]
test eax, eax
jne 0x40f58c
mov dword [0x43726c], esi
push 0x40f550
push 0x40f544
call fcn.0040f5d0
pop ecx
pop ecx
test eax, eax
jne 0x4157f7
mov eax, dword [0x43726c]
cmp eax, esi
jne 0x40f4d8
push 0x40f540
push 0x40f51c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x43726c], 2
cmp dword [ebp - 0x20], ebx
jne 0x40f4e5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x43727c], ebx
jne 0x415755
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x4157f7
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
jbe 0x40f580
cmp cx, 0x22
je 0x415794
inc eax
inc eax
jmp 0x40f500
cmp cx, bx
je 0x40f597
cmp dword [ebp - 0x1c], ebx
je 0x40f597
jmp 0x40f50c
mov dword [0x437e74], esi
jmp 0x40f4b4
movzx ecx, word [eax]
cmp cx, bx
je 0x40f5ac
cmp cx, 0x20
ja 0x40f5ac
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x40f597
test byte [ebp - 0x40], 1
jne 0x415777
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.004100d1
jmp 0x415780
cmp eax, esi
jne 0x415738
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x40f47b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40f467
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x40f4b4
push 0x43727c
call fcn.004240fc
pop ecx
test eax, eax
je 0x40f4f1
push ebx
push 2
push ebx
call dword [0x43727c]
jmp 0x40f4f1
movzx ecx, word [ebp - 0x3c]
jmp 0x40f5b9
mov dword [0x437e70], eax
cmp dword [0x437214], ebx
jne 0x4157d4
push eax
call dword [sym.imp.msvcrt.dll_exit]
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x40f516
cmp dword [0x437e74], ebx
jne 0x4157e2
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x437e70]
jmp 0x415803
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.004099a8
ret
Function at 0x40f8b8
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0040f897
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x40f95a
cmp dword [ebp - 0x94], 5
jb 0x40f92d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x40f974
call fcn.00409afa
test eax, eax
jl 0x41571d
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004013d7
leave
ret
cmp dword [ebp - 0x88], 1
je 0x415705
jmp 0x40f92d
cmp dword [ebp - 0x90], 0
jbe 0x40f92d
jmp 0x40f929
cmp dword [ebp - 0x94], 4
ja 0x40f929
je 0x40f969
jmp 0x40f92d
mov byte [0x437080], 1
jmp 0x40f94b
Function at 0x41001e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 8
pop ecx
mov esi, 0x4100ac
lea edi, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
push 0x1e8
xor edi, edi
lea eax, [ebp - 0x1ec]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ebp - 0x41c], edi
call fcn.0040ffa6
lea eax, [ebp - 0x41c]
push eax
push 1
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4171a1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004013d7
leave
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
push 4
pop ebx
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x420]
push eax
push edi
push edi
push 0x41739c
push dword [ebp - 0x41c]
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x418], ebx
call esi
test eax, eax
jne 0x4171e3
mov eax, dword [ebp - 0x420]
mov dword [0x437004], eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x420]
push eax
push edi
push edi
push 0x41738c
push dword [ebp - 0x41c]
mov dword [ebp - 0x418], ebx
call esi
test eax, eax
jne 0x417218
cmp dword [ebp - 0x420], edi
setne al
mov dword [0x438194], eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x420]
push eax
push edi
push edi
push 0x417380
push dword [ebp - 0x41c]
mov dword [ebp - 0x418], ebx
call esi
pop ebx
test eax, eax
jne 0x41724e
cmp dword [ebp - 0x420], edi
setne al
mov dword [0x437284], eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push 0x417370
push dword [ebp - 0x41c]
mov dword [ebp - 0x418], 0x208
call esi
test eax, eax
jne 0x417333
mov eax, dword [ebp - 0x418]
dec eax
cmp eax, 0x102
ja 0x417333
lea eax, [ebp - 0x20c]
push 0x2e
push eax
call sub.msvcrt.dll_wcsrchr
pop ecx
pop ecx
cmp eax, edi
je 0x4172d5
xor ecx, ecx
mov word [eax], cx
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x41735c
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040cfdf
add esp, 0x18
jmp 0x4172fc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x417348
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040cfdf
add esp, 0x14
mov esi, eax
mov eax, dword [0x438198]
cmp eax, edi
je 0x417314
push eax
call sub.msvcrt.dll_fclose
pop ecx
mov dword [0x438198], edi
cmp esi, edi
jl 0x417333
push 0x20
lea eax, [ebp - 0x414]
push 0x417344
push eax
call sub.msvcrt.dll__wfsopen
add esp, 0xc
mov dword [0x438198], eax
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41009a
Function at 0x410213
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
add ecx, 4
push ebx
push ecx
lea ecx, [ebp - 4]
call fcn.00401415
cmp dword [ebp + 0xc], 0x104
jb 0x4160c3
push esi
mov esi, dword [ebp + 8]
push esi
push 0x403634
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
mov ebx, eax
test ebx, ebx
jl 0x4160cd
push 0x41028c
push dword [ebp + 0xc]
push esi
call fcn.0040ffa6
push esi
push 0x4102e8
push 0x4102a8
push 4
call fcn.004173ad
add esp, 0x10
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
pop ebx
leave
ret 8
mov ebx, 0x80070057
jmp 0x41027c
push 0x41abdc
push dword [ebp + 0xc]
push esi
call fcn.0040258e
jmp 0x410258

Function at 0x410461
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x238]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00401415
add esi, 0x28
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x415f7e
cmp eax, 0xffffffff
je 0x4104b1
and eax, 6
cmp al, 6
jne 0x415f7e
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004013d7
leave
ret 4
push edi
push 6
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
mov edi, 0x111
push edi
lea eax, [ebp - 0x228]
push eax
call fcn.0040258e
test eax, eax
jl 0x415fe8
push 0x415ff0
push edi
lea eax, [ebp - 0x228]
push eax
call fcn.0040ffa6
test eax, eax
jl 0x415fe8
push ebx
push ebx
push 1
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x415fd9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push esi
push 5
push 0x2000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
pop edi
jmp 0x4104b1

Function at 0x4108ad
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0x104
jb 0x4127aa
push edi
push dword [ebp + 8]
push 0x403634
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
mov edi, eax
test edi, edi
jl 0x4127b4
push dword [ebp + 8]
push 0x40360c
push 0x410908
push 4
call fcn.004173ad
add esp, 0x10
mov eax, edi
pop edi
pop ebp
ret 8
mov eax, 0x80070057
jmp 0x4108fd
push 0x41abdc
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040258e
jmp 0x4108e3
Function at 0x41097b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
lea eax, [ebx + 0x18]
push eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], ebx
call fcn.00401415
xor edi, edi
cmp esi, edi
je 0x412ad4
push 0x104
lea eax, [ebp - 0x20c]
push eax
mov ecx, ebx
call fcn.004108ad
mov ebx, eax
cmp ebx, edi
jl 0x410a8d
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x412ade
lea eax, [ebp - 0x20c]
push eax
push 0x411738
mov esi, 0x410ab0
push esi
push 4
call fcn.004173ad
add esp, 0x10
push edi
push 0x80
push 3
push edi
push edi
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x214], eax
cmp eax, 0xffffffff
je 0x412ae8
push edi
lea ecx, [ebp - 0x224]
push ecx
push 4
lea ecx, [ebp - 0x210]
push ecx
push eax
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x210], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412b03
push dword [ebp - 0x210]
push 0x40396c
push esi
push 4
call fcn.004173ad
add esp, 0x10
xor esi, esi
cmp dword [ebp - 0x210], edi
ja 0x412b1e
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004013d7
leave
ret 4
mov ebx, 0x80070057
jmp 0x410a8d
mov ebx, 0x8000ffff
jmp 0x410a8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x412afc
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x410a8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x412b17
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x410a81
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x218], edi
call fcn.0041fa35
mov ebx, eax
cmp ebx, edi
jl 0x410a81
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
call fcn.00402af6
inc esi
cmp esi, dword [ebp - 0x210]
jae 0x410a81
jmp 0x412b1e
Function at 0x410c21
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
lea eax, [ebx + 0x18]
push eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], ebx
call fcn.00401415
xor edi, edi
cmp esi, edi
je 0x412b61
push 0x104
lea eax, [ebp - 0x20c]
push eax
mov ecx, ebx
call fcn.0040ec34
mov ebx, eax
cmp ebx, edi
jl 0x410d33
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x412b6b
lea eax, [ebp - 0x20c]
push eax
push 0x411738
mov esi, 0x410d58
push esi
push 4
call fcn.004173ad
add esp, 0x10
push edi
push 0x80
push 3
push edi
push edi
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x214], eax
cmp eax, 0xffffffff
je 0x412b75
push edi
lea ecx, [ebp - 0x224]
push ecx
push 4
lea ecx, [ebp - 0x210]
push ecx
push eax
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x210], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412b90
push dword [ebp - 0x210]
push 0x40396c
push esi
push 4
call fcn.004173ad
add esp, 0x10
xor esi, esi
cmp dword [ebp - 0x210], edi
ja 0x412bab
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004013d7
leave
ret 4
mov ebx, 0x80070057
jmp 0x410d33
mov ebx, 0x8000ffff
jmp 0x410d33
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x412b89
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x410d33
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x412ba4
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x410d27
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x218], edi
call fcn.0041f8cb
mov ebx, eax
cmp ebx, edi
jl 0x410d27
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
call fcn.00402af6
inc esi
cmp esi, dword [ebp - 0x210]
jae 0x410d27
jmp 0x412bab

Function at 0x410ec9
Capabilities:
Create thread
Resume thread

Disassembly:
mov edi, edi
push esi
push edi
mov esi, ecx
lea eax, [esi + 8]
push eax
push 4
push esi
push 0x41145e
xor edi, edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
je 0x4134f4
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x413512
mov eax, edi
pop edi
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x413508
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x41ab90
jmp 0x41352e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x413526
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x41ab40
push 0x413558
push 1
call fcn.004173ad
add esp, 0x10
test edi, edi
jge 0x410f00
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x410f00
Function at 0x411219
Capabilities:
Create thread
Resume thread

Disassembly:
mov edi, edi
push esi
push edi
mov esi, ecx
lea eax, [esi + 8]
push eax
push 4
push esi
push 0x4114a9
xor edi, edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
je 0x4133fc
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x41341a
mov eax, edi
pop edi
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x413410
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x41ab90
jmp 0x413436
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41342e
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x41ab40
push 0x413460
push 1
call fcn.004173ad
add esp, 0x10
test edi, edi
jge 0x411250
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411250

Function at 0x4114d1
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0x104
jb 0x4127e8
push edi
push dword [ebp + 8]
push 0x403634
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
mov edi, eax
test edi, edi
jl 0x4127f2
push dword [ebp + 8]
push 0x40360c
push 0x411528
push 4
call fcn.004173ad
add esp, 0x10
mov eax, edi
pop edi
pop ebp
ret 8
mov eax, 0x80070057
jmp 0x411521
push 0x41abdc
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040258e
jmp 0x411507
Function at 0x4115a7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
lea eax, [ebx + 0x18]
push eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], ebx
call fcn.00401415
xor edi, edi
cmp esi, edi
je 0x412bee
push 0x104
lea eax, [ebp - 0x20c]
push eax
mov ecx, ebx
call fcn.004114d1
mov ebx, eax
cmp ebx, edi
jl 0x4116b9
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x412bf8
lea eax, [ebp - 0x20c]
push eax
push 0x411738
mov esi, 0x4116d8
push esi
push 4
call fcn.004173ad
add esp, 0x10
push edi
push 0x80
push 3
push edi
push edi
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x214], eax
cmp eax, 0xffffffff
je 0x412c02
push edi
lea ecx, [ebp - 0x224]
push ecx
push 4
lea ecx, [ebp - 0x210]
push ecx
push eax
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x210], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412c1d
push dword [ebp - 0x210]
push 0x40396c
push esi
push 4
call fcn.004173ad
add esp, 0x10
xor esi, esi
cmp dword [ebp - 0x210], edi
ja 0x412c38
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004013d7
leave
ret 4
mov ebx, 0x80070057
jmp 0x4116b9
mov ebx, 0x8000ffff
jmp 0x4116b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x412c16
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x4116b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x412c31
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x4116ad
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x218], edi
call fcn.0041fb9d
mov ebx, eax
cmp ebx, edi
jl 0x4116ad
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
call fcn.00402af6
inc esi
cmp esi, dword [ebp - 0x210]
jae 0x4116ad
jmp 0x412c38

Function at 0x411759
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
cmp eax, esi
je 0x412795
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x412007
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, esi
je 0x41279c
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret
xor eax, eax
jmp 0x41179b
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411798
Function at 0x411e61
Capabilities:
Check if file exists
Delete file

Disassembly:
mov ecx, dword [ebp - 4]
call fcn.0040e5fe
mov dword [ebp - 8], eax
cmp eax, 0x80030109
je 0x416b1c
mov dword [ebp - 8], ebx
jmp 0x416b1c
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], esi
cmp word [esi + 0x28], bx
je 0x416a26
push edi
lea eax, [esi + 0x238]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401415
cmp dword [esi + 0x20], ebx
jne 0x416a44
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.004034b8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
mov esi, 0x411eec
mov edi, 0x411edc
push 2
pop eax
mov word [ebp - 0x20], ax
xor eax, eax
mov word [ebp - 0x1e], ax
mov eax, dword [ebp - 4]
add eax, 0x28
push eax
mov dword [ebp - 0x1c], 0x1000
mov dword [ebp - 0x18], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jmp 0x416a93
push 0x416cf8
push 0x411eec
push 1
call fcn.004173ad
add esp, 0xc
mov eax, 0x8000ffff
jmp 0x4104f7
mov eax, dword [ebp + 8]
cmp dword [esi + 0x24], eax
jne 0x416a68
push 0x416cbc
push 0x411eec
push 4
call fcn.004173ad
xor edi, edi
add esp, 0xc
inc edi
jmp 0x4104eb
mov ecx, esi
call fcn.00424d6f
mov edi, eax
cmp edi, ebx
jge 0x411e95
push edi
push 0x416c60
push 0x411eec
push 1
call fcn.004173ad
add esp, 0x10
jmp 0x4104eb
test eax, eax
mov eax, dword [ebp - 4]
jne 0x416acd
add eax, 0x28
push eax
push 0x416c28
push esi
push 4
call fcn.004173ad
mov eax, dword [ebp - 4]
add esp, 0x10
lea ecx, [eax + 0x20]
push ecx
push edi
push ebx
lea ecx, [ebp - 0x20]
push ecx
push ebx
push 5
push dword [ebp - 0x10]
add eax, 0x28
push eax
call dword [sym.imp.ole32.dll_StgCreateStorageEx]
jmp 0x416afe
add eax, 0x28
push eax
push 0x416bfc
push esi
push 4
call fcn.004173ad
mov eax, dword [ebp - 4]
add esp, 0x10
lea ecx, [eax + 0x20]
push ecx
push edi
push ebx
lea ecx, [ebp - 0x20]
push ecx
push ebx
push 5
push dword [ebp - 0x10]
add eax, 0x28
push eax
call dword [sym.imp.ole32.dll_StgOpenStorageEx]
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x416b21
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
and eax, 3
push ebx
mov dword [ecx + 0x24], eax
call fcn.00410461
jmp 0x4104cd
cmp dword [ebp - 8], ebx
jge 0x416b69
push dword [ebp - 8]
mov eax, dword [ebp - 4]
add eax, 0x28
push eax
push 0x416b78
push esi
push 1
call fcn.004173ad
mov eax, dword [ebp - 4]
add eax, 0x20
mov ecx, dword [eax]
add esp, 0x14
cmp ecx, ebx
je 0x416b4f
mov dword [eax], ebx
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 4]
add eax, 0x28
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 2
jl 0x411eb0
mov edi, dword [ebp - 8]
jmp 0x4104eb
Function at 0x411f9e
Capabilities:
Create thread
Resume thread

Disassembly:
mov edi, edi
push esi
push edi
mov esi, ecx
lea eax, [esi + 8]
push eax
push 4
push esi
push 0x411fdf
xor edi, edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
je 0x41253d
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x41255b
mov eax, edi
pop edi
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x412551
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x41ab90
jmp 0x412577
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41256f
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x41ab40
push 0x4125a0
push 1
call fcn.004173ad
add esp, 0x10
test edi, edi
jge 0x411fd5
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411fd5

Function at 0x412135
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor edx, edx
xor ecx, ecx
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
push edi
mov edi, eax
mov ebx, dword [esp + 0x14]
push ebp
mov cl, byte [esi + 0x100]
mov ebp, ebx
mov dl, byte [esi + 0x101]
test ebx, ebx
je 0x412270
shr ebx, 2
and eax, 3
test ebx, ebx
je 0x412245
test eax, eax
jne 0x412245
mov eax, edi
lea edi, [edi + ebx*4]
mov dword [esp + 0x1c], edi
sub eax, 4
mov ebp, ebx
mov edi, dword [eax + 4]
inc ecx
xor eax, eax
and ecx, 0xff
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 8
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x10
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x18
lea ebx, [ebp*4]
xor edi, eax
mov eax, dword [esp + 0x1c]
sub eax, ebx
mov dword [eax], edi
dec ebp
jne 0x412185
mov ebp, dword [esp + 0x18]
and ebp, 3
test ebp, ebp
je 0x412270
lea edi, [eax + 4]
inc ecx
mov ebx, 0xff
and ecx, ebx
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, ebx
xor ebx, ebx
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov bl, byte [edi]
mov al, byte [esi + eax]
xor bl, al
mov byte [edi], bl
inc edi
dec ebp
jne 0x412245
pop ebp
pop edi
lea eax, [esi + 0x100]
pop esi
mov byte [eax], cl
pop ebx
mov byte [eax + 1], dl
ret 0xc