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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
and dword [ebp - 0x120], 0
push esi
push edi
push 0x118
mov esi, eax
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.004243a0
add esp, 0xc
lea eax, [ebp - 0x330]
call fcn.0040f101
push 0x438860
call fcn.0040afd8
mov edi, dword [sym.imp.l_mt5clwtst__GetVersionExW]
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call edi
test eax, eax
jne 0x41df00
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call edi
test eax, eax
jne 0x41df00
xor al, al
jmp 0x41e03b
mov edx, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x11c]
xor edi, edi
cmp ebx, edi
je 0x41df1b
mov eax, ecx
imul eax, eax, 0x64
add eax, edx
mov dword [ebx], eax
mov eax, dword [ebp - 0x110]
dec eax
je 0x41e01d
dec eax
je 0x41df35
push str.Microsoft_Win32s
jmp 0x41e034
cmp ecx, 4
ja 0x41df41
push str.Microsoft_Windows_NT
jmp 0x41df82
mov eax, edx
cmp ecx, 5
jne 0x41df65
sub eax, edi
je 0x41df5e
dec eax
je 0x41df57
push str.Windows_2003
dec eax
jmp 0x41df82
push 0x4388b8
jmp 0x41df82
push str.Windows_2000
jmp 0x41df82
sub eax, edi
je 0x41df7d
dec eax
je 0x41df76
dec eax
jne 0x41df87
push str.Windows_8
jmp 0x41df82
push str.Windows_7
jmp 0x41df82
push str.Windows_Vista
call fcn.0040afd8
cmp byte [ebp - 6], 1
jne 0x41df97
push str._Professional
call fcn.0041629c
cmp byte [ebp - 6], 3
jne 0x41dfa7
push str._Server
call fcn.0041629c
cmp byte [ebp - 6], 2
jne 0x41dfb7
push str._Domain
call fcn.0041629c
movzx eax, word [ebp - 0x114]
push eax
cmp word [ebp - 0x10c], di
jne 0x41dfdc
push str.__Build__d_
lea eax, [ebp - 0x330]
call fcn.004017f8
pop ecx
pop ecx
jmp 0x41dff6
lea eax, [ebp - 0x10c]
push eax
push str.__s__Build__d_
lea eax, [ebp - 0x330]
call fcn.004017f8
add esp, 0xc
lea edi, [ebp - 0x330]
call fcn.0041de46
mov eax, edi
call fcn.0041ddd0
test al, al
je 0x41e039
push str._on
call fcn.0041629c
call fcn.0041de46
jmp 0x41e039
cmp ecx, 4
ja 0x41e02f
jne 0x41e028
cmp edx, edi
ja 0x41e02f
push str.Microsoft_Windows_95
jmp 0x41e034
push str.Microsoft_Windows_98
call fcn.0041629c
mov al, 1
pop edi
pop esi
leave
ret
Function at 0x41e54c
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push ebx
push esi
push edi
lea eax, [ebp - 0x228]
call fcn.0040648e
xor eax, eax
mov byte [ebp - 1], 0
cmp dword [ebp + 0xc], eax
je 0x41e5ad
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x240], eax
je 0x41e5ad
push eax
push 2
call sub.l_mt5clwtst__CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, 0xffffffff
je 0x41e5ad
lea eax, [ebp - 0x458]
push eax
push esi
mov dword [ebp - 0x458], 0x22c
call sub.l_mt5clwtst__Process32FirstW
test eax, eax
jne 0x41e5b6
push esi
call dword [sym.imp.l_mt5clwtst__CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
mov ebx, dword [sym.imp.l_mt5clwtst__CloseHandle]
push dword [ebp - 0x450]
push 0
push 0x1f0fff
call dword [sym.imp.l_mt5clwtst__OpenProcess]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x41e616
push dword [ebp - 0x21c]
push dword [ebp - 0x224]
push eax
mov eax, dword [ebp + 8]
call dword [eax + 0x240]
test eax, eax
je 0x41e60b
lea esi, [ebp - 0x228]
call fcn.00406474
push dword [ebp + 0xc]
mov edi, esi
call fcn.0041ee8d
test eax, eax
setge byte [ebp - 1]
push dword [ebp - 0xc]
call ebx
cmp byte [ebp - 1], 0
jne 0x41e629
lea eax, [ebp - 0x458]
push eax
push dword [ebp - 8]
call sub.l_mt5clwtst__Process32NextW
test eax, eax
jne 0x41e5bc
push dword [ebp - 8]
call ebx
mov al, byte [ebp - 1]
jmp 0x41e5af
Function at 0x41e636
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.0040648e
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 0x41e672
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
push 4
push ebx
push ebx
call dword [0x430068]
mov edi, eax
mov dword [ebp - 0x10], edi
cmp edi, ebx
je 0x41e669
mov esi, dword [0x43006c]
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 0x41e6ba
call dword [sym.imp.l_mt5clwtst__GetLastError]
cmp eax, 0xea
je 0x41e6ba
push edi
call dword [0x430070]
jmp 0x41e669
mov eax, dword [ebp - 8]
push 0x4406a8
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.00422c07
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x41e6eb
push dword [ebp - 0x10]
jmp 0x41e6b2
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.004243a0
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 0x41e738
push dword [ebp - 0x10]
call dword [0x430070]
push edi
call fcn.00422772
pop ecx
mov al, bl
jmp 0x41e66b
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0xc], ebx
jbe 0x41e796
mov esi, edi
mov eax, dword [esi]
cmp eax, ebx
je 0x41e788
push eax
lea eax, [ebp - 0x234]
call fcn.0041e79a
test al, al
je 0x41e788
mov eax, dword [ebp + 8]
call fcn.0040831a
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x234]
call fcn.0041cd37
test eax, eax
jne 0x41e788
cmp dword [esi + 0xc], 1
push dword [esi]
jne 0x41e780
push dword [ebp + 0x10]
jmp 0x41e783
push dword [ebp + 0xc]
call fcn.0041ed69
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add esi, 0x24
cmp eax, dword [ebp - 0xc]
jb 0x41e742
mov bl, 1
jmp 0x41e721
Function at 0x41e91f
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 0x41e938
xor al, al
pop ebx
add esp, 0x24
ret 4
push 0xf003f
push ebx
push ebx
call dword [0x430068]
mov dword [esp + 8], eax
cmp eax, ebx
je 0x41e92f
push edi
push 0xf01ff
push dword [esp + 0x34]
push eax
call dword [0x430074]
mov edi, eax
cmp edi, ebx
jne 0x41e973
push dword [esp + 0xc]
call dword [0x430070]
mov al, bl
pop edi
jmp 0x41e931
push ebp
mov ebp, dword [sym.imp.l_mt5clwtst__Sleep]
push esi
xor esi, esi
mov ebx, 0x3e8
lea eax, [esp + 0x18]
push eax
push edi
call dword [0x43007c]
test eax, eax
je 0x41e9e7
mov eax, dword [esp + 0x1c]
cmp eax, 1
je 0x41e9e2
cmp eax, 4
je 0x41e9b0
cmp eax, 7
je 0x41e9b0
push ebx
call ebp
inc esi
cmp esi, 0x3c
jb 0x41e982
jmp 0x41e9e7
lea eax, [esp + 0x18]
push eax
push 1
push edi
call dword [0x430080]
jmp 0x41e9db
lea eax, [esp + 0x18]
push eax
push edi
call dword [0x43007c]
test eax, eax
je 0x41e9e7
cmp dword [esp + 0x1c], 1
je 0x41e9e2
push ebx
call ebp
inc esi
cmp esi, 0x3c
jb 0x41e9c0
jmp 0x41e9e7
mov byte [esp + 0x13], 1
push edi
call dword [0x430070]
mov bl, byte [esp + 0x13]
pop esi
pop ebp
jmp 0x41e964
Function at 0x41ea19
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 0x41ea55
xor al, al
jmp 0x41eb86
push esi
push 0xf003f
push ebx
push ebx
call dword [0x430068]
mov esi, eax
mov dword [ebp - 0x10], esi
cmp esi, ebx
je 0x41eaac
push 0xf01ff
push dword [ebp + 8]
push esi
call dword [0x430074]
mov edi, eax
cmp edi, ebx
jne 0x41ea8a
push esi
call dword [0x430070]
jmp 0x41eaac
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x50]
push eax
push ebx
push edi
call dword [0x430084]
test eax, eax
jne 0x41eab3
push edi
mov edi, dword [0x430070]
call edi
push esi
call edi
xor al, al
jmp 0x41eb85
mov esi, dword [0x430088]
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 0x41eb0b
call dword [sym.imp.l_mt5clwtst__GetLastError]
cmp eax, 0x7a
jne 0x41eb0b
push 0x4406a8
push dword [ebp - 8]
call fcn.00422c07
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x41eb0b
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push 2
push edi
call esi
test eax, eax
jne 0x41eb0b
push dword [ebp - 4]
call fcn.00422772
pop ecx
mov dword [ebp - 4], ebx
mov esi, dword [0x43008c]
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.l_mt5clwtst__OpenProcess]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x41eb59
push ebx
push eax
call dword [sym.imp.l_mt5clwtst__TerminateProcess]
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call dword [sym.imp.l_mt5clwtst__CloseHandle]
push 0x1f4
call dword [sym.imp.l_mt5clwtst__Sleep]
cmp dword [ebp - 4], ebx
je 0x41eb6f
push dword [ebp - 4]
push 2
push edi
call esi
push dword [ebp - 4]
call fcn.00422772
pop ecx
mov esi, dword [0x430070]
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 0x41ebfc
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 0x41ec12
xor al, al
jmp 0x41ec7e
push edi
push 0xf003f
push 0
push 0
call dword [0x430068]
mov edi, eax
test edi, edi
jne 0x41ec2c
xor al, al
jmp 0x41ec7d
push esi
push 0xf01ff
push dword [ebp + 8]
push edi
call dword [0x430074]
mov esi, eax
test esi, esi
jne 0x41ec4b
push edi
call dword [0x430070]
jmp 0x41ec66
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [0x43007c]
push esi
mov esi, dword [0x430070]
test eax, eax
jne 0x41ec6a
call esi
push edi
call esi
xor al, al
jmp 0x41ec7c
call esi
push edi
call esi
xor eax, eax
inc eax
cmp dword [ebp - 0x18], eax
jne 0x41ec7c
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
pop esi
pop edi
leave
ret 8

Function at 0x41eeea
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 4]
and dword [ebp - 4], 0
test eax, eax
je 0x41ef1e
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.l_mt5clwtst__GetExitCodeThread]
cmp dword [ebp - 4], 0x103
jne 0x41ef11
xor al, al
jmp 0x41ef44
push dword [esi + 4]
call dword [sym.imp.l_mt5clwtst__CloseHandle]
and dword [esi + 4], 0
lea eax, [ebp - 4]
push eax
push 0x10000
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x40000
push 0
call fcn.00424057
add esp, 0x18
test eax, eax
mov dword [esi + 4], eax
setne al
leave
ret 8

Function at 0x41f213
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
push edi
mov edi, dword [0x4303ec]
push 0x7f
lea eax, [esi + 0x20]
push eax
push dword [esi + 0x324]
call edi
push 0x3f
lea ebx, [esi + 0x220]
push ebx
push dword [esi + 0x56c]
call edi
push 0x3f
lea ebp, [esi + 0x2a0]
push ebp
push dword [esi + 0x590]
call edi
cmp word [ebx], 0
je 0x41f26e
push ebp
push ebx
push 0x438ca4
lea edi, [esi + 0x120]
mov ecx, 0x80
call fcn.0040ccfb
add esp, 0xc
jmp 0x41f277
xor eax, eax
mov word [esi + 0x120], ax
cmp word [esi + 0x20], 0
pop edi
pop ebp
pop ebx
jne 0x41f298
push dword [esi + 0x324]
call dword [0x430438]
push 0xffffffffffffffff
call dword [0x430454]
xor al, al
ret
mov al, 1
ret

