joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ebf0
Capabilities:
Connect to http server
Create http request
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x75c
mov dword [ebp - 0x304], 0
mov dword [ebp - 0x344], 0
push 0x38
push 0
lea eax, [ebp - 0x340]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x344], 0x3c
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x334], ecx
mov dword [ebp - 0x330], pe_nt_image_headers32
lea edx, [ebp - 0x300]
mov dword [ebp - 0x318], edx
mov dword [ebp - 0x314], 0x200
lea eax, [ebp - 0x344]
push eax
push 0x10000000
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push 0
push 0
push 0
push 1
push str.Mozilla_4.0__compatible__UPnP_1.0__Windows_9x_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 0
je 0x40ee21
push 0
push 0
push 3
push 0
push 0
movzx edx, word [ebp - 0x32c]
push edx
lea eax, [ebp - 0x100]
push eax
mov ecx, dword [ebp - 0x308]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x348], eax
cmp dword [ebp - 0x348], 0
je 0x40ee14
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x300]
push edx
push str.POST
mov eax, dword [ebp - 0x348]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0
je 0x40ee07
push 0xa0000000
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x34c]
push edx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov dword [ebp - 0x350], str.Content_Type:_text_xml__charset_utf_8__r_nConnection:_Close_r_nCache_Control:_no_cache_r_nPragma:_no_cache_r_n
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x350]
push eax
mov ecx, dword [ebp - 0x34c]
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x40edfa
mov dword [ebp - 0x354], 0
mov edx, 1
test edx, edx
je 0x40edef
lea eax, [ebp - 0x75c]
push eax
push 0x400
lea ecx, [ebp - 0x758]
push ecx
mov edx, dword [ebp - 0x34c]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40ed91
cmp dword [ebp - 0x75c], 0
jne 0x40ed93
jmp 0x40edef
mov eax, dword [ebp - 0x354]
add eax, dword [ebp - 0x75c]
push eax
mov ecx, dword [ebp - 0x304]
push ecx
call fcn.0040a6e0
add esp, 8
mov dword [ebp - 0x304], eax
mov edx, dword [ebp - 0x75c]
push edx
lea eax, [ebp - 0x758]
push eax
mov ecx, dword [ebp - 0x304]
add ecx, dword [ebp - 0x354]
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x354]
add edx, dword [ebp - 0x75c]
mov dword [ebp - 0x354], edx
jmp 0x40ed57
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x354]
mov dword [eax], ecx
mov edx, dword [ebp - 0x34c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x348]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x308]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x304]
mov esp, ebp
pop ebp
ret
Function at 0x40ee70
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 1
push accept
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x40eeb8
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40eec0
Capabilities:
Get file size
Read file via mapping
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov byte [ebp - 0x11], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 0
push accept
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40f01a
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40f010
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40f006
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jbe 0x40effc
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0040cef0
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40effc
mov edx, dword [ebp - 8]
sub edx, 0x100
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x18], edx
jne 0x40effc
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x100
push ecx
push 0x10
mov edx, dword [ebp - 0x10]
add edx, 8
push edx
call fcn.0040c890
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40effc
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0040abe0
add esp, 0xc
push 0x10
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 8
push ecx
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
je 0x40effc
mov edx, dword [ebp - 4]
push edx
call fcn.0040a8b0
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x40f074
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40f068
mov byte [ebp - 0x11], 1
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push eax
call fcn.0040a8b0
add esp, 4
mov al, byte [ebp - 0x11]
mov esp, ebp
pop ebp
ret
Function at 0x40f080
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push 0x44
push 0
lea eax, [ebp - 0x60]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x14]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
mov edx, 5
mov word [ebp - 0x30], dx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x60]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
jne 0x40f0f1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x40f128
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x412c4c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x64], 0x20
jle 0x40f126
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x40f128
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40f130
Capabilities:
Create http request
Get http content length
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 5], 0
push 0
push 0
push 0
push 1
push 0x412c58
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40f1c8
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40f1be
mov dword [ebp - 0x14], 4
push 0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x10]
push eax
push 0x20000005
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 0x10], 0x1388
jbe 0x40f1b4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
cmp eax, dword [edx]
je 0x40f1b4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x40f7c5
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
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 0x40f7f6
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x40f7fd
cmp ebx, dword [ebp + 8]
jae 0x40f7fd
xor eax, eax
jmp 0x40f9e3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40f80e
xor eax, eax
inc eax
jmp 0x40f9e2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40f820
cmp ecx, edx
jae 0x40f884
cmp dword [eax + 4], 0
je 0x40f829
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40f815
cmp dword [ebp + 8], 0
je 0x40f843
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40f884
cmp eax, esi
jae 0x40f884
mov ecx, dword [0x41b1e8]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0x40f865
cmp dword [eax*4 + 0x41b1f0], esi
je 0x40f88b
inc eax
cmp eax, ecx
jl 0x40f857
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
jl 0x40f8fb
mov eax, dword [ebp + 8]
jmp 0x40f8fd
xor eax, eax
jmp 0x40f9e2
test eax, eax
jle 0x40f806
xor edx, edx
mov ebx, 0x41b230
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0x40f806
cmp dword [eax*4 + 0x41b1f0], esi
je 0x40f8da
lea eax, [ecx - 1]
test eax, eax
jl 0x40f8c7
cmp dword [eax*4 + 0x41b1f0], esi
je 0x40f8c3
dec eax
jns 0x40f8b7
test eax, eax
jge 0x40f8d8
cmp ecx, 0x10
jge 0x40f8d3
inc ecx
mov dword [0x41b1e8], ecx
lea eax, [ecx - 1]
jmp 0x40f8da
je 0x40f8f2
xor edx, edx
test eax, eax
jl 0x40f8f2
lea ecx, [edx*4 + 0x41b1f0]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0x40f8e0
xor eax, eax
xchg dword [ebx], eax
jmp 0x40f806
xor eax, eax
test eax, eax
je 0x40f9e0
cmp dword [ebp - 8], 0x1000000
jne 0x40f9e0
test byte [ebp - 0xc], 0xcc
je 0x40f972
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40f9e0
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40f9e0
cmp word [eax + 0x18], 0x10b
jne 0x40f9e0
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40f9e0
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40f972
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40f972
test byte [ecx + 0x27], 0x80
jne 0x40f884
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x41b230
xchg dword [edx], ecx
test ecx, ecx
jne 0x40f9e2
mov ecx, dword [0x41b1e8]
test ecx, ecx
mov edx, ecx
jle 0x40f9a1
lea eax, [ecx*4 + 0x41b1ec]
cmp dword [eax], esi
je 0x40f9a1
dec edx
sub eax, 4
test edx, edx
jg 0x40f995
test edx, edx
jne 0x40f9d2
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40f9ae
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40f9c6
lea eax, [edx*4 + 0x41b1f0]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0x40f9b4
cmp ecx, 0x10
jge 0x40f9d2
inc ecx
mov dword [0x41b1e8], ecx
xor eax, eax
mov ecx, 0x41b230
xchg dword [ecx], eax
jmp 0x40f806
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x8ccbb0
Capabilities:
Encode data using xor

Disassembly:
push 0x8cc92e
mov edi, dword [esp]
add esp, 4
and edx, eax
call fcn.008ccbef
add eax, 1
and eax, eax
add eax, 0x3e79567d
xor dword [ecx], edi
add eax, edx
inc ecx
inc eax
push edx
pop eax
cmp ecx, esi
jne fcn.008ccbb0
dec edx
add edx, 1
ret
Function at 0x4010a0
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x4246b0
push 0x67
push edi
call esi
push 0x64
push 0x4245e8
push 0x6d
push edi
call esi
mov eax, edi
call fcn.00401290
mov eax, dword [ebp + 0x10]
mov edx, 0x4251b8
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4010f0
call fcn.00403820
mov dword [0x4230b0], eax
mov ecx, 0x41dc20
mov eax, 0x4251b8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401139
test dx, dx
je 0x401135
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401139
add eax, 4
add ecx, 4
test dx, dx
jne 0x401113
xor eax, eax
jmp 0x40113e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401158
call fcn.00401b20
test eax, eax
je 0x401158
call fcn.00403be0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
call fcn.00401320
add esp, 4
test eax, eax
jne 0x40117b
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.0040ac62
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.0040f550
mov eax, dword [0x424e00]
add esp, 0xc
test eax, eax
jbe 0x4011ce
cmp word [0x424e04], 0
jbe 0x4011ce
push eax
mov esi, 0x42364c
call fcn.004037a0
mov cx, word [0x424e04]
add esp, 4
mov word [0x42365c], cx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov eax, 0x10624dd3
mul edx
mov eax, edx
xor edx, edx
shr eax, 6
mov ecx, 0x3e8
div ecx
push edx
push 0x41dc28
mov edx, 0x4253c8
call fcn.00402fc0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x3e8
call edi
call fcn.00402c90
lea esi, [esp + 8]
call fcn.00402fe0
push 0x41dc40
mov edx, esi
push 0x104
push edx
call fcn.0040aca1
add esp, 0xc
push 0x4253c8
mov eax, esi
push 0x104
push eax
call fcn.0040aca1
add esp, 0xc
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40126e
push 0x1f4
call edi
push 1
push 0
push 0x41ddcc
mov edx, esi
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.004029b0
call fcn.00403be0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4025d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x98
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
xor eax, eax
push esi
push edi
xor ebx, ebx
push 0x68
mov dword [esp + 0x82], eax
mov dword [esp + 0x86], eax
mov dword [esp + 0x8a], eax
mov dword [esp + 0x8e], eax
mov dword [esp + 0x92], eax
mov dword [esp + 0x96], eax
mov dword [esp + 0x9a], eax
mov word [esp + 0x9e], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov edi, ecx
mov esi, edx
mov word [esp + 0x88], bx
call fcn.0040f550
push esi
lea ecx, [esp + 0x20]
push 0x20
push ecx
call fcn.0040ad4a
mov edx, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc0]
lea esi, [esp + 0x94]
mov dword [esp + 0x8c], edx
call fcn.00403720
mov eax, esi
push eax
lea ecx, [esp + 0x6e]
push 0x10
push ecx
call fcn.0040ad4a
add esp, 0x24
xor eax, eax
nop
mov dl, byte [esp + eax + 0x10]
not dl
mov byte [esp + eax + 0x10], dl
add eax, 1
cmp eax, 0x68
jb 0x402680
push 0x41dcc4
push edi
call fcn.0040aedb
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4026dd
push esi
push 0x68
lea eax, [esp + 0x18]
push 1
push eax
call fcn.0040b7e3
push esi
mov edi, 1
call fcn.0040b64d
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0040ac62
add esp, 0x98
ret
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040ac62
add esp, 0x98
ret

Function at 0x402700
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push ebx
mov edi, eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402733
mov eax, ebx
call fcn.00403920
cmp eax, edi
jne 0x402733
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0x200000
call fcn.0040b29f
mov ebp, eax
mov eax, dword [esp + 0x28]
add esp, 4
push ebp
push eax
lea edx, [esp + 0x1c]
mov ecx, edi
mov dword [esp + 0x1c], 0x200000
call fcn.00405f50
add esp, 8
test eax, eax
je 0x4027fe
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0040ad1b
add esp, 4
call fcn.0040ad28
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul qword [0x41ffb0]
fmul qword [0x41ffd0]
fadd qword [0x41ffc8]
call fcn.00417860
mov esi, dword [esp + 0x14]
lea ebx, [esi + ebp]
mov edi, eax
call fcn.00403b50
add edi, esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
call fcn.0040abf0
mov esi, eax
cmp esi, 0xffffffff
je 0x4027fc
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [esp + 0x18]
cmp eax, edi
jne 0x4027db
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
jne 0x4027fc
push ebp
mov esi, ebx
call fcn.0040b870
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor esi, esi
push ebp
call fcn.0040b870
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x402d90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x434
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x430], eax
mov eax, dword [esp + 0x438]
push ebp
push esi
push edi
push eax
mov dword [esp + 0x14], ecx
call fcn.0040a310
add esp, 4
test eax, eax
mov dword [esp + 0xc], eax
jne 0x402fa6
push 0x206
push eax
lea ecx, [esp + 0x32]
push ecx
mov word [esp + 0x34], ax
call fcn.0040f550
add esp, 0xc
push 0x206
lea edx, [esp + 0x236]
push 0
push edx
mov word [esp + 0x23c], 0
call fcn.0040f550
add esp, 0xc
lea esi, [esp + 0x28]
call fcn.00402fe0
push 0x41dc40
mov eax, esi
push 0x104
push eax
call fcn.0040aca1
add esp, 0xc
xor eax, eax
mov byte [esp + 0x14], 0
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov word [esp + 0x25], ax
mov byte [esp + 0x27], al
mov ebp, 0x424788
cmp word [ebp], 0
je 0x402f26
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x234]
push 0x104
push edx
call fcn.0040ad4a
add esp, 0xc
push ebp
lea eax, [esp + 0x234]
push 0x104
push eax
call fcn.0040aca1
lea ecx, [esp + 0x23c]
add esp, 0xc
push ecx
lea edi, [esp + 0x18]
call fcn.00405540
add esp, 4
test eax, eax
je 0x402f26
mov eax, 0x14
lea ecx, [ebp + 0x104]
mov edx, edi
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x402ebf
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x402ea7
test eax, eax
je 0x402f1c
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x402f0e
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x402f1c
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x402f0e
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x402f1c
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x402f0e
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x402f1c
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x402f1c
test esi, esi
mov eax, 1
jg 0x402f1e
or eax, 0xffffffff
jmp 0x402f1e
xor eax, eax
test eax, eax
jne 0x402f26
mov word [ebp], ax
add ebp, 0x118
cmp ebp, 0x424d00
jl 0x402e43
mov edi, dword [esp + 0x444]
mov ebp, dword [esp + 0x10]
mov esi, 0x424788
cmp word [esi], 0
je 0x402f65
mov eax, dword [esi + 0x100]
push edi
push ebp
mov ecx, esi
mov dword [0x42477c], eax
call fcn.0040a520
add esp, 8
add esi, 0x118
cmp esi, 0x424d00
jl 0x402f48
push 0x4253c8
lea ecx, [esp + 0x2c]
push 0x104
push ecx
call fcn.0040aca1
add esp, 0xc
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402fa2
mov dword [esp + 0xc], 2
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040ac62
add esp, 0x434
ret