joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4116f0
Capabilities:
Encode data using xor

Disassembly:
push 0x44
mov eax, 0x46b952
call fcn.0042a2ac
mov ebx, edx
mov dword [ebp - 0x40], ebx
mov esi, ecx
mov dword [ebp - 0x4c], esi
and dword [ebp - 0x50], 0
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x44], ecx
test ebx, ebx
je 0x41186e
test edi, edi
jne 0x411728
cmp ecx, 0x11
jb 0x41186e
movzx eax, byte [ebx + 0x10]
cdq
mov dword [ebp - 0x2c], 3
idiv dword [ebp - 0x2c]
mov eax, edx
mov edx, ecx
add eax, dword [ebp - 0x2c]
add edx, 0xffffffef
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], edx
adc edi, 0xffffffff
cdq
cmp edi, edx
ja 0x41175e
jb 0x41186e
cmp dword [ebp - 0x30], eax
jb 0x41186e
mov eax, dword [ebp - 0x2c]
mov edi, ecx
sub edi, eax
sub edi, 0x15
test edi, edi
jle 0x41186e
add eax, 0x11
mov dword [ebp - 0x14], 0xf
add eax, ebx
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
push eax
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.00405026
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x2c]
call fcn.00403f2b
mov eax, dword [ebp - 0x2c]
lea edx, [ebx + 0x11]
add eax, edx
lea ecx, [ebp - 0x3c]
push eax
push edx
call fcn.00411882
and dword [ebp - 0x30], 0
test edi, edi
jle 0x4117f9
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
mov eax, ebx
cdq
idiv esi
mov eax, dword [ebp - 0x48]
add edx, dword [ebp - 0x3c]
mov cl, byte [ebx + eax]
lea eax, [ebp - 0x28]
xor cl, byte [edx]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ebx], cl
inc ebx
mov byte [edx], cl
cmp ebx, edi
jl 0x4117ce
mov esi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x44]
push ecx
lea ecx, [ebx + 0xc]
lea edx, [edi - 0x10]
call fcn.00407a8c
pop ecx
mov cl, byte [edi + ebx - 4]
mov byte [ebp - 0x2c], cl
mov cl, byte [edi + ebx - 3]
mov byte [ebp - 0x2b], cl
mov cl, byte [edi + ebx - 2]
mov byte [ebp - 0x2a], cl
mov cl, byte [edi + ebx - 1]
mov byte [ebp - 0x29], cl
mov ecx, esi
cmp eax, dword [ebp - 0x2c]
je 0x41184c
push 0x478408
call fcn.00403df6
lea ecx, [ebp - 0x3c]
call fcn.00403f7f
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004040de
jmp 0x41187a
xor ebx, ebx
mov dword [esi + 0x14], 0xf
lea eax, [ebp - 0x28]
mov dword [esi + 0x10], ebx
push eax
mov byte [esi], bl
call fcn.00403f9b
lea ecx, [ebp - 0x3c]
call fcn.00403f7f
push ebx
jmp 0x411840
push 0x478408
mov ecx, esi
call fcn.00403df6
mov eax, esi
call fcn.0042a25b
ret
Function at 0x412dea
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0x184
mov eax, 0x46ba9a
call fcn.0042a2ac
mov dword [ebp - 0x30], edx
mov edi, ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00403e52
lea ecx, [ebp - 0x28]
call fcn.004080c7
xor esi, esi
lea ecx, [ebp - 0x28]
push esi
push 1
mov bl, al
call fcn.004041d3
test bl, bl
je 0x412e29
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x412e86
push ecx
push ecx
lea ecx, [ebp - 0xe0]
call fcn.0040fe2b
lea eax, [ebp - 0xe0]
mov dword [ebp - 4], esi
test eax, eax
je 0x412e70
mov edx, str.Cant_create_file.
lea ecx, [ebp - 0xd0]
call fcn.00409c8e
lea ecx, [ebp - 0xe0]
or dword [ebp - 4], 0xffffffff
call fcn.0040fba3
xor al, al
jmp 0x412f2d
push esi
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
mov esi, dword [ebp + 8]
push eax
push esi
push dword [ebp - 0x30]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
cmp esi, dword [ebp - 0x2c]
je 0x412ecd
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push ecx
lea ecx, [ebp - 0xe0]
call fcn.0040fe2b
lea eax, [ebp - 0xe0]
mov dword [ebp - 4], 1
test eax, eax
je 0x412e70
mov edx, str.Cant_write_into_file
jmp 0x412e65
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x412f2b
mov ecx, edi
call fcn.0040728c
push edi
test al, al
jne 0x412f25
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
push ecx
lea ecx, [ebp - 0x190]
call fcn.0040fe2b
lea eax, [ebp - 0x190]
mov dword [ebp - 4], 2
test eax, eax
je 0x412f1a
mov edx, str.cant_unzip
lea ecx, [ebp - 0x180]
call fcn.00409c8e
lea ecx, [ebp - 0x190]
jmp 0x412e76
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
call fcn.0042a25b
ret
Function at 0x415856
Capabilities:
Create process on windows
Move file

Disassembly:
push 0x4c
mov eax, 0x46c23b
call fcn.0042a2ac
mov edi, ecx
xor ebx, ebx
cmp dword [edi], 2
je 0x415872
xor esi, esi
inc esi
mov dword [edi], esi
jmp 0x4158a0
lea ecx, [ebp - 0x28]
call fcn.00407f81
cmp dword [eax + 0x14], 8
jb 0x415882
mov eax, dword [eax]
push 5
push ebx
push str.__start
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor esi, esi
lea ecx, [ebp - 0x28]
push ebx
inc esi
push esi
call fcn.004041d3
cmp dword [edi + 0x24], ebx
jne 0x415906
lea ecx, [ebp - 0x28]
call fcn.00408aad
push 0
push esi
lea ecx, [ebp - 0x28]
cmp dword [eax + 0x10], ebx
setne bl
call fcn.004041d3
test bl, bl
je 0x415933
lea ecx, [ebp - 0x40]
call fcn.00408b87
mov ebx, eax
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00408adb
cmp dword [ebx + 0x14], 8
jb 0x4158e0
mov ebx, dword [ebx]
cmp dword [eax + 0x14], 8
jb 0x4158e8
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0
push esi
lea ecx, [ebp - 0x28]
call fcn.004041d3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
push 0
jmp 0x41592d
lea ecx, [ebp - 0x58]
call fcn.00408adb
lea ecx, [edi + 0x14]
cmp dword [ecx + 0x14], 8
jb 0x415919
mov ecx, dword [ecx]
cmp dword [eax + 0x14], 8
jb 0x415921
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push ebx
lea ecx, [ebp - 0x58]
push esi
call fcn.004041d3
mov ecx, dword [edi + 4]
push str.fir
call fcn.004074fe
call fcn.0042a25b
ret
Function at 0x42df0b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0042583b
mov dword [ebp - 0x14], eax
cmp dword [0x48cc98], esi
jne 0x42dffe
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x42df8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x42e0de
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x42e0de
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42e0de
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x48cc98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x48cc9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x48cca0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x48cca8], eax
test eax, eax
je 0x42dffb
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x48cca4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x42e023
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42e016
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x42e038
push 4
pop eax
jmp 0x42e0e0
cmp dword [ebp - 0x14], esi
je 0x42e038
push dword [0x48cc98]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x42e01d
mov eax, dword [0x48cca4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x42e096
cmp dword [0x48cca8], edi
je 0x42e096
push eax
call ebx
push dword [0x48cca8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x42e096
test eax, eax
je 0x42e096
call ecx
test eax, eax
je 0x42e08b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x42e08b
test byte [ebp - 8], 1
jne 0x42e096
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x42e0c6
mov eax, dword [0x48cc9c]
cmp eax, edi
je 0x42e0c3
push eax
call ebx
test eax, eax
je 0x42e0c3
call eax
mov esi, eax
test esi, esi
je 0x42e0c3
mov eax, dword [0x48cca0]
cmp eax, edi
je 0x42e0c3
push eax
call ebx
test eax, eax
je 0x42e0c3
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x48cc98]
call ebx
test eax, eax
je 0x42e0de
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x42e0e0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ec65
mov esp, ebp
pop ebp
ret
Function at 0x452ce9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x401bd7
pop dword [ebp - 0x10]
mov eax, 0x401bd7
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x27fddeaa
sub dword [ebp - 0x20], 0xd9ab995f
mov dword [ebp - 0x1c], 0x64aa4ab2
add dword [ebp - 0x1c], 0xcd890193
mov dword [ebp - 0x18], 0x612f05c2
sub dword [ebp - 0x18], 0x14e2c194
mov dword [ebp - 0x14], 0xa181aee2
add dword [ebp - 0x14], 0x5e7e511e
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xddf9d862
sub dword [ebp - 0x20], 0x69876f0c
mov dword [ebp - 0x1c], 0x39f31adf
add dword [ebp - 0x1c], 0x7794696
mov dword [ebp - 0x18], 0x455255dc
add dword [ebp - 0x18], 0x1e1d1690
mov dword [ebp - 0x14], 0x1f2e61be
sub dword [ebp - 0x14], 0x1f2e61be
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xb8ef1c1
sub eax, 0xb4e80c1
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x383eb
push 0
call eax
mov ecx, 0x4eae
xor ebx, ebx
add ebx, eax
mov edx, 0xdbf41c45
sub edx, 0xdbb31c45
add edx, dword [ebp - 0x10]
mov edi, 0xd064a5cd
sub edi, 0xc7d8facc
sub dword [ebp - 4], 0x6b0fd789
mov esi, dword [edx]
xor dword [ebp - 0xc], ecx
sub esi, edi
mov dword [ebx], esi
add dword [ebp - 0xc], edi
add ebx, 0xef80baf4
sub ebx, 0xef80baf0
add edx, 4
loop 0x401ceb
add eax, 0x889b54af
add eax, 0x7765d8dc
xor ebx, ebx
add ebx, eax
add eax, 0x27745667
add eax, 0xd88ba99e
mov ecx, 0x61444d3b
sub ecx, 0x61044d3b
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x402c00
pop dword [ebp - 0x1c]
mov eax, 0xc4a6fd23
sub eax, 0xc466d123
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xcc3a9945
add dword [ebp - 0x2c], 0x8217ac06
mov dword [ebp - 0x28], 0xc6acd64e
add dword [ebp - 0x28], 0x6b8675f7
mov dword [ebp - 0x24], 0x288a3e52
sub dword [ebp - 0x24], 0xdc3dfa24
mov dword [ebp - 0x20], 0xca1ba502
sub dword [ebp - 0x20], 0xca1ba502
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x1ceb9f91
sub dword [ebp - 0x2c], 0xa879363b
mov dword [ebp - 0x28], 0x42d7b1bc
add dword [ebp - 0x28], 0xfe94afb9
mov dword [ebp - 0x24], 0x1e4ad3b5
sub dword [ebp - 0x24], 0xbadb6749
mov dword [ebp - 0x20], 0xda37156a
sub dword [ebp - 0x20], 0xda37156a
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x38c32
push 0
call eax
mov ecx, 0x504b
xor esi, esi
add esi, eax
mov edx, 0xa156635e
add edx, 0x5eeaaca2
add edx, dword [ebp - 0x1c]
mov edi, 0x78268df8
sub edi, 0x989f435b
xor dword [ebp - 0x10], 0xb5631394
mov ebx, dword [edx]
xor dword [ebp - 8], 0x26ce22f4
xor ebx, edi
xor dword [ebp - 8], ecx
mov dword [esi], ebx
add dword [ebp - 0x18], esi
add esi, 4
add edx, 0xf284b101
sub edx, 0xf284b0fd
loop 0x402d14
add eax, 0x133ff
xor ebx, ebx
add ebx, eax
add eax, 0x1bc7147a
sub eax, 0x1bc71475
mov ecx, 0x2b92c1c6
sub ecx, 0x2b52c1c6
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x406ced
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x40af98
call fcn.00406fd4
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x406d2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406d2d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x406d45
cmp eax, 0x20b
je 0x406d32
mov dword [ebp - 0x1c], ebx
jmp 0x406d59
cmp dword [ecx + 0x84], 0xe
jbe 0x406d2d
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x406d53
cmp dword [ecx + 0x74], 0xe
jbe 0x406d2d
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x40ea78], 0xffffffff
or dword [0x40ea7c], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x40d464]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x40d460]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40ea74], eax
call fcn.00406f30
call fcn.00406fd0
cmp dword [0x40d320], ebx
jne 0x406db9
push fcn.00406fd0
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00406fbe
push 0x40c00c
push 0x40c008
call sub.MSVCR71.dll__initterm
push 0x406f74
call fcn.00406f1e
mov eax, dword [0x40d45c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40d458]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x406e0d
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x40c004
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x406e8b
cmp al, bl
je 0x406e37
cmp dword [ebp - 0x20], ebx
jne 0x406e8b
mov al, byte [esi]
cmp al, bl
je 0x406e47
cmp al, 0x20
ja 0x406e47
inc esi
mov dword [ebp - 0x24], esi
jmp 0x406e37
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x406e63
movzx eax, word [ebp - 0x54]
jmp 0x406e66
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00404254
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x406e83
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x406ee0
cmp al, 0x22
jne 0x406e9a
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x406ead
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x406e25
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040700f
ret

Function at 0x401283
Capabilities:
Terminate process

Disassembly:
add byte [ebx - 0x36cee73c], al
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x100128dd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x100128ec
pop dword [ebp - 8]
mov eax, 0x5db7429a
add eax, 0xb249e652
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x44831
push 0
mov eax, 0x81aa5eae
add eax, 0x8e5d226e
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x4dd1
xor edi, edi
add edi, eax
mov esi, 0xf40c3429
sub esi, 0xe3f3c229
add esi, dword [ebp - 8]
mov ebx, 0x5ba49e44
sub ebx, 0xc4111624
xor dword [ebp - 4], 0x7e5f3597
mov edx, dword [esi]
add edx, ebx
xor dword [ebp - 4], 0x77a74c8d
mov dword [edi], edx
mov dword [ebp - 4], 0x8af895e3
add edi, 4
add esi, 4
loop 0x10012947
add eax, 0xa7876516
add eax, 0x5879c501
xor ebx, ebx
add ebx, eax
add eax, 0x577b6a30
sub eax, 0x577b6a2b
mov ecx, 0x10000000
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x10071ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x10071f6b
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x10071f22
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x10071f22
cmp esi, ebx
jge 0x10071f22
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x10071f65
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x10071f65
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100783dc]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100783dc]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x10071f7d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x100721a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
mov eax, dword [ebp + 8]
je 0x100721c8
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x100721e2
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.100128dd
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.100762d0
leave
ret 4

Function at 0x100723b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x100723e6
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x10072445
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.100128dd
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.100128dd
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.100128dd
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100762d0
leave
ret 0x10
Function at 0x10072460
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1007248c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x100724bd
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x100724bb
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.100128dd
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x100724bd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100762d0
leave
ret 8