joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e5c4
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4161c0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4164e0]
je 0x40e5f9
inc eax
cmp eax, 0x13
jb 0x40e5ea
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4164e0]
jne 0x40e71f
mov eax, dword [0x417958]
cmp eax, 1
je 0x40e6f7
cmp eax, edx
jne 0x40e629
cmp dword [0x416204], 1
je 0x40e6f7
cmp ecx, 0xfc
je 0x40e71f
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40e65f
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040f2c0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040d560
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40e693
mov eax, edi
push eax
call fcn.0040d560
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x413b28
push edi
call fcn.0040ee90
add esp, 0x10
push edi
call fcn.0040d560
push dword [esi + 0x4164e4]
mov ebx, eax
call fcn.0040d560
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00409b30
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040f2c0
push edi
push ebx
call fcn.0040f2d0
push 0x413b24
push ebx
call fcn.0040f2d0
push dword [esi + 0x4164e4]
push ebx
call fcn.0040f2d0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040f1c0
add esp, 0x2c
jmp 0x40e71f
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4164e4]
push dword [esi]
call fcn.0040d560
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004077be
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40ebf4
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x417d3c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x40ec3d
call ebp
mov esi, eax
cmp esi, ebx
je 0x40ec23
mov dword [0x417d3c], 1
jmp 0x40ec42
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40ec38
push 2
pop eax
mov dword [0x417d3c], eax
jmp 0x40ec3d
mov eax, dword [0x417d3c]
cmp eax, 1
jne 0x40ec9a
cmp esi, ebx
jne 0x40ec55
call ebp
mov esi, eax
cmp esi, ebx
jne 0x40ec55
xor eax, eax
jmp 0x40ed41
cmp word [esi], bx
mov eax, esi
je 0x40ec6a
inc eax
inc eax
cmp word [eax], bx
jne 0x40ec5c
inc eax
inc eax
cmp word [eax], bx
jne 0x40ec5c
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00408dd1
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x40ec8d
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x40ed41
push ebp
push esi
push edi
call fcn.0040da80
add esp, 0xc
jmp 0x40ec7f
cmp eax, 2
je 0x40eca3
cmp eax, ebx
jne 0x40ec4e
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x40ec4e
cmp byte [ebp], bl
mov esi, ebp
je 0x40ecd9
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x40ec4e
push esi
add edi, eax
call fcn.0040d560
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x40ecb6
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00408dd1
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x40ed52
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x40ed33
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40ed48
push edi
call fcn.0040d560
push esi
lea edi, [edi + eax + 1]
call fcn.004080d0
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x40ecf9
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.00408745
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x40ec4e
Function at 0x40ed5e
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x417d40]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x40ed9e
call esi
test eax, eax
je 0x40ed83
mov dword [0x417d40], 1
jmp 0x40eda3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40ed9a
mov dword [0x417d40], 2
jmp 0x40edac
xor eax, eax
jmp 0x40edfa
cmp eax, 1
jne 0x40eda7
call esi
jmp 0x40edfa
cmp eax, 2
jne 0x40ed9a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x40edf2
lea eax, [esi + esi]
push eax
call fcn.00408dd1
mov ebp, eax
test ebp, ebp
pop ecx
je 0x40edf2
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x40edf6
push ebp
call fcn.00408745
pop ecx
xor eax, eax
jmp 0x40edf8
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x40f1c0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x417d44], ebx
push esi
push edi
jne 0x40f240
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40f27b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x417d44], eax
je 0x40f27b
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x417d48], eax
call esi
cmp dword [0x417a84], 2
mov dword [0x417d4c], eax
jne 0x40f240
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x417d54], eax
je 0x40f240
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x417d50], eax
mov eax, dword [0x417d50]
test eax, eax
je 0x40f285
call eax
test eax, eax
je 0x40f26c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x417d54]
test eax, eax
je 0x40f26c
test byte [ebp - 8], 1
jne 0x40f285
cmp dword [0x417a90], 4
jb 0x40f27f
or byte [ebp + 0x12], 0x20
jmp 0x40f2a4
xor eax, eax
jmp 0x40f2b4
or byte [ebp + 0x12], 4
jmp 0x40f2a4
mov eax, dword [0x417d48]
test eax, eax
je 0x40f2a4
call eax
mov ebx, eax
test ebx, ebx
je 0x40f2a4
mov eax, dword [0x417d4c]
test eax, eax
je 0x40f2a4
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x417d44]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f856
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4161c0]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
je 0x40f8d3
push esi
call fcn.004109dc
test eax, eax
pop ecx
jne 0x40f89b
mov dword [0x417a7c], 0xf
mov dword [0x417a78], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.004077be
leave
ret
and word [ebp - 6], 0
lea eax, [ebp - 0x218]
push eax
add esi, 0x40
lea eax, [ebp - 0x214]
push eax
mov word [ebp - 0xc], si
mov esi, 0x104
push esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
jmp 0x40f8e6
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40f88e
inc eax
cmp eax, esi
ja 0x40f88e
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x40f91c
cmp eax, dword [ebp + 0x10]
jg 0x40f8fe
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call fcn.00408dd1
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x40f930
mov dword [0x417a78], 0xc
jmp 0x40f88e
cmp eax, dword [ebp + 0x10]
jle 0x40f930
mov dword [0x417a78], 0x22
jmp 0x40f88e
lea eax, [ebp - 0x214]
push eax
push ecx
call fcn.00408f66
pop ecx
pop ecx
jmp 0x40f890

Function at 0x4109dc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x410a0a
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x410a0f
cmp eax, 1
je 0x410a0f
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x410e4d
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00409b30
mov eax, dword [0x4161c0]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x418fe4]
mov dword [ebp - 4], eax
jae 0x410f90
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x419000]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x410f90
push 1
push esi
push ebx
call fcn.0040d5eb
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x410f9a
push 2
push esi
push ebx
call fcn.0040d5eb
add esp, 0xc
cmp eax, 0xffffffff
je 0x410f9a
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x410f3a
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004095e0
push 0x8000
push ebx
call fcn.00411b6e
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x410ef9
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.0040d890
add esp, 0xc
cmp eax, 0xffffffff
je 0x410f17
sub edi, eax
test edi, edi
jg 0x410eee
jmp 0x410f2d
cmp dword [0x417a7c], 5
jne 0x410f2a
mov dword [0x417a78], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00411b6e
pop ecx
pop ecx
jmp 0x410f7a
jge 0x410f7a
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0040d5eb
push ebx
call fcn.0040fc22
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x410f7a
mov dword [0x417a78], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x417a7c], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.0040d5eb
add esp, 0xc
mov eax, esi
pop edi
jmp 0x410f9d
mov dword [0x417a78], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.004077be
leave
ret
Function at 0x411999
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4119b2
or eax, 0xffffffff
jmp 0x411a13
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x411a0f
push 0x3d
push esi
call fcn.00411c1b
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x411a0f
cmp esi, eax
je 0x411a0f
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x417aa4]
sete cl
cmp eax, dword [0x417aa8]
mov dword [ebp - 8], ecx
jne 0x4119f5
mov edi, eax
call fcn.00411938
mov dword [0x417aa4], eax
cmp eax, ebx
jne 0x411a4e
cmp dword [ebp + 0xc], ebx
je 0x411a17
cmp dword [0x417aac], ebx
je 0x411a17
call fcn.0041094c
test eax, eax
je 0x411a4e
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x411a20
xor eax, eax
jmp 0x411a12
push 4
call fcn.00408dd1
cmp eax, ebx
pop ecx
mov dword [0x417aa4], eax
je 0x411a0f
mov dword [eax], ebx
cmp dword [0x417aac], ebx
jne 0x411a4e
push 4
call fcn.00408dd1
cmp eax, ebx
pop ecx
mov dword [0x417aac], eax
je 0x411a0f
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x417aa4]
call fcn.004118eb
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x411aaf
cmp dword [esi], ebx
je 0x411aaf
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00408745
cmp dword [ebp - 8], ebx
pop ecx
jne 0x411a92
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x411af0
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x411a89
mov eax, edi
shl eax, 2
push eax
push dword [0x417aa4]
call fcn.0040968c
cmp eax, ebx
pop ecx
pop ecx
je 0x411af0
jmp 0x411aeb
cmp dword [ebp - 8], ebx
jne 0x411b5b
cmp edi, ebx
jge 0x411abe
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x417aa4]
call fcn.0040968c
cmp eax, ebx
pop ecx
pop ecx
je 0x411a0f
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x417aa4], eax
cmp dword [ebp + 0xc], ebx
je 0x411b45
push dword [ebp - 4]
call fcn.0040d560
inc eax
inc eax
push eax
call fcn.00408dd1
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x411b45
push dword [ebp - 4]
push esi
call fcn.0040f2c0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x411b3e
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00408745
pop ecx
cmp dword [ebp - 8], ebx
je 0x411b53
push dword [ebp - 4]
call fcn.00408745
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x411a12
push dword [ebp - 4]
call fcn.00408745
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x411a1c
Function at 0x40152e
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
lea eax, [ebp - 0x124]
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x120]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [ebp - 0x124], 0x14
mov byte [ebp - 0x10c], 0
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
movzx eax, word [ebp - 0x120]
sub esp, 0x14
leave
sub eax, 0x41
ret

Function at 0x40158a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
mov dword [ebp - 0x88], 0
call fcn.0040152e
mov dword [esp], 0x401664
mov dword [ebp - 0x8c], 0
mov ebx, eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov eax, ebx
or eax, 0x40
mov dword [esp + 8], eax
mov eax, 0x4020c6
sub eax, 0x401664
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x40162d
mov dword [esp], ebx
lea esi, [ebp - 0x88]
call fcn.0040144c
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.004014ad
lea eax, [ebx + 0x1b600]
mov cl, bl
mov edx, 0x40300c
shl eax, cl
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, edx
or eax, 1
imul ebx, eax
sub edx, ebx
mov dword [esp], edx
call fcn.00401dc9
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x405540
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1784b0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x191014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
mov ecx, 0x192070
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.00417ba0
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, 0x191a88
push eax
call fcn.00417ba0
mov esi, dword [0x192080]
xor ebx, ebx
mov edi, dword [0x192084]
nop word [eax + eax]
cmp edi, 0x10
mov byte [ebx + 0x195280], bl
mov eax, ebx
mov ecx, 0x192070
cmovae ecx, dword [0x192070]
cdq
idiv esi
mov al, byte [edx + ecx]
mov byte [ebx + 0x195390], al
inc ebx
cmp ebx, 0x100
jl 0x4055c0
xor edi, edi
xor esi, esi
mov dl, byte [esi + 0x195280]
movzx eax, byte [esi + 0x195390]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x405614
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [edi + 0x195280]
mov byte [esi + 0x195280], al
inc esi
mov byte [edi + 0x195280], dl
cmp esi, 0x100
jl 0x4055f0
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.00405190
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x405669
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40565f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4056bf
push edx
push ecx
call fcn.0041d148
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x4056ab
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4056a1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4056bf
push edx
push ecx
call fcn.0041d148
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0043674a
int3
Function at 0x405940
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x191014]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], 0x67452301
push 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.00417830
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push 0x10
push eax
push esi
call fcn.00433d30
lea eax, [esp + 0x1c]
add esp, 0xc
lea ebx, [esi + 0x10]
cmp edi, eax
je 0x405a0b
mov eax, dword [edi]
test eax, eax
je 0x4059ed
mov ecx, dword [edi + 8]
sub ecx, eax
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4059e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405a4e
mov eax, edx
push ecx
push eax
call fcn.0041d148
add esp, 8
mov eax, dword [esp + 0x18]
mov dword [edi], esi
mov dword [edi + 4], ebx
mov dword [edi + 8], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041cad1
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x405a3c
mov ecx, dword [esp + 0x18]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x405a32
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405a4e
push ecx
push esi
call fcn.0041d148
add esp, 8
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041cad1
mov esp, ebp
pop ebp
ret
call fcn.0043674a
int3
Function at 0x407820
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x191014]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x84]
mov esi, ecx
push eax
push 0
call dword [0x17f0a4]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x407a09
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x407a09
push 0x44
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.00433bd0
add esp, 0xc
lea eax, [esp + 0x20]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0xa4]
push eax
call dword [0x17f04c]
test eax, eax
je 0x407a09
push 4
push 0x1000
push 4
push 0
call dword [0x17f094]
push eax
mov dword [esp + 0x1c], eax
mov dword [eax], 0x10007
push dword [esp + 0x28]
call dword [0x17f038]
test eax, eax
je 0x407a09
push 0
push 4
lea eax, [esp + 0x24]
push eax
push 0x187cec
push dword [esp + 0x30]
call dword [0x17f0a8]
mov eax, dword [edi + 0x34]
cmp dword [esp + 0x1c], eax
jne 0x40792c
push 0x187cf0
push 0x187d08
call dword [0x17f07c]
push eax
call dword [0x17f03c]
push dword [esp + 0x1c]
push dword [esp + 0x24]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [esp + 0x30]
call dword [0x17f040]
mov dword [esp + 0x14], eax
test eax, eax
je 0x407a09
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [esp + 0x30]
call dword [0x17f0a0]
xor eax, eax
mov dword [esp + 0x10], 0
cmp ax, word [edi + 6]
jae 0x4079c3
mov dword [esp + 0xc], eax
call fcn.00407670
push eax
call dword [0x17f078]
mov ecx, dword [esp + 0xc]
add ecx, esi
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [0x17f0a0]
mov ecx, dword [esp + 0x10]
movzx eax, word [edi + 6]
inc ecx
add dword [esp + 0xc], 0x28
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x407972
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
push dword [esp + 0x30]
call dword [0x17f0a0]
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x28]
add eax, dword [esp + 0x14]
push ecx
mov dword [ecx + 0xb0], eax
push dword [esp + 0x28]
call dword [0x17f054]
push dword [esp + 0x24]
call dword [0x17f084]
push 0x8000
push 0
push esi
call dword [0x17f09c]
mov ecx, dword [esp + 0x18c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.0041cad1
mov esp, ebp
pop ebp
ret
Function at 0x41944f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004192c0

Function at 0x419849
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408030
mov eax, dword [0x66f900]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004172ab
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41988b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4199e7
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00407380
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x6714b8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a840
mov ecx, dword [esi*4 + 0x6714b8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4199e0
cmp eax, dword [edi + ecx + 0x24]
jne 0x4199e0
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4199e0
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a840
add esp, 0x14
test edx, edx
jl 0x4199e0
jg 0x419956
test eax, eax
jb 0x4199e0
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4199e0
jl 0x419970
cmp dword [ebp - 0x1008], eax
ja 0x4199e0
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41998e
test ebx, ebx
je 0x4199c7
cmp ecx, edi
jae 0x4199c7
mov al, byte [ecx]
cmp al, 0xd
jne 0x4199a8
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4199b4
cmp byte [ecx + 1], 0xa
jne 0x4199b4
inc ecx
jmp 0x4199b4
movzx eax, al
movsx eax, byte [eax + 0x66fbc8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41998e
cmp edx, ebx
jne 0x41998e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4199e5
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040736f
leave
ret