joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420294
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 0x6338af
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 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x65054c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x65054c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x64f378]
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 0x420481
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 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
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 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
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 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
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 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
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 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
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 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6338b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x402280
Capabilities:
Copy file

Disassembly:
mov eax, dword [0x4184ac]
mov ecx, dword [esp + 4]
sub esp, 0x104
push esi
push edi
push str.AVI_Files__.avi_
push eax
push ecx
call fcn.00401000
mov edx, dword [0x4184ac]
push edx
call sub.comdlg32.dll_GetSaveFileNameA
test eax, eax
je 0x4023c4
mov eax, dword [0x4184ac]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 8]
mov ecx, dword [eax + 0x1c]
push ecx
push edx
call edi
mov eax, dword [0x4184ac]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x402362
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 8]
push ecx
call esi
mov cl, byte [esp + eax + 7]
dec eax
cmp cl, 0x5c
je 0x402302
cmp cl, 0x2e
je 0x402302
test eax, eax
jl 0x402302
mov cl, byte [esp + eax + 7]
dec eax
cmp cl, 0x5c
jne 0x4022ef
cmp byte [esp + eax + 8], 0x5c
je 0x40230d
test eax, eax
jne 0x402314
lea edx, [esp + 8]
push edx
call esi
lea eax, [esp + eax + 8]
push 0x4164dc
push eax
call edi
cmp byte [0x417db0], 2
jge 0x402344
lea ecx, [esp + 8]
push 0
push ecx
push 0x418320
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
add esp, 0x104
ret
mov edx, dword [esp + 0x114]
lea eax, [esp + 8]
push edx
push eax
call fcn.004034c0
add esp, 8
pop edi
pop esi
add esp, 0x104
ret
cmp eax, 2
jne 0x4023c4
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 8]
push ecx
call esi
mov cl, byte [esp + eax + 7]
dec eax
cmp cl, 0x5c
je 0x402391
cmp cl, 0x2e
je 0x402391
test eax, eax
jl 0x402391
mov cl, byte [esp + eax + 7]
dec eax
cmp cl, 0x5c
jne 0x40237e
cmp byte [esp + eax + 8], 0x5c
je 0x40239c
test eax, eax
jne 0x4023a3
lea edx, [esp + 8]
push edx
call esi
lea eax, [esp + eax + 8]
push 0x4164d4
push eax
call edi
mov edx, dword [esp + 0x114]
lea ecx, [esp + 8]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
add esp, 0x104
ret
Function at 0x402b50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
mov eax, dword [str.english]
mov ecx, dword [0x41652c]
lea edx, [esp + 4]
mov byte [esp + 3], 0
push edx
push 0x20019
push 0
push str.Software_vp_eye
push 0x80000001
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402bbc
lea eax, [esp + 8]
lea ecx, [esp + 3]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
lea edx, [esp + 0x18]
push 0
push edx
push eax
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 3], 1
je case.0x402bee.11
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
and eax, 0xffff
mov edx, eax
and edx, 0x3ff
lea ecx, [edx - 4]
cmp ecx, 0xe
ja case.0x402bee.11
xor edx, edx
mov dl, byte [ecx + 0x402ce0]
jmp dword [edx*4 + 0x402cc0]
mov byte [0x416030], 3
mov dword [0x418428], 0x4160ac
add esp, 0x14
ret
mov byte [0x416030], 5
mov dword [0x418428], 0x4160d4
add esp, 0x14
ret
mov byte [0x416030], 4
mov dword [0x418428], 0x4160fc
add esp, 0x14
ret
and eax, 0xfffffc00
cmp eax, 0x400
jne 0x402c55
mov byte [0x416030], 1
mov dword [0x418428], 0x41605c
add esp, 0x14
ret
mov byte [0x416030], 2
mov dword [0x418428], 0x416084
add esp, 0x14
ret
mov byte [0x416030], 6
mov dword [0x418428], 0x41614c
add esp, 0x14
ret
mov byte [0x416030], 7
mov dword [0x418428], 0x416124
add esp, 0x14
ret
mov byte [0x416030], 8
mov dword [0x418428], 0x416174
add esp, 0x14
ret
mov byte [0x416030], 0
mov dword [0x418428], 0x416034
add esp, 0x14
ret
Function at 0x402fe0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
push ebp
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40310b
lea ecx, [esp + 0x10]
push edi
push ecx
lea edx, [esp + 0x1c]
push 4
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov cl, byte [esp + 0x14]
mov al, 0xff
cmp cl, al
jne 0x403104
cmp byte [esp + 0x15], 0xd8
jne 0x403104
cmp byte [esp + 0x16], al
jne 0x403104
cmp byte [esp + 0x17], 0xe0
jne 0x403104
push ebx
push esi
push edi
push edi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call sym.mmvem.exe__Init_JPEG_Decompressor_4
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
push ebp
call sym.mmvem.exe__Start_JPEG_Decompress_16
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
cmp eax, edi
jne 0x4030c9
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
lea esi, [ecx + ecx*2 + 3]
mov dword [eax + 4], ecx
and esi, 0xfffc
mov ecx, 0xf61
mov ebx, esi
mov word [eax + 0xc], 1
imul ebx, edx
mov word [eax + 0xe], 0x18
mov dword [eax + 0x14], ebx
mov dword [eax + 8], edx
mov dword [eax], 0x28
mov dword [eax + 0x10], edi
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], edi
mov dword [eax + 0x24], edi
jmp 0x4030cd
mov esi, dword [esp + 0x30]
cmp edx, edi
jle 0x4030e6
mov ebx, dword [esp + 0x38]
push ebx
call sym.mmvem.exe__Decompress_One_Line_4
mov eax, dword [esp + 0x30]
inc edi
add ebx, esi
cmp edi, eax
jl 0x4030d5
call sym.mmvem.exe__End_JPEG_Decompress_0
call sym.mmvem.exe__Close_JPEG_Decompressor_0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
pop edi
mov eax, 1
pop ebp
add esp, 0x1c
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop ebp
add esp, 0x1c
ret
Function at 0x4033f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x80c
mov eax, dword [esp + 0x810]
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4034a9
push esi
mov esi, dword [esp + 0x81c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x14]
push 4
push edx
push esi
call edi
mov eax, dword [esp + 0xc]
test eax, eax
jle 0x4034a0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 0x800
push 0
jl 0x40346b
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
push 0x800
push ecx
jmp 0x403476
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x28]
push eax
push esi
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
lea eax, [esp + 0x24]
push edx
push eax
push ebx
call ebp
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, edx
test eax, eax
mov dword [esp + 0x10], eax
jg 0x403451
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x80c
ret
Function at 0x403a40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
mov esi, dword [esp + 0x30]
xor ebx, ebx
push edi
mov edi, dword [esp + 0x30]
push ebx
push ebx
push esi
push edi
call ebp
lea eax, [esp + 0x14]
push ebx
push eax
lea ecx, [esp + 0x20]
push 4
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov cl, byte [esp + 0x18]
mov al, 0xff
cmp cl, al
jne 0x403b95
cmp byte [esp + 0x19], 0xd8
jne 0x403b95
cmp byte [esp + 0x1a], al
jne 0x403b95
cmp byte [esp + 0x1b], 0xe0
jne 0x403b95
push ebx
push ebx
push esi
push edi
call ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x28
push 0x40
call ebp
push ebx
mov esi, eax
call sym.mmvem.exe__Init_JPEG_Decompressor_4
lea edx, [esp + 0x10]
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
push edi
call sym.mmvem.exe__Start_JPEG_Decompress_16
cmp dword [esp + 0x10], ebx
je 0x403aef
call sym.mmvem.exe__End_JPEG_Decompress_0
call sym.mmvem.exe__Close_JPEG_Decompressor_0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x30]
mov word [esi + 0xc], 1
mov word [esi + 0xe], 0x18
lea edi, [eax + eax*2 + 3]
and edi, 0xfffc
mov edx, edi
imul edx, dword [esp + 0x34]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x34]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x30]
mov eax, 0xf61
push edx
push 0x40
mov dword [esi + 4], ecx
mov dword [esi], 0x28
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
call ebp
mov ebp, eax
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x403b61
sub eax, ebx
dec eax
imul eax, edi
add eax, ebp
push eax
call sym.mmvem.exe__Decompress_One_Line_4
mov eax, dword [esp + 0x34]
inc ebx
cmp ebx, eax
jl 0x403b4a
call sym.mmvem.exe__End_JPEG_Decompress_0
call sym.mmvem.exe__Close_JPEG_Decompressor_0
mov eax, dword [esp + 0x2c]
push 0
push esi
push ebp
push 4
push esi
push eax
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, eax
call esi
push ebp
call esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret
Function at 0x403ba0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x808
push ebp
push edi
mov edi, dword [esp + 0x818]
push 0
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x814]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x403bf1
pop edi
xor eax, eax
pop ebp
add esp, 0x808
ret
push esi
mov esi, dword [esp + 0x824]
test esi, esi
jle 0x403c4e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, 0x800
push 0
jle 0x403c1f
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push 0x800
push eax
jmp 0x403c2a
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push esi
push edx
push edi
call ebx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 0
push eax
lea edx, [esp + 0x20]
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esi, dword [esp + 0x10]
test esi, esi
jg 0x403c04
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, 1
pop ebp
add esp, 0x808
ret
Function at 0x404810
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push 0
push eax
mov esi, dword [edi + 0x14]
push 0x1000
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0xc]
test eax, eax
ja 0x404879
mov al, byte [esi + 0x24]
test al, al
je 0x404853
mov eax, dword [edi]
push edi
mov dword [eax + 0x14], 0x24
mov ecx, dword [edi]
call dword [ecx]
add esp, 4
mov edx, dword [edi]
push 0xffffffffffffffff
push edi
mov dword [edx + 0x14], 0x6a
mov eax, dword [edi]
call dword [eax + 4]
mov ecx, dword [esi + 0x20]
add esp, 8
mov eax, 2
mov byte [ecx], 0xff
mov edx, dword [esi + 0x20]
mov byte [edx + 1], 0xd9
mov ecx, dword [esi + 0x20]
mov dword [esi + 4], eax
mov dword [esi], ecx
mov byte [esi + 0x24], 0
pop edi
mov al, 1
pop esi
ret

Function at 0x40dfd0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push 0
push str.MAPI
push str.MAIL
call dword [sym.imp.KERNEL32.dll_GetProfileIntA]
test eax, eax
jne 0x40dfee
mov eax, 6
pop esi
ret
push str.MAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, 0x20
mov dword [0x417ffc], eax
jae 0x40e00a
mov eax, 2
pop esi
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPILogon
push eax
call esi
test eax, eax
mov dword [fcn.00418004], eax
jne 0x40e028
mov eax, 4
pop esi
ret
mov eax, dword [0x417ffc]
push str.MAPILogoff
push eax
call esi
test eax, eax
mov dword [fcn.00418070], eax
jne 0x40e045
mov eax, 4
pop esi
ret
mov ecx, dword [0x417ffc]
push str.MAPISendMail
push ecx
call esi
test eax, eax
mov dword [0x417ff8], eax
jne 0x40e063
mov eax, 4
pop esi
ret
mov edx, dword [0x417ffc]
push str.MAPISendDocuments
push edx
call esi
test eax, eax
mov dword [0x418010], eax
jne 0x40e081
mov eax, 4
pop esi
ret
mov eax, dword [0x417ffc]
push str.MAPIFindNext
push eax
call esi
test eax, eax
mov dword [0x418020], eax
jne 0x40e09e
mov eax, 4
pop esi
ret
mov ecx, dword [0x417ffc]
push str.MAPIReadMail
push ecx
call esi
test eax, eax
mov dword [0x418074], eax
jne 0x40e0bc
mov eax, 4
pop esi
ret
mov edx, dword [0x417ffc]
push str.MAPISaveMail
push edx
call esi
test eax, eax
mov dword [0x418078], eax
jne 0x40e0da
mov eax, 4
pop esi
ret
mov eax, dword [0x417ffc]
push str.MAPIDeleteMail
push eax
call esi
test eax, eax
mov dword [0x41800c], eax
jne 0x40e0f7
mov eax, 4
pop esi
ret
mov ecx, dword [0x417ffc]
push str.MAPIFreeBuffer
push ecx
call esi
test eax, eax
mov dword [0x418008], eax
jne 0x40e115
mov eax, 4
pop esi
ret
mov edx, dword [0x417ffc]
push str.MAPIAddress
push edx
call esi
test eax, eax
mov dword [0x41801c], eax
jne 0x40e133
mov eax, 4
pop esi
ret
mov eax, dword [0x417ffc]
push str.MAPIDetails
push eax
call esi
test eax, eax
mov dword [0x418018], eax
jne 0x40e150
mov eax, 4
pop esi
ret
mov ecx, dword [0x417ffc]
push str.MAPIResolveName
push ecx
call esi
mov dword [0x418014], eax
pop esi
neg eax
sbb eax, eax
and al, 0xfc
add eax, 4
ret
Function at 0x40e230
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e259
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret
Function at 0x40efe0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
cmp dword [esi + 0x28], 2
jne 0x40f000
mov al, byte [esi + 0x41]
test al, al
jne 0x40f000
mov edx, 0x18
xor ebp, ebp
jmp 0x40f00a
mov edx, 8
mov ebp, 0x100
mov eax, dword [esp + 0x30]
mov edi, dword [esi + 0x58]
push ebx
xor ebx, ebx
mov eax, dword [eax + 0x24]
mov dword [esp + 0x1c], ebx
imul eax, edi
mov dword [esp + 0x20], ebx
lea ecx, [ebp + ebp*2 + 0x1a]
mov dword [esp + 0x24], ebx
add eax, ecx
mov word [esp + 0x28], bx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x1e], al
mov dword [esp + 0x18], ebx
mov ebx, eax
sar ebx, 8
mov byte [esp + 0x1f], bl
mov ebx, eax
sar eax, 0x18
mov byte [esp + 0x21], al
mov eax, ecx
sar eax, 8
mov byte [esp + 0x27], al
mov eax, ecx
mov byte [esp + 0x26], cl
mov byte [esp + 0x1a], dl
sar eax, 0x10
sar ecx, 0x18
mov byte [esp + 0x28], al
mov eax, dword [esi + 0x54]
mov byte [esp + 0x29], cl
mov cl, byte [esi + 0x54]
shr eax, 8
mov byte [esp + 0x14], cl
mov cl, byte [esi + 0x58]
mov byte [esp + 0x15], al
mov eax, edi
mov edi, dword [esp + 0x34]
mov byte [esp + 0x16], cl
sar edx, 8
shr eax, 8
lea ecx, [esp + 0x34]
mov byte [esp + 0x1b], dl
push 0
mov byte [esp + 0x1b], al
mov eax, dword [edi + 0xc]
push ecx
sar ebx, 0x10
lea edx, [esp + 0x24]
push 0xe
mov byte [esp + 0x2c], bl
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edx
push eax
mov byte [esp + 0x30], 0x42
mov byte [esp + 0x31], 0x4d
mov byte [esp + 0x24], 0xc
mov byte [esp + 0x25], 0
mov byte [esp + 0x2c], 1
mov byte [esp + 0x2d], 0
call ebx
cmp eax, 1
je 0x40f0f5
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x1f
mov edx, dword [esi]
call dword [edx]
add esp, 4
mov edx, dword [edi + 0xc]
lea eax, [esp + 0x34]
push 0
push eax
lea ecx, [esp + 0x18]
push 0xc
push ecx
push edx
call ebx
cmp eax, 1
pop ebx
je 0x40f120
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x1f
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
test ebp, ebp
jle 0x40f131
push 3
push ebp
push edi
push esi
call fcn.0040f140
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x410f2d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x417708
cmp edx, dword [eax]
je 0x410f4f
add eax, 8
inc ecx
cmp eax, 0x417798
jl 0x410f40
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x417708]
jne 0x41107d
mov eax, dword [0x417e14]
cmp eax, 1
je 0x411057
test eax, eax
jne 0x410f80
cmp dword [0x417644], 1
je 0x411057
cmp edx, 0xfc
je 0x41107d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x410fb7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00411720
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00411d50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x410ffa
lea eax, [ebp - 0x1a4]
push eax
call fcn.00411d50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x414bb4
push edi
call fcn.0040f4d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00411720
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00411730
lea eax, [ebp - 0xa0]
push 0x414b94
push eax
call fcn.00411730
push dword [esi + 0x41770c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00411730
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00412535
add esp, 0x2c
pop edi
jmp 0x41107d
lea eax, [ebp + 8]
lea esi, [esi + 0x41770c]
push 0
push eax
push dword [esi]
call fcn.00411d50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x404844
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x318], eax
test eax, eax
je 0x4c5cb8
jmp 0x47e5d6
mov byte [eax], 0
xor eax, eax
lea esp, [esp]
lea ecx, [eax + 1]
imul ecx, ecx, 0x2514
xor cx, word [eax*2 + 0x59c730]
inc eax
mov word [ebp + eax*2 - 0x30e], cx
cmp eax, 7
jl 0x47e5df
lea edx, [ebp - 0x30c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0x314], edi
test edi, edi
je 0x4c5cb8
xor eax, eax
mov edi, edi
lea ecx, [eax + 1]
imul ecx, ecx, 0x3ebf
jmp 0x4ff1d6
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004587f8
mov esp, ebp
pop ebp
ret
xor cx, word [eax*2 + 0x59c740]
inc eax
mov word [ebp + eax*2 - 0x20e], cx
cmp eax, 8
jl 0x47e623
lea edx, [ebp - 0x20c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4c5cb1
lea eax, [ebp - 0x310]
push eax
push 0
mov dword [ebp - 0x310], 0
jmp dword [0x4ff223]