joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f5e
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc30
push esi
push edi
xor edi, edi
push edi
push edi
push 0xf0
push 0x3fa
push dword [0x409174]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00401747
cmp eax, 1
jne 0x402012
mov esi, 0x200
push esi
lea eax, [ebp - 0x208]
push eax
push 0x3eb
push dword [0x409174]
call fcn.00401a4b
push esi
lea eax, [ebp - 0x618]
push eax
push 0x3ea
push dword [0x409174]
call fcn.00401a4b
push 0x40717c
lea eax, [ebp - 0xc30]
push eax
call dword [0x409100]
mov esi, dword [0x4090f8]
lea eax, [ebp - 0x208]
push eax
push 0x4071d8
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0xc30]
push eax
call esi
push eax
call esi
push eax
call esi
push edi
push 0x4071d4
lea eax, [ebp - 0xc30]
push eax
push 3
jmp 0x402016
push edi
push edi
push edi
push edi
push 0x4071cc
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, edi
mov dword [0x40916c], eax
je 0x402051
push edi
push 0x80000000
push edi
push edi
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
cmp eax, edi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x402049
push eax
call esi
push dword [0x40916c]
call esi
pop edi
pop esi
leave
ret 4

Function at 0x40293f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
xor esi, esi
cmp word [0x409dc8], si
push edi
lea eax, [ebp - 0x414]
je 0x40298c
push 0x40717c
push eax
call dword [0x409100]
push dword [ebp + 8]
mov edi, dword [0x4090f8]
push 0x4071f0
push 0x409dc8
lea eax, [ebp - 0x414]
push eax
call edi
push eax
call edi
push eax
call edi
jmp 0x402996
push dword [ebp + 8]
push eax
call dword [0x409100]
cmp dword [ebp + 0x18], esi
push esi
lea eax, [ebp - 0x414]
jne 0x4029f3
cmp dword [ebp + 0x14], esi
je 0x4029b7
push 0x80
push 2
push esi
push esi
push 0x40000000
jmp 0x4029e2
mov ebx, 0x80
push ebx
push 3
push esi
push esi
mov edi, 0x40000000
push edi
push eax
call fcn.00401bc0
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4029ed
push esi
push ebx
push 2
push esi
push esi
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.00401bc0
mov dword [ebp + 8], eax
jmp 0x402a2a
push 2
push esi
push esi
jmp 0x402a23
push 0x80
push 3
push esi
push esi
push 0x40000000
push eax
call fcn.00401bc0
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x402a1b
mov dword [0x409164], 1
jmp 0x402a54
push esi
push esi
push dword [0x40b250]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x403bba
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
push 0x3f3
push dword [0x409174]
call dword [sym.imp.USER32.dll_GetDlgItem]
xor edi, edi
push edi
push eax
call dword [0x409118]
push str.STRINGTABLECUSTOM
push 0xae
mov dword [0x40b244], 1
call fcn.0040116f
push eax
push 0x3fc
push dword [0x409174]
call fcn.004019ea
mov esi, dword [0x409100]
push 0x4099b8
push 0x409198
call esi
push 0x409bc0
push 0x4093a0
call esi
xor esi, esi
jmp 0x403c34
cmp esi, 0xa
jge 0x403c3d
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp dword [0x40b244], 1
je 0x403c23
mov eax, dword [0x409168]
cmp eax, edi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [0x40b244], edi
je 0x403c5b
push eax
call esi
mov dword [0x409168], edi
mov eax, dword [0x40916c]
cmp eax, edi
je 0x403c6d
push eax
call esi
mov dword [0x40916c], edi
mov eax, dword [0x409180]
cmp eax, edi
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
je 0x403c86
push edi
push eax
call esi
mov dword [0x409180], edi
mov eax, dword [0x409184]
cmp eax, edi
je 0x403c99
push edi
push eax
call esi
mov dword [0x409184], edi
mov eax, dword [0x409194]
cmp eax, edi
je 0x403cac
push edi
push eax
call esi
mov dword [0x409194], edi
mov eax, dword [0x409190]
cmp eax, edi
je 0x403cbf
push edi
push eax
call esi
mov dword [0x409190], edi
call fcn.00403801
push dword [0x409174]
call fcn.00401ecf
pop edi
pop esi
ret

Function at 0x403cd2
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
push 0x3f3
push dword [0x409174]
call dword [sym.imp.USER32.dll_GetDlgItem]
xor edi, edi
push edi
push eax
call dword [0x409118]
push str.STRINGTABLECUSTOM
push 0xae
call fcn.0040116f
push eax
push 0x3fc
push dword [0x409174]
call fcn.004019ea
mov esi, dword [0x409100]
push 0x4099b8
push 0x409198
call esi
push 0x409bc0
push 0x4093a0
call esi
mov eax, dword [0x409168]
cmp eax, edi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x403d46
push eax
call esi
xor eax, eax
mov dword [0x409168], eax
cmp dword [0x40916c], edi
je 0x403d69
push eax
call esi
mov eax, dword [0x40916c]
cmp eax, edi
mov dword [0x409168], edi
je 0x403d69
push eax
call esi
mov dword [0x40916c], edi
mov eax, dword [0x409184]
cmp eax, edi
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
je 0x403d82
push edi
push eax
call esi
mov dword [0x409184], edi
mov eax, dword [0x409188]
cmp eax, edi
je 0x403d95
push edi
push eax
call esi
mov dword [0x409188], edi
mov eax, dword [0x409194]
cmp eax, edi
je 0x403da8
push edi
push eax
call esi
mov dword [0x409194], edi
mov eax, dword [0x409190]
cmp eax, edi
je 0x403dbb
push edi
push eax
call esi
mov dword [0x409190], edi
call fcn.00403801
push dword [0x409174]
call fcn.00401ecf
pop edi
pop esi
ret
Function at 0x405a05
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c8
push ebx
xor ebx, ebx
push ebx
push ebx
push 0x208
lea eax, [ebp - 0x238]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push 0x400
push ebx
call dword [0x4090f4]
test eax, eax
je 0x405af8
push str.ICMP.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x405af8
lea eax, [ebp - 0x3c8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x405af8
mov eax, dword [eax + 0xc]
push esi
mov esi, dword [0x4090e4]
push edi
mov edi, dword [eax]
push str.IcmpCreateFile
push dword [ebp + 8]
call esi
push str.IcmpCloseHandle
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call esi
push str.IcmpSendEcho
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
call esi
cmp dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], eax
je 0x405af6
cmp dword [ebp - 0x10], ebx
je 0x405af6
cmp eax, ebx
je 0x405af6
call dword [ebp - 0xc]
push 0x1388
push 0x1c
mov esi, eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
mov byte [ebp - 8], 0x1e
mov byte [ebp - 7], bl
mov byte [ebp - 6], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 5], bl
push dword [edi]
push esi
call dword [ebp - 0x14]
push esi
call dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4068ae
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4068d7
mov al, byte [esi + 1]
inc esi
test al, al
je 0x4068cf
cmp al, 0x22
jne 0x4068c3
cmp byte [esi], 0x22
jne 0x4068e1
inc esi
jmp 0x4068e1
cmp al, 0x20
jle 0x4068e1
inc esi
cmp byte [esi], 0x20
jg 0x4068db
mov al, byte [esi]
test al, al
je 0x4068eb
cmp al, 0x20
jle 0x4068d4
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040695b
push 0x409004
push section..data
call fcn.00406941
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x40691b
movzx eax, word [ebp - 0x14]
jmp 0x40691e
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00406973
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x10aae008], 0x8088405
inc edx
mov dword [ebx + 0x10aae008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf44
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf75
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf5d
add dl, dl
jne 0x41cf80
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfd1
xor eax, eax
add dl, dl
jne 0x41cf8d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d06e
add dl, dl
jne 0x41cf9c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfb2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfbd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cfc7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf6c
mov eax, 1
add dl, dl
jne 0x41cfdf
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfea
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfd6
sub eax, ebx
mov ebx, 1
jne 0x41d01d
mov ecx, 1
add dl, dl
jne 0x41d003
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d00e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cffa
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d034
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d03f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d02b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d08f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf6c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f0a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x10a9258e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ef
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
jmp 0x41f10e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f180
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f169
test esi, esi
jbe 0x41f180
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f15b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f180
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f138
jmp 0x41f180
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f180
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10a92595
ret
Function at 0x4202d8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x10a938f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420313
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x42032c
lea eax, [ebp - 0x10]
mov edx, dword [0x10ab054c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x42033f
lea eax, [ebp - 0x10]
mov edx, dword [0x10ab054c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42034b
adc edx, 0
mov edx, dword [edx*4 + 0x10aaf378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4204c5
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4204b8
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4204b8
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420456
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420456
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420456
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420456
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4204b8
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4204b8
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x4204dd
inc ebx
cmp ebx, 0x19
jne 0x420305
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10a938fa
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x40717f
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push 0
push 0x80
push 3
push 0
xor ebx, ebx
inc ebx
push ebx
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4071af
xor al, al
jmp 0x4071fd
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x4071cf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4071ab
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x4071f4
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x4072c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e4604
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x147c
call fcn.0057c4e0
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
cmp ebx, esi
je 0x40744a
cmp word [ebx], si
je 0x40744a
push 0x44
pop edi
push edi
lea eax, [esp + 0x44]
push esi
push eax
call fcn.00576e90
add esp, 0xc
push 0x10
lea eax, [esp + 0x18]
push esi
push eax
call fcn.00576e90
add esp, 0xc
push 5
pop eax
mov dword [esp + 0x40], edi
mov word [esp + 0x70], ax
xor edi, edi
lea eax, [esp + 0x24]
push ebx
inc edi
push eax
mov dword [esp + 0x74], edi
call fcn.00406ab9
mov dword [esp + 0x149c], esi
push dword [ebp + 8]
lea eax, [esp + 0x94]
push ebx
push str.__s___s
push 0x200
push eax
call fcn.0041ee90
add esp, 0x1c
cmp dword [esp + 0x38], esi
jne 0x40736d
xor eax, eax
jmp 0x40737c
cmp dword [esp + 0x3c], 8
mov eax, dword [esp + 0x28]
jae 0x40737c
lea eax, [esp + 0x28]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x44]
push ecx
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [esp + 0xa8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, esi
je 0x4073d7
mov eax, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, esi
je 0x4073b4
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
jmp 0x4073ba
push dword [esp + 0x14]
call ebx
push dword [esp + 0x18]
call ebx
or dword [esp + 0x1494], 0xffffffff
push esi
push edi
lea ecx, [esp + 0x2c]
call fcn.00403955
mov eax, edi
jmp 0x40744c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push esi
lea ecx, [esp + 0x14]
push ecx
push 0x400
push eax
push esi
push 0x1300
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push ebx
push dword [esp + 0x10]
push dword [esp + 0x18]
push str.ERROR_EXECUTE_PROCESS
call fcn.00403080
call fcn.00405670
push eax
push str._s_code_d__msg_s__runAppPath_s_
lea eax, [esp + 0x49c]
push 0x800
push eax
call fcn.0041ee90
add esp, 0x1c
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
or dword [esp + 0x1494], 0xffffffff
push esi
push edi
lea ecx, [esp + 0x2c]
call fcn.00403955
xor eax, eax
mov ecx, dword [esp + 0x148c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408d52
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, 0x62bb0c
push esi
push dword [ebp + 0xc]
mov edi, eax
lea eax, [ebp - 4]
push eax
call fcn.00574520
add esp, 0xc
test eax, eax
je 0x408d9f
test edi, edi
je 0x408d9b
push esi
push dword [ebp + 0xc]
push str._WFOPEN_S_ERROR
push ecx
call fcn.00403080
add esp, 4
call fcn.00405670
push eax
push 2
pop esi
call fcn.00420400
add esp, 0xc
xor al, al
jmp 0x408df3
push 2
xor esi, esi
push esi
push dword [ebp - 4]
call fcn.005774ca
add esp, 0xc
push dword [ebp - 4]
call fcn.005776ec
pop ecx
push esi
push esi
push dword [ebp - 4]
mov edi, eax
call fcn.005774ca
mov ecx, dword [ebp + 8]
add esp, 0xc
mov eax, edi
call fcn.00408f3f
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
push 1
push edi
push esi
call fcn.00408f17
push eax
call fcn.005779fa
push dword [ebp - 4]
call fcn.00574721
add esp, 0x14
mov al, 1
pop edi
pop esi
leave
ret
Function at 0x409866
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
push esi
push edi
push 4
xor eax, eax
pop edi
push 2
push eax
push eax
push dword [ebx + 0x20c]
mov esi, 0xffff
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.00577d2f
push dword [ebx + 0x20c]
call fcn.005780ca
add esp, 0x14
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
test edx, edx
ja 0x4098db
jb 0x4098b7
cmp eax, esi
jae 0x4098db
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
test edx, edx
jb 0x4099c8
ja 0x4098db
cmp eax, 4
jbe 0x4099c8
jmp 0x4098db
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 4]
add edi, 0x400
adc esi, 0
cmp esi, dword [ebp - 0xc]
jb 0x409901
ja 0x4098f3
cmp edi, dword [ebp - 0x10]
jbe 0x409901
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
jmp 0x409907
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
mov esi, eax
sub esi, dword [ebp - 8]
mov ecx, eax
mov edi, edx
sbb edi, dword [ebp - 4]
sub ecx, esi
mov eax, edx
sbb eax, edi
test eax, eax
jb 0x409934
ja 0x409927
cmp ecx, 0x404
jbe 0x409934
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0x404
jmp 0x40993a
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
push 0
push edi
push esi
push dword [ebx + 0x20c]
call fcn.00577d2f
push dword [ebx + 0x20c]
lea eax, [ebp - 0x430]
push 1
push dword [ebp - 0x20]
push eax
call fcn.005779fa
add esp, 0x20
cmp eax, 1
jne 0x4099c8
mov eax, dword [ebp - 0x20]
add eax, 0xfffffffd
jmp 0x409999
dec eax
cmp byte [ebp + eax - 0x430], 0x50
jne 0x409999
cmp byte [ebp + eax - 0x42f], 0x4b
jne 0x409999
cmp byte [ebp + eax - 0x42e], 5
jne 0x409999
cmp byte [ebp + eax - 0x42d], 6
je 0x40999f
test eax, eax
jg 0x409970
jmp 0x4099ae
cdq
add eax, esi
adc edx, edi
mov dword [ebp - 0x18], eax
or eax, edx
mov dword [ebp - 0x14], edx
jne 0x4099c8
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
jb 0x4098d2
ja 0x4099c8
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 8], eax
jb 0x4098d2
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
test ecx, ecx
je 0x4099da
mov edx, dword [ebp - 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], edx
or eax, dword [ebp - 0x14]
je 0x4099e4
xor eax, eax
inc eax
jmp 0x4099e6
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x4099ec
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, eax
mov eax, dword [ebx + 0x20c]
push esi
push edi
test eax, eax
jne 0x409a08
xor eax, eax
jmp 0x409b78
push 2
push 0xffffffffffffffff
push 0xffffffffffffffea
push eax
call fcn.00577d2f
push dword [ebx + 0x20c]
call fcn.005780ca
add esp, 0x14
push dword [ebx + 0x20c]
mov edi, eax
push 1
lea eax, [ebp - 0x20]
mov esi, edx
push 0x16
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
call fcn.005779fa
add esp, 0x10
cmp dword [ebp - 0x20], 0x6054b50
je 0x409a90
lea eax, [ebp - 8]
push eax
call fcn.00409866
test eax, eax
je 0x409a01
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
push 0
push esi
push edi
push dword [ebx + 0x20c]
call fcn.00577d2f
push dword [ebx + 0x20c]
lea eax, [ebp - 0x20]
push 1
push 0x16
push eax
call fcn.005779fa
add esp, 0x20
cmp dword [ebp - 0x20], 0x6054b50
jne 0x409a01
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
add ecx, eax
xor eax, eax
mov edx, edi
sub edx, ecx
mov ecx, esi
sbb ecx, eax
movzx eax, word [ebp - 0x18]
mov dword [ebx + 0x218], eax
xor eax, eax
sub edi, dword [ebp - 0x14]
push 0
sbb esi, eax
push esi
push edi
push dword [ebx + 0x20c]
mov dword [ebx + 0x220], edx
mov dword [ebx + 0x224], ecx
call fcn.00577d2f
movzx eax, word [ebp - 0x18]
imul eax, eax, 0x2e
add eax, dword [ebp - 0x14]
push eax
call fcn.0057365e
add esp, 0x14
mov dword [ebx + 0x210], eax
test eax, eax
je 0x409a01
push dword [ebx + 0x20c]
push 1
push dword [ebp - 0x14]
push eax
call fcn.005779fa
mov eax, dword [ebx + 0x210]
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebx + 0x214], ecx
xor edx, edx
add esp, 0x10
xor ecx, ecx
cmp dx, word [ebp - 0x18]
jae 0x409b4c
mov edx, dword [ebx + 0x214]
mov dword [edx + ecx*4], eax
cmp dword [eax], 0x2014b50
jne 0x409b4c
movzx esi, word [eax + 0x1e]
movzx edx, word [eax + 0x20]
add edx, esi
movzx esi, word [eax + 0x1c]
add esi, eax
lea eax, [esi + edx + 0x2e]
movzx edx, word [ebp - 0x18]
inc ecx
cmp ecx, edx
jl 0x409b1e
movzx eax, word [ebp - 0x18]
cmp ecx, eax
je 0x409b75
mov eax, dword [ebx + 0x210]
test eax, eax
je 0x409a01
push eax
call fcn.0057403d
and dword [ebx + 0x210], 0
pop ecx
jmp 0x409a01
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret