joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401530
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 8], 0xb0
jae 0x4015ce
mov eax, dword [ebp + 8]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
add ecx, 1
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x118]
push eax
call fcn.00401530
add esp, 8
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 3
div ecx
test edx, edx
jne 0x40158a
mov byte [ebp - 0x114], 0
jmp 0x4015cc
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 4
div ecx
test edx, edx
jne 0x4015ae
lea edx, [ebp - 0x104]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x4015cc
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0xd
div ecx
test edx, edx
jne 0x4015cc
mov byte [ebp - 0x112], 0x4d
mov byte [ebp - 0x111], 0
jmp 0x4015d7
mov edx, dword [ebp + 0xc]
mov dword [edx], 1
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x4040c5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0x64
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x453a20]
mov dword [ecx + 0x104], edx
mov eax, dword [ebp - 4]
mov ecx, dword [0x453a2c]
mov dword [eax + 0xfc], ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, dword [ebp - 4]
mov dword [edx + 0x11c], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x11c], 0
je 0x40413d
mov ecx, dword [ebp - 8]
add ecx, 0x7c
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x220], 0x453a34
mov eax, dword [ebp - 4]
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [eax + 0x234], ecx
jmp 0x4041e6
mov edx, dword [str.xmlst.pl]
mov dword [ebp - 0x1c], edx
mov eax, dword [0x4580b4]
mov dword [ebp - 0x18], eax
mov cl, byte [0x4580b8]
mov byte [ebp - 0x14], cl
push 0
push 0
push 4
push 0
push 0
push 1
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4041e6
push 4
push 0x1000
push 0x1f4
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4041cb
push 0
lea eax, [ebp - 8]
push eax
push 4
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 4
jne 0x4041cb
push 0
lea eax, [ebp - 8]
push eax
push 4
mov ecx, dword [ebp - 4]
add ecx, 0x900
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x8000
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x11c]
mov dword [edx + 0x108], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x453a24]
mov dword [edx + 0x100], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x453a28]
mov dword [ecx + 0xf8], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x204], 0x42f030
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040564a
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x404654
Capabilities:
Copy file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 1
push 0xd
call fcn.004042aa
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x404694
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp - 0x18], eax
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 4], 0
je 0x4046b4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov eax, dword [ebp - 8]
jmp 0x404808
mov dword [ebp - 0x484], 0
mov edx, dword [str.setting.ini]
mov dword [ebp - 0x47c], edx
mov eax, dword [0x4580c0]
mov dword [ebp - 0x478], eax
mov ecx, dword [0x4580c4]
mov dword [ebp - 0x474], ecx
mov edx, dword [str.existing]
mov dword [ebp - 0x470], edx
mov eax, dword [0x4580cc]
mov dword [ebp - 0x46c], eax
mov cl, byte [0x4580d0]
mov byte [ebp - 0x468], cl
push 0
lea edx, [ebp - 0x470]
push edx
lea eax, [ebp - 0x47c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0x80
push 4
push 0
push 1
push 4
lea ecx, [ebp - 0x470]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x404746
xor eax, eax
jmp 0x404808
cmp dword [ebp - 0x484], 0xffffffff
jne 0x404782
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push str.setini.xml
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x484], eax
cmp dword [ebp - 0x484], 0xffffffff
jne 0x404782
xor eax, eax
jmp 0x404808
push 0
lea edx, [ebp - 0x48c]
push edx
push 0x448
lea eax, [ebp - 0x464]
push eax
mov ecx, dword [ebp - 0x484]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4047df
push 2
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x488], eax
push 0
lea eax, [ebp - 0x480]
push eax
mov ecx, dword [ebp - 0x48c]
push ecx
lea edx, [ebp - 0x464]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x48c], 0x448
je 0x404746
mov ecx, dword [ebp - 0x484]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x42ba8d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4581f0
cmp edx, dword [eax]
je 0x42baaf
add eax, 8
inc ecx
cmp eax, 0x458280
jl 0x42baa0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4581f0]
jne 0x42bbdd
mov eax, dword [0x458a68]
cmp eax, 1
je 0x42bbb7
test eax, eax
jne 0x42bae0
cmp dword [0x458144], 1
je 0x42bbb7
cmp edx, 0xfc
je 0x42bbdd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42bb17
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0042c850
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0042ad90
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42bb5a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0042ad90
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42e490
push edi
call fcn.0042ca40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0042c850
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042c860
lea eax, [ebp - 0xa0]
push 0x42e470
push eax
call fcn.0042c860
push dword [esi + 0x4581f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0042c860
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042c9b4
add esp, 0x2c
pop edi
jmp 0x42bbdd
lea eax, [ebp + 8]
lea esi, [esi + 0x4581f4]
push 0
push eax
push dword [esi]
call fcn.0042ad90
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 0x401000
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4132b0]
xor eax, ebp
mov dword [ebp + 0x74], eax
xor eax, eax
mov dword [0x414ce0], eax
mov dword [0x414ce4], eax
mov dword [0x414ce8], eax
mov dword [0x414cec], eax
mov dword [0x414cf0], eax
mov dword [0x414cf4], eax
mov dword [0x414cf8], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x401060
push 0x1c2
push str.sfxhead.c
call fcn.0040242b
pop ecx
pop ecx
xor eax, eax
inc eax
cmp dword [ebp - 0x10], eax
jne 0x401080
cmp dword [ebp - 0x18], 0xa
jb 0x4010bd
cmp dword [ebp - 0x18], 0x5a
mov dword [0x414ce0], eax
jb 0x4010bd
mov dword [0x414ce4], eax
jmp 0x4010bd
cmp dword [ebp - 0x10], 2
jne 0x4010bd
cmp dword [ebp - 0x1c], 5
mov dword [0x414ce8], eax
jb 0x4010bd
mov dword [0x414cec], eax
jne 0x4010ad
cmp dword [ebp - 0x18], 2
jne 0x4010a3
mov dword [0x414cf0], eax
cmp dword [ebp - 0x18], eax
jb 0x4010bd
mov dword [0x414cf4], eax
cmp dword [ebp - 0x1c], 6
jb 0x4010bd
mov dword [0x414cf4], eax
mov dword [0x414cf8], eax
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.00407386
add ebp, 0x78
leave
ret

Function at 0x40134a
Capabilities:
Set current directory

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call fcn.00401196
pop ecx
push dword [esp + 0xc]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, eax
dec esi
neg esi
sbb esi, esi
neg esi
test edi, edi
je 0x40137e
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.004011f2
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
ret

Function at 0x40158f
Capabilities:
Query environment variable

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
ret

Function at 0x4015a2
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
dec eax
neg eax
sbb eax, eax
neg eax
ret
Function at 0x401818
Capabilities:
Hash data with crc32

Disassembly:
push esi
push 8
xor eax, eax
add ecx, ecx
pop esi
sar ecx, 1
mov edx, eax
xor edx, ecx
shr eax, 1
test dl, 1
je 0x401832
xor eax, 0xedb88320
dec esi
test esi, esi
jg 0x401820
pop esi
ret

Function at 0x401855
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 8], 0
mov eax, dword [0x41481c]
je 0x401885
mov ecx, dword [esp + 4]
push esi
movzx edx, byte [ecx]
dec dword [esp + 0xc]
movzx esi, al
xor edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x414418]
inc ecx
cmp dword [esp + 0xc], 0
jne 0x401866
pop esi
mov dword [0x41481c], eax
ret

Function at 0x401b4d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push esi
mov esi, str.sfxhead.c
jne 0x401b6b
push 0xd63
push esi
call fcn.0040242b
pop ecx
pop ecx
cmp dword [ebp + 0xc], 0
jg 0x401b7e
push 0xd64
push esi
call fcn.0040242b
pop ecx
pop ecx
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004012be
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [0x414d38]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
pop esi
jge 0x401baa
xor al, al
leave
ret
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401a6a
add esp, 0xc
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 8]
test eax, eax
je 0x401bde
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, 1
leave
ret
Function at 0x40203c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.004012be
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x54], 0x44
push esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], 0xa
mov word [ebp - 0x22], si
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x10]
pop esi
leave
ret

Function at 0x40242b
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x220]
sub esp, 0x2a0
mov eax, dword [0x4132b0]
xor eax, ebp
mov dword [ebp + 0x21c], eax
mov ecx, dword [0x414d4c]
inc dword [0x414d4c]
test ecx, ecx
mov eax, dword [ebp + 0x228]
push ebx
push esi
push edi
je 0x402467
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp + 0x22c]
mov ecx, 0x7d4
push eax
call fcn.004025d3
push eax
lea eax, [ebp - 0x7c]
push 0x191
push eax
call fcn.004071ab
add esp, 0x14
test eax, eax
jge 0x40249d
push 0xd8d
push str.sfxhead.c
call fcn.0040242b
push 0x30
mov ecx, 0x7d0
call fcn.004025d3
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [0x414d38]
call ebx
push 0
mov esi, 0x104
lea eax, [ebp + 0x118]
push esi
push eax
call fcn.00401b4d
lea eax, [ebp + 0x118]
push eax
call fcn.00407880
add esp, 0x10
test eax, eax
je 0x4024f8
push 0x410318
lea eax, [ebp + 0x118]
push esi
push eax
call fcn.00407970
add esp, 0xc
mov edi, str.WZSFX32.RPT
push edi
lea eax, [ebp + 0x118]
push esi
push eax
call fcn.00407970
add esp, 0xc
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40245f
push 0x410378
push 0x191
lea eax, [ebp - 0x7c]
push eax
call fcn.00407207
test eax, eax
jge 0x40255b
push 0xdaa
push str.sfxhead.c
call fcn.0040242b
push 0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00407880
pop ecx
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.00401be2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov ecx, 0x7d1
call fcn.004025d3
push eax
lea eax, [ebp - 0x7c]
push 0x191
push eax
call fcn.004071ab
add esp, 0x10
test eax, eax
jge 0x4025b5
push 0xdb3
push str.sfxhead.c
call fcn.0040242b
push 0x30
mov ecx, 0x7d0
call fcn.004025d3
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [0x414d38]
call ebx
jmp 0x40245f
Function at 0x402876
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4132b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 8
lea eax, [ebp - 0xc]
push eax
call fcn.0040716b
test eax, eax
jge 0x4028a8
push 0x508
push str.sfxhead.c
call fcn.0040242b
lea eax, [ebp - 0xc]
push eax
call fcn.00407880
cmp eax, 8
pop ecx
jae 0x402948
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x20
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4028ea
or ax, 0xffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407386
leave
ret 4
push 7
lea eax, [ebp - 0x2c]
push str.PKBACK
push eax
call fcn.00401293
add esp, 0xc
test eax, eax
jne 0x4028d7
mov al, byte [ebp - 0x2c]
cmp al, bl
lea ecx, [ebp - 0x2c]
je 0x4028d7
cmp al, 0x2e
je 0x40291a
cmp al, 0x20
je 0x40291a
inc ecx
mov al, byte [ecx]
cmp al, bl
jne 0x40290b
cmp byte [ecx], bl
je 0x4028d7
mov al, byte [ecx]
cmp al, 0x30
jb 0x402928
cmp al, 0x39
jbe 0x40292b
inc ecx
jmp 0x40291e
xor eax, eax
jmp 0x402940
movzx edx, dl
imul eax, eax, 0xa
sub edx, 0x30
cmp edx, 9
ja 0x4028db
add eax, edx
inc ecx
mov dl, byte [ecx]
cmp dl, bl
jne 0x40292f
jmp 0x4028db
push 0x509
push dword [0x413014]
jmp 0x4028a3
Function at 0x403db2
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x58c]
sub esp, 0x60c
mov eax, dword [0x4132b0]
xor eax, ebp
mov dword [ebp + 0x588], eax
mov eax, dword [ebp + 0x594]
push ebx
mov ebx, dword [ebp + 0x59c]
push esi
push edi
mov edi, dword [ebp + 0x598]
push eax
mov dword [ebp - 0x44], eax
mov esi, 0x2e3
push esi
lea eax, [ebp + 0x2a4]
push eax
call fcn.0040716b
test eax, eax
jge 0x403e0b
push 0xf85
push str.sfxhead.c
call fcn.0040242b
cmp byte [edi], 0
je 0x403e46
push 0x410434
push esi
lea eax, [ebp + 0x2a4]
push eax
call fcn.00407207
test eax, eax
jge 0x403e2d
push 0xf88
jmp 0x403e01
push edi
push esi
lea eax, [ebp + 0x2a4]
push eax
call fcn.00407207
test eax, eax
jge 0x403e46
push 0xf89
jmp 0x403e01
cmp ebx, 0xffffffff
jne 0x403e5f
push 1
lea eax, [ebp + 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x403f6e
mov eax, dword [0x41305c]
test eax, 0x10000
je 0x403ebc
test eax, 0x20000
je 0x403ebc
mov eax, dword [0x414d38]
and dword [ebp - 0x6c], 0
and dword [ebp - 0x68], 0
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x7c], 0x640
mov dword [ebp - 0x74], str.Install
mov dword [ebp - 0x64], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test ebx, ebx
mov eax, dword [ebp - 0x60]
je 0x403ed8
mov ecx, dword [ebp - 0x48]
mov dword [ebx], ecx
jmp 0x403ed8
lea eax, [ebp + 0x2a4]
push eax
call fcn.0040203c
xor edi, edi
cmp eax, edi
pop ecx
je 0x403f2a
cmp ebx, edi
je 0x403ed5
mov dword [ebx], eax
push 0x21
pop eax
cmp eax, 0x20
ja 0x403f6e
push dword [ebp - 0x44]
mov ecx, 0x400
push eax
call fcn.004025d3
push eax
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.004071ab
add esp, 0x14
test eax, eax
jge 0x403f0b
push 0xfe9
jmp 0x403e01
push 0
mov ecx, 0x7d0
call fcn.004025d3
push eax
lea eax, [ebp - 0x40]
push eax
push dword [0x414d38]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403f6c
push edi
push edi
lea eax, [ebp - 0x44]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push edi
mov ecx, 0x7d0
call fcn.004025d3
push eax
push dword [ebp - 0x44]
push dword [0x414d38]
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov ecx, dword [ebp + 0x588]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407386
add ebp, 0x58c
leave
ret
Function at 0x403f86
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, 0x7000
push esi
push 0
push dword [0x414280]
call fcn.004012be
mov eax, dword [0x41440a]
add esp, 0xc
test eax, eax
jg 0x403fb1
and dword [0x414ca4], 0
xor eax, eax
pop esi
ret
cmp eax, esi
ja 0x403fb7
mov esi, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll__lread]
push esi
push dword [0x414280]
push dword [0x414cb4]
call edi
cmp dword [0x414cd8], 0
mov dword [0x414ca4], eax
je 0x40401e
cmp eax, 0xffffffff
je 0x40401e
cmp eax, esi
je 0x40402a
test eax, eax
jl 0x40401e
mov ecx, dword [0x413004]
mov edx, dword [0x414cdc]
inc ecx
call fcn.00402958
mov eax, dword [0x414ca4]
test eax, eax
jne 0x404017
push esi
push dword [0x414280]
push dword [0x414cb4]
call edi
mov dword [0x414ca4], eax
cmp eax, 0xffffffff
je 0x40401e
mov esi, eax
cmp eax, esi
je 0x40402a
push 2
pop ecx
jmp fcn.00403839
mov esi, dword [0x414280]
mov ecx, dword [0x41303c]
mov dword [0x414ca0], esi
test byte [ecx + 0x28], 1
je 0x40407a
mov byte [0x414c9e], 1
test word [ecx + 0x28], 0x1300
jne 0x404087
mov edi, eax
test edi, edi
je 0x404073
dec edi
call fcn.00406ec8
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00406ee2
inc esi
test edi, edi
pop ecx
jne 0x404057
mov eax, dword [0x414ca4]
mov byte [0x414c9e], 0
mov ecx, eax
dec eax
pop edi
mov dword [0x414ca4], eax
mov eax, ecx
pop esi
ret
push 0x10c8
push dword [0x413014]
call fcn.0040242b
int3
Function at 0x406ee2
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x417700]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x414418]
mov ecx, dword [0x417708]
mov dword [0x417700], eax
movzx eax, al
add eax, dword [0x417704]
imul eax, eax, 0x8088405
inc eax
mov dword [0x417704], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x414418]
mov eax, dword [esp + 4]
mov dword [0x417708], ecx
ret

Function at 0x406f72
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4132b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [0x414cd4]
mov esi, ecx
call fcn.00406f3a
push 0xc
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0040126e
add esp, 0x10
xor esi, esi
lea edx, [ebp + esi - 0x10]
call fcn.00406ec8
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.00406ee2
inc esi
cmp esi, 0xc
pop ecx
jl 0x406fa1
cmp dword [0x414cd0], 0
movzx ax, byte [ebp - 5]
movzx eax, ax
pop esi
je 0x406fe0
movzx cx, byte [0x414403]
cmp ax, cx
je 0x406fea
or eax, 0xffffffff
jmp 0x406fec
movzx cx, byte [0x414409]
jmp 0x406fd6
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407386
leave
ret

Function at 0x407386
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4132b0]
jne 0x407390
repz ret
jmp fcn.00407f8e

Function at 0x40b99d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
invalid
Function at 0x1001c7e8
Capabilities:
Encode data using xor

Disassembly:
jns 0x1001c784
nop
push ebp
stosd dword es:[edi], eax
xchg edi, eax
mov word [eax], ds
stc
mov bl, byte [esi + 0x4030aec0]
sub byte [eax + ebx*2 - 0x5fe86575], ah
mov byte [edi], bl
scasb al, byte es:[edi]
xor byte [eax + 0x28], al
movsb byte es:[edi], byte [esi]
pop eax
mov ebx, dword [edx + 0x1f88a017]
sal cl, 0xc0
mov dh, 0xb4
inc esp
push es
mov esi, 0x986e77a6
add ecx, dword [ecx - 0x2ed281c]
outsd dx, dword [esi]
fdiv dword [ebp + 0x29c6f76d]
jno 0x1001c822
jne 0x1001c7e0
xchg ebp, eax
out dx, al
sbb dword [ebp + 0x5b0e51b4], esi
mov dword [0xaff15b85], eax
or al, 0xd
or al, 9
loop 0x1001c7e9
inc esi
xchg edx, eax
and eax, 0x4eeadf4f
fcomp dword [edx + 0x34ad7448]
mov edi, 0x5e009954
arpl word [esi + 0x2d], bx
add esi, dword [ebx]
xchg dword [ebp - 0x25], edx
dec esp
imul esi, dword [esp], 0xa
test eax, 0x2fe128c4
mov dword [ecx - 2], 0x92668e7a
jp 0x1001c778
xchg dx, ax
jp 0x1001c778
mov fs, word [esi - 0x6e]
xchg dx, ax
retf 0x61c1
adc ebp, eax
sub ecx, dword [eax]
les ebx, [ecx + 0x5d]
xor ebp, dword [ebx + 0x68e26a5b]
mov byte [ebx - 0x40bc1bee], al
arpl word [edx], bp
insb byte es:[edi], dx
or dword [edx + 0x4b9ac128], ebp
sub ch, al
xor byte [ebx - 6], cl
lcall 0xfa4b, 0x30c5284b
pop cx
lodsb al, byte [esi]
sbb edx, dword [eax - 0x25]
sbb dword [edx], edx
daa
cmp edi, eax
fisttp word [ebp - 0x17aff229]
mov ecx, 0x60ae3c05
sub byte [esi*2 + 0x5c45de62], dh
xor dword [ebp + 0x45], eax
xor dword [ebp - 3], ecx
loope 0x1001c808
sub cl, cl
push 0xffffffffffffffd9
mov edx, dword [edi - 0x29]
cwde
or eax, 0x23bfafa7
hlt
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x52ade0], 1
mov dword [0x52addc], 1
mov dword [0x52add8], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x52a014], eax
mov eax, dword [0x52adec]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x52ae00]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x52ade8]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x4d5d50], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056