joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471e17
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 0x471e45
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 0x471e4c
cmp ebx, dword [eax + 4]
jae 0x471e4c
xor eax, eax
jmp 0x47203c
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x471e5d
xor eax, eax
inc eax
jmp 0x47203b
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x471e73
cmp ecx, edx
jae 0x471fb8
cmp dword [eax + 4], 0
je 0x471e7c
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x471e64
cmp dword [ebp + 8], 0
je 0x471e9e
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x471fb8
cmp eax, esi
jae 0x471fb8
mov eax, dword [0x490db8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x471ec3
cmp dword [esi*4 + 0x490dc0], edi
je 0x471fbc
inc esi
cmp esi, eax
jl 0x471eb1
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x472038
cmp dword [ebp - 8], 0x1000000
jne 0x472038
test byte [ebp - 0xc], 0xcc
je 0x471f41
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x472038
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x472038
cmp word [eax + 0x18], 0x10b
jne 0x472038
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x472038
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x471f41
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x471f41
test byte [ecx + 0x27], 0x80
jne 0x471fb8
push 1
push 0x490e00
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x471e55
mov ecx, dword [0x490db8]
test ecx, ecx
mov edx, ecx
jle 0x471f75
lea eax, [ecx*4 + 0x490dbc]
cmp dword [eax], edi
je 0x471f75
dec edx
sub eax, 4
test edx, edx
jg 0x471f69
test edx, edx
jne 0x471fa6
push 0xf
pop ebx
cmp ecx, ebx
jg 0x471f82
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x471f9a
lea eax, [edx*4 + 0x490dc0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x471f88
cmp ecx, 0x10
jge 0x471fa6
inc ecx
mov dword [0x490db8], ecx
push 0
push 0x490e00
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x471e55
xor eax, eax
jmp 0x47203b
test esi, esi
jle 0x471e55
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x490e00
call ebx
test eax, eax
jne 0x471e55
cmp dword [esi*4 + 0x490dc0], edi
je 0x472012
mov eax, dword [0x490db8]
lea esi, [eax - 1]
test esi, esi
jl 0x472000
cmp dword [esi*4 + 0x490dc0], edi
je 0x471ffc
dec esi
jns 0x471ff0
test esi, esi
jge 0x472010
cmp eax, 0x10
jge 0x47200b
inc eax
mov dword [0x490db8], eax
lea esi, [eax - 1]
jmp 0x472012
je 0x47202a
xor ecx, ecx
test esi, esi
jl 0x47202a
lea eax, [ecx*4 + 0x490dc0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x472018
push 0
push 0x490e00
call ebx
jmp 0x471e55
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4720a1
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.00467bd0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x47213c
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 [0x490b1c]
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 0x47213c
cmp eax, 1
je 0x47215d
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 0x47213c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x472109
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x472138
xor eax, eax
inc eax
jmp 0x47217c
cmp edi, eax
jae 0x472140
xor eax, eax
jmp 0x47217c
cmp eax, esi
jae 0x472147
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 [0x490b1c]
jmp 0x472160
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 0x473978
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x48f320]
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 + 0x48f330]
je 0x4739ad
inc eax
cmp eax, 0x13
jb 0x47399e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x48f330]
jne 0x473ad3
mov eax, dword [0x490b14]
cmp eax, 1
je 0x473aab
cmp eax, edx
jne 0x4739dd
cmp dword [0x48eb6c], 1
je 0x473aab
cmp ecx, 0xfc
je 0x473ad3
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 0x473a13
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004668b0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0046bb70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x473a47
mov eax, edi
push eax
call fcn.0046bb70
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4896a8
push edi
call fcn.00475730
add esp, 0x10
push edi
call fcn.0046bb70
push dword [esi + 0x48f334]
mov ebx, eax
call fcn.0046bb70
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00467bd0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004668b0
push edi
push ebx
call fcn.004668c0
push 0x489688
push ebx
call fcn.004668c0
push dword [esi + 0x48f334]
push ebx
call fcn.004668c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004776e4
add esp, 0x2c
jmp 0x473ad3
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x48f334]
push dword [esi]
call fcn.0046bb70
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.004745ab
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x473f9b
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x491024]
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 0x473fe4
call ebp
mov esi, eax
cmp esi, ebx
je 0x473fca
mov dword [0x491024], 1
jmp 0x473fe9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x473fdf
push 2
pop eax
mov dword [0x491024], eax
jmp 0x473fe4
mov eax, dword [0x491024]
cmp eax, 1
jne 0x474041
cmp esi, ebx
jne 0x473ffc
call ebp
mov esi, eax
cmp esi, ebx
jne 0x473ffc
xor eax, eax
jmp 0x4740e8
cmp word [esi], bx
mov eax, esi
je 0x474011
inc eax
inc eax
cmp word [eax], bx
jne 0x474003
inc eax
inc eax
cmp word [eax], bx
jne 0x474003
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.004695b3
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x474034
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x4740e8
push ebp
push esi
push edi
call fcn.004669c0
add esp, 0xc
jmp 0x474026
cmp eax, 2
je 0x47404a
cmp eax, ebx
jne 0x473ff5
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x473ff5
cmp byte [ebp], bl
mov esi, ebp
je 0x474080
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x473ff5
push esi
add edi, eax
call fcn.0046bb70
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x47405d
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.004695b3
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x4740f9
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x4740da
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 0x4740ef
push edi
call fcn.0046bb70
push esi
lea edi, [edi + eax + 1]
call fcn.00467467
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x4740a0
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.00469491
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x473ff5
Function at 0x474105
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x491028]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x474145
call esi
test eax, eax
je 0x47412a
mov dword [0x491028], 1
jmp 0x47414a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x474141
mov dword [0x491028], 2
jmp 0x474153
xor eax, eax
jmp 0x4741a1
cmp eax, 1
jne 0x47414e
call esi
jmp 0x4741a1
cmp eax, 2
jne 0x474141
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 0x474199
lea eax, [esi + esi]
push eax
call fcn.004695b3
mov ebp, eax
test ebp, ebp
pop ecx
je 0x474199
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x47419d
push ebp
call fcn.00469491
pop ecx
xor eax, eax
jmp 0x47419f
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x4776e4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4910b4], ebx
push esi
push edi
jne 0x477764
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x47779f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x48b154
push edi
call esi
test eax, eax
mov dword [0x4910b4], eax
je 0x47779f
push 0x48b144
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4910b8], eax
call esi
cmp dword [0x490b1c], 2
mov dword [0x4910bc], eax
jne 0x477764
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4910c4], eax
je 0x477764
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4910c0], eax
mov eax, dword [0x4910c0]
test eax, eax
je 0x4777a9
call eax
test eax, eax
je 0x477790
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4910c4]
test eax, eax
je 0x477790
test byte [ebp - 8], 1
jne 0x4777a9
cmp dword [0x490b28], 4
jb 0x4777a3
or byte [ebp + 0x12], 0x20
jmp 0x4777c8
xor eax, eax
jmp 0x4777d8
or byte [ebp + 0x12], 4
jmp 0x4777c8
mov eax, dword [0x4910b8]
test eax, eax
je 0x4777c8
call eax
mov ebx, eax
test ebx, ebx
je 0x4777c8
mov eax, dword [0x4910bc]
test eax, eax
je 0x4777c8
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4910b4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x478bfd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x478dd1
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4913c0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x478dd1
test cl, 0x48
je 0x478c68
cmp byte [eax + 5], 0xa
je 0x478c68
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x478cba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x478ca2
call fcn.0046bd7d
mov dword [eax], 9
call fcn.0046bd86
mov dword [eax], esi
jmp 0x478cb2
cmp eax, 0x6d
je 0x478dd1
push eax
call fcn.0046bd8f
pop ecx
or eax, 0xffffffff
jmp 0x478dd3
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x478dcc
test eax, eax
je 0x478ce1
cmp byte [ebx], 0xa
jne 0x478ce1
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x478cea
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x478dc6
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x478db6
cmp al, 0xd
je 0x478d1c
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x478da8
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x478d36
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x478d31
add dword [ebp + 0x10], 2
jmp 0x478d8a
mov dword [ebp + 0x10], eax
jmp 0x478da4
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x478d5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x478da4
cmp dword [ebp - 0xc], 0
je 0x478da4
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x478d7f
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x478d8a
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x478da7
cmp ebx, dword [ebp + 0xc]
jne 0x478d8f
cmp byte [ebp - 1], 0xa
jne 0x478d8f
mov byte [ebx], 0xa
jmp 0x478da7
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0047422c
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x478da8
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x478d00
jmp 0x478dc6
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x478dc6
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x478dd3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4795f7
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 0x479610
or eax, 0xffffffff
jmp 0x479671
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x47966d
push 0x3d
push esi
call fcn.004797f7
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x47966d
cmp esi, eax
je 0x47966d
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x490b3c]
sete cl
cmp eax, dword [0x490b40]
mov dword [ebp - 8], ecx
jne 0x479653
mov edi, eax
call fcn.00479596
mov dword [0x490b3c], eax
cmp eax, ebx
jne 0x4796ac
cmp dword [ebp + 0xc], ebx
je 0x479675
cmp dword [0x490b44], ebx
je 0x479675
call fcn.00478b6d
test eax, eax
je 0x4796ac
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x47967e
xor eax, eax
jmp 0x479670
push 4
call fcn.004695b3
cmp eax, ebx
pop ecx
mov dword [0x490b3c], eax
je 0x47966d
mov dword [eax], ebx
cmp dword [0x490b44], ebx
jne 0x4796ac
push 4
call fcn.004695b3
cmp eax, ebx
pop ecx
mov dword [0x490b44], eax
je 0x47966d
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x490b3c]
call fcn.00479549
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x47970d
cmp dword [esi], ebx
je 0x47970d
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00469491
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4796f0
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x47974e
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4796e7
mov eax, edi
shl eax, 2
push eax
push dword [0x490b3c]
call fcn.00469d2e
cmp eax, ebx
pop ecx
pop ecx
je 0x47974e
jmp 0x479749
cmp dword [ebp - 8], ebx
jne 0x4797b9
cmp edi, ebx
jge 0x47971c
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x490b3c]
call fcn.00469d2e
cmp eax, ebx
pop ecx
pop ecx
je 0x47966d
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 [0x490b3c], eax
cmp dword [ebp + 0xc], ebx
je 0x4797a3
push dword [ebp - 4]
call fcn.0046bb70
inc eax
inc eax
push eax
call fcn.004695b3
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4797a3
push dword [ebp - 4]
push esi
call fcn.004668b0
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 0x47979c
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00469491
pop ecx
cmp dword [ebp - 8], ebx
je 0x4797b1
push dword [ebp - 4]
call fcn.00469491
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x479670
push dword [ebp - 4]
call fcn.00469491
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x47967a
Function at 0x4016ba
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
call fcn.004016cd

Function at 0x401734
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
pushal
mov dword [ebp - 4], 0
call fcn.00401747
Function at 0x4027cd
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push 0x405180
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x40289b
mov dword [ebp - 0x50], eax
push 0
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x54], eax
or eax, eax
je 0x40289b
push 0
push 0
push 0
push 2
push 0
push dword [ebp - 0x50]
call sub.kernel32.dll_CreateFileMappingA
or eax, eax
je 0x402893
mov dword [ebp - 0x58], eax
push 0
push 0
push 0
push 4
push eax
call sub.kernel32.dll_MapViewOfFile
or eax, eax
je 0x40288b
mov dword [ebp - 0x5c], eax
push ebp
push 0x402879
push 0x40279d
push dword fs:[0]
mov dword fs:[0], esp
mov esi, dword [ebp - 0x5c]
cmp word [esi], 0x5a4d
je 0x40285e
jmp 0x402879
add esi, dword [esi + 0x3c]
cmp dword [esi], 0x4550
je 0x40286b
jmp 0x402879
push dword [ebp - 0x54]
push esi
push dword [ebp - 0x5c]
call fcn.0040215f
jmp 0x402879
pop dword fs:[0]
add esp, 0xc
push dword [ebp - 0x5c]
call sub.kernel32.dll_UnmapViewOfFile
push dword [ebp - 0x58]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 0x50]
call sub.kernel32.dll_CloseHandle
leave
ret
Function at 0x402b1c
Capabilities:
Check for time delay via gettickcount
Create thread
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x402d11
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push dword [0x405170]
pop dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], str.MainWinClass
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassExA
push 0
push dword [ebp + 8]
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Main_Window
push str.MainWinClass
push 0
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 0x50], eax
push 0x104
push 0x405c9c
call sub.kernel32.dll_GetWindowsDirectoryA
push 0x405c9c
push 0x405ea4
call sub.kernel32.dll_lstrcpyA
push 0x405034
push 0x405c9c
call sub.kernel32.dll_lstrcatA
push str.svchost
push 0x405c9c
call sub.kernel32.dll_lstrcatA
push 0x405c9c
push 0x405da0
call sub.kernel32.dll_lstrcpyA
push str..aaa
push 0x405c9c
call sub.kernel32.dll_lstrcatA
push str..exe
push 0x405da0
call sub.kernel32.dll_lstrcatA
mov eax, 0x402d57
push 0x40517c
push 0
push 0
push eax
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
mov ebx, 1
jmp 0x402cad
mov byte [ebp - 0x154], 0
inc byte [0x405064]
lea eax, [0x405064]
push eax
lea eax, [ebp - 0x154]
push eax
call sub.kernel32.dll_lstrcatA
push 0x405062
lea eax, [ebp - 0x154]
push eax
call sub.kernel32.dll_lstrcatA
lea eax, [ebp - 0x154]
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
je 0x402ca0
cmp eax, 2
je 0x402ca0
cmp eax, 4
jne 0x402cac
lea eax, [ebp - 0x154]
push eax
call fcn.0040289d
inc ebx
cmp ebx, 0x1a
jbe 0x402c54
call sub.kernel32.dll_GetTickCount
mov ebx, eax
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x1d4c0
jb 0x402cc9
jmp 0x402cd2
push 1
call sub.kernel32.dll_Sleep
jmp 0x402cb9
push 0
push 0
push 2
push dword [0x405178]
call sub.user32.dll_SendMessageA
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_GetMessageA
or eax, eax
je 0x402d0a
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x402ce3
mov eax, dword [ebp - 0x44]
leave
ret 0x10
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x328c46b1
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x511e7314
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x27bb68e8
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4dd357eb
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219