joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406ba0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov esi, eax
test edi, edi
je 0x406d4a
test esi, esi
je 0x406d4a
cmp dword [ebp + 0xc], 0
je 0x406d4a
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.00406b30
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], eax
jl 0x406d4a
mov eax, 0x55555556
imul ebx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea edx, [ecx*4]
mov eax, 0x6bca1af3
imul edx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov eax, 0x13
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
js 0x406cc6
cmp dword [ebp - 8], ebx
jne 0x406c40
mov edx, ebx
imul edx, edx, 0x4c
lea eax, [ecx*4]
sub eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0xc], eax
test eax, eax
jle 0x406cae
mov edx, eax
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
shl ecx, 8
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Global_]
mov byte [esi], al
shl ecx, 6
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Global_]
shl ecx, 6
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Global_]
shr ecx, 0x14
and ecx, 0x3f
mov byte [esi + 2], al
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Global_]
mov byte [esi + 3], cl
add edi, 3
add esi, 4
dec edx
jne 0x406c46
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
lea edx, [edx + eax*4]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 8]
inc edx
mov dword [ebp - 8], edx
cmp edx, ebx
jle 0x406c21
lea eax, [ecx + ecx*2]
mov ecx, dword [ebp + 8]
sub ecx, eax
je 0x406d36
lea edx, [ecx + 1]
test edx, edx
je 0x406d36
xor eax, eax
test ecx, ecx
jle 0x406ce1
movzx eax, byte [edi]
inc edi
shl eax, 8
cmp ecx, 1
jle 0x406cef
movzx ebx, byte [edi]
or eax, ebx
inc edi
shl eax, 8
cmp ecx, 2
jle 0x406cfc
movzx ecx, byte [edi]
or eax, ecx
shl eax, 8
test edx, edx
jle 0x406d19
mov ecx, edx
mov edi, eax
shr edi, 0x1a
mov bl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Global_]
mov byte [esi], bl
inc esi
shl eax, 6
dec ecx
jne 0x406d05
add dword [ebp - 4], edx
mov edi, 4
sub edi, edx
test edi, edi
jle 0x406d33
push edi
push 0x3d
push esi
call fcn.00454990
add esp, 0xc
add dword [ebp - 4], edi
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406d60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x47201c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.00454990
add esp, 0xc
test edi, edi
jne 0x406da5
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ef0f
mov esp, ebp
pop ebp
ret
push esi
lea esi, [ebp - 0x414]
call fcn.00406290
test eax, eax
jne 0x406dc4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ef0f
mov esp, ebp
pop ebp
ret
push str._ssgamerun.exe
lea edx, [ebp - 0x414]
push 0x104
push edx
call fcn.0044fa12
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0xc
push 0
push 0
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x414]
push ecx
push 0
push 0
call esi
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x822]
push eax
mov word [ebp - 0x824], dx
call fcn.00454990
push 0x103
lea ecx, [ebp - 0x107]
push 0
push ecx
mov byte [ebp - 0x108], 0
call fcn.00454990
push 0x207
lea edx, [ebp - 0x61b]
push 0
push edx
mov byte [ebp - 0x61c], 0
call fcn.00454990
push edi
lea eax, [ebp - 0x824]
push str.N_sM0R
push eax
mov dword [ebp - 0x828], 0x208
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x30
push 0
push 0
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x824]
push edx
push 0
push 0
call esi
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406ea0
lea ecx, [ebp - 0x828]
sub eax, edx
push ecx
push eax
lea eax, [ebp - 0x61c]
lea ecx, [ebp - 0x108]
call fcn.00406ba0
lea edx, [ebp - 0x20c]
push edx
push str.FlashRunGame
push 0x4637f4
call fcn.004026c0
lea eax, [ebp - 0x108]
push eax
push str.FlashRunGame
push 0x4637f4
call fcn.004026c0
lea ecx, [ebp - 0x61c]
push ecx
push str.FlashRunGame
push 0x4637f4
call fcn.004026c0
add esp, 0x2c
push 5
push 0
lea edx, [ebp - 0x61c]
push edx
lea eax, [ebp - 0x20c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0044ef0f
mov esp, ebp
pop ebp
ret
Function at 0x408990
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push esi
mov esi, ecx
mov ecx, str.click
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4089c7
test dx, dx
je 0x4089c3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4089c7
add eax, 4
add ecx, 4
test dx, dx
jne 0x4089a1
xor eax, eax
jmp 0x4089cc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408b27
mov eax, dword [esi + 0x398]
push edi
xor edi, edi
test eax, eax
je 0x408a74
mov edx, dword [ebx + 0x84]
lea ecx, [esi + 0x370]
cmp edx, dword [ecx]
je 0x4089ff
inc edi
add ecx, 4
cmp edi, eax
jb 0x4089f1
jmp 0x408a74
mov eax, dword [esi + 0x390]
imul edi, edi, 0xa0c
add eax, edi
lea ecx, [eax + 0x508]
push ecx
add eax, 0x108
push eax
push str.ShellExecuteA_:__s____s
call fcn.004026c0
mov ecx, dword [esi + 0x390]
add ecx, edi
movsx eax, byte [ecx + 0x508]
lea edx, [ecx + 0x508]
add esp, 0xc
push 5
neg eax
sbb eax, eax
push 0
and eax, edx
push eax
add ecx, 0x108
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [esi + 0x39c]
mov ecx, dword [esi + 0x390]
push eax
lea ecx, [ecx + edi + 4]
call fcn.00406840
add esp, 4
xor ebx, ebx
cmp dword [esi + 0x394], ebx
jbe 0x408b26
xor edi, edi
jmp 0x408a90
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x388]
mov ecx, dword [eax + 0x84]
cmp ecx, dword [edx + ebx*4]
jne 0x408b13
mov eax, dword [esi + 0x390]
add eax, edi
lea ecx, [eax + 0x508]
push ecx
add eax, 0x108
push eax
push str.ShellExecuteA_:__s____s
call fcn.004026c0
mov ecx, dword [esi + 0x38c]
add ecx, edi
movsx eax, byte [ecx + 0x508]
lea edx, [ecx + 0x508]
add esp, 0xc
push 5
neg eax
sbb eax, eax
push 0
and eax, edx
push eax
add ecx, 0x108
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [esi + 0x39c]
mov ecx, dword [esi + 0x38c]
push eax
lea ecx, [ecx + edi + 4]
call fcn.00406750
add esp, 4
inc ebx
add edi, 0xa0c
cmp ebx, dword [esi + 0x394]
jb 0x408a90
pop edi
mov edx, dword [ebp + 8]
push edx
mov ecx, esi
call fcn.0041f930
pop esi
pop ebx
pop ebp
ret 4
Function at 0x408fc0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x47201c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
push fcn.00408fc0
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov edx, dword [ebp - 0x210]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409010
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x20e], 0x5c
lea eax, [ebp + eax*2 - 0x20e]
je 0x409061
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409040
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x20e], 0x5c
lea eax, [ebp + eax*2 - 0x20e]
jne 0x409031
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409070
sub eax, edx
sar eax, 1
xor edx, edx
mov word [ebp + eax*2 - 0x20e], dx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ef0f
mov esp, ebp
pop ebp
ret

Function at 0x4091e0
Capabilities:
Download url
Receive data

Disassembly:
push esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0x464088
push edi
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov esi, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp esi, 0x80004004
je 0x409228
test esi, esi
je 0x409228
push edi
push str.IsUrlExist
push str.__s_Failed_:__s
xor esi, esi
call fcn.004026c0
add esp, 0xc
mov eax, esi
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x40a570
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp edi, ebx
jne 0x40a582
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi], 3
jne 0x40a57b
push esi
mov dword [ebp - 4], ebx
cmp dword [edi + 0xdac], ebx
jbe 0x40a5d7
mov eax, dword [edi + 0xdb4]
test eax, eax
je 0x40a5e2
lea esi, [ebx + eax + 0x908]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40a5c2
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 4]
inc eax
add ebx, 0xa0c
mov dword [ebp - 4], eax
cmp eax, dword [edi + 0xdac]
jb 0x40a593
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a8e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
test esi, esi
je 0x40a96d
lea ebx, [ebx]
mov ecx, ebx
sub ecx, dword [ebp - 4]
cmp ecx, esi
jae 0x40a96d
mov eax, dword [ebp + 0x10]
sub eax, edi
imul eax, ecx
cdq
xor eax, edx
sub eax, edx
xor edx, edx
div esi
mov ebx, eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0xc]
imul eax, ecx
cdq
xor eax, edx
sub eax, edx
xor edx, edx
div esi
cmp dword [ebp + 0x10], edi
jg 0x40a935
neg ebx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x14], ecx
jg 0x40a93f
neg eax
push 0x45
push 0
push 0
add eax, ecx
push eax
mov eax, dword [ebp + 8]
add ebx, edi
push ebx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
test eax, eax
je 0x40a96d
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
jmp 0x40a900
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push 0x45
push 0
push 0
push ecx
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40aec0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46052b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push edi
mov eax, dword [0x47201c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test esi, esi
je 0x40b0ab
cmp dword [esi], 2
jne 0x40b0ab
mov eax, dword [esi + 0xdac]
cmp eax, 2
jae 0x40b0ab
mov edi, dword [eax*4 + 0x473a60]
call fcn.0040a810
push 0x380
call fcn.0044f7ad
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x40af47
mov ecx, dword [esi + 0xda0]
neg ecx
sbb ecx, ecx
and ecx, 8
push ecx
push edi
push eax
call fcn.0040c380
mov edi, eax
jmp 0x40af49
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 0xd94]
mov edx, dword [esi + 0xd9c]
mov ecx, dword [esi + 0xd90]
push 1
sub edx, eax
push edx
mov edx, dword [esi + 0xd98]
sub edx, ecx
push edx
push eax
mov eax, dword [edi + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
cmp dword [esi + 0xdac], 1
jne 0x40af8a
call fcn.0040c470
lea ebx, [esi + 0x990]
push ebx
mov ecx, edi
call fcn.0040c220
push ebx
push str.PopNoFrameHtml
push 0x4637f4
call fcn.004026c0
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
add esp, 0xc
push 0
call ebx
push 1
mov dword [ebp - 0x10], eax
call ebx
push 0x18
mov ebx, eax
call fcn.0044f7ad
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov ecx, dword [edi + 4]
mov dword [eax], ecx
mov edx, dword [esi + 0xda8]
mov dword [eax + 0x14], edx
mov ecx, dword [esi + 0xd90]
mov dword [eax + 4], ecx
mov edx, dword [esi + 0xd94]
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 0xd90]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0xd94]
mov dword [eax + 0x10], edx
mov ecx, dword [esi + 0xda4]
dec ecx
add esp, 4
cmp ecx, 7
ja case.0x40b019.3
jmp dword [ecx*4 + 0x40b0c0]
mov ecx, dword [esi + 0xd90]
sub ecx, dword [esi + 0xd98]
mov dword [eax + 4], ecx
jmp case.0x40b019.3
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
jmp case.0x40b019.3
mov ecx, dword [esi + 0xd94]
sub ecx, dword [esi + 0xd9c]
mov dword [eax + 0xc], ecx
jmp case.0x40b019.3
mov dword [eax + 0xc], ebx
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
jne 0x40b05d
mov ecx, dword [eax + 0xc]
cmp ecx, dword [eax + 0x10]
je 0x40b078
push 0
push 0
push eax
push 0x40a990
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0041e6b0
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push 1
mov ecx, edi
call eax
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b220
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x47201c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
test esi, esi
je case.default.0x40b24d
mov eax, dword [esi]
lea ecx, [eax - 1]
cmp ecx, 4
ja case.default.0x40b24d
jmp dword [ecx*4 + 0x40b3c0]
push eax
mov eax, dword [esi + 0x98c]
push eax
lea ecx, [esi + 0x84]
lea edi, [esi + 4]
call fcn.004063a0
add esp, 8
mov ecx, esi
call fcn.00406490
mov ecx, esi
call fcn.0040ab50
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ef0f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x98c]
push eax
push ecx
lea ecx, [esi + 0x84]
lea edi, [esi + 4]
call fcn.004063a0
add esp, 8
call fcn.0040aec0
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ef0f
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x98c]
push eax
push edx
lea ecx, [esi + 0x84]
lea edi, [esi + 4]
call fcn.004063a0
add esp, 8
call fcn.0040b0e0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ef0f
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x990]
push eax
push 0x464578
lea ecx, [ebp - 0x808]
push 0x800
push ecx
call fcn.0044f82d
mov edx, dword [esi]
mov eax, dword [esi + 0x98c]
push edx
push eax
lea ecx, [esi + 0x84]
lea edi, [esi + 4]
call fcn.004063a0
mov ecx, esi
call fcn.004065f0
push 8
lea ecx, [ebp - 0x808]
push str.gamerun:
push ecx
call fcn.00458abe
add esp, 0x24
push 5
push 0
test eax, eax
jne 0x40b350
push eax
lea edx, [ebp - 0x808]
push edx
jmp 0x40b35c
lea eax, [ebp - 0x808]
push eax
push str.iexplore.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ef0f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x98c]
push eax
push ecx
lea ecx, [esi + 0x84]
lea edi, [esi + 4]
call fcn.004063a0
add esp, 8
push 5
push 0
lea edx, [esi + 0xa94]
push edx
add esi, 0x990
push esi
jmp 0x40b35c
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0044ef0f
mov esp, ebp
pop ebp
ret
Function at 0x40c5d0
Capabilities:
Create thread
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x528
mov eax, dword [0x47201c]
xor eax, esp
mov dword [esp + 0x524], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x103
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.00454990
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x122]
push edx
mov dword [esp + 0x18], 0
mov word [esp + 0x124], cx
call fcn.00454990
add esp, 0xc
call fcn.00408fc0
lea eax, [esp + 0xc]
push eax
push fcn.0040c5d0
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov edx, dword [esp + 0xc]
push 0x104
lea ecx, [esp + 0x11c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x118]
push eax
call fcn.00402730
add esp, 4
push 0
call fcn.0044ffb6
add esp, 4
push eax
call fcn.00450007
add esp, 4
push 0x40c5a0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push esi
lea ecx, [esp + 0x324]
call fcn.004090b0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 4
test eax, eax
je 0x40c756
lea ecx, [esp + 0x320]
push ecx
call fcn.00402730
add esp, 4
push 0
push 0
push 0x104
lea edx, [esp + 0x1c]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x334]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, 0x4796b8
lea ecx, [esp + 0x10]
call fcn.00409230
test eax, eax
je 0x40c756
push str._IniParser_Success
call fcn.00402730
add esp, 4
push 0x479f3c
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push eax
push 0x40c530
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
push ecx
call esi
test eax, eax
jne 0x40c74c
push 0x80
lea edx, [esp + 0x14]
push edx
call edi
lea eax, [esp + 0x10]
push eax
call esi
mov ecx, 0x4796b8
call fcn.0040b220
lea ecx, [esp + 0x10]
push ecx
call esi
test eax, eax
jne 0x40c774
push 0x80
lea edx, [esp + 0x14]
push edx
call edi
lea eax, [esp + 0x10]
push eax
call esi
mov edi, 0x4796b8
call fcn.0040a570
call fcn.0040a5f0
push str.RunAD
push str._s_:_Quit_
call fcn.004026c0
mov ecx, dword [esp + 0x534]
add esp, 8
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0044ef0f
mov esp, ebp
pop ebp
ret 4

Function at 0x40c7b0
Capabilities:
Accept command line arguments
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push str.Start_WinMain
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea eax, [ebp - 4]
push eax
call esi
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
call esi
push eax
push str.Run_AD_Preveal_:_PathCommand__s
call fcn.00402730
add esp, 8
push str.GGTC
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebp - 4], 2
je 0x40c80e
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [edi + 4]
push ecx
call fcn.0040c5d0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40c8c0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov esi, eax
test edi, edi
je 0x40ca6a
test esi, esi
je 0x40ca6a
cmp dword [ebp + 0xc], 0
je 0x40ca6a
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.0040c840
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], eax
jl 0x40ca6a
mov eax, 0x55555556
imul ebx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea edx, [ecx*4]
mov eax, 0x6bca1af3
imul edx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov eax, 0x13
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
js 0x40c9e6
cmp dword [ebp - 8], ebx
jne 0x40c960
mov edx, ebx
imul edx, edx, 0x4c
lea eax, [ecx*4]
sub eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0xc], eax
test eax, eax
jle 0x40c9ce
mov edx, eax
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
shl ecx, 8
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Global_]
mov byte [esi], al
shl ecx, 6
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Global_]
shl ecx, 6
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Global_]
shr ecx, 0x14
and ecx, 0x3f
mov byte [esi + 2], al
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Global_]
mov byte [esi + 3], cl
add edi, 3
add esi, 4
dec edx
jne 0x40c966
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
lea edx, [edx + eax*4]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 8]
inc edx
mov dword [ebp - 8], edx
cmp edx, ebx
jle 0x40c941
lea eax, [ecx + ecx*2]
mov ecx, dword [ebp + 8]
sub ecx, eax
je 0x40ca56
lea edx, [ecx + 1]
test edx, edx
je 0x40ca56
xor eax, eax
test ecx, ecx
jle 0x40ca01
movzx eax, byte [edi]
inc edi
shl eax, 8
cmp ecx, 1
jle 0x40ca0f
movzx ebx, byte [edi]
or eax, ebx
inc edi
shl eax, 8
cmp ecx, 2
jle 0x40ca1c
movzx ecx, byte [edi]
or eax, ecx
shl eax, 8
test edx, edx
jle 0x40ca39
mov ecx, edx
mov edi, eax
shr edi, 0x1a
mov bl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Global_]
mov byte [esi], bl
inc esi
shl eax, 6
dec ecx
jne 0x40ca25
add dword [ebp - 4], edx
mov edi, 4
sub edi, edx
test edi, edi
jle 0x40ca53
push edi
push 0x3d
push esi
call fcn.00454990
add esp, 0xc
add dword [ebp - 4], edi
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cba0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40cbb9
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40cbb0
sub eax, edx
push esi
push edi
lea edi, [eax + 0x95]
push edi
call fcn.0044fc33
mov esi, eax
add esp, 4
test esi, esi
jne 0x40cbd4
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [esi], edi
mov dword [esi + 8], 0
test eax, eax
je 0x40cc02
push eax
add edi, 0xffffff6c
lea ecx, [esi + 0x94]
push edi
push ecx
call fcn.0044fb14
add esp, 0xc
mov eax, dword [ebp + 8]
test eax, eax
je 0x40cc1b
push eax
lea edx, [esi + 0x14]
push 0x80
push edx
call fcn.0044fb14
add esp, 0xc
call fcn.0040f260
mov ecx, dword [esi]
sub ecx, 8
mov eax, 0xedcba987
lea edx, [esi + 8]
je 0x40cc4b
nop
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x479170]
inc edx
dec ecx
jne 0x40cc30
not eax
pop ebx
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebp
ret