Function at 0x41f3fc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x41f403
xor eax, eax
ret
jmp fcn.0041f408
Function at 0x420891
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
push ebx
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x440], ax
xor ebx, ebx
lea eax, [ebp - 0x43e]
push ebx
push eax
call fcn.004243a0
add esp, 0xc
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x4208da
push eax
call fcn.00422772
pop ecx
mov dword [esi + 0x20], ebx
lea eax, [ebp - 0x440]
push eax
push ebx
push ebx
push 0x23
push ebx
call dword [0x430370]
test eax, eax
jl 0x42099c
push esi
lea eax, [ebp - 0x440]
push eax
push 0x438cd0
mov ecx, 0x104
lea edi, [ebp - 0x238]
call fcn.0040ccfb
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push ebx
mov eax, edi
push eax
call dword [sym.imp.l_mt5clwtst__GetFileAttributesExW]
test eax, eax
je 0x42099c
mov eax, dword [esi + 0x24]
sub eax, 0x2b1
cmp dword [ebp - 0x10], eax
mov eax, edi
push eax
je 0x42093e
call dword [sym.imp.l_mt5clwtst__DeleteFileW]
jmp 0x42099c
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0xc]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x435590
mov dword [ebp - 0xc], ebx
call fcn.00420bcd
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x20], eax
cmp ecx, dword [ebp - 0x10]
jne 0x420980
cmp eax, ebx
je 0x420980
add dword [esi + 0x24], 0xfffffd4f
cmp dword [ebp - 4], 0xffffffff
je 0x42097c
push dword [ebp - 4]
call dword [sym.imp.l_mt5clwtst__CloseHandle]
mov al, 1
jmp 0x42099e
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.l_mt5clwtst__DeleteFileW]
cmp dword [ebp - 4], 0xffffffff
je 0x42099c
push dword [ebp - 4]
call dword [sym.imp.l_mt5clwtst__CloseHandle]
xor al, al
pop edi
pop ebx
leave
ret

Function at 0x4209a2
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
xor edi, edi
lea eax, [ebp - 0x20e]
push edi
push eax
call fcn.004243a0
add esp, 0xc
cmp dword [esi + 0x20], edi
je 0x420a84
cmp dword [esi + 0x24], 0x400
jb 0x420a84
lea eax, [ebp - 0x210]
push eax
push edi
push edi
push 0x23
push edi
call dword [0x430370]
test eax, eax
jl 0x420a84
push esi
lea eax, [ebp - 0x210]
push eax
or ebx, 0xffffffff
push 0x438cd0
mov ecx, 0x104
lea edi, [ebp - 0x418]
mov dword [ebp - 8], 0x435590
mov dword [ebp - 4], ebx
call fcn.0040ccfb
add esp, 0xc
push 2
push 3
push 0x40000000
mov eax, edi
push eax
lea eax, [ebp - 8]
call fcn.004018e1
mov edi, dword [sym.imp.l_mt5clwtst__CloseHandle]
test al, al
je 0x420a98
push dword [esi + 0x24]
lea eax, [ebp - 8]
push dword [esi + 0x20]
call fcn.0040ab04
cmp eax, dword [esi + 0x24]
je 0x420a8b
mov edi, dword [ebp - 4]
mov esi, dword [sym.imp.l_mt5clwtst__CloseHandle]
cmp edi, ebx
je 0x420a70
push edi
call esi
mov edi, ebx
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.l_mt5clwtst__DeleteFileW]
cmp edi, ebx
je 0x420a84
push edi
call esi
xor al, al
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x420aa2
push dword [ebp - 4]
call edi
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x420aa2
push dword [ebp - 4]
call edi
mov al, 1
jmp 0x420a86
Function at 0x420bcd
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 0x420be5
xor eax, eax
pop esi
leave
ret 4
push 3
push 3
push 0x80000000
push dword [ebp + 8]
call fcn.004018e1
test al, al
je 0x420bde
push esi
call fcn.0040f128
mov dword [edi], eax
test eax, eax
jne 0x420c0d
call fcn.004019f9
jmp 0x420bde
push ebx
add eax, 0x10
push 0x4406a8
push eax
call fcn.00422c07
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x420c30
xor ebx, ebx
call fcn.004019f9
mov eax, ebx
pop ebx
jmp 0x420be0
mov eax, dword [edi]
test eax, eax
jbe 0x420c26
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.l_mt5clwtst__ReadFile]
test eax, eax
jne 0x420c26
push ebx
call fcn.00422772
pop ecx
jmp 0x420c24

Function at 0x4211e6
Capabilities:
Terminate thread

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, esi
call fcn.00421236
mov eax, dword [esi + 4]
test eax, eax
je 0x421229
push 0x7d0
push eax
call dword [sym.imp.l_mt5clwtst__WaitForSingleObject]
neg eax
sbb al, al
inc al
jne 0x421229
mov eax, dword [esi + 4]
test eax, eax
je 0x421229
push 0
push eax
call dword [sym.imp.l_mt5clwtst__TerminateThread]
push dword [esi + 4]
call dword [sym.imp.l_mt5clwtst__CloseHandle]
and dword [esi + 4], 0
mov esi, dword [esi + 0xa40]
test esi, esi
jne 0x4211ea
pop esi
pop ecx
ret
Function at 0x421a75
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 0x421b7b
cmp esi, ebx
je 0x421b7b
mov byte [esi], bl
cmp dword [ebp + 0xc], ebx
jbe 0x421b75
jmp 0x421aa8
mov ecx, dword [ebp + 8]
cmp eax, 0x200
jae 0x421b75
mov dl, byte [edi + ecx]
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x421ac9
mov byte [ebp - 2], 0
mov dword [ebp - 8], 2
jmp 0x421ae5
mov bl, byte [edi + ecx]
inc edi
mov byte [ebp - 2], bl
cmp edi, dword [ebp + 0xc]
jae 0x421ade
mov cl, byte [edi + ecx]
mov byte [ebp - 1], cl
inc edi
jmp 0x421ae9
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 0x421b4e
dec edx
je 0x421b40
dec edx
jne 0x421b6c
mov byte [eax + esi], 0x3d
inc eax
mov byte [eax + esi], 0x3d
jmp 0x421b6b
movzx ecx, cl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi], cl
jmp 0x421b39
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 0x421aa5
mov byte [eax + esi], bl
inc eax
jmp 0x421b7d
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x421c30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
xor eax, eax
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
xor esi, esi
push 0x40
lea ebx, [ebp - 0x58]
mov dword [ebp - 4], esi
call fcn.0040188b
cmp eax, 0x40
jne 0x421d91
mov eax, 0x5a4d
cmp word [ebp - 0x58], ax
jne 0x421d91
mov eax, dword [ebp - 0x1c]
cdq
push esi
push edx
push eax
mov eax, edi
call fcn.0040183d
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov ebx, edx
cdq
cmp ecx, eax
jne 0x421d91
cmp ebx, edx
jne 0x421d91
push 4
lea ebx, [ebp - 4]
call fcn.0040188b
cmp eax, 4
jne 0x421d91
cmp dword [ebp - 4], 0x4550
jne 0x421d91
push 0x14
lea ebx, [ebp - 0x18]
call fcn.0040188b
cmp eax, 0x14
jne 0x421d91
mov ebx, 0x14c
mov eax, ebx
cmp word [ebp - 0x18], ax
je 0x421cea
mov eax, 0x8664
cmp word [ebp - 0x18], ax
jne 0x421d91
xor eax, eax
push 0xde
mov word [ebp - 0x138], ax
lea eax, [ebp - 0x136]
push esi
push eax
call fcn.004243a0
add esp, 0xc
xor eax, eax
push 0xee
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x226]
push esi
push eax
call fcn.004243a0
add esp, 0xc
push 1
push esi
mov eax, edi
push esi
cmp word [ebp - 0x18], bx
jne 0x421d5f
call fcn.0040183d
mov esi, pe_nt_image_headers32
push esi
lea ebx, [ebp - 0x138]
call fcn.0040188b
cmp eax, esi
jne 0x421d91
mov ecx, dword [ebp - 0xb8]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xb4]
jmp 0x421d8a
call fcn.0040183d
mov esi, 0xf0
push esi
lea ebx, [ebp - 0x228]
call fcn.0040188b
cmp eax, esi
jne 0x421d91
mov ecx, dword [ebp - 0x198]
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x194]
mov dword [eax + 4], ecx
mov al, 1
jmp 0x421d93
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8

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

Disassembly:
cmp dword [0x44068c], 0
push esi
jne 0x4221c4
call fcn.004220ea
test eax, eax
je 0x422207
mov eax, dword [0x44068c]
cmp eax, 1
jne 0x4221e5
push 0xd
push 0
call dword [sym.imp.l_mt5clwtst__GetProcessHeap]
push eax
call dword [sym.imp.l_mt5clwtst__HeapAlloc]
test eax, eax
je 0x422207
pop esi
ret
push eax
call dword [0x440694]
test eax, eax
jne 0x42224f
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.l_mt5clwtst__VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x42220b
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x44068c]
call dword [0x440694]
mov edi, eax
test edi, edi
je 0x422230
push 0x8000
push 0
push esi
call dword [sym.imp.l_mt5clwtst__VirtualFree]
jmp 0x42224c
mov edi, esi
add esi, 0xff0
push edi
push dword [0x44068c]
call dword [0x440690]
add edi, 0x10
cmp edi, esi
jb 0x422238
mov eax, edi
pop edi
pop esi
ret
jmp 0x4221b1

Function at 0x428680
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c788]
jne 0x42868a
repz ret
jmp fcn.0042dd2c
Function at 0x42be33
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.0042467e
and dword [ebp - 4], 0
cmp dword [0x440ec4], 0
mov ebx, eax
jne 0x42bee4
push str.USER32.DLL
call dword [sym.imp.l_mt5clwtst__LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42bf95
mov esi, dword [sym.imp.l_mt5clwtst__GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42bf95
push eax
call fcn.0042460c
mov dword [esp], 0x430f98
push edi
mov dword [0x440ec4], eax
call esi
push eax
call fcn.0042460c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x440ec8], eax
call esi
push eax
call fcn.0042460c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x440ecc], eax
call esi
push eax
call fcn.0042460c
pop ecx
mov dword [0x440ed4], eax
test eax, eax
je 0x42bee4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042460c
pop ecx
mov dword [0x440ed0], eax
mov eax, dword [0x440ed0]
cmp eax, ebx
je 0x42bf3c
cmp dword [0x440ed4], ebx
je 0x42bf3c
push eax
call fcn.00424687
push dword [0x440ed4]
mov esi, eax
call fcn.00424687
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42bf3c
test edi, edi
je 0x42bf3c
call esi
test eax, eax
je 0x42bf33
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42bf33
test byte [ebp - 0xc], 1
jne 0x42bf3c
or dword [ebp + 0x10], 0x200000
jmp 0x42bf75
mov eax, dword [0x440ec8]
cmp eax, ebx
je 0x42bf75
push eax
call fcn.00424687
pop ecx
test eax, eax
je 0x42bf75
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42bf75
mov eax, dword [0x440ecc]
cmp eax, ebx
je 0x42bf75
push eax
call fcn.00424687
pop ecx
test eax, eax
je 0x42bf75
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x440ec4]
call fcn.00424687
pop ecx
test eax, eax
je 0x42bf95
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42bf97
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret