joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401375
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edx, edx
push 0x1c
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
pop esi
mov al, byte [edx + str.91__]
dec al
movzx eax, al
mov edi, eax
and eax, 7
shr edi, 3
mov bl, byte [ebp + edi + 8]
test byte [eax + 0x41a198], bl
je 0x4013c1
mov eax, edx
mov edi, edx
shr eax, 3
and edi, 7
lea eax, [ebp + eax - 0x14]
mov bl, byte [edi + 0x41a198]
and byte [eax], bl
mov al, byte [edx + 0x41a24c]
dec al
movzx eax, al
mov edi, eax
and eax, 7
shr edi, 3
mov bl, byte [ebp + edi + 8]
test byte [eax + 0x41a198], bl
je 0x4013f6
mov eax, edx
mov edi, edx
shr eax, 7
and edi, 7
lea eax, [ebp + eax - 0x14]
mov bl, byte [edi + 0x41a198]
and byte [eax], bl
inc edx
dec esi
jne 0x40138c
and dword [ebp + 0xc], 0
mov dword [ebp - 4], 0x41a220
mov dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 4]
mov al, byte [eax]
test al, al
jbe 0x40147f
movzx esi, al
mov dl, 0x80
mov al, byte [ebp - 0x14]
shl byte [ebp - 0x14], 1
and al, dl
test byte [ebp - 0x13], dl
je 0x40142a
inc byte [ebp - 0x14]
shl byte [ebp - 0x13], 1
test byte [ebp - 0x12], dl
je 0x401435
inc byte [ebp - 0x13]
shl byte [ebp - 0x12], 1
test byte [ebp - 0x11], dl
je 0x401440
inc byte [ebp - 0x12]
shl byte [ebp - 0x11], 1
test al, al
je 0x40144b
add byte [ebp - 0x11], 0x10
mov al, byte [ebp - 0x10]
shl byte [ebp - 0x10], 1
and al, dl
test byte [ebp - 0xf], dl
je 0x40145b
inc byte [ebp - 0x10]
shl byte [ebp - 0xf], 1
test byte [ebp - 0xe], dl
je 0x401466
inc byte [ebp - 0xf]
shl byte [ebp - 0xe], 1
test byte [ebp - 0xd], dl
je 0x401471
inc byte [ebp - 0xe]
shl byte [ebp - 0xd], 1
test al, al
je 0x40147c
add byte [ebp - 0xd], 0x10
dec esi
jne 0x40141a
mov eax, dword [ebp + 0xc]
push 0x30
add eax, ecx
xor edi, edi
pop ebx
mov dword [eax], edi
mov dword [eax + 4], edi
mov al, byte [edi + 0x41a268]
dec al
cmp al, 0x1c
jae 0x4014a4
movzx eax, al
mov edx, eax
shr edx, 3
jmp 0x4014ae
add al, 0xe4
movzx eax, al
mov edx, eax
shr edx, 7
mov dl, byte [ebp + edx - 0x14]
and eax, 7
test byte [eax + 0x41a198], dl
je 0x4014de
mov eax, edi
push 6
cdq
pop esi
idiv esi
push 6
add eax, dword [ebp + 0xc]
lea esi, [eax + ecx]
mov eax, edi
cdq
pop ecx
idiv ecx
mov ecx, dword [ebp - 8]
mov al, byte [edx + 0x41a198]
or byte [esi], al
inc edi
dec ebx
jne 0x40148e
inc dword [ebp - 4]
add dword [ebp + 0xc], 8
dec dword [ebp - 0xc]
jne 0x40140c
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4014f9
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
xor esi, esi
mov dword [ebp - 4], 0x30
mov al, byte [esi + 0x41a298]
mov edx, dword [ebp + 0x10]
add al, 0x1f
movzx eax, al
mov ecx, eax
and eax, 7
shr ecx, 3
mov cl, byte [ecx + edx]
test byte [eax + 0x41a198], cl
je 0x401550
mov eax, esi
push 6
cdq
pop ecx
idiv ecx
push 6
pop ebx
lea ecx, [ebp + eax - 0xc]
mov eax, esi
cdq
idiv ebx
mov al, byte [edx + 0x41a198]
or byte [ecx], al
inc esi
dec dword [ebp - 4]
jne 0x401513
push 8
xor eax, eax
pop ecx
mov dl, byte [ebp + eax + 8]
xor byte [ebp + eax - 0xc], dl
inc eax
dec ecx
jne 0x40155b
push 8
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
xor ecx, ecx
xor esi, esi
pop edi
mov eax, ecx
push 2
cdq
pop ebx
idiv ebx
test edx, edx
jne 0x40159c
movzx eax, byte [ebp + ecx - 0xc]
shr eax, 2
mov edx, ecx
mov al, byte [eax + esi + 0x41a2e8]
shl al, 4
shr edx, 1
mov byte [ebp + edx + 8], al
jmp 0x4015b5
movzx edx, byte [ebp + ecx - 0xc]
mov eax, ecx
shr eax, 1
shr edx, 2
lea eax, [ebp + eax + 8]
mov dl, byte [edx + esi + 0x41a2e8]
add byte [eax], dl
inc ecx
add esi, 0x40
dec edi
jne 0x401574
xor ecx, ecx
push 0x20
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
pop esi
mov al, byte [ecx + 0x41a2c8]
dec al
movzx eax, al
mov edx, eax
and eax, 7
shr edx, 3
mov dl, byte [ebp + edx + 8]
test byte [eax + 0x41a198], dl
je 0x4015fc
mov eax, ecx
mov edx, ecx
shr eax, 3
and edx, 7
lea eax, [ebp + eax - 0xc]
mov dl, byte [edx + 0x41a198]
or byte [eax], dl
inc ecx
dec esi
jne 0x4015c7
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor dword [eax], ecx
pop ebx
leave
ret 0xc

Function at 0x404bee
Capabilities:
Hash data using djb2

Disassembly:
push esi
push edi
mov edi, ecx
lea esi, [edi + 4]
push esi
call fcn.00410840
pop ecx
mov edx, 0x1505
xor ecx, ecx
test eax, eax
jbe 0x404c17
push ebx
movsx ebx, byte [esi + ecx]
imul edx, edx, 0x21
add edx, ebx
inc ecx
cmp ecx, eax
jb 0x404c08
pop ebx
mov dword [edi], edx
pop edi
pop esi
ret

Function at 0x404c5e
Capabilities:
Get file size

Disassembly:
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov esi, ecx
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x404c95
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov al, 1
jmp 0x404c97
xor al, al
pop esi
ret 4
Function at 0x404cb2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
add eax, edi
cmp eax, dword [esi + 8]
ja 0x404d05
and byte [ebp + 0xf], 0
lea eax, [ebp + 0xf]
push eax
push edi
lea ecx, [esi + 0xc]
call fcn.00401d87
push 0
push 0
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push 0
push eax
push edi
push dword [esi + 0x10]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], edi
jne 0x404d05
mov eax, dword [esi + 0x10]
jmp 0x404d07
xor eax, eax
pop edi
pop esi
leave
ret 8

Function at 0x404d0d
Capabilities:
Get file size

Disassembly:
push esi
push 0
push 0x80000080
push 4
push 0
push 0
push 0xc0000000
mov esi, ecx
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x404d44
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov al, 1
jmp 0x404d46
xor al, al
pop esi
ret 4
Function at 0x405ac1
Capabilities:
Read data from internet
Receive data

Disassembly:
mov eax, 0x4199ec
call fcn.004107f0
sub esp, 0x434
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x180], ebx
je 0x405b17
mov edi, dword [ebp + 8]
push edi
push 0x17
call fcn.00406dc5
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00401668
add esp, 0xc
push ebx
push 0x4000002
push 0x80000000
push edi
push dword [esi + 0x180]
call dword [sym.imp.WININET.dll_FtpOpenFileA]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x405b1e
xor al, al
jmp 0x405c3b
push 0x41d104
push edi
call fcn.00411062
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
jne 0x405b39
xor bl, bl
jmp 0x405c30
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x40], al
call fcn.00403899
push edi
call fcn.00410840
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.00403ecb
lea eax, [ebp - 0x40]
lea ecx, [esi + 0x184]
push eax
mov dword [ebp - 4], ebx
call fcn.0040658a
mov eax, dword [eax]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x20], eax
call fcn.00403899
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x1c]
push eax
mov ebx, 0x400
lea eax, [ebp - 0x440]
push ebx
push eax
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x405c25
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x405c25
push dword [ebp - 0x18]
add dword [ebp - 0x10], eax
push 1
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.00410f38
add esp, 0x10
lea eax, [esi + 0x10]
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push dword [ebp + 8]
push str._s____d__d
push eax
call fcn.00401668
mov eax, dword [ebp - 0x10]
and dword [ebp - 0x24], 0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
fild qword [ebp - 0x28]
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], eax
add esp, 0x14
fmul dword [0x41a524]
push 0x3e8
fidiv dword [ebp - 0x30]
call fcn.004110c8
push eax
lea ecx, [esi + 0x48]
call fcn.00401698
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x440]
push ebx
push eax
push dword [ebp - 0x14]
jmp 0x405b9b
push dword [ebp - 0x18]
call fcn.00410ee2
pop ecx
mov bl, 1
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4063d5
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x860
push esi
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x860]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.http:___s_s__s
push eax
call fcn.004111b5
add esp, 0x14
xor edi, edi
lea eax, [ebp - 0x860]
push edi
push 0x84000000
push edi
push edi
push eax
push dword [esi + 0x178]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x40642a
xor al, al
jmp 0x406531
push ebx
lea ecx, [ebp - 0x10]
push edi
push ecx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x10], 0x40
push ecx
push 5
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x40644f
xor bl, bl
jmp 0x406525
lea eax, [ebp - 0x60]
push eax
call fcn.004111aa
mov dword [esp], 0x41d104
push dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
call fcn.00411062
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp - 8], eax
je 0x406448
lea eax, [ebp - 4]
mov ebx, 0x400
push eax
lea eax, [ebp - 0x460]
push ebx
push eax
push dword [ebp + 8]
mov dword [ebp + 0xc], edi
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
call edi
test eax, eax
je 0x40651a
mov eax, dword [ebp - 4]
test eax, eax
je 0x40651a
push dword [ebp - 8]
add dword [ebp + 0xc], eax
push 1
push eax
lea eax, [ebp - 0x460]
push eax
call fcn.00410f38
add esp, 0x10
lea eax, [esi + 0x10]
push dword [ebp - 0xc]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push str._s____d__d
push eax
call fcn.00401668
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
fild qword [ebp - 0x18]
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], eax
add esp, 0x14
fmul dword [0x41a524]
push 0x3e8
fidiv dword [ebp - 0x20]
call fcn.004110c8
push eax
lea ecx, [esi + 0x48]
call fcn.00401698
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x460]
push ebx
push eax
push dword [ebp + 8]
jmp 0x406490
push dword [ebp - 8]
call fcn.00410ee2
pop ecx
mov bl, 1
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x4075b8
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
push 0x41d484
push dword [ebp + 8]
mov esi, ecx
call fcn.00411062
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
mov dword [ebp - 0xc], ebx
jne 0x4075f1
push eax
push 0x1c
mov ecx, esi
call fcn.00406dc5
push eax
push dword [ebp + 8]
jmp 0x407793
push dword [ebp + 8]
push str.Unpack__s
call dword [0x41d658]
pop ecx
pop ecx
push ebx
push 1
pop edi
lea eax, [ebp - 2]
push edi
push edi
push eax
call fcn.00411308
add esp, 0x10
test eax, eax
je 0x40775d
push ebx
push edi
lea eax, [ebp - 1]
push edi
push eax
call fcn.00411308
add esp, 0x10
test eax, eax
je 0x40776b
movzx eax, byte [ebp - 1]
push ebx
push edi
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00411308
add esp, 0x10
test eax, eax
je 0x407772
mov al, byte [ebp - 2]
cmp al, 0x65
je 0x4077c4
cmp al, 0x64
jne 0x40769b
push dword [ebp + 8]
mov ecx, esi
push 0x1d
call fcn.00406dc5
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00401668
lea eax, [ebp - 0x10c]
push eax
push str.mkdir__s
call dword [0x41d658]
lea eax, [ebp - 0x10c]
push eax
call fcn.004112dc
add esp, 0x18
jmp 0x407601
cmp al, 0x66
jne 0x40779f
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x4076c3
lea eax, [ebp - 0x10c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push edi
lea eax, [ebp - 8]
push 4
push eax
call fcn.00411308
add esp, 0x10
test eax, eax
je 0x407779
push dword [ebp - 8]
call fcn.004109b0
push ebx
push 1
push dword [ebp - 8]
mov edi, eax
push edi
call fcn.00411308
add esp, 0x14
lea eax, [ebp - 0x10c]
mov ecx, esi
push eax
push 0x1e
call fcn.00406dc5
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00401668
lea eax, [ebp - 0x10c]
push eax
push str.mkfile__s
call dword [0x41d658]
lea eax, [ebp - 0x10c]
push 0x41d104
push eax
call fcn.00411062
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x407780
push ebx
push 1
push dword [ebp - 8]
push edi
call fcn.00410f38
push ebx
call fcn.00410ee2
push edi
call fcn.0040fbc0
mov ebx, dword [ebp - 0xc]
add esp, 0x18
jmp 0x407601
push str.code_not_exist
call dword [0x41d658]
pop ecx
jmp 0x4077b2
push str.len_not_exist
jmp 0x407762
push str.name_not_exist
jmp 0x407762
push str.size_not_exist
jmp 0x407762
push 0
push 0x1f
mov ecx, esi
call fcn.00406dc5
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4077cd
movzx eax, al
push eax
push eax
push str.error_code__c__d_
call dword [0x41d658]
add esp, 0xc
push 0
push str.unpack_error
push dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.00410ee2
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40783e
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
mov ecx, 0x420e38
jmp 0x407831
mov eax, 0x419c95
call fcn.004107f0
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
lea ecx, [esi + 8]
call fcn.00401630
xor ebx, ebx
lea ecx, [esi + 0x10]
mov dword [ebp - 4], ebx
call fcn.00401630
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.00401630
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 2
call fcn.00401630
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 3
call fcn.00401630
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 4
call fcn.00401630
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 5
call fcn.00401630
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 6
call fcn.00401630
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 7
call fcn.00401630
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 8
call fcn.00401630
mov al, byte [ebp - 0xd]
mov dword [esi + 0x5c], ebx
mov byte [esi + 0x58], al
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x184]
mov byte [ebp - 4], 0xa
mov byte [ecx], al
mov al, byte [ebp - 0xd]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.00408121
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x1c8]
mov byte [ebp - 4], 0xb
mov byte [ecx], al
mov al, byte [ebp - 0xd]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.00408450
mov al, byte [ebp - 0xd]
lea edi, [esi + 0x1d8]
push ebx
push ebx
mov ecx, edi
mov byte [ebp - 4], 0xc
mov byte [edi], al
call fcn.0040440c
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov byte [ebp - 4], 0xd
lea ecx, [esi + 0x1e4]
call fcn.0040795b
mov ecx, esi
mov byte [ebp - 4], 0xe
call fcn.00407be6
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x407c0b
Capabilities:
Check mutex on windows

Disassembly:
push esi
xor esi, esi
push str.RagnarokOnlinePatch
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x407c40
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push esi
push 0x407814
push esi
push 0x7e
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
pop esi
ret 4
Function at 0x407c44
Capabilities:
Create thread
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
sub eax, 0x10
mov esi, ecx
je 0x407dbc
sub eax, 0xf0
je 0x407d9e
sub eax, 0x10
je 0x407cb0
dec eax
je 0x407c7f
push dword [ebp + 0xc]
push str._d_message_n
call dword [0x41d658]
pop ecx
pop ecx
jmp 0x407dd6
movzx eax, word [ebp + 0x10]
dec eax
je 0x407c9d
dec eax
jne 0x407dd6
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x407dd6
xor ebx, ebx
cmp byte [esi + 0x170], bl
je 0x407db6
jmp 0x407daf
push edi
mov edi, dword [ebp + 8]
lea ecx, [esi + 0x10]
push 0x3e8
push edi
mov dword [ebp + 0xc], ecx
call fcn.0040163a
mov ebx, 0x3ec
lea ecx, [esi + 0x28]
push ebx
push edi
call fcn.0040163a
push 0x3eb
push edi
lea ecx, [esi + 0x30]
call fcn.0040163a
push 0x3e9
push edi
lea ecx, [esi + 0x48]
call fcn.0040163a
push 0x3ee
lea ecx, [esi + 0x38]
push edi
call fcn.0040163a
push 0x3ef
push edi
lea ecx, [esi + 0x40]
call fcn.0040163a
push 0x3ed
push edi
lea ecx, [esi + 8]
call fcn.0040163a
push ebx
push edi
lea ecx, [esi + 0x28]
call fcn.0040163a
lea ebx, [esi + 0x20]
push 0x3f2
push edi
mov ecx, ebx
call fcn.0040163a
push 1
lea ecx, [esi + 0x18]
push edi
call fcn.0040163a
push 0xc
mov ecx, esi
call fcn.00406dc5
push eax
lea ecx, [esi + 0x38]
call fcn.00401656
push 7
mov ecx, esi
call fcn.00406dc5
push eax
mov ecx, ebx
call fcn.00401656
push 0xe
mov ecx, esi
call fcn.00406dc5
push eax
lea ecx, [esi + 0x18]
call fcn.00401656
push 0xf
mov ecx, esi
call fcn.00406dc5
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00401656
lea eax, [ebp + 0x10]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x4077f5
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
jmp 0x407dd6
cmp word [ebp + 0x10], 0xd
jne 0x407dd6
xor ebx, ebx
cmp byte [esi + 0x170], bl
je 0x407dd6
mov ecx, esi
call fcn.00407ec3
push ebx
jmp 0x407c8f
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EndDialog]
mov esi, dword [esi + 0x68]
cmp esi, ebx
je 0x407dd6
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x10

