joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4acd30
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 0x4acef6
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x50bc00]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4acef6
test cl, 0x48
je 0x4acd96
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4acd96
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 0x4acde8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4acdd0
call fcn.004a0729
mov dword [eax], 9
call fcn.004a0732
mov dword [eax], esi
jmp 0x4acde0
cmp eax, 0x6d
je 0x4acef6
push eax
call fcn.004a073b
pop ecx
or eax, 0xffffffff
jmp 0x4acef8
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x4acef1
test edx, edx
je 0x4ace0b
cmp byte [ebx], 0xa
jne 0x4ace0b
or al, 4
jmp 0x4ace0d
and al, 0xfb
mov byte [ecx], al
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 0x4aceeb
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4acedb
cmp al, 0xd
je 0x4ace41
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4acecd
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4ace5b
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4ace56
add dword [ebp + 0x10], 2
jmp 0x4aceaf
mov dword [ebp + 0x10], eax
jmp 0x4acec9
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 0x4ace83
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4acec9
cmp dword [ebp - 0xc], 0
je 0x4acec9
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4acea4
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4aceaf
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4acecc
cmp ebx, dword [ebp + 0xc]
jne 0x4aceb4
cmp byte [ebp - 1], 0xa
jne 0x4aceb4
mov byte [ebx], 0xa
jmp 0x4acecc
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004ad93c
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4acecd
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4ace25
jmp 0x4aceeb
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4aceeb
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4acef8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4acfa8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x509334]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x4acfd1
xor eax, eax
jmp 0x4ad13f
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x50bc00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4ad004
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004b3dfb
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4ad0d6
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x4ad111
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x4ad05f
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4ad050
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x4ad033
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4ad09f
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x4ad0a8
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4ad024
jmp 0x4ad0aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x4ad13a
cmp dword [ebp - 8], edi
je 0x4ad111
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x4ad103
call fcn.004a0729
mov dword [eax], 9
call fcn.004a0732
mov dword [eax], esi
jmp 0x4ad10c
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4ad0f8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x4ad0aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x4ad0aa
push dword [ebp - 8]
call fcn.004a073b
pop ecx
or eax, 0xffffffff
jmp 0x4ad13d
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4ad126
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4ad126
xor eax, eax
jmp 0x4ad13d
call fcn.004a0729
mov dword [eax], 0x1c
call fcn.004a0732
mov dword [eax], edi
jmp 0x4ad10c
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0049e993
leave
ret
Function at 0x4ad1f8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x509334]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x509bc0]
je 0x4ad225
inc eax
cmp eax, 0x12
jb 0x4ad216
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x509bc0]
jne 0x4ad359
mov eax, dword [0x50b79c]
cmp eax, 1
je 0x4ad334
cmp eax, edx
jne 0x4ad255
cmp dword [0x509504], 1
je 0x4ad334
cmp ecx, 0xfc
je 0x4ad359
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ad28e
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.004a70c0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004a29d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4ad2d0
lea eax, [ebp - 0x10c]
push eax
call fcn.004a29d0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4e09c4
push edi
call fcn.004a1c80
add esp, 0x10
push edi
call fcn.004a29d0
push dword [esi + 0x509bc4]
mov ebx, eax
call fcn.004a29d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004a1b10
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004a70c0
push edi
push ebx
call fcn.004a70d0
push 0x4c8a58
push ebx
call fcn.004a70d0
push dword [esi + 0x509bc4]
push ebx
call fcn.004a70d0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004a6e7e
add esp, 0x2c
jmp 0x4ad359
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x509bc4]
push dword [esi]
call fcn.004a29d0
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0049e993
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b2ba0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.004a1b10
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4b2c35
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x50b6e4]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4b2c35
cmp eax, 1
je 0x4b2c4d
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4b2c35
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4b2c0a
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4b2c31
xor eax, eax
inc eax
jmp 0x4b2c69
cmp esi, ebx
jae 0x4b2c39
xor eax, eax
jmp 0x4b2c69
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x50b6e4]
jmp 0x4b2c4f
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b3fea
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x4b4055
push 0x3d
push dword [ebp + 8]
call fcn.004b64eb
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x4b4055
cmp dword [ebp + 8], esi
je 0x4b4055
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x50b704]
cmp eax, dword [0x50b708]
jne 0x4b403b
mov edi, eax
call fcn.004b3f89
mov dword [0x50b704], eax
cmp eax, ebx
jne 0x4b4094
cmp dword [ebp + 0xc], ebx
je 0x4b405d
cmp dword [0x50b70c], ebx
je 0x4b405d
call fcn.004adca6
test eax, eax
je 0x4b4094
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x4b4198
push 4
call fcn.0049ebf4
cmp eax, ebx
pop ecx
mov dword [0x50b704], eax
je 0x4b4055
mov dword [eax], ebx
cmp dword [0x50b70c], ebx
jne 0x4b4094
push 4
call fcn.0049ebf4
cmp eax, ebx
pop ecx
mov dword [0x50b70c], eax
je 0x4b4055
mov dword [eax], ebx
mov ebx, dword [0x50b704]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.004b3f3c
mov edi, eax
test edi, edi
pop ecx
jl 0x4b40ed
cmp dword [ebx], 0
je 0x4b40ed
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0049e323
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4b40d5
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x4b4123
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x4b40cc
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.0049ec06
test eax, eax
pop ecx
pop ecx
je 0x4b4123
jmp 0x4b411e
cmp dword [ebp - 4], 0
jne 0x4b4191
test edi, edi
jge 0x4b40fd
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.0049ec06
test eax, eax
pop ecx
pop ecx
je 0x4b4055
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x50b704], eax
cmp dword [ebp + 0xc], 0
je 0x4b417a
push dword [ebp + 8]
call fcn.004a29d0
inc eax
inc eax
push eax
call fcn.0049ebf4
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4b417a
push dword [ebp + 8]
push esi
call fcn.004a70c0
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
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 0x4b4173
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0049e323
pop ecx
cmp dword [ebp - 4], 0
je 0x4b4189
push dword [ebp + 8]
call fcn.0049e323
pop ecx
mov eax, dword [ebp - 8]
jmp 0x4b4058
push esi
call fcn.0049e323
pop ecx
xor eax, eax
jmp 0x4b4058
Function at 0x4b59c4
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4e7238
call fcn.004a6dcc
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x50bbd4], edi
jne 0x4b5a08
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b59f3
mov dword [0x50bbd4], ebx
jmp 0x4b5a08
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4b5a08
mov dword [0x50bbd4], 2
mov eax, dword [0x50bbd4]
cmp eax, ebx
jne 0x4b5a28
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4b5aeb
cmp eax, 2
je 0x4b5a31
cmp eax, edi
jne 0x4b5a59
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x4b5a44
mov eax, dword [0x50bad8]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x4b5a60
xor eax, eax
jmp 0x4b5aeb
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004a1b10
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4b5a93
cmp esi, edi
jne 0x4b5aa9
push dword [ebp - 0x24]
call fcn.0049ebf4
pop ecx
mov esi, eax
cmp esi, edi
je 0x4b5a59
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x24]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4b5adc
cmp dword [ebp + 0x14], edi
jne 0x4b5ac6
push edi
push edi
jmp 0x4b5acc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
je 0x4b5ae8
push esi
call fcn.0049e323
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004a6e07
ret
Function at 0x4b5af4
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4e7248
call fcn.004a6dcc
xor esi, esi
cmp dword [0x50bbd8], esi
jne 0x4b5b38
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b5b23
mov dword [0x50bbd8], edi
jmp 0x4b5b38
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4b5b38
mov dword [0x50bbd8], 2
mov eax, dword [0x50bbd8]
cmp eax, 2
je 0x4b5c19
cmp eax, esi
je 0x4b5c19
cmp eax, 1
jne 0x4b5b7d
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4b5b66
mov eax, dword [0x50bad8]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x4b5b84
xor eax, eax
jmp 0x4b5c2b
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004a1b10
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4b5bba
cmp edi, esi
jne 0x4b5bd5
lea eax, [ebx + ebx]
push eax
call fcn.0049ebf4
pop ecx
mov edi, eax
cmp edi, esi
je 0x4b5b7d
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b5c08
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4b5bf2
push esi
push esi
jmp 0x4b5bf8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4b5c14
push edi
call fcn.0049e323
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4b5c2b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004a6e07
ret
Function at 0x4b6566
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004a1b10
mov eax, dword [0x509334]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004ad93c
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4b6690
push 2
push esi
push dword [ebp + 8]
call fcn.004ad93c
add esp, 0xc
cmp eax, ebx
je 0x4b6690
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4b6633
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.004a4430
push 0x8000
push dword [ebp + 8]
call fcn.004b702e
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x4b65ec
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.004acfa8
add esp, 0xc
cmp eax, 0xffffffff
je 0x4b660c
sub edi, eax
test edi, edi
jg 0x4b65e4
jmp 0x4b6624
call fcn.004a0732
cmp dword [eax], 5
jne 0x4b6621
call fcn.004a0729
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004b702e
pop ecx
pop ecx
jmp 0x4b667b
jge 0x4b667b
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004ad93c
push dword [ebp + 8]
call fcn.004b3bd8
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4b667b
call fcn.004a0729
mov dword [eax], 0xd
call fcn.004a0732
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004ad93c
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4b6692
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0049e993
leave
ret
Function at 0x448055
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067cfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
lea edi, [ebp - 0x5c]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0x34
call fcn.00474eb5
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x4480a9
mov ecx, dword [ebp - 0x18]
call fcn.0043077e
mov dword [ebp - 0x1c], eax
jmp 0x4480b0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov dword [edx + 0x2c], ecx
mov esi, esp
push 0xfffffffffffffffc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [0x100a79b4]
cmp esi, esp
call fcn.00474e75
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x30], eax
mov esi, esp
push 0x10001b4f
push 0xfffffffffffffffc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [0x100a79b8]
cmp esi, esp
call fcn.00474e75
mov esi, esp
mov ecx, dword [ebp - 0x10]
push ecx
push 0x10099040
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [0x100a79bc]
cmp esi, esp
call fcn.00474e75
mov esi, esp
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x30]
push edx
push 0x10099030
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [0x100a79bc]
cmp esi, esp
call fcn.00474e75
mov esi, esp
push 0x10001b4f
push 0x10099020
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [0x100a79bc]
cmp esi, esp
call fcn.00474e75
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
mov ecx, 0x100a34b8
call fcn.0043021a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x5c
cmp ebp, esp
call fcn.00474e75
mov esp, ebp
pop ebp
ret
Function at 0x48e7e5
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009b178
push 0x1004d448
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], 0
jne 0x48e822
push 0
call dword [0x100a77a8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x5a4d
je 0x48e85a
push 0xc1
call dword [0x100a76c8]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
jmp 0x48e9be
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x48e892
push 0xbf
call dword [0x100a76c8]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
jmp 0x48e9be
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov cx, word [eax + 0x14]
test ecx, ecx
jne 0x48e8c0
push 0xc0
call dword [0x100a76c8]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
jmp 0x48e9be
mov edx, dword [ebp - 0x24]
xor eax, eax
mov ax, word [edx + 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], 0
jmp 0x48e8e5
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov dx, word [ecx + 6]
cmp dword [ebp - 0x28], edx
jae 0x48e998
push 0x100a2838
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
add ecx, eax
push ecx
call fcn.0047a8f5
add esp, 8
test eax, eax
jne 0x48e993
mov edx, dword [ebp - 0x28]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x20]
cmp dword [eax + edx + 0xc], 0
je 0x48e934
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x20]
cmp dword [edx + ecx + 0x10], 0
jne 0x48e936
jmp 0x48e998
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp dword [ecx], 0x30
jb 0x48e963
mov edx, dword [ebp - 0x30]
cmp dword [edx + 4], 0x727444
je 0x48e965
jmp 0x48e998
mov eax, dword [ebp - 0x30]
cmp dword [eax + 8], 0
jne 0x48e979
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
mov dword [ecx + 8], eax
push 0
call dword [0x100a76c8]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
jmp 0x48e9be
jmp 0x48e8dc
mov dword [ebp - 4], 0xffffffff
jmp 0x48e9b1
push 0xc0
call dword [0x100a76c8]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402f6c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45f020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403004
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402fe4
xor eax, eax
push ebp
push 0x402fdd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403020
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402fe4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45f020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45f020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403cb0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x461048], 0
je 0x403d11
cmp word [0x46121c], 0xd7b2
jne 0x403cd9
cmp dword [0x461224], 0
jbe 0x403cd9
mov eax, 0x461218
call dword [0x461234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45f06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403d38
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45f030], 0
jne 0x403d2d
push 0
push 0x45f064
push 0x45f06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403e64
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026cc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x461049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403e2c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc