joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412ce0
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push edi
mov ecx, 6
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
mov dword [edx], eax
cmp ecx, eax
mov dword [edx + 4], eax
mov dword [edx + 0x14], 1
mov dword [edx + 0x10], eax
pop edi
jne 0x412d0d
jmp 0x412d10
ret
push 0x4961a0
push str.Style
push 0x429a54
call fcn.00403c50
push 0x4961a4
push str.Postion
push 0x429a54
call fcn.00403c50
push 0x4961a8
push str.QuitClean
push str.Main
call fcn.00403c50
push 0x4961ac
push str.AutoStart
push str.Main
call fcn.00403c50
push 0x4961b0
push str.ImageQuality
push 0x429a54
call fcn.00403c50
add esp, 0x3c
jmp fcn.00412df0

Function at 0x412f40
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x418
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], 0
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov esi, dword [esp + 0x428]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.MSVCRT.dll_wcsrchr]
push 0x5f
push esi
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0x208
call edi
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x412fd5
push 0x5c
push esi
call edi
add esp, 8
test eax, eax
je 0x412fb7
mov word [eax], 0
push ebx
push str.WebApp_World
push 0x428240
lea eax, [esp + 0x20]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea ecx, [esp + 0x10]
lea edx, [esp + 0x21c]
push ecx
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
pop edi
pop esi
test eax, eax
pop ebx
jne 0x413018
lea edx, [esp + 8]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
add esp, 0x418
ret
Function at 0x4132c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x31c
lea eax, [esp]
push esi
push eax
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp eax, 2
mov dword [0x495b48], ecx
mov dword [0x495b54], ecx
mov dword [0x495b4c], ecx
mov dword [0x495b50], ecx
mov esi, 1
jne 0x413350
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x413327
mov eax, dword [esp + 0xc]
cmp eax, ecx
jne 0x41331b
mov dword [0x495b54], esi
jmp 0x41335a
cmp eax, esi
jne 0x41335a
mov dword [0x495b4c], esi
jmp 0x41335a
cmp eax, 6
jne 0x41335a
mov eax, dword [esp + 0xc]
cmp eax, ecx
je 0x413338
cmp eax, esi
jne 0x41335a
cmp eax, esi
mov dword [0x495b4c], esi
mov dword [0x495b50], esi
jne 0x41335a
mov dword [0x495b58], esi
jmp 0x41335a
cmp eax, esi
jne 0x41335a
mov dword [0x495b48], esi
mov cx, word [0x42e49c]
push edi
mov word [esp + 0x11c], cx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x11e]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x11c]
push 0x103
push edx
stosw word es:[edi], ax
call fcn.00413950
mov ax, word [esp + 0x124]
add esp, 8
cmp ax, 0x37
pop edi
jne 0x4133ae
mov dword [0x495b5c], esi
pop esi
add esp, 0x31c
ret
cmp ax, 0x36
jne 0x4133c2
mov dword [0x495b60], esi
pop esi
add esp, 0x31c
ret
cmp ax, 0x38
jne 0x4133ce
mov dword [0x495b64], esi
pop esi
add esp, 0x31c
ret

Function at 0x4133e0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
xor esi, esi
push ebp
mov dword [esp + 0x10], esi
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edi, eax
add esp, 4
test edi, edi
jle 0x413489
push esi
inc edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x413489
push ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea esi, [edi + edi]
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x413479
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x413472
mov ecx, esi
mov edi, eax
mov eax, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x413472
mov dword [esp + 0x10], 1
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x413490
Capabilities:
Delete file

Disassembly:
mov eax, 0x167c
call fcn.00421e40
mov edx, dword [esp + 0x1684]
push esi
xor esi, esi
cmp edx, esi
je 0x4135a0
push ebx
push edi
mov ecx, 0x513
xor eax, eax
lea edi, [esp + 0x23a]
mov word [esp + 0x238], si
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.MSVCRT.dll_wcstok]
lea ecx, [esp + 0xc]
stosw word es:[edi], ax
mov eax, dword [0x429d9c]
push ecx
push edx
mov dword [esp + 0x14], eax
call ebx
mov edx, eax
add esp, 8
cmp edx, esi
je 0x413556
push ebp
mov ebp, dword [esp + 0x1690]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x36]
mov word [esp + 0x34], 0
rep stosd dword es:[edi], eax
push edx
push ebp
push str._s_s
lea edx, [esp + 0x40]
push 0x103
push edx
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
lea ecx, [esp + 0x4c]
lea edx, [esp + esi*2 + 0x254]
push ecx
push edx
mov edi, eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [esp + 0x30]
lea esi, [esi + edi + 1]
push eax
push 0
call ebx
mov edx, eax
add esp, 0x28
test edx, edx
jne 0x4134f0
xor esi, esi
pop ebp
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x10]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x238]
push edx
stosw word es:[edi], ax
mov dword [esp + 0x2a], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x2e], esi
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], ecx
mov word [esp + 0x24], 0x454
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop edi
pop ebx
pop esi
add esp, 0x167c
ret
xor eax, eax
pop esi
add esp, 0x167c
ret
Function at 0x413910
Capabilities:
Get common file path
Get program files directory

Disassembly:
cmp word [0x495b74], 0
jne 0x41393e
push 0
push 0x26
push 0x495b74
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.internet_exploreriexplore.exe
push 0x495b74
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
mov eax, 0x495b74
ret

Function at 0x413950
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
push eax
push edi
call fcn.00413910
push eax
call fcn.0040dcf0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4139a6
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edi
push edx
push str.Version
push str.SoftwareMicrosoftInternet_Explorer
push 0x80000002
mov dword [esp + 0x24], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4139a6
cmp word [edi], ax
mov eax, 1
jne 0x4139a8
mov eax, esi
pop edi
pop esi
ret

Function at 0x41d780
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41d7d5
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call edi
shr eax, 8
test al, al
jne 0x41d7b1
push 2
call edi
shr eax, 8
test al, al
je 0x41d7d5
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_WindowFromPoint]
cmp eax, dword [esi + 8]
je 0x41d857
mov eax, dword [esi + 0xf8]
mov dword [esi + 0xfc], 0xffffffff
cmp eax, 0xffffffff
mov dword [esi + 0xf8], 0xffffffff
mov dword [esi + 0x100], 0
je 0x41d806
push eax
mov ecx, esi
call fcn.0041e300
push 0xffffffffffffffff
mov ecx, esi
mov byte [esi + 0x1e0], 4
call fcn.0041e300
mov eax, dword [esi + 0xdc]
test eax, eax
je 0x41d851
mov ecx, dword [esi + 8]
lea edi, [esi + 0x28]
push ecx
mov ecx, edi
call fcn.00420880
mov edx, dword [esi + 8]
mov ecx, edi
push edx
call fcn.00420830
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x118]
push eax
push 0xffffffffffffffff
push 0x37ea
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.USER32.dll_ReleaseCapture]
pop edi
pop esi
add esp, 8
ret
Function at 0x4208d0
Capabilities:
Hide graphical window

Disassembly:
call fcn.00414f30
mov ecx, eax
jmp 0x420a90
mov eax, dword [ecx + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x420f5a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424160
push 0x421df0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x420fe0
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
je 0x420fb8
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x420fe6
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x420fb0
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x420fb0
mov al, 1
jmp 0x420fb2
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x421045
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
mov esi, dword [0x4971c8]
test esi, esi
je 0x421069
lea eax, [esp + 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
jmp 0x42104d
pop esi
pop ecx
ret

Function at 0x42106c
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4971d4], eax
je 0x421082
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x4971e4]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x4210cf
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x4210c0
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x4210c0
push eax
call fcn.00421136
pop ecx
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.00421de0
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x421091
mov dword [0x4971e4], ebx
call fcn.0042110f
mov esi, dword [0x4971e0]
cmp esi, ebx
je 0x4210fc
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.00421de0
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x4210e4
pop edi
mov dword [0x4971e0], ebx
mov dword [0x4971d4], ebx
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x4213b9
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x4971d8]
push esi
test eax, eax
push edi
jne 0x421423
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x421421
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
test esi, esi
jne 0x4213e5
push 8
pop edi
jmp 0x421400
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x421411
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.00421de0
pop ecx
and dword [0x4971dc], 0
mov dword [0x4971d8], edi
mov eax, edi
jmp 0x421423
mov dword [esi + 4], edi
mov eax, dword [0x4971e0]
mov dword [esi], eax
mov dword [0x4971e0], esi
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x4216e0
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0x7ff80000
mov ebx, 0x10000
jbe 0x421704
lea eax, [esi - 0x7ff80000]
mov dword [ebp + 8], eax
jmp 0x421707
mov dword [ebp + 8], ebx
cmp esi, 0x80000000
jae 0x42171a
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x421721
mov dword [ebp - 4], 0xfff80000
mov eax, dword [0x4971cc]
mov ecx, dword [0x4971c8]
test eax, eax
jne 0x42173b
test ecx, ecx
je 0x421750
mov eax, ecx
mov dword [0x4971cc], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x421750
cmp edx, dword [ebp + 8]
jb 0x421750
cmp edx, dword [ebp - 4]
jbe 0x4218a9
mov eax, ecx
test ecx, ecx
mov dword [0x4971cc], eax
je 0x421780
test eax, eax
je 0x421774
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x421774
cmp ecx, dword [ebp + 8]
jb 0x421774
cmp ecx, dword [ebp - 4]
jbe 0x4218a9
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x4971cc], eax
jne 0x42175f
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp + 8]
mov edi, esi
jbe 0x4217e8
cmp edi, 0x70000000
jb 0x4217a5
cmp edi, 0x80000000
ja 0x4217a5
mov edi, 0x6fff0000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4217e8
cmp dword [ebp - 0x10], ebx
jne 0x4217c0
cmp dword [ebp - 0x14], ebx
jae 0x4217d0
mov eax, dword [ebp - 0x1c]
lea edi, [eax - 0x10000]
cmp edi, dword [ebp + 8]
ja 0x421790
jmp 0x4217e8
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x4971cc], eax
jne 0x42185f
cmp esi, dword [ebp - 4]
jae 0x4218d0
cmp esi, 0x70000000
jb 0x421806
cmp esi, 0x80000000
ja 0x421806
mov esi, 0x80010000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4218d0
cmp dword [ebp - 0x10], ebx
jne 0x421854
cmp dword [ebp - 0x14], ebx
jb 0x421854
mov ecx, esi
and ecx, 0xffff
je 0x42183c
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x14], eax
add dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x20]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x4971cc], eax
jne 0x42185f
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
jmp 0x4217e8
mov dword [eax], 0x52727464
mov eax, dword [0x4971cc]
xor ecx, ecx
mov dword [eax + 8], ecx
mov eax, dword [0x4971cc]
mov edx, dword [0x4971c8]
mov dword [eax + 4], edx
mov eax, dword [0x4971cc]
mov dword [0x4971c8], eax
add eax, 0xffe0
mov edx, 0x7fd
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec edx
jne 0x421891
mov eax, dword [0x4971cc]
mov dword [eax + 8], ecx
mov eax, dword [0x4971cc]
mov esi, dword [eax + 8]
cmp esi, dword [ebp + 8]
jb 0x4218d0
cmp esi, dword [ebp - 4]
ja 0x4218d0
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x4218d2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4218d7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424170
push 0x421df0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42194c
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x421948
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x421948
cmp word [eax + 0x14], 0
jne 0x42193d
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x42194e
mov eax, ecx
jmp 0x421937
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408aa0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40aaa0
push 0x408db0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.PNCRT.dll___set_app_type]
add esp, 4
mov dword [0x45a824], 0xffffffff
mov dword [0x45a828], 0xffffffff
call dword [sym.imp.PNCRT.dll___p__fmode]
mov ecx, dword [0x45a818]
mov dword [eax], ecx
call dword [sym.imp.PNCRT.dll___p__commode]
mov edx, dword [0x45a814]
mov dword [eax], edx
mov eax, dword [sym.imp.PNCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x45a820], ecx
call fcn.00408da0
mov eax, dword [0x40d1a0]
test eax, eax
jne 0x408b31
push 0x408d90
call dword [sym.imp.PNCRT.dll___setusermatherr]
add esp, 4
call fcn.00408d70
push 0x40c020
push 0x40c01c
call sub.PNCRT.dll__initterm
add esp, 8
mov edx, dword [0x45a810]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x45a80c]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.PNCRT.dll___getmainargs]
add esp, 0x14
push 0x40c018
push section..data
call sub.PNCRT.dll__initterm
add esp, 8
mov edx, dword [sym.imp.PNCRT.dll__acmdln]
mov esi, dword [edx]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x408c3f
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x408ba5
cmp al, 0x22
jne 0x408b97
cmp byte [esi], 0x22
jne 0x408bae
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x408bbe
cmp al, 0x20
ja 0x408bbe
inc esi
mov dword [ebp - 0x74], esi
jmp 0x408bae
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x408bdf
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x408be4
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.PNCRT.dll_exit]
jmp 0x408c24
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x408bae
inc esi
mov dword [ebp - 0x74], esi
jmp 0x408c3f
Function at 0x4203d0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
jle 0x4203eb
mov dl, byte [esp + 0x10]
mov ecx, dword [esp + 8]
xor byte [eax + ecx], dl
inc eax
cmp eax, esi
jl 0x4203e3
pop esi
ret 0xc
Function at 0x432349
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x432377
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x43237e
cmp ebx, dword [eax + 4]
jae 0x43237e
xor eax, eax
jmp 0x43256e
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x43238f
xor eax, eax
inc eax
jmp 0x43256d
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4323a5
cmp ecx, edx
jae 0x4324ea
cmp dword [eax + 4], 0
je 0x4323ae
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x432396
cmp dword [ebp + 8], 0
je 0x4323d0
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4324ea
cmp eax, esi
jae 0x4324ea
mov eax, dword [0x438250]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4323f5
cmp dword [esi*4 + 0x438258], edi
je 0x4324ee
inc esi
cmp esi, eax
jl 0x4323e3
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x4290c8]
test eax, eax
je 0x43256a
cmp dword [ebp - 8], 0x1000000
jne 0x43256a
test byte [ebp - 0xc], 0xcc
je 0x432473
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x43256a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x43256a
cmp word [eax + 0x18], 0x10b
jne 0x43256a
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x43256a
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x432473
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x432473
test byte [ecx + 0x27], 0x80
jne 0x4324ea
push 1
push 0x438298
call dword [0x4292b4]
test eax, eax
jne 0x432387
mov ecx, dword [0x438250]
test ecx, ecx
mov edx, ecx
jle 0x4324a7
lea eax, [ecx*4 + 0x438254]
cmp dword [eax], edi
je 0x4324a7
dec edx
sub eax, 4
test edx, edx
jg 0x43249b
test edx, edx
jne 0x4324d8
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4324b4
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4324cc
lea eax, [edx*4 + 0x438258]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4324ba
cmp ecx, 0x10
jge 0x4324d8
inc ecx
mov dword [0x438250], ecx
push 0
push 0x438298
call dword [0x4292b4]
jmp 0x432387
xor eax, eax
jmp 0x43256d
test esi, esi
jle 0x432387
mov ebx, dword [0x4292b4]
push 1
push 0x438298
call ebx
test eax, eax
jne 0x432387
cmp dword [esi*4 + 0x438258], edi
je 0x432544
mov eax, dword [0x438250]
lea esi, [eax - 1]
test esi, esi
jl 0x432532
cmp dword [esi*4 + 0x438258], edi
je 0x43252e
dec esi
jns 0x432522
test esi, esi
jge 0x432542
cmp eax, 0x10
jge 0x43253d
inc eax
mov dword [0x438250], eax
lea esi, [eax - 1]
jmp 0x432544
je 0x43255c
xor ecx, ecx
test esi, esi
jl 0x43255c
lea eax, [ecx*4 + 0x438258]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x43254a
push 0
push 0x438298
call ebx
jmp 0x432387
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d84a
Capabilities:
Encode data using base64

Disassembly:
fnstcw word [ebp - 0x9e2b364]
and eax, 0xceb1f8ee
sbb eax, 0xbda759bc
movsd dword es:[edi], dword [esi]
mov ebx, 0x658256d4
test ch, cl
cmp ebx, eax
cmp ebp, dword fs:[ecx + edi*2]
mov edx, 0xf8109721
mov edi, 0xfd248024
xchg ebx, eax
out 0x3f, eax
push ss
cmp eax, 0x34ad6227
cmpsd dword [esi], dword es:[edi]
cdq
add byte ds:[ebp + 0x1293828], bh
inc edi
xchg ecx, eax
cmp byte [ecx], ch
add dword [edi - 0x6f], eax
dec edx
mov esi, 0x8f4ae360
fdiv qword [ecx - 0x5a889435]
aad 0xd0
neg byte [ebp + 0x7a]
loopne 0x40d8fc
cld
inc ecx
push ebp
test dword [edx + 0x114e99c0], eax
mov edi, 0x706b5b2
wait
jg 0x40d8f1
lahf
test eax, 0x76ede703
dec ecx
sub byte [esi - 0x41], bh
test al, 0x3e
and dh, byte [edx - 0x465204da]
pop ecx
push edi
aaa
or dword [edx - 0x12895249], 0xbd02d482
sahf
add eax, 0xd0017552
mov dl, 0x26
sti
lodsd eax, dword [esi]
mov ecx, 0x81375759
mov dh, byte [edi - 0x7d128953]
aam 2
mov ebp, 0x52059e64
jne 0x40d8d0
shr byte [ebp + 0x3e], 1
test al, 0x8a
insd dword es:[edi], dx
test al, 0x8a
xchg ebp, eax
jnp 0x40d881
cmpsb byte [esi], byte es:[edi]
jge 0x40d8b7
sti
salc
invalid
movsd dword es:[edi], dword [esi]
imul ecx, eax, 0xffffffc6
fisubr dword [edx]
enter 0xffffffffffffbebb, 0xb
xor dword [0x3e1dba06], 0
in eax, 0x89
push 0x626b84df
xor eax, 0x3e1dba06
add ch, ah
mov dword [eax - 0x21], ebp
test byte [ebx + 0x62], ch
adc ebp, dword [eax - 0x3d090090]
movsd dword es:[edi], dword [esi]
arpl word [esi], bp
mov ebx, 0xb13524f8
sahf
xchg byte [ebp - 0x7f0bb5ef], ah
push esi
pop ebp
cwde
push ebx
invalid

Function at 0x419800
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x410
lea eax, [esp + 0x208]
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]