joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402390
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x60
mov edx, dword [esp + 0x64]
push ebx
push esi
push edi
mov esi, ecx
xor eax, eax
mov byte [esp + 0x2c], 0
mov ecx, 0xf
lea edi, [esp + 0x2d]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x74]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x2c]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00402180
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push 0x20
lea eax, [esp + 0x14]
push eax
push str.NoData
push str.FREQUENCY
lea ecx, [esp + 0x40]
push ecx
call ebx
lea edx, [esp + 0xc]
push edx
push str.NoData
call fcn.00403c12
add esp, 8
test eax, eax
je 0x402488
lea eax, [esp + 0xc]
push eax
call fcn.00403cad
mov edi, dword [esp + 0x7c]
add esp, 4
push esi
push 0x20
lea ecx, [esp + 0x14]
push ecx
push str.NoData
push str.HRESOLUTION
lea edx, [esp + 0x40]
push edx
mov dword [edi + 8], eax
call ebx
lea eax, [esp + 0xc]
push eax
push str.NoData
call fcn.00403c12
add esp, 8
test eax, eax
je 0x402488
lea ecx, [esp + 0xc]
push ecx
call fcn.00403cad
add esp, 4
push 0x20
lea edx, [esp + 0x10]
push edx
mov dword [edi], eax
push str.VRESOLUTION
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.00401e60
test eax, eax
je 0x402488
lea ecx, [esp + 0xc]
push ecx
call fcn.00403cad
add esp, 4
mov dword [edi + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x60
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x60
ret 0xc

Function at 0x402800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x128
push esi
push edi
mov ecx, 6
mov esi, str.SOFTWARES3VTS3Display
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
mov ecx, 0x3a
lea edi, [esp + 0x41]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x34]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4028ad
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.TVLargeFont
push edx
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402887
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x40943c
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
je 0x4028b8
push 0x409438
lea ecx, [esp + 0x1c]
push ecx
call esi
test eax, eax
je 0x4028b8
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402a10
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
push esi
push edi
mov ecx, 5
mov esi, str.SOFTWARES3VTS3Timer
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
mov ecx, 0x3b
lea edi, [esp + 0x27]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402a67
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
push str.NeverLaunched
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x402a95
mov eax, dword [esp + 0xc]
push str.NeverLaunched
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402aa4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403390
Capabilities:
Query or enumerate registry key

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x110
push edi
lea eax, [esp + 4]
push eax
push 0xf003f
mov edi, ecx
mov ecx, dword [esp + 0x124]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 4]
test eax, eax
je 0x40344b
push ebx
push esi
push eax
mov ecx, edi
call fcn.00403270
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
xor esi, esi
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
push esi
push eax
mov dword [esp + 0x30], 0x100
call ebx
cmp eax, 0x103
je 0x40343e
nop
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov ecx, edi
call fcn.00403390
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
inc esi
push esi
push eax
mov dword [esp + 0x30], 0x100
call ebx
cmp eax, 0x103
jne 0x403400
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop edi
add esp, 0x110
ret 8
Function at 0x403520
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
push esi
push edi
mov esi, ecx
xor eax, eax
mov ecx, 0x25
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4035f8
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x4035a2
cmp dword [esp + 0xc], 4
jne 0x4035f8
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x403580
mov dword [esi], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x403591
mov dword [esi], 2
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0x5a
jne 0x4035f8
mov dword [esi], 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x4035f8
mov eax, dword [esp + 0xc]
cmp eax, 3
jne 0x4035bc
mov dword [esi], 5
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x4035cd
mov dword [esi], 6
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x4035f8
mov eax, dword [esp + 0x10]
cmp eax, 1
mov dword [esi], 7
jne 0x4035ed
mov dword [esi], 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x4035f8
mov dword [esi], 9
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404b0e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40b380], esi
push edi
jne 0x404b2e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40b37c], esi
mov byte [0x40b378], al
jne 0x404b94
mov ecx, dword [0x40b8a8]
test ecx, ecx
je 0x404b75
mov eax, dword [0x40b8a4]
sub eax, 4
cmp eax, ecx
jmp 0x404b6e
mov eax, dword [eax]
test eax, eax
je 0x404b60
call eax
mov eax, dword [0x40b8a4]
sub eax, 4
cmp eax, dword [0x40b8a8]
mov dword [0x40b8a4], eax
jae 0x404b58
mov eax, 0x40b020
mov esi, 0x40b024
cmp eax, esi
mov edi, eax
jae 0x404b94
mov eax, dword [edi]
test eax, eax
je 0x404b8d
call eax
add edi, 4
cmp edi, esi
jb 0x404b85
mov eax, 0x40b028
mov esi, 0x40b030
cmp eax, esi
mov edi, eax
jae 0x404bb3
mov eax, dword [edi]
test eax, eax
je 0x404bac
call eax
add edi, 4
cmp edi, esi
jb 0x404ba4
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x404bcd
push dword [ebp + 8]
mov dword [0x40b380], 1
call fcn.00404a74
pop ebp
ret
Function at 0x404c0f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40b078]
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 + 0x40b0a0]
je 0x404c44
inc eax
cmp eax, 0x13
jb 0x404c35
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40b0a0]
jne 0x404d6a
mov eax, dword [0x40b2fc]
cmp eax, 1
je 0x404d42
cmp eax, edx
jne 0x404c74
cmp dword [0x40b070], 1
je 0x404d42
cmp ecx, 0xfc
je 0x404d6a
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 0x404caa
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00407340
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00407570
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x404cde
mov eax, edi
push eax
call fcn.00407570
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4099d8
push edi
call fcn.00407440
add esp, 0x10
push edi
call fcn.00407570
push dword [esi + 0x40b0a4]
mov ebx, eax
call fcn.00407570
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00405780
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00407340
push edi
push ebx
call fcn.00407350
push 0x4099b8
push ebx
call fcn.00407350
push dword [esi + 0x40b0a4]
push ebx
call fcn.00407350
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040723d
add esp, 0x2c
jmp 0x404d6a
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40b0a4]
push dword [esi]
call fcn.00407570
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.0040762c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40723d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40b4b4], ebx
push esi
push edi
jne 0x4072bd
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4072f8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40b4b4], eax
je 0x4072f8
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40b4b8], eax
call esi
cmp dword [0x40b340], 2
mov dword [0x40b4bc], eax
jne 0x4072bd
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40b4c4], eax
je 0x4072bd
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40b4c0], eax
mov eax, dword [0x40b4c0]
test eax, eax
je 0x407302
call eax
test eax, eax
je 0x4072e9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40b4c4]
test eax, eax
je 0x4072e9
test byte [ebp - 8], 1
jne 0x407302
cmp dword [0x40b34c], 4
jb 0x4072fc
or byte [ebp + 0x12], 0x20
jmp 0x407321
xor eax, eax
jmp 0x407331
or byte [ebp + 0x12], 4
jmp 0x407321
mov eax, dword [0x40b4b8]
test eax, eax
je 0x407321
call eax
mov ebx, eax
test ebx, ebx
je 0x407321
mov eax, dword [0x40b4bc]
test eax, eax
je 0x407321
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40b4b4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4079bd
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4079eb
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4079f2
cmp ebx, dword [eax + 4]
jae 0x4079f2
xor eax, eax
jmp 0x407be2
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x407a03
xor eax, eax
inc eax
jmp 0x407be1
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x407a19
cmp ecx, edx
jae 0x407b5e
cmp dword [eax + 4], 0
je 0x407a22
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x407a0a
cmp dword [ebp + 8], 0
je 0x407a44
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x407b5e
cmp eax, esi
jae 0x407b5e
mov eax, dword [0x40b4c8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x407a69
cmp dword [esi*4 + 0x40b4d0], edi
je 0x407b62
inc esi
cmp esi, eax
jl 0x407a57
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407bde
cmp dword [ebp - 8], 0x1000000
jne 0x407bde
test byte [ebp - 0xc], 0xcc
je 0x407ae7
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x407bde
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407bde
cmp word [eax + 0x18], 0x10b
jne 0x407bde
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x407bde
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x407ae7
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x407ae7
test byte [ecx + 0x27], 0x80
jne 0x407b5e
push 1
push 0x40b510
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4079fb
mov ecx, dword [0x40b4c8]
test ecx, ecx
mov edx, ecx
jle 0x407b1b
lea eax, [ecx*4 + 0x40b4cc]
cmp dword [eax], edi
je 0x407b1b
dec edx
sub eax, 4
test edx, edx
jg 0x407b0f
test edx, edx
jne 0x407b4c
push 0xf
pop ebx
cmp ecx, ebx
jg 0x407b28
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x407b40
lea eax, [edx*4 + 0x40b4d0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x407b2e
cmp ecx, 0x10
jge 0x407b4c
inc ecx
mov dword [0x40b4c8], ecx
push 0
push 0x40b510
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4079fb
xor eax, eax
jmp 0x407be1
test esi, esi
jle 0x4079fb
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40b510
call ebx
test eax, eax
jne 0x4079fb
cmp dword [esi*4 + 0x40b4d0], edi
je 0x407bb8
mov eax, dword [0x40b4c8]
lea esi, [eax - 1]
test esi, esi
jl 0x407ba6
cmp dword [esi*4 + 0x40b4d0], edi
je 0x407ba2
dec esi
jns 0x407b96
test esi, esi
jge 0x407bb6
cmp eax, 0x10
jge 0x407bb1
inc eax
mov dword [0x40b4c8], eax
lea esi, [eax - 1]
jmp 0x407bb8
je 0x407bd0
xor ecx, ecx
test esi, esi
jl 0x407bd0
lea eax, [ecx*4 + 0x40b4d0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x407bbe
push 0
push 0x40b510
call ebx
jmp 0x4079fb
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407fbc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00405780
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408057
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40b340]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x408057
cmp eax, 1
je 0x408078
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408057
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x408024
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x408053
xor eax, eax
inc eax
jmp 0x408097
cmp edi, eax
jae 0x40805b
xor eax, eax
jmp 0x408097
cmp eax, esi
jae 0x408062
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40b340]
jmp 0x40807b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406fc8
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address

Disassembly:
push ebx
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x406fd7
call 0x8566f33
jo 0x40701e
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
add byte [ebx + ecx*4 + 0x3d], ah
xor byte [eax], al
add byte [eax], al
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x459e0c], eax
sub eax, eax
je 0x406ffc
jmp 0xa97b58c2
call 0x40193b
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
push 8
call fcn.00409abb
push 4
mov esi, eax
call fcn.00409abb
lea edi, [esi + 4]
push edi
push ebx
push eax
push 0x407952
push ebx
push ebx
mov dword [eax], 0x406d8b
call fcn.0040e511
add esp, 0x20
mov dword [esi], eax
test eax, eax
je 0x407072
cmp dword [edi], ebx
jne 0x407044
push 1
jmp 0x407076
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi], eax
jne 0x407051
push 5
jmp 0x407076
push ebx
push dword [esi + 4]
push dword [esi]
call fcn.004095b1
add esp, 0xc
test eax, eax
je 0x407067
push 2
jmp 0x407076
pop edi
mov dword [esi], ebx
xor eax, eax
mov dword [esi + 4], ebx
pop esi
pop ebx
ret
mov dword [edi], ebx
push 6
call fcn.00407abf
int3

Function at 0x408b4f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x408b70
jl 0x408b67
test edi, edi
jne 0x408b70
xor eax, eax
xor edx, edx
jmp 0x408c31
cmp dword [ebx + 0x38], 0
je 0x408b85
push eax
push edi
push dword [ebp + 8]
call fcn.00408c37
jmp 0x408c31
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x408bcc
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x408bcc
cmp eax, edi
jb 0x408ba6
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040a920
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x408bd2
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x408c26
mov ecx, ebx
call fcn.004083b7
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x408c11
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041119d
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x408c26
jmp 0x408be4
test edx, edx
je 0x408c26
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041119d
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x404f2c
Capabilities:
Encode data using xor

Disassembly:
push 0x408a00
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
cmp byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
cmp eax, 0xea2d254f
xchg ebp, eax
inc esp
test dword [esi + 0x8fb17b5], esi
adc bl, 0
add byte [eax], al
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [esi + 0x20], ch
push esi
inc edx
dec ebp
push edi
imul ebp, dword [esi + 0x4d], 0x4d005150
add byte [eax], al
add byte [eax], al
dec esp
xor dword [eax], eax
je 0x404f36
ret 0x5d28
Function at 0x401000
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
add edi, 0xfffffffe
xor esi, esi
mov dword [ebp + 0x10], ecx
test edi, edi
jle 0x40107f
push ebx
movzx eax, byte [edx + esi]
shr eax, 2
mov al, byte [eax + 0x48ec40]
mov byte [ecx], al
movsx eax, byte [edx + esi]
movzx ebx, byte [edx + esi + 1]
and eax, 3
shl eax, 4
shr ebx, 4
or eax, ebx
mov al, byte [eax + 0x48ec40]
inc ecx
mov byte [ecx], al
movsx eax, byte [edx + esi + 1]
movzx ebx, byte [edx + esi + 2]
and eax, 0xf
shl eax, 2
shr ebx, 6
or eax, ebx
mov al, byte [eax + 0x48ec40]
inc ecx
mov byte [ecx], al
movsx eax, byte [edx + esi + 2]
and eax, 0x3f
mov al, byte [eax + 0x48ec40]
inc ecx
mov byte [ecx], al
add esi, 3
inc ecx
cmp esi, edi
jl 0x40101b
pop ebx
sub dword [ebp + 0xc], esi
add edx, esi
test byte [ebp + 0xc], 2
je 0x4010c6
movzx eax, byte [edx]
shr eax, 2
mov al, byte [eax + 0x48ec40]
mov byte [ecx], al
movsx esi, byte [edx]
movzx eax, byte [edx + 1]
shr eax, 4
and esi, 3
shl esi, 4
or eax, esi
mov al, byte [eax + 0x48ec40]
inc ecx
mov byte [ecx], al
movsx eax, byte [edx + 1]
inc ecx
and eax, 0xf
mov al, byte [eax*4 + 0x48ec40]
mov byte [ecx], al
jmp 0x4010f0
test byte [ebp + 0xc], 1
je 0x4010f5
movzx eax, byte [edx]
shr eax, 2
mov al, byte [eax + 0x48ec40]
mov byte [ecx], al
movsx eax, byte [edx]
and eax, 3
shl eax, 4
mov al, byte [eax + 0x48ec40]
inc ecx
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov eax, dword [ebp + 0x10]
pop edi
mov byte [ecx], 0
pop esi
pop ebp
ret 0xc

Function at 0x425452
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
lea eax, [esi + 4]
push 0
push eax
mov dword [esi], 0x495bd8
call fcn.0045d760
and dword [esi + 0x48], 0
and dword [esi + 0x44], 0
add esp, 0xc
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
pop esi
ret
Function at 0x4259f5
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
push 0x1c
lea eax, [ebp - 0x20]
push eax
push esi
call dword [0x48d1e8]
test eax, eax
je 0x425a79
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp - 0x1c]
push dword [ebp + 0xc]
push edi
call dword [0x48d1ec]
test eax, eax
je 0x425a3c
test edi, edi
je 0x425a3c
mov eax, dword [edi + 0x3c]
add eax, edi
je 0x425a3c
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
test ecx, ecx
jne 0x425a40
xor eax, eax
jmp 0x425a78
and dword [ebp - 4], 0
push ebx
movzx ebx, word [eax + 6]
sub esi, edi
test ebx, ebx
jbe 0x425a75
lea eax, [ecx + 0x10]
mov edx, dword [eax]
mov edi, dword [eax - 8]
mov ecx, dword [eax - 4]
cmp edx, edi
ja 0x425a60
mov edx, edi
cmp esi, ecx
jb 0x425a6a
add edx, ecx
cmp esi, edx
jbe 0x425a7c
inc dword [ebp - 4]
add eax, 0x28
cmp dword [ebp - 4], ebx
jb 0x425a52
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
inc eax
mov dword [edx], eax
mov eax, dword [ebp + 0x18]
sub esi, ecx
mov dword [eax], esi
xor eax, eax
inc eax
jmp 0x425a77