Function at 0x407ec3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x170], bl
je 0x407f2e
push 0x44
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00410da0
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00410da0
add esp, 0x18
mov dword [ebp - 0x54], 0x44
push 1
pop eax
mov dword [ebp - 0x28], eax
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [esi + 0x1a0]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop esi
pop ebx
leave
ret
Function at 0x40b7a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40b7ab
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x40b8af
push edi
mov edi, esi
shr edi, 3
xor ebx, ebx
mov bl, byte [ecx]
mov edx, eax
and edx, 0xff
sub esi, 8
xor edx, ebx
mov ebx, eax
mov eax, dword [edx*4 + 0x41d7c0]
shr ebx, 8
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, eax
and edx, 0xff
shr eax, 8
inc ecx
xor edx, ebx
mov edx, dword [edx*4 + 0x41d7c0]
xor edx, eax
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, edx
and eax, 0xff
shr edx, 8
inc ecx
xor eax, ebx
mov eax, dword [eax*4 + 0x41d7c0]
xor eax, edx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, eax
and edx, 0xff
shr eax, 8
inc ecx
xor edx, ebx
mov edx, dword [edx*4 + 0x41d7c0]
xor edx, eax
xor ebx, ebx
mov bl, byte [ecx + 1]
inc ecx
mov eax, edx
and eax, 0xff
shr edx, 8
xor eax, ebx
mov eax, dword [eax*4 + 0x41d7c0]
xor eax, edx
xor ebx, ebx
mov bl, byte [ecx + 1]
inc ecx
mov edx, eax
and edx, 0xff
shr eax, 8
xor edx, ebx
mov edx, dword [edx*4 + 0x41d7c0]
xor edx, eax
xor ebx, ebx
mov bl, byte [ecx + 1]
inc ecx
mov eax, edx
and eax, 0xff
shr edx, 8
xor eax, ebx
mov eax, dword [eax*4 + 0x41d7c0]
xor eax, edx
xor ebx, ebx
mov bl, byte [ecx + 1]
inc ecx
mov edx, eax
and edx, 0xff
shr eax, 8
xor edx, ebx
mov edx, dword [edx*4 + 0x41d7c0]
xor eax, edx
inc ecx
dec edi
jne 0x40b7c6
pop edi
test esi, esi
je 0x40b8d1
xor ebx, ebx
mov bl, byte [ecx]
mov edx, eax
and edx, 0xff
shr eax, 8
xor edx, ebx
mov edx, dword [edx*4 + 0x41d7c0]
xor eax, edx
inc ecx
dec esi
jne 0x40b8b3
pop esi
not eax
pop ebx
ret
Function at 0x4154e9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41e978
cmp edx, dword [eax]
je 0x41550b
add eax, 8
inc ecx
cmp eax, 0x41ea08
jl 0x4154fc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41e978]
jne 0x415639
mov eax, dword [0x422ab4]
cmp eax, 1
je 0x415613
test eax, eax
jne 0x41553c
cmp dword [0x41e284], 1
je 0x415613
cmp edx, 0xfc
je 0x415639
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x415573
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004108c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00410840
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4155b6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00410840
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41aa3c
push edi
call fcn.00411480
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004108c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004108d0
lea eax, [ebp - 0xa0]
push 0x41aa1c
push eax
call fcn.004108d0
push dword [esi + 0x41e97c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004108d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004181c8
add esp, 0x2c
pop edi
jmp 0x415639
lea eax, [ebp + 8]
lea esi, [esi + 0x41e97c]
push 0
push eax
push dword [esi]
call fcn.00410840
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