joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f20
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
mov ecx, 0x41b074
mov eax, 0x420d48
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401f56
test dx, dx
je 0x401f52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401f56
add eax, 4
add ecx, 4
test dx, dx
jne 0x401f30
xor eax, eax
jmp 0x401f5b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401f77
push 0x41b074
push 0x400
push 0x422d48
call fcn.00406d38
add esp, 0xc
ret
push esi
push 0x420d48
push 0x400
push 0x422d48
call fcn.00406d38
push 0x41b11c
push 0x400
push 0x422d48
call fcn.00407b0d
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x18
push 0x422d48
call esi
cmp eax, 0xffffffff
je 0x401fb9
test al, 0x10
jne 0x401ff9
push 0
push 0x422d48
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401fe3
push 0x41b074
push 0x400
push 0x422d48
call fcn.00406d38
add esp, 0xc
pop esi
ret
push 0x422d48
call esi
or eax, 2
push eax
push 0x422d48
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
ret

Function at 0x402260
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x808
mov eax, dword [0x41e494]
xor eax, esp
mov dword [esp + 0x804], eax
mov ecx, 0x41b074
mov eax, 0x421d48
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4022aa
test dx, dx
je 0x4022a6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4022aa
add eax, 4
add ecx, 4
test dx, dx
jne 0x402284
xor eax, eax
jmp 0x4022af
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4022dc
push 0x41b074
push 0x400
push 0x420548
call fcn.00406d38
add esp, 0xc
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00406d29
mov esp, ebp
pop ebp
ret
lea eax, [esp]
push eax
call fcn.00402000
push 0x421d48
push 0x400
push 0x420548
call fcn.00406d38
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x400
push 0x420548
call fcn.00407b0d
add esp, 0xc
call fcn.00401760
test al, al
je 0x402326
push 0x420548
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00406d29
mov esp, ebp
pop ebp
ret
Function at 0x403ce0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4173d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x41e494]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x403e71
cmp byte [ebx + 0x49], 0
je 0x403e71
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x403e65
lea esi, [ebp - 0x2c]
call fcn.00403770
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x403d53
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x403d8c
dec eax
je 0x403d90
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x403e6c
call fcn.00402340
xor al, al
jmp 0x403e73
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x403da0
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x403dcd
cmp edi, 0x10
jae 0x403daf
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00408265
add esp, 0x10
cmp esi, eax
jne 0x403e5d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x403e69
test esi, esi
jne 0x403d47
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x403e8e
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x403e8e
cmp edi, esi
jae 0x403e46
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404510
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x403d47
mov ecx, eax
cmp edi, 0x10
jae 0x403e22
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x403e3d
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x403d41
test esi, esi
jne 0x403e18
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x403e55
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x403d41
lea ecx, [ebp - 0x2c]
call fcn.00402340
xor al, al
jmp 0x403e73
lea ecx, [ebp - 0x2c]
call fcn.00402340
mov al, 1
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.00406d29
mov esp, ebp
pop ebp
ret
push 0x41b2f4
call fcn.00406aac
int3
Function at 0x4041e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41734b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x41e494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00406b67
push 4
mov dword [ebp - 4], 0
call fcn.00407391
mov edi, eax
add esp, 4
test edi, edi
je 0x40425c
call fcn.0040645b
mov dword [edi], eax
call fcn.0040621a
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0040614f
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404252
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00406177
jmp 0x40425e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
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
Function at 0x404e80
Capabilities:
Get session user name
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x181c
call fcn.00413f20
mov eax, dword [0x41e494]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edx, str.ENTERING________________________________________EHTerminateProcesses
call fcn.00401870
lea eax, [ebp - 0x1814]
push eax
lea ecx, [ebp - 0x1808]
push ecx
mov dword [ebp - 0x1814], 0x400
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
push 0x22c
mov dword [ebp - 0x1810], edi
call fcn.00407391
mov esi, eax
add esp, 4
push esi
push edi
mov dword [ebp - 0x180c], esi
mov dword [esi], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x405028
mov ecx, dword [0x420534]
sub ecx, dword [0x420530]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
xor ebx, ebx
test esi, esi
jle 0x40500c
xor edi, edi
mov edx, dword [0x420530]
cmp dword [edi + edx + 0x14], 8
lea eax, [edi + edx]
jb 0x404f3c
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x180c]
add eax, 0x24
push eax
call fcn.00407eb0
add esp, 8
test eax, eax
je 0x404f60
inc ebx
add edi, 0x1c
cmp ebx, esi
jl 0x404f2a
jmp 0x40500c
mov eax, dword [ebp - 0x180c]
mov ecx, dword [eax + 8]
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40500c
push esi
lea ecx, [ebp - 0x1008]
call fcn.004054f0
add esp, 4
test al, al
je 0x40500c
lea edx, [ebp - 0x1808]
push edx
lea eax, [ebp - 0x1008]
push eax
call fcn.00407eb0
add esp, 8
test eax, eax
jne 0x40500c
lea ecx, [ebp - 0x1818]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x1818]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x405005
mov eax, dword [ebp - 0x180c]
add eax, 0x24
push eax
push str.MESSAGE______Terminated_Process______s
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.00407f3b
add esp, 0x10
lea edx, [ebp - 0x808]
call fcn.00401870
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x180c]
mov edi, dword [ebp - 0x1810]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x404eff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00406f11
add esp, 4
mov edx, str.LEAVING________________________________________EHTerminateProcesses
call fcn.00401870
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406d29
mov esp, ebp
pop ebp
ret
Function at 0x4056b0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4174e6
mov eax, dword fs:[0]
push eax
mov eax, 0x184c
call fcn.00413f20
mov eax, dword [0x41e494]
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
push 0x400
lea eax, [ebp - 0x810]
xor esi, esi
push eax
push esi
mov dword [ebp - 0x184c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ecx, ecx
lea eax, [ebp - 0x810]
mov dword [ebp - 0x1818], 7
mov dword [ebp - 0x181c], esi
mov word [ebp - 0x182c], cx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x405720
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
lea ecx, [ebp - 0x182c]
call fcn.00404310
mov ebx, 1
lea edi, [ebp - 0x182c]
mov dword [ebp - 4], esi
call fcn.004039c0
lea ecx, [eax + 1]
lea eax, [ebp - 0x1848]
mov edx, edi
call fcn.00402910
mov edi, eax
lea esi, [ebp - 0x182c]
mov byte [ebp - 4], bl
call fcn.004038a0
mov esi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x1834], esi
jb 0x405794
mov edx, dword [ebp - 0x1848]
push edx
call fcn.00406f11
add esp, 4
mov eax, dword [ebp - 0x182c]
cmp dword [ebp - 0x1818], esi
jae 0x4057a8
lea eax, [ebp - 0x182c]
push eax
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.00406d38
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
lea ecx, [ebp - 0x1854]
push ecx
lea edx, [ebp - 0x1810]
push edx
mov dword [ebp - 0x1858], eax
mov dword [ebp - 0x1854], 0x400
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
push 0x22c
mov dword [ebp - 0x1850], ebx
call fcn.00407391
add esp, 4
mov esi, eax
push esi
push ebx
mov dword [esi], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x4058a5
lea eax, [ebp - 0x810]
push eax
lea eax, [esi + 0x24]
push eax
call fcn.00407eb0
add esp, 8
test eax, eax
jne 0x405899
mov ecx, dword [esi + 8]
push ecx
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x405899
push edi
lea ecx, [ebp - 0x1010]
call fcn.004054f0
add esp, 4
push edi
mov bl, al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x405893
lea edx, [ebp - 0x1810]
push edx
lea eax, [ebp - 0x1010]
push eax
call fcn.00407eb0
add esp, 8
test eax, eax
jne 0x405893
mov ecx, dword [ebp - 0x1858]
cmp dword [esi + 8], ecx
jne 0x4058f1
mov ebx, dword [ebp - 0x1850]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x405825
mov edi, dword [ebp - 0x184c]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00406f11
add esp, 4
cmp dword [ebp - 0x1818], 8
jb 0x4058d3
mov edx, dword [ebp - 0x182c]
push edx
call fcn.00406f11
add esp, 4
mov eax, edi
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.00406d29
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x1850]
mov edi, 1
jmp 0x4058ab
Function at 0x4059d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x420468
push 0x67
push esi
call edi
push 0x64
push 0x4203a0
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00405a90
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x420468
push 0x4203a0
push 0
mov dword [0x42039c], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x405a68
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.004056b0
test eax, eax
je 0x405a72
mov edx, str.ERROR___________________App_Already_Running
call fcn.00401870
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
call fcn.00405ec0
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405ec0
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2048
call fcn.00413f20
mov eax, dword [0x41e494]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edx, str.ENTERING___________________________________PerformEHMainExeFunctions
call fcn.00401870
push 0x400
lea eax, [ebp - 0x2008]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x41b074
push 0x421548
call fcn.00407eb0
add esp, 8
test eax, eax
je 0x405f3f
push 0x421548
lea ecx, [ebp - 0x1808]
push 0x400
push ecx
call fcn.00406d38
add esp, 0xc
push 0x41b2dc
lea edx, [ebp - 0x1808]
push 0x400
push edx
call fcn.00407b0d
jmp 0x405f55
push 0x41b074
lea eax, [ebp - 0x1808]
push 0x400
push eax
call fcn.00406d38
add esp, 0xc
push edi
lea ecx, [ebp - 0x1808]
push ecx
lea edx, [ebp - 0x2008]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
call fcn.00404e80
push 0x421548
lea eax, [ebp - 0x1008]
push 0x400
push eax
call fcn.00406d38
add esp, 0xc
mov ecx, 0x41b074
lea eax, [ebp - 0x1008]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405fbc
cmp dx, di
je 0x405fb8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405fbc
add eax, 4
add ecx, 4
cmp dx, di
jne 0x405f96
xor eax, eax
jmp 0x405fc1
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x4060d1
lea ecx, [ebp - 0x1008]
push ecx
lea edx, [ebp - 0x808]
push 0x400
push edx
call fcn.00406d38
add esp, 0xc
push 0x41b914
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.00407b0d
add esp, 0xc
push 0x84
lea esi, [ebp - 0x808]
call fcn.00405c70
add esp, 4
lea ecx, [ebp - 0x1008]
push ecx
mov edx, esi
push 0x400
push edx
call fcn.00406d38
add esp, 0xc
push 0x41b940
mov eax, esi
push 0x400
push eax
call fcn.00407b0d
add esp, 0xc
push 0x85
call fcn.00405c70
add esp, 4
lea ecx, [ebp - 0x1008]
push ecx
mov edx, esi
push 0x400
push edx
call fcn.00406d38
add esp, 0xc
push 0x41b960
mov eax, esi
push 0x400
push eax
call fcn.00407b0d
add esp, 0xc
push 0x86
call fcn.00405c70
add esp, 4
lea edx, [ebp - 0x2044]
mov ecx, esi
push edx
mov dword [ebp - 0x2044], 0x3c
mov dword [ebp - 0x2040], edi
mov dword [ebp - 0x203c], edi
mov dword [ebp - 0x2038], edi
mov dword [ebp - 0x2034], ecx
mov dword [ebp - 0x2030], edi
mov dword [ebp - 0x202c], edi
mov dword [ebp - 0x2028], 3
mov dword [ebp - 0x2024], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
jmp 0x4060db
mov edx, str.ERROR____________________strDownloadFolder_is_NULL
call fcn.00401870
mov edx, str.LEAVING___________________________________PerformEHMainExeFunctions
call fcn.00401870
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00406d29
mov esp, ebp
pop ebp
ret

Function at 0x406d29
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41e494]
jne 0x406d33
repz ret
jmp fcn.0040b88d
Function at 0x4153f1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41e494]
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.0040d049
and dword [ebp - 0x14], 0
cmp dword [0x420368], 0
mov dword [ebp - 0x18], eax
jne 0x4154a4
push 0x41aff0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41554c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41afe4
push ebx
call edi
test eax, eax
je 0x41554c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x41afd4
push ebx
mov dword [0x420368], eax
call edi
push eax
call esi
push 0x41afc0
push ebx
mov dword [0x42036c], eax
call edi
push eax
call esi
push 0x41afa4
push ebx
mov dword [0x420370], eax
call edi
push eax
call esi
mov dword [0x420378], eax
test eax, eax
je 0x4154a4
push 0x41af8c
push ebx
call edi
push eax
call esi
mov dword [0x420374], eax
mov eax, dword [0x420374]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4154fd
cmp dword [0x420378], ecx
je 0x4154fd
push eax
call esi
push dword [0x420378]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4154fd
test ebx, ebx
je 0x4154fd
call edi
test eax, eax
je 0x4154f4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4154f4
test byte [ebp - 8], 1
jne 0x4154fd
or dword [ebp + 0x10], 0x200000
jmp 0x415530
mov eax, dword [0x42036c]
cmp eax, dword [ebp - 0x18]
je 0x415530
push eax
call esi
test eax, eax
je 0x415530
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x415530
mov eax, dword [0x420370]
cmp eax, dword [ebp - 0x18]
je 0x415530
push eax
call esi
test eax, eax
je 0x415530
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x420368]
call esi
test eax, eax
je 0x41554c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41554e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406d29
leave
ret
Function at 0x40125d
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, edx
mov ebp, ecx
xor eax, eax
mov byte [eax + 0xb1f7d0], al
inc eax
cmp eax, 0x100
jne 0x401267
xor edi, edi
xor esi, esi
mov dword [0xb1f8d4], edi
mov dword [0xb1f8d0], esi
cmp esi, 0xfac
jae 0x4012a9
push str.Xejili_zuyo_wi_jufebodoyi
push str.Vibibozuve_mayu
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
mov esi, dword [0xb1f8d0]
mov edi, dword [0xb1f8d4]
xor edx, edx
mov eax, esi
div ebx
movzx eax, byte [esi + 0xb1f7d0]
add edi, eax
movsx ecx, byte [edx + ebp]
add edi, ecx
mov dword [0xb1f8d4], edi
cmp esi, 0xdc9
jae 0x4012de
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0xb1f8d0]
mov edi, dword [0xb1f8d4]
mov cl, byte [esi + 0xb1f7d0]
and edi, 0xff
mov dword [0xb1f8d4], edi
mov al, byte [edi + 0xb1f7d0]
mov byte [esi + 0xb1f7d0], al
inc esi
mov byte [edi + 0xb1f7d0], cl
mov dword [0xb1f8d0], esi
cmp esi, 0x100
jne 0x401285
and dword [0xb1f8d4], 0
and dword [0xb1f8d0], 0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40ab94
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x415ab0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040810a
mov dword [ebp - 0x14], eax
cmp dword [0xb207ac], esi
jne 0x40ac87
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40ac14
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40ad67
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40ad67
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ad67
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0xb207ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0xb207b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xb207b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xb207bc], eax
test eax, eax
je 0x40ac84
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xb207b8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40acac
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40ac9f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40acc1
push 4
pop eax
jmp 0x40ad69
cmp dword [ebp - 0x14], esi
je 0x40acc1
push dword [0xb207ac]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40aca6
mov eax, dword [0xb207b8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40ad1f
cmp dword [0xb207bc], edi
je 0x40ad1f
push eax
call ebx
push dword [0xb207bc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40ad1f
test eax, eax
je 0x40ad1f
call ecx
test eax, eax
je 0x40ad14
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40ad14
test byte [ebp - 8], 1
jne 0x40ad1f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40ad4f
mov eax, dword [0xb207b0]
cmp eax, edi
je 0x40ad4c
push eax
call ebx
test eax, eax
je 0x40ad4c
call eax
mov esi, eax
test esi, esi
je 0x40ad4c
mov eax, dword [0xb207b4]
cmp eax, edi
je 0x40ad4c
push eax
call ebx
test eax, eax
je 0x40ad4c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xb207ac]
call ebx
test eax, eax
je 0x40ad67
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40ad69
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004034a8
mov esp, ebp
pop ebp
ret
Function at 0x4068f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 4
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREAdobeAdobe_ARM1.0ARM
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406957
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.iLastSvcSuccess
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x28]
add eax, 0x230
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x40c6b0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x454], 0
je 0x4069a7
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x4069a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x454], 0
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x454], 0
jne 0x4069bb
mov ecx, dword [ebp - 0x28]
call fcn.0040a990
mov esp, ebp
pop ebp
ret

Function at 0x4076b8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412018]
jne 0x4076c2
repz ret
jmp fcn.00407c4a

Function at 0x407ed0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x407f0b
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x407ef2
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x407f03
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x407f0d
inc edi
add eax, 0x28
cmp edi, esi
jb 0x407ee8
xor eax, eax
pop edi
pop esi
ret