joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41dfca
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
push ebx
push esi
push edi
push 0x118
mov edi, eax
lea eax, [ebp - 0x11c]
push 0
push eax
mov esi, ecx
call fcn.00424920
add esp, 0xc
lea eax, [ebp - 0x330]
call fcn.0040ebac
mov eax, dword [esi + 4]
and dword [esi + 8], 0
test eax, eax
je 0x41e00b
xor ecx, ecx
mov word [eax], cx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetVersionExW]
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call ebx
test eax, eax
jne 0x41e046
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call ebx
test eax, eax
jne 0x41e046
xor al, al
jmp 0x41e181
mov edx, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x11c]
test edi, edi
je 0x41e05f
mov eax, ecx
imul eax, eax, 0x64
add eax, edx
mov dword [edi], eax
mov eax, dword [ebp - 0x110]
dec eax
je 0x41e163
dec eax
je 0x41e079
push str.Microsoft_Win32s
jmp 0x41e17a
cmp ecx, 4
ja 0x41e085
push 0x439520
jmp 0x41e0c7
cmp ecx, 5
jne 0x41e0aa
mov eax, edx
sub eax, 0
je 0x41e0a3
dec eax
je 0x41e09c
push str.Windows_2003
dec eax
jmp 0x41e0c7
push 0x439568
jmp 0x41e0c7
push str.Windows_2000
jmp 0x41e0c7
cmp ecx, 6
jne 0x41e0c2
cmp edx, 1
jae 0x41e0bb
push str.Windows_Vista
jmp 0x41e0c7
push str.Windows_7
jmp 0x41e0c7
push str.Windows
call fcn.0040afec
cmp byte [ebp - 6], 1
jne 0x41e0dc
push str._Professional
call fcn.004164ab
cmp byte [ebp - 6], 3
jne 0x41e0ec
push str._Server
call fcn.004164ab
cmp byte [ebp - 6], 2
jne 0x41e0fc
push str._Domain
call fcn.004164ab
cmp word [ebp - 0x10c], 0
movzx eax, word [ebp - 0x114]
push eax
jne 0x41e122
push str.__Build__d_
lea eax, [ebp - 0x330]
call fcn.004017c3
pop ecx
pop ecx
jmp 0x41e13c
lea eax, [ebp - 0x10c]
push eax
push str.__s__Build__d_
lea eax, [ebp - 0x330]
call fcn.004017c3
add esp, 0xc
lea edi, [ebp - 0x330]
call fcn.0041df8a
mov eax, edi
call fcn.0041df1f
test al, al
je 0x41e17f
push str._on
call fcn.004164ab
call fcn.0041df8a
jmp 0x41e17f
cmp ecx, 4
ja 0x41e175
jne 0x41e16e
test edx, edx
ja 0x41e175
push str.Microsoft_Windows_95
jmp 0x41e17a
push str.Microsoft_Windows_98
call fcn.004164ab
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41e6cf
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push ebx
push esi
push edi
lea eax, [ebp - 0x228]
call fcn.0040653c
xor eax, eax
mov byte [ebp - 1], 0
cmp dword [ebp + 0xc], eax
je 0x41e730
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x23c], eax
je 0x41e730
push eax
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, 0xffffffff
je 0x41e730
lea eax, [ebp - 0x458]
push eax
push esi
mov dword [ebp - 0x458], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
jne 0x41e739
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x450]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x41e799
push dword [ebp - 0x21c]
push dword [ebp - 0x224]
push eax
mov eax, dword [ebp + 8]
call dword [eax + 0x23c]
test eax, eax
je 0x41e78e
lea esi, [ebp - 0x228]
call fcn.004064fd
push dword [ebp + 0xc]
mov edi, esi
call fcn.0041ee7c
test eax, eax
setge byte [ebp - 1]
push dword [ebp - 0xc]
call ebx
cmp byte [ebp - 1], 0
jne 0x41e7ac
lea eax, [ebp - 0x458]
push eax
push dword [ebp - 8]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x41e73f
push dword [ebp - 8]
call ebx
mov al, byte [ebp - 1]
jmp 0x41e732
Function at 0x41e7b9
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push ebx
push esi
xor ebx, ebx
push edi
lea eax, [ebp - 0x234]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ebx
call fcn.0040653c
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax + 8], ebx
cmp dword [ebp + 8], ebx
jne 0x41e7f5
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
push 4
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x10], edi
cmp edi, ebx
je 0x41e7ec
mov esi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 3
push 0x30
push edi
call esi
test eax, eax
jne 0x41e83d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xea
je 0x41e83d
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41e7ec
mov eax, dword [ebp - 8]
push 0x43f708
push 0x24
xor edx, edx
pop ecx
div ecx
xor ecx, ecx
push 0x24
pop edx
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00422ead
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x41e86e
push dword [ebp - 0x10]
jmp 0x41e835
mov eax, dword [ebp - 8]
push 0x24
pop ecx
xor edx, edx
div ecx
inc eax
imul eax, eax, 0x24
push eax
push ebx
push edi
call fcn.00424920
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push 3
push 0x30
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x41e8bb
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call fcn.00422a18
pop ecx
mov al, bl
jmp 0x41e7ee
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0xc], ebx
jbe 0x41e930
mov esi, edi
mov eax, dword [esi]
cmp eax, ebx
je 0x41e922
push eax
lea eax, [ebp - 0x234]
call fcn.0041e937
test al, al
je 0x41e922
mov eax, dword [ebp + 8]
call fcn.004083ac
cmp dword [ebp - 0x230], ebx
je 0x41e8ff
push eax
push dword [ebp + 8]
push dword [ebp - 0x230]
call fcn.00424311
add esp, 0xc
jmp 0x41e909
cmp dword [ebp - 0x22c], 1
sbb eax, eax
inc eax
cmp eax, ebx
jne 0x41e922
cmp dword [esi + 0xc], 1
push dword [esi]
jne 0x41e91a
push dword [ebp + 0x10]
jmp 0x41e91d
push dword [ebp + 0xc]
call fcn.0041ee29
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add esi, 0x24
cmp eax, dword [ebp - 0xc]
jb 0x41e8c5
mov bl, 1
jmp 0x41e8a4
Function at 0x41eac6
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x24
push ebx
xor ebx, ebx
mov byte [esp + 7], bl
cmp dword [esp + 0x2c], ebx
jne 0x41eadf
xor al, al
pop ebx
add esp, 0x24
ret 4
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [esp + 8], eax
cmp eax, ebx
je 0x41ead6
push edi
push 0xf01ff
push dword [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, ebx
jne 0x41eb1a
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
pop edi
jmp 0x41ead8
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_Sleep]
push esi
xor esi, esi
mov ebx, 0x3e8
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41eb8e
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x41eb89
cmp eax, 4
je 0x41eb57
cmp eax, 7
je 0x41eb57
push ebx
call ebp
inc esi
cmp esi, 0x3c
jb 0x41eb29
jmp 0x41eb8e
lea eax, [esp + 0x18]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x41eb82
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41eb8e
cmp dword [esp + 0x1c], 1
je 0x41eb89
push ebx
call ebp
inc esi
cmp esi, 0x3c
jb 0x41eb67
jmp 0x41eb8e
mov byte [esp + 0x13], 1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, byte [esp + 0x13]
pop esi
pop ebp
jmp 0x41eb0b
Function at 0x41ebc0
Capabilities:
Modify service
Query service status
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push edi
xor ebx, ebx
xor eax, eax
push 8
pop ecx
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x50], ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp dword [ebp + 8], ebx
jne 0x41ebfc
xor al, al
jmp 0x41ed2d
push esi
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x10], esi
cmp esi, ebx
je 0x41ec53
push 0xf01ff
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, ebx
jne 0x41ec31
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41ec53
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x50]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x41ec5a
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
xor al, al
jmp 0x41ed2c
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2W]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 2
push edi
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x41ecb2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x41ecb2
push 0x43f708
push dword [ebp - 8]
call fcn.00422ead
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x41ecb2
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push 2
push edi
call esi
test eax, eax
jne 0x41ecb2
push dword [ebp - 4]
call fcn.00422a18
pop ecx
mov dword [ebp - 4], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
push 2
push edi
mov dword [ebp - 0x20], 1
call esi
push dword [ebp - 0x34]
push ebx
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x41ed00
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [ebp - 4], ebx
je 0x41ed16
push dword [ebp - 4]
push 2
push edi
call esi
push dword [ebp - 4]
call fcn.00422a18
pop ecx
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push dword [ebp - 0x10]
call esi
xor eax, eax
cmp dword [ebp - 0xc], ebx
setne al
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x41eda3
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x1c
cmp dword [ebp + 8], 0
mov byte [eax], 0
jne 0x41edb9
xor al, al
jmp 0x41ee25
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x41edd3
xor al, al
jmp 0x41ee24
push esi
push 0xf01ff
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x41edf2
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41ee0d
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x41ee11
call esi
push edi
call esi
xor al, al
jmp 0x41ee23
call esi
push edi
call esi
xor eax, eax
inc eax
cmp dword [ebp - 0x18], eax
jne 0x41ee23
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
pop esi
pop edi
leave
ret 8
Function at 0x420d9a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
xor esi, esi
cmp dword [edi + 0x86c], esi
je 0x420e5a
cmp dword [edi + 0x870], 1
jl 0x420e5a
push 0x88
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.00424920
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x8c]
push 0x3f
push eax
mov dword [ebp - 0x98], esi
call fcn.0040ab6f
add esp, 0xc
push dword [edi + 0x864]
lea eax, [ebp - 0x98]
push eax
mov esi, edi
call fcn.00421750
mov ebx, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, edi
call fcn.00420e62
test al, al
je 0x420e5a
cmp dword [edi + 0x828], 5
mov eax, str._files_mt5_cdn.txt
je 0x420e2f
mov eax, str._files_mt4_cdn.txt
push eax
lea ecx, [edi + 4]
call fcn.0041cab1
cmp eax, 0xc8
jne 0x420e5a
call ebx
sub eax, dword [ebp - 4]
mov ecx, esi
lea ecx, [ecx + 0x84]
mov dword [ecx], eax
jne 0x420e56
mov dword [ecx], 1
mov al, 1
jmp 0x420e5c
xor al, al
pop esi
pop ebx
leave
ret 4
Function at 0x42116b
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
push ebx
push esi
push edi
xor edi, edi
mov ebx, eax
mov esi, ecx
cmp dword [ebp + 0x10], edi
je 0x421254
cmp dword [esi + 0x86c], edi
je 0x421254
cmp dword [esi + 0x870], 1
jl 0x421254
lea eax, [ebp - 0x26c]
call fcn.0040653c
xor eax, eax
push 0x206
mov word [ebp - 0x474], ax
lea eax, [ebp - 0x472]
push edi
push eax
call fcn.00424920
add esp, 0xc
push 8
pop ecx
mov dword [ebp - 0x50], edi
xor eax, eax
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x474]
push eax
xor edi, edi
push edi
push edi
push 0x23
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x421254
push dword [ebp + 0x10]
lea eax, [ebp - 0x474]
push eax
push str._sMetaQuotesWebInstall_s
lea eax, [ebp - 0x26c]
call fcn.004017c3
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
push edi
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesExW]
test eax, eax
je 0x421254
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_SystemTimeToFileTime]
test eax, eax
je 0x421254
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x48]
push dword [ebp - 0x268]
cmp eax, 0x2ee
jbe 0x42125d
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
or dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x14], edi
lea edi, [ebp - 0x14]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x4365b0
call fcn.00421c23
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x42128e
cmp dword [ebp - 8], 0xffffffff
je 0x421254
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x421254
mov edi, dword [ebp - 0x14]
test edi, edi
jne 0x42129e
push eax
call fcn.00422a18
pop ecx
jmp 0x42127d
call fcn.0042179d
push dword [ebp - 0x10]
mov eax, esi
call fcn.004217c2
push dword [ebp - 0x10]
test al, al
je 0x421296
call fcn.00422a18
pop ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + 0x8c]
add dword [eax], edi
and dword [ebx], 0
mov eax, dword [eax]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 0x88]
push ecx
mov dword [ebx + 8], eax
lea eax, [ebx + 0xc]
push 0x3f
push eax
call fcn.0040ab6f
add esp, 0xc
push dword [esi + 0x868]
push ebx
call fcn.00421750
push 0
push dword [ebp + 0x10]
mov ebx, esi
push dword [ebp + 8]
call fcn.004218a9
cmp dword [ebp - 8], 0xffffffff
mov bl, al
je 0x421311
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, bl
jmp 0x421256
Function at 0x4218a9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
cmp byte [ebp + 0x10], 0
push esi
push edi
je 0x4218fc
mov ecx, dword [ebx + 0x878]
cmp ecx, 0x2b1
jg 0x4218cf
xor al, al
jmp 0x421a27
mov eax, dword [ebx + 0x874]
add ecx, 0xfffffd4f
push ecx
lea ecx, [eax + 0x2b1]
push ecx
push dword [ebx + 0x87c]
push eax
call fcn.00422ee7
add esp, 0x10
add dword [ebx + 0x878], 0xfffffd4f
push dword [ebx + 0x878]
mov ecx, dword [ebx + 0x874]
call fcn.00421a2d
mov byte [ebp - 5], al
test al, al
je 0x421a24
push dword [ebx + 0x874]
mov edi, dword [ebx + 0x878]
mov esi, dword [ebp + 8]
push 5
pop eax
call fcn.0041bcd8
mov byte [ebp - 5], al
test al, al
je 0x421a24
cmp byte [ebp + 0x10], 0
je 0x421a24
lea eax, [ebp - 0x434]
call fcn.0040653c
xor eax, eax
push 0x206
mov word [ebp - 0x21c], ax
xor esi, esi
lea eax, [ebp - 0x21a]
push esi
push eax
call fcn.00424920
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push 0x23
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x42198c
mov al, 1
jmp 0x421a27
lea eax, [ebp - 0x21c]
push eax
push str._sMetaQuotesWebInstall
lea eax, [ebp - 0x434]
call fcn.004017c3
lea eax, [ebp - 0x434]
call fcn.0040e065
push dword [ebp + 0xc]
lea eax, [ebp - 0x21c]
push eax
or edi, 0xffffffff
push str._sMetaQuotesWebInstall_s
lea eax, [ebp - 0x434]
mov dword [ebp - 0x10], 0x4365b0
mov dword [ebp - 0xc], edi
call fcn.004017c3
add esp, 0x14
push 2
push 3
push 0x40000000
push dword [ebp - 0x430]
lea eax, [ebp - 0x10]
call fcn.00401897
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
test al, al
je 0x421a1a
push dword [ebx + 0x878]
lea eax, [ebp - 0x10]
push dword [ebx + 0x874]
call fcn.0040ab0b
cmp dword [ebp - 0xc], edi
je 0x421a24
push dword [ebp - 0xc]
call esi
mov dword [ebp - 0xc], edi
cmp dword [ebp - 0xc], edi
je 0x421a24
push dword [ebp - 0xc]
call esi
mov al, byte [ebp - 5]
pop edi
pop esi
leave
ret 0xc

Function at 0x421b4f
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x421b7e
xor al, al
jmp 0x421bff
mov eax, dword [esi + 0xc]
add eax, eax
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.ProxyServer
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
test eax, eax
je 0x421bb1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x421b77
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004064fd
cmp dword [ebp - 0xc], 1
jne 0x421b77
push 0x439eb8
call fcn.00416380
test eax, eax
jl 0x421bda
lea edx, [eax + 1]
mov eax, esi
call fcn.00416133
push 0x439ebc
call fcn.00416380
test eax, eax
jl 0x421bfd
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x421bfd
cmp eax, dword [esi + 8]
jae 0x421bfd
xor edx, edx
mov dword [esi + 8], eax
mov word [ecx + eax*2], dx
mov al, 1
pop esi
leave
ret
Function at 0x421c23
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
push esi
mov esi, eax
jne 0x421c3b
xor eax, eax
pop esi
leave
ret 4
push 3
push 3
push SysReAllocStringLen
push dword [ebp + 8]
call fcn.00401897
test al, al
je 0x421c34
push esi
call fcn.0040ebd3
mov dword [edi], eax
test eax, eax
jne 0x421c63
call fcn.004019af
jmp 0x421c34
push ebx
add eax, 0x10
push 0x43f708
push eax
call fcn.00422ead
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x421c86
xor ebx, ebx
call fcn.004019af
mov eax, ebx
pop ebx
jmp 0x421c36
mov eax, dword [edi]
test eax, eax
jbe 0x421c7c
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x421c7c
push ebx
call fcn.00422a18
pop ecx
jmp 0x421c7a

Function at 0x421caa
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
push edi
xor edi, edi
xor eax, eax
mov dword [ebp - 8], ebx
cmp ecx, ebx
je 0x421db0
cmp esi, ebx
je 0x421db0
mov byte [esi], bl
cmp dword [ebp + 0xc], ebx
jbe 0x421daa
jmp 0x421cdd
mov ecx, dword [ebp + 8]
cmp eax, 0x3f8
jae 0x421daa
mov dl, byte [edi + ecx]
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x421cfe
mov byte [ebp - 2], 0
mov dword [ebp - 8], 2
jmp 0x421d1a
mov bl, byte [edi + ecx]
inc edi
mov byte [ebp - 2], bl
cmp edi, dword [ebp + 0xc]
jae 0x421d13
mov cl, byte [edi + ecx]
mov byte [ebp - 1], cl
inc edi
jmp 0x421d1e
mov dword [ebp - 8], 1
mov byte [ebp - 1], 0
mov cl, byte [ebp - 2]
mov bl, byte [ebp - 1]
shr bl, 6
and cl, 0xf
shl cl, 2
or cl, bl
movzx ebx, dl
shr ebx, 2
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and dl, 3
mov byte [eax + esi], bl
movzx ebx, byte [ebp - 2]
shl dl, 4
movzx edx, dl
shr ebx, 4
or edx, ebx
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc eax
mov byte [eax + esi], dl
mov edx, dword [ebp - 8]
xor ebx, ebx
inc eax
sub edx, ebx
je 0x421d83
dec edx
je 0x421d75
dec edx
jne 0x421da1
mov byte [eax + esi], 0x3d
inc eax
mov byte [eax + esi], 0x3d
jmp 0x421da0
movzx ecx, cl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi], cl
jmp 0x421d6e
movzx ecx, cl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi], cl
movzx ecx, byte [ebp - 1]
inc eax
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi], cl
inc eax
cmp edi, dword [ebp + 0xc]
jb 0x421cda
mov byte [eax + esi], bl
inc eax
jmp 0x421db2
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x421f69
Capabilities:
Terminate thread

Disassembly:
push edi
push 0
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
cmp dword [esi], 0
je 0x421fa5
push 0x1388
mov eax, esi
call fcn.004165ed
test al, al
jne 0x421fa5
mov eax, dword [esi]
test eax, eax
je 0x421fa5
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
and dword [esi], 0
call fcn.004204ef
pop edi
ret

Function at 0x4224f7
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x43f6ec], 0
push esi
jne 0x42246a
call fcn.00422390
test eax, eax
je 0x4224ad
mov eax, dword [0x43f6ec]
cmp eax, 1
jne 0x42248b
push 0xd
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x4224ad
pop esi
ret
push eax
call dword [0x43f6f4]
test eax, eax
jne 0x4224f5
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4224b1
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x43f6ec]
call dword [0x43f6f4]
mov edi, eax
test edi, edi
je 0x4224d6
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
jmp 0x4224f2
mov edi, esi
add esi, 0xff0
push edi
push dword [0x43f6ec]
call dword [0x43f6f0]
add edi, 0x10
cmp edi, esi
jb 0x4224de
mov eax, edi
pop edi
pop esi
ret
jmp 0x422457

Function at 0x428c04
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43d788]
jne 0x428c0e
repz ret
jmp fcn.0042df2c
Function at 0x42c123
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00424bfe
and dword [ebp - 4], 0
cmp dword [0x43ff24], 0
mov ebx, eax
jne 0x42c1d4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42c285
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42c285
push eax
call fcn.00424b8c
mov dword [esp], 0x431fb4
push edi
mov dword [0x43ff24], eax
call esi
push eax
call fcn.00424b8c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43ff28], eax
call esi
push eax
call fcn.00424b8c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43ff2c], eax
call esi
push eax
call fcn.00424b8c
pop ecx
mov dword [0x43ff34], eax
test eax, eax
je 0x42c1d4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00424b8c
pop ecx
mov dword [0x43ff30], eax
mov eax, dword [0x43ff30]
cmp eax, ebx
je 0x42c22c
cmp dword [0x43ff34], ebx
je 0x42c22c
push eax
call fcn.00424c07
push dword [0x43ff34]
mov esi, eax
call fcn.00424c07
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42c22c
test edi, edi
je 0x42c22c
call esi
test eax, eax
je 0x42c223
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42c223
test byte [ebp - 0xc], 1
jne 0x42c22c
or dword [ebp + 0x10], 0x200000
jmp 0x42c265
mov eax, dword [0x43ff28]
cmp eax, ebx
je 0x42c265
push eax
call fcn.00424c07
pop ecx
test eax, eax
je 0x42c265
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42c265
mov eax, dword [0x43ff2c]
cmp eax, ebx
je 0x42c265
push eax
call fcn.00424c07
pop ecx
test eax, eax
je 0x42c265
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43ff24]
call fcn.00424c07
pop ecx
test eax, eax
je 0x42c285
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42c287
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret