joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401520
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_CreateWindowExA]
push esi
push edi
mov dword [esp + 0x10], ecx
xor eax, eax
mov ecx, 0x15
mov edi, 0x41d434
rep stosd dword es:[edi], eax
mov eax, 0xf0ff82
mov dword [0x41d434], 0x54
mov dword [0x41d438], 0x40000000
mov dword [0x41d474], eax
mov dword [0x41d448], eax
mov edi, 0x41d3e4
mov esi, 0x5d
mov eax, dword [0x420194]
mov ecx, dword [0x41fcb4]
push 0
push eax
push 0
push ecx
push 0x13
push 0xb2
push esi
push 0x116
push 0x50000080
push 0
push str.RichEdit20A
push 0x20
call ebp
mov edx, dword [0x440354]
push 0
push edx
push 0x30
push eax
mov dword [edi], eax
call ebx
mov eax, dword [edi]
push 0
push 0x3a
push 0xc5
push eax
call ebx
add esi, 0x17
add edi, 4
cmp esi, 0x143
jl 0x401572
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
xor esi, esi
jmp 0x4015e0
mov ecx, dword [esi + 0x41d3e4]
push 0x401250
push 0xfffffffffffffffc
push ecx
call edi
mov dword [esi + 0x41fa60], eax
add esi, 4
cmp esi, 0x28
jl 0x4015e0
mov ebp, dword [esp + 0x10]
xor eax, eax
push eax
push 2
push 3
push eax
push eax
mov ecx, 0xd2
mov edi, ebp
push 0x80000000
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push str.shortcut.ini
call edi
mov esi, eax
cmp esi, 0xffffffff
push 0
je 0x401648
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea edx, [esp + 0x18]
push edx
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x40168b
push 2
push 2
push 0
push 0
push 0x40000000
push str.shortcut.ini
call edi
push str._r_n_r_n_r_n_r_n_r_n_r_n_r_n_r_n_r_n_r_n_r_n
push ebp
mov esi, eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, ebp
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401672
push 0
lea ecx, [esp + 0x18]
push ecx
sub eax, edx
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x41d3e4
mov edx, dword [esi]
push 0x41d434
push 1
push 0x444
push edx
call ebx
add esi, 4
cmp esi, 0x41d40c
jl 0x401697
push ebp
mov ecx, ebp
call fcn.00401120
mov esi, 0x41d3e4
mov eax, dword [esi]
push 0x41d434
push 1
push 0x444
push eax
call ebx
add esi, 4
cmp esi, 0x41d40c
jl 0x4016c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4035b0
Capabilities:
Create http request
Query remote server for available data
Read data from internet
Receive data

Disassembly:
sub esp, 8
push edi
push 0
push 0
push 0
push 0
push str.HTTPTEST
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
jne 0x4035d2
pop edi
add esp, 8
ret
mov eax, dword [esp + 0x14]
push esi
push 0
push 0x80000000
push 0
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x4035ff
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
xor eax, eax
pop edi
add esp, 8
ret
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x403628
mov eax, dword [esp + 0x1c]
lea edx, [esp + 8]
push edx
push 0x8000
push eax
jmp 0x40363c
cmp eax, 1
jne 0x403643
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 8]
push ecx
push 0x20000
push edx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
pop esi
mov eax, 1
pop edi
add esp, 8
ret
Function at 0x4039b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x41f3b8]
push ebx
push esi
mov dword [esp + 0x118], eax
push edi
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp eax, 1
mov dword [esp + 0x10], ebx
jne 0x403a06
mov dword [0x4a1f34], 5
mov dword [0x4a1f18], 0x64
mov dword [0x4a1f1c], 0x32
jmp 0x403a10
cmp eax, ebx
jne 0x403a1a
mov dword [0x4a1f34], ebx
mov dword [0x4a1f08], 0x44
mov eax, dword [str.Applicationsiexplore.exe_shellopencommand]
push 0x41a3af
push eax
push 0x80000000
call fcn.004077c0
mov cl, byte [eax]
add esp, 0xc
test cl, cl
je 0x403ada
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x403a41
sub ecx, esi
mov dword [esp + 0x14], ecx
je 0x403ada
mov ecx, eax
xor esi, esi
lea edi, [ecx + 1]
jmp 0x403a60
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x403a60
sub ecx, edi
cmp ecx, ebx
jle 0x403aac
mov bl, 0x20
nop
mov cl, byte [esi + eax]
cmp cl, 0x22
jne 0x403a82
cmp byte [esi + eax + 1], bl
je 0x403aa4
cmp cl, cl
je 0x403a8f
mov edx, dword [esp + 0x10]
mov byte [esp + edx + 0x18], cl
inc edx
mov dword [esp + 0x10], edx
mov ecx, eax
inc esi
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x403a95
sub ecx, edi
cmp esi, ecx
jl 0x403a70
jmp 0x403aac
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x18], bl
mov eax, dword [ebp + 8]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403ab1
lea edi, [esp + 0x18]
sub eax, edx
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403ac0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x403af1
mov edx, dword [ebp + 8]
push edx
lea eax, [esp + 0x1c]
push str.C:Program_FilesInternet_ExplorerIEXPLORE.EXE__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x420108
push 0x4a1f08
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x38]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403b2f
mov edx, dword [0x420108]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [0x42010c]
push eax
call esi
mov ecx, dword [esp + 0x11c]
call fcn.004119a1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405880
Capabilities:
Copy file
Create process on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
mov eax, dword [0x41f3b8]
push edi
mov dword [esp + 0x10c], eax
push pe_nt_image_headers32
lea eax, [esp + 0xc]
push eax
push str.UPDATE_VERSION
push 0x499b50
call fcn.004037c0
add esp, 0x10
test eax, eax
je 0x40595d
lea ecx, [esp + 8]
push ecx
call fcn.00411ac3
mov ecx, dword [0x41d614]
add esp, 4
cmp ecx, eax
jge 0x40594a
mov eax, dword [0x41d5e8]
test eax, eax
jne 0x405901
mov edx, dword [str.SOFTWARETriglow_PicturesPristonTale]
push str.PATH
push edx
push 0x80000002
call fcn.004077c0
add esp, 0xc
test eax, eax
je 0x405901
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [str.psupdate_test_.patch.exe]
mov ecx, dword [str.psupdate_test_.exe]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edx, dword [str.psupdate_test_.patch.exe]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 2
jne 0x40593e
push 0
push 0x41a7a0
push 0x41a784
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x41fcb4]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [0x45965c], 1
je 0x40595d
mov ecx, 0x499b50
call fcn.00404a60
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405964
sub eax, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push pe_nt_image_headers32
lea eax, [esp + 0xc]
push eax
push str.POPUP_URL
push 0x420350
call fcn.00403880
add esp, 0x10
test eax, eax
je 0x4059b4
xor eax, eax
mov cl, byte [esp + eax + 8]
mov byte [eax + 0x4a1b50], cl
inc eax
test cl, cl
jne 0x4059a5
lea eax, [esp + 8]
lea edx, [eax + 1]
jmp 0x4059c0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4059c0
sub eax, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push pe_nt_image_headers32
lea eax, [esp + 0xc]
push eax
push 0x41a724
push 0x420350
call fcn.004037c0
add esp, 0x10
test eax, eax
je 0x405a06
push 0x41a724
jmp 0x405a2b
push pe_nt_image_headers32
lea ecx, [esp + 0xc]
push ecx
push str._notice_
push 0x420350
call fcn.004037c0
add esp, 0x10
test eax, eax
je 0x405a38
push str._notice_
push 0x420350
call fcn.00404bd0
add esp, 8
mov ecx, dword [esp + 0x10c]
call fcn.004119a1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x405a50
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x30
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push edi
push 0x94
push ebx
mov dword [esp + 0x14], 0x30
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x403c00
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], ebx
call esi
push 0x7f00
push 0
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 4
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
push 0x95
push eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0x4a1c90
call esi
mov esi, dword [sym.imp.USER32.dll_RegisterClassExA]
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x3c], eax
call esi
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x18], 0x403b50
mov dword [esp + 0x38], str.POPUP
call esi
cmp dword [0x4a1cf8], 1
jne 0x405b3e
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x18], 0x402a40
mov dword [esp + 0x38], str.RICH
call esi
push ebx
sub esp, 0x30
mov edi, esp
mov ecx, 0xc
lea esi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x41da98
call fcn.00408c10
mov ecx, 0x41da98
call fcn.00408150
push 0
push ebx
push 0
push 0
push 0x192
push 0x1e2
push 0
push 0
push 0x80800000
push 0x41a7d0
push 0x4a1c90
push 0
mov dword [0x420194], ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x41a7c8
push 0x10
push 1
mov esi, dword [sym.imp.GDI32.dll_CreateFontA]
push 2
push 3
push 0x81
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xc
mov dword [0x41fcb4], eax
call esi
push 0x41a7c0
push 0x10
push 1
push 2
push 3
push 0x81
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xc
mov dword [0x41feac], eax
call esi
mov dword [0x440354], eax
mov eax, dword [0x41fcb4]
test eax, eax
jne 0x405bdd
pop edi
pop esi
pop ebx
add esp, 0x30
ret
push 0x16
push 0x192
push 0x1e2
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x44]
mov edx, dword [0x41fcb4]
push ecx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x41fcb4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x30
ret
Function at 0x4077c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x1c]
push ebx
call fcn.004076f0
add esp, 4
test eax, eax
je 0x4077f1
add eax, 0x80
push eax
mov eax, dword [0x4a83e8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x4a83e8]
pop ebx
add esp, 0xc
ret
mov ecx, dword [0x4a83e8]
mov eax, dword [esp + 0x18]
lea edx, [esp + 4]
push edx
mov dword [esp + 0xc], 0x80
mov dword [esp + 0x10], 1
mov byte [ecx], 0
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x407854
mov eax, dword [0x4a83e8]
push esi
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
je 0x40785b
xor eax, eax
pop ebx
add esp, 0xc
ret
push edi
mov edi, dword [0x4a83e8]
mov eax, ebx
call fcn.00407750
mov eax, dword [0x4a83e8]
pop edi
pop ebx
add esp, 0xc
ret

Function at 0x409350
Capabilities:
Check os version

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetPropA]
push edi
mov edi, dword [esp + 0xc]
push str.CoolSBSubclassPtr
push edi
call ebx
test eax, eax
jne 0x40936d
pop edi
pop ebx
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
cmp ebp, 0xffffffff
push esi
jne 0x409398
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x409391
cmp al, 5
sbb eax, eax
and eax, 2
add eax, 6
jmp 0x409396
mov eax, 8
mov ebp, eax
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4093a5
cmp esi, 3
jne 0x4093bc
push str.CoolSBSubclassPtr
push edi
call ebx
test eax, eax
je 0x4093bc
add eax, 8
je 0x4093bc
mov dword [eax + 0x348], ebp
cmp esi, 1
je 0x4093c6
cmp esi, 3
jne 0x4093df
push str.CoolSBSubclassPtr
push edi
call ebx
test eax, eax
je 0x4093df
add eax, 0x354
je 0x4093df
mov dword [eax + 0x348], ebp
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
ret 0xc
Function at 0x40e5a0
Capabilities:
Download url
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x41971b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x314
push ebx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], bl
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x218], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x219]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x32c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x218]
push eax
push ecx
call fcn.0040e510
add esp, 8
lea edx, [esp + 0x218]
lea eax, [esp + 0x114]
push str.XPva00.dll
push edx
push str._s__s
push eax
call fcn.00411e6c
mov ecx, dword [esp + 0x340]
add esp, 0x10
lea edx, [esp + 0x10]
push str.XPva00.dll
push ecx
push str._s_s
push edx
call fcn.00411e6c
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.00411f31
add esp, 0x18
cmp eax, 0xffffffff
jne 0x40e6fe
lea ecx, [esp + 8]
call fcn.0040e8c0
lea ecx, [esp + 0x114]
mov dword [esp + 0x324], ebx
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
push ebx
lea ecx, [esp + 0x11c]
push eax
push ecx
push ebx
call sub.urlmon.dll_URLDownloadToFileA
cmp eax, ebx
je 0x40e6ea
push eax
push 0x10001
call fcn.0040e3e0
add esp, 8
lea ecx, [esp + 8]
mov dword [esp + 0x324], 0xffffffff
call fcn.0040e8e0
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x314]
mov dword fs:[0], ecx
add esp, 0x320
ret
lea ecx, [esp + 8]
mov dword [esp + 0x324], 0xffffffff
call fcn.0040e8e0
mov ecx, dword [esp + 0x31c]
pop edi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x320
ret
Function at 0x40e720
Capabilities:
Delete file

Disassembly:
sub esp, 0x108
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x11c]
push str.XPva00.dll
push edi
lea eax, [esp + 0x14]
push str._s_s
push eax
call fcn.00411e6c
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x40e78c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x30003
call fcn.0040e3e0
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x108
ret
push 0x41dbb4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40e7bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x30004
call fcn.0040e3e0
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x108
ret
mov ecx, dword [esp + 0x124]
lea edx, [esp + 8]
push ebp
mov ebp, dword [esp + 0x118]
push edx
push ecx
push edi
mov edi, dword [esp + 0x128]
push edi
push ebp
mov dword [esp + 0x20], 0
call eax
add esp, 0x14
test eax, eax
jne 0x40e7f4
push eax
call fcn.0040e840
add esp, 4
mov edx, dword [esp + 0x124]
push edx
push edi
push ebp
call dword [esp + 0x18]
add esp, 0xc
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp edi, 0xc500f002
pop ebp
jne 0x40e82d
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
xor eax, eax
pop esi
add esp, 0x108
ret
pop edi
mov eax, 1
pop esi
add esp, 0x108
ret

Function at 0x40e840
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x410e90
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x20
cdq
and edx, 0xf
add eax, edx
sar eax, 4
test eax, eax
jle 0x410f41
mov ecx, dword [esp + 0x2c]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
sub edi, ecx
mov esi, ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], eax
jmp 0x410ec6
mov edi, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
add edi, esi
mov ebp, 4
xor eax, eax
mov ebx, dword [ecx]
xor edx, edx
mov dl, byte [edi + eax]
shl ebx, 8
xor edx, ebx
inc eax
cmp eax, 4
mov dword [ecx], edx
jl 0x410ed3
add ecx, 4
add edi, 4
dec ebp
jne 0x410ed1
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0040fd00
add esp, 0xc
lea ebp, [esp + 0x20]
mov edx, 4
mov edi, dword [ebp]
xor eax, eax
mov ecx, 0x18
mov ebx, edi
sub ecx, eax
add eax, 8
shr ebx, cl
inc esi
cmp eax, 0x20
mov byte [esi - 1], bl
jl 0x410f15
add ebp, 4
dec edx
jne 0x410f10
mov eax, dword [esp + 0x38]
dec eax
mov dword [esp + 0x38], eax
jne 0x410ec2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x410f50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x40
mov eax, dword [esp + 0x48]
mov dword [esp], 0x12345678
cdq
and edx, 0xf
mov dword [esp + 4], 0x56785678
add eax, edx
mov dword [esp + 8], 0x9abc5678
sar eax, 4
test eax, eax
mov dword [esp + 0xc], 0xdeff5678
jle 0x411035
mov ecx, dword [esp + 0x4c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
sub esi, ecx
mov edi, ecx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], eax
jmp 0x410fa6
mov esi, dword [esp + 0x5c]
lea ecx, [esp + 0x20]
add esi, edi
mov ebp, 4
xor eax, eax
mov ebx, dword [ecx]
xor edx, edx
mov dl, byte [esi + eax]
shl ebx, 8
xor edx, ebx
inc eax
cmp eax, 4
mov dword [ecx], edx
jl 0x410fb3
add ecx, 4
add esi, 4
dec ebp
jne 0x410fb1
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.0040fd00
add esp, 0xc
xor esi, esi
mov eax, dword [esp + esi + 0x30]
mov ecx, dword [esp + esi + 0x10]
xor eax, ecx
mov ecx, dword [esp + esi + 0x20]
mov dword [esp + esi + 0x40], eax
mov ebp, eax
mov dword [esp + esi + 0x10], ecx
xor eax, eax
mov ecx, 0x18
mov edx, ebp
sub ecx, eax
add eax, 8
shr edx, cl
inc edi
cmp eax, 0x20
mov byte [edi - 1], dl
jl 0x411003
add esi, 4
cmp esi, 0x10
jl 0x410fe9
mov eax, dword [esp + 0x58]
dec eax
mov dword [esp + 0x58], eax
jne 0x410fa2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x411c90
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41a9e0
call fcn.00412d08
mov edi, 0x94
mov eax, edi
call fcn.00414200
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4a8490], ecx
mov eax, dword [esi + 4]
mov dword [0x4a849c], eax
mov edx, dword [esi + 8]
mov dword [0x4a84a0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4a8494], esi
cmp ecx, 2
je 0x411cf0
or esi, 0x8000
mov dword [0x4a8494], esi
shl eax, 8
add eax, edx
mov dword [0x4a8498], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x411d2b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411d2b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x411d43
cmp eax, 0x20b
je 0x411d30
mov dword [ebp - 0x1c], esi
jmp 0x411d57
cmp dword [ecx + 0x84], 0xe
jbe 0x411d2b
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x411d51
cmp dword [ecx + 0x74], 0xe
jbe 0x411d2b
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004141af
pop ecx
test eax, eax
jne 0x411d83
cmp dword [0x4a847c], 1
jne 0x411d70
call fcn.00413964
push 0x1c
call fcn.004137ed
push 0xff
call fcn.0041294c
pop ecx
pop ecx
call fcn.0041410d
mov dword [ebp - 4], esi
call fcn.00413f62
test eax, eax
jge 0x411d9c
push 0x1b
call fcn.00411c6b
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4a9a74], eax
call fcn.00413e40
mov dword [0x4a8474], eax
call fcn.00413d9e
test eax, eax
jge 0x411dc2
push 8
call fcn.00411c6b
pop ecx
call fcn.00413b6b
test eax, eax
jge 0x411dd3
push 9
call fcn.00411c6b
pop ecx
push 1
call fcn.0041297c
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x411de9
push eax
call fcn.00411c6b
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00413b0e
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x411e0a
movzx eax, word [ebp - 0x40]
jmp 0x411e0d
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00405c20
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x411e2b
push edi
call fcn.00412aa7
call fcn.00412ac9
jmp 0x411e5d
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00412d43
ret

Function at 0x411f31
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x411f51
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00415a0b
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x411f72
test byte [esp + 8], 2
je 0x411f72
mov dword [0x4a8484], 0xd
mov dword [0x4a8488], 5
jmp 0x411f4d
xor eax, eax
ret
Function at 0x4129e6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4a84d0], esi
push edi
jne 0x412a06
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4a84cc], esi
mov byte [0x4a84c8], al
jne 0x412a6c
mov ecx, dword [0x4a9a68]
test ecx, ecx
je 0x412a4d
mov eax, dword [0x4a9a64]
sub eax, 4
cmp eax, ecx
jmp 0x412a46
mov eax, dword [eax]
test eax, eax
je 0x412a38
call eax
mov eax, dword [0x4a9a64]
sub eax, 4
cmp eax, dword [0x4a9a68]
mov dword [0x4a9a64], eax
jae 0x412a30
mov eax, 0x41d048
mov esi, 0x41d050
cmp eax, esi
mov edi, eax
jae 0x412a6c
mov eax, dword [edi]
test eax, eax
je 0x412a65
call eax
add edi, 4
cmp edi, esi
jb 0x412a5d
mov eax, 0x41d054
mov esi, 0x41d05c
cmp eax, esi
mov edi, eax
jae 0x412a8b
mov eax, dword [edi]
test eax, eax
je 0x412a84
call eax
add edi, 4
cmp edi, esi
jb 0x412a7c
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x412aa5
push dword [ebp + 8]
mov dword [0x4a84d0], 1
call fcn.0041294c
pop ebp
ret