joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407210
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x42a8c8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x437050]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov eax, dword [0x43832c]
mov edx, dword [eax + 0xc]
mov ecx, 0x43832c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], 0
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
jne 0x4072be
add esi, 0xfffffff0
mov eax, esi
call fcn.00401da0
mov edi, dword [esp + 0x28]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x1c], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4072a7
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0xc
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [eax + 1]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x4072e8
mov ecx, ebx
lea eax, [esp + 0x10]
call fcn.00401d50
mov esi, dword [esp + 0x10]
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test esi, esi
jne 0x4072f9
xor eax, eax
jmp 0x407311
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407300
sub eax, edx
sar eax, 1
js 0x40735c
cmp eax, dword [esi - 8]
jg 0x40735c
mov dword [esi - 0xc], eax
mov word [esi + eax*2], 0
add esi, 0xfffffff0
mov eax, esi
call fcn.00401da0
mov edi, dword [esp + 0x28]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4072a7
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x4072a7
push 0x80070057
call fcn.00401ff0
int3
Function at 0x40b850
Capabilities:
Access peb ldr_data
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x42aab8
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x437050]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x24]
mov eax, dword [0x43832c]
mov edx, dword [eax + 0xc]
mov ecx, 0x43832c
lea ebx, [esi + 4]
call edx
add eax, 0x10
mov dword [ebx], eax
xor edi, edi
mov dword [esp + 0x1c], edi
mov eax, dword [0x43832c]
mov edx, dword [eax + 0xc]
mov ecx, 0x43832c
call edx
add eax, 0x10
mov dword [esi + 8], eax
mov byte [esp + 0x1c], 1
mov eax, dword [0x43832c]
mov edx, dword [eax + 0xc]
mov ecx, 0x43832c
call edx
add eax, 0x10
mov dword [esi + 0xc], eax
mov byte [esp + 0x1c], 2
mov eax, dword [0x43832c]
mov edx, dword [eax + 0xc]
mov ecx, 0x43832c
call edx
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [esp + 0x1c], 3
mov eax, dword [0x43832c]
mov edx, dword [eax + 0xc]
mov ecx, 0x43832c
call edx
add eax, 0x10
mov dword [esi + 0x14], eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], edi
mov byte [esi + 0x1c], 0
mov byte [esp + 0x1c], 5
mov eax, dword [0x43832c]
mov edx, dword [eax + 0xc]
mov ecx, 0x43832c
call edx
add eax, 0x10
mov dword [esi + 0x34], eax
mov byte [esp + 0x1c], 6
mov eax, dword [0x43832c]
mov edx, dword [eax + 0xc]
mov ecx, 0x43832c
lea edi, [esi + 0x38]
call edx
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x1c], 7
mov dword [esi], eax
mov eax, dword [esp + 0x2c]
call fcn.00401b40
mov eax, dword [esp + 0x28]
mov edi, ebx
call fcn.00401b40
mov eax, dword [esp + 0x30]
lea edi, [esi + 8]
call fcn.00401b40
xor edi, edi
push edi
push edi
push edi
push edi
push str.QQ_Bug_Report_Tool
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x44]
lea ebx, [esi + 0x14]
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
call fcn.0040e640
mov eax, dword [esp + 0x34]
lea edi, [esi + 0xc]
call fcn.00401b40
mov eax, dword [esp + 0x38]
lea edi, [esi + 0x10]
call fcn.00401b40
mov eax, dword [esp + 0x48]
lea edi, [esi + 0x34]
call fcn.00401b40
mov ecx, dword [ebp]
mov dword [esi + 0x3c], ecx
mov edx, dword [ebp + 4]
mov dword [esi + 0x40], edx
mov eax, dword [ebp + 8]
mov dword [esi + 0x44], eax
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x48], ecx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x28
Function at 0x40bb80
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
test eax, eax
je 0x40bc34
cmp word [eax], 0
je 0x40bc34
push edi
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40bbb6
xor eax, eax
pop edi
pop ecx
ret
push ebx
lea eax, [esp + 8]
push eax
push edi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esp + 8], 0
mov ebx, eax
jne 0x40bc27
cmp ebx, 0x500000
ja 0x40bc27
push esi
push ebx
call fcn.0041b83d
mov esi, eax
add esp, 4
test esi, esi
jne 0x40bbfa
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret
mov ecx, dword [esp + 0x14]
push 0
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40bc19
push esi
call fcn.0041b900
add esp, 4
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
pop ecx
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor eax, eax
pop edi
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x40e100
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42ba18
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x437050]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
mov eax, dword [0x437050]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x8c]
mov ebx, dword [esp + 0x88]
mov eax, dword [esp + 0x7c]
push ebp
push ebx
mov ebx, dword [esp + 0x8c]
push ebx
mov ebx, dword [esp + 0x8c]
push ebx
push edi
push esi
push edx
push ecx
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0040b850
lea ecx, [esp + 0xc]
mov dword [esp + 0x74], 0
call fcn.0040ddd0
mov bl, al
lea eax, [esp + 0xc]
call fcn.0040b9f0
mov al, bl
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0041a2d1
add esp, 0x6c
ret

Function at 0x40f380
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, eax
mov esi, ecx
lea ecx, [edi + 2]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
cmp edx, 0x40000000
jae 0x40f4b7
mov eax, dword [esp + 0x14]
add edx, edx
add edx, edx
cmp dword [eax], edx
jb 0x40f4b7
cmp edi, 2
mov ecx, ebp
jbe 0x40f43a
lea edx, [edi - 3]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
add edx, 1
push ebx
mov edi, edi
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + 0x432ac8]
mov byte [ecx], al
movzx eax, byte [esi]
movzx ebx, byte [esi + 1]
and eax, 3
shl eax, 4
shr ebx, 4
movzx eax, byte [eax + ebx + 0x432ac8]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
movzx ebx, byte [esi + 2]
add ecx, 1
and eax, 0xf
shr ebx, 6
movzx eax, byte [ebx + eax*4 + 0x432ac8]
add ecx, 1
mov byte [ecx], al
movzx eax, byte [esi + 2]
and eax, 0x3f
movzx eax, byte [eax + 0x432ac8]
add ecx, 1
mov byte [ecx], al
add ecx, 1
add esi, 3
sub edi, 3
sub edx, 1
jne 0x40f3d0
pop ebx
test edi, edi
je 0x40f4a4
movzx edx, byte [esi]
shr edx, 2
mov al, byte [edx + 0x432ac8]
mov byte [ecx], al
add ecx, 1
cmp edi, 1
jbe 0x40f484
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
and edx, 3
shl edx, 4
shr eax, 4
movzx edx, byte [edx + eax + 0x432ac8]
mov byte [ecx], dl
movzx eax, byte [esi + 1]
add ecx, 1
and eax, 0xf
movzx edx, byte [eax*4 + 0x432ac8]
mov byte [ecx], dl
jmp 0x40f49b
movzx eax, byte [esi]
and eax, 3
shl eax, 4
mov dl, byte [eax + 0x432ac8]
mov byte [ecx], dl
add ecx, 1
mov byte [ecx], 0x3d
add ecx, 1
mov byte [ecx], 0x3d
add ecx, 1
mov edx, dword [esp + 0x14]
mov eax, ecx
sub eax, ebp
pop edi
pop esi
mov dword [edx], eax
mov byte [ecx], 0
xor eax, eax
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebp
ret
Function at 0x40f900
Capabilities:
Allocate or change rwx memory

Disassembly:
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40f95a
push 0x40
call fcn.0041a249
add esp, 4
push 0
push 0x40
push 0x40
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esi + 8]
mov byte [ecx], 0xb9
mov edx, dword [esi + 8]
mov byte [edx + 5], 0xe9
mov eax, dword [esi + 8]
mov dword [eax + 1], esi
mov eax, dword [esi + 8]
mov ecx, 0x40f9a0
sub ecx, eax
sub ecx, 0xa
mov dword [eax + 6], ecx
mov edx, dword [esi + 8]
mov eax, dword [esi]
push edx
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov dword [esi + 4], eax
mov eax, esi
ret
Function at 0x40fe00
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov ebx, eax
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov edi, eax
test edi, edi
jne 0x40fe24
mov eax, 0x80004005
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebx]
mov eax, dword [edx]
push edi
mov ecx, ebx
call eax
mov ebp, dword [ebx + 4]
test ebp, ebp
je 0x40fe5b
mov esi, dword [ebp]
push 0
push 0x2710
push 0x64
push edi
add esi, 0xc
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov ecx, dword [esi]
push eax
push edi
push ebp
call ecx
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push edi
mov ecx, ebx
call eax
mov esi, dword [esp + 0x54]
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebx + 4], 0
mov ebp, eax
je 0x40feef
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x40feef
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebp, eax
jne 0x40feef
mov eax, dword [ebx + 4]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
je 0x40fec3
mov eax, esi
lea esi, [esp + 0x14]
call fcn.0040f900
mov esi, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
push 0
push esi
push 0
push edx
push eax
push pe_nt_image_headers32
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
lea esi, [esp + 0x14]
mov ebp, eax
call fcn.0040f960
mov esi, dword [esp + 0x54]
jmp 0x40ff0c
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push 0
push esi
push 0
push ecx
push edx
push pe_nt_image_headers32
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov ebp, eax
push edi
call dword [sym.imp.USER32.dll_DestroyMenu]
lea eax, [ebp - 0x64]
cmp eax, 0x26ac
ja 0x40ff73
mov ebx, dword [ebx + 4]
xor eax, eax
add ebp, 0xffffff9c
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], eax
movzx ecx, bp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], ecx
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x24
mov dword [esp + 0x3c], 1
mov edx, dword [ebx]
mov ecx, dword [edx + 0x10]
push eax
push ebx
call ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push esi
push ebp
mov ecx, ebx
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc
Function at 0x410bc0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push 0x5c
xor esi, esi
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.0041c410
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x5c]
push edx
mov dword [ebp - 0x5c], 0x67452301
mov dword [ebp - 0x58], 0xefcdab89
mov dword [ebp - 0x54], 0x98badcfe
mov dword [ebp - 0x50], 0x10325476
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 4], esi
call fcn.00410790
mov eax, dword [ebp + 8]
push eax
lea esi, [ebp - 0x5c]
call fcn.00410a60
add esp, 0x18
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4118e0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42b818
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x437050]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x437050]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
mov edi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x80], edx
mov ecx, 7
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], edx
mov word [esp + 0x38], dx
mov dword [esp + 0x18], edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], edx
mov word [esp + 0x58], dx
mov byte [esp + 0x80], 2
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, dx
jne 0x411972
sub eax, esi
sar eax, 1
mov esi, eax
call fcn.00411d60
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x14]
lea ebx, [esi + esi]
cmp edi, ebx
ja 0x4119c1
cmp dword [eax + 0x18], ebx
je 0x4119c1
push 1
call fcn.0040a550
test al, al
je 0x4119c1
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x18], 8
mov dword [eax + 0x14], edi
jb 0x4119b8
mov eax, dword [eax + 4]
jmp 0x4119bb
add eax, 4
mov word [eax + edi*2], 0
mov edi, dword [esp + 0x48]
cmp edi, esi
ja 0x4119f9
cmp dword [esp + 0x4c], esi
je 0x4119f9
push 1
mov ebx, esi
lea eax, [esp + 0x38]
call fcn.0040a550
test al, al
je 0x4119f9
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
mov dword [esp + 0x48], edi
jae 0x4119f3
lea eax, [esp + 0x38]
mov word [eax + edi*2], 0
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
jmp 0x411a10
mov edx, dword [esp + 0x14]
movzx ebx, word [edx]
mov eax, dword [esp + 0x10]
jmp dword [eax*4 + 0x411ce8]
Function at 0x414200
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x414207
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.00414210
Function at 0x414210
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x414242
lea esp, [esp]
test cl, 3
je 0x414242
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4306a0]
add ecx, 1
sub esi, 1
jne 0x414220
cmp esi, 0x20
push ebx
push edi
jb 0x41442c
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x430aa0]
xor edx, dword [ebx*4 + 0x430ea0]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4306a0]
add ecx, 4
xor edx, dword [eax*4 + 0x4312a0]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x430aa0]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x430ea0]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4306a0]
add ecx, 4
xor eax, dword [edx*4 + 0x4312a0]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x430aa0]
xor edx, dword [ebx*4 + 0x430ea0]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4306a0]
xor edx, dword [eax*4 + 0x4312a0]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x430aa0]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x430ea0]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4306a0]
xor eax, dword [edx*4 + 0x4312a0]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x430aa0]
xor edx, dword [ebx*4 + 0x430ea0]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4306a0]
xor edx, dword [eax*4 + 0x4312a0]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x430aa0]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x430ea0]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4306a0]
and edx, 0xff
xor eax, dword [edx*4 + 0x4312a0]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x430aa0]
xor edx, dword [ebx*4 + 0x430ea0]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4306a0]
add ecx, 4
xor edx, dword [eax*4 + 0x4312a0]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x430aa0]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x430ea0]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x4306a0]
and edx, 0xff
xor eax, dword [edx*4 + 0x4312a0]
sub edi, 1
jne 0x414252
cmp esi, 4
jb 0x414479
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x430aa0]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x430ea0]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4306a0]
and eax, 0xff
xor edi, dword [eax*4 + 0x4312a0]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x414436
test esi, esi
pop edi
pop ebx
je 0x41449d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4306a0]
add ecx, 1
sub esi, 1
jne 0x414480
not eax
pop esi
ret
Function at 0x41a0ca
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x437050]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0041a009
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0041c410
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x41a119
cmp dword [ebp - 0x1c], 5
jb 0x41a131
jmp 0x41a12d
cmp dword [ebp - 0x10], 1
jne 0x41a131
cmp dword [ebp - 0x1c], 4
ja 0x41a12d
jne 0x41a131
cmp dword [ebp - 0x18], 0
jbe 0x41a131
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42c428
call fcn.00419e9f
test eax, eax
jge 0x41a152
mov byte [0x438f9c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041a2d1
add ebp, 0x78
leave
ret

Function at 0x41a2d1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x437050]
jne 0x41a2db
repz ret
jmp fcn.0041cf64
Function at 0x41aab2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x41aaef
cmp dword [ebp + 0x14], edi
je 0x41aaef
cmp ecx, edi
jne 0x41aaf6
call fcn.0041d410
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0041a9a5
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x41ab0a
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x41ab2b
cmp ebx, 0xffffffff
je 0x41ab1a
push ebx
push edi
push ecx
call fcn.0041c410
add esp, 0xc
cmp esi, edi
je 0x41aad7
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x41aad7
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x41ab47
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x41ab4e
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x41ac3f
test word [esi + 0xc], 0x10c
je 0x41aba2
mov eax, dword [esi + 4]
test eax, eax
je 0x41aba2
jl 0x41aca0
cmp ebx, eax
mov edi, ebx
jb 0x41ab73
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x41ac47
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041a2e0
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x41ac37
cmp ebx, dword [ebp - 0xc]
jb 0x41ac0f
cmp dword [ebp - 0xc], 0
je 0x41abcc
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x41abc1
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x41abc8
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x41abd7
mov eax, SysReAllocString
cmp ebx, eax
ja 0x41abd7
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x41ac73
push eax
push dword [ebp - 8]
push esi
call fcn.00420265
pop ecx
push eax
call fcn.00420168
add esp, 0xc
test eax, eax
je 0x41acb2
cmp eax, 0xffffffff
je 0x41aca0
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x41ac37
push esi
call fcn.0041fa87
cmp eax, 0xffffffff
pop ecx
je 0x41aca4
cmp dword [ebp - 4], 0
je 0x41ac73
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x41ab56
mov eax, dword [ebp + 0x14]
jmp 0x41aaf1
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x41ac5e
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0041c410
add esp, 0xc
call fcn.0041d410
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x41aae7
cmp dword [ebp + 0xc], 0xffffffff
je 0x41ac89
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0041c410
add esp, 0xc
call fcn.0041d410
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x41aae7
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x41aaf1
or dword [esi + 0xc], 0x10
jmp 0x41aca4
Function at 0x42290a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x437bf8]
je 0x422925
inc edi
cmp edi, 0x17
jb 0x422916
cmp edi, 0x17
jae 0x422aa5
push ebp
push 3
call fcn.00429189
cmp eax, 1
pop ecx
je 0x422a71
push 3
call fcn.00429189
test eax, eax
pop ecx
jne 0x422959
cmp dword [0x437040], 1
je 0x422a71
cmp ebx, 0xfc
je 0x422aa4
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4387a8
push ebp
call fcn.00420fb0
add esp, 0xc
test eax, eax
je 0x42298f
push esi
push esi
push esi
push esi
push esi
call fcn.0041a8a9
add esp, 0x14
push 0x104
mov esi, 0x4387c1
push esi
push 0
mov byte [0x4388c5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4229d3
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00420fb0
add esp, 0xc
test eax, eax
je 0x4229d3
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041a8a9
add esp, 0x14
push esi
call fcn.0041c920
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x422a18
push esi
call fcn.0041c920
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x438abc
push 0x42cc84
sub ecx, eax
push ecx
push eax
call fcn.00428ca6
add esp, 0x14
test eax, eax
je 0x422a18
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041a8a9
add esp, 0x14
jmp 0x422a1a
xor esi, esi
push 0x42cc80
push ebx
push ebp
call fcn.00428be3
add esp, 0xc
test eax, eax
je 0x422a3a
push esi
push esi
push esi
push esi
push esi
call fcn.0041a8a9
add esp, 0x14
push dword [edi*8 + 0x437bfc]
push ebx
push ebp
call fcn.00428be3
add esp, 0xc
test eax, eax
je 0x422a5c
push esi
push esi
push esi
push esi
push esi
call fcn.0041a8a9
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00428fcc
add esp, 0xc
jmp 0x422aa4
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x422aa4
cmp ebp, 0xffffffff
je 0x422aa4
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x437bfc]
push dword [esi]
call fcn.0041c920
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret