joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b86cc
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x4e235c]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x4b8708
xor eax, eax
jmp 0x4b8872
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4e4820]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4b8746
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.004c0807
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4b87e0
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x4b8843
jmp 0x4b876a
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x4b87a5
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4b8796
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x4b8776
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b8804
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x4b880d
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x4b8768
jmp 0x4b880d
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b8804
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x4b880d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x4b886d
cmp dword [ebp - 0x68], eax
je 0x4b8840
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x4b8835
call fcn.004b8647
mov dword [eax], 9
call fcn.004b8650
mov dword [eax], esi
jmp 0x4b8868
push dword [ebp - 0x68]
call fcn.004b8659
pop ecx
jmp 0x4b8868
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4b8855
cmp byte [edi], 0x1a
jne 0x4b8855
xor eax, eax
jmp 0x4b8870
call fcn.004b8647
mov dword [eax], 0x1c
call fcn.004b8650
and dword [eax], 0
or eax, 0xffffffff
jmp 0x4b8870
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.004c075e
add ebp, 0x3a4
leave
ret
Function at 0x4b9825
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 0x4b9853
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 0x4b985a
cmp ebx, dword [eax + 4]
jae 0x4b985a
xor eax, eax
jmp 0x4b9a4a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4b986b
xor eax, eax
inc eax
jmp 0x4b9a49
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4b9881
cmp ecx, edx
jae 0x4b99c6
cmp dword [eax + 4], 0
je 0x4b988a
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4b9872
cmp dword [ebp + 8], 0
je 0x4b98ac
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4b99c6
cmp eax, esi
jae 0x4b99c6
mov eax, dword [0x4e4008]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4b98d1
cmp dword [esi*4 + 0x4e4010], edi
je 0x4b99ca
inc esi
cmp esi, eax
jl 0x4b98bf
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4b9a46
cmp dword [ebp - 8], 0x1000000
jne 0x4b9a46
test byte [ebp - 0xc], 0xcc
je 0x4b994f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4b9a46
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4b9a46
cmp word [eax + 0x18], 0x10b
jne 0x4b9a46
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4b9a46
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4b994f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4b994f
test byte [ecx + 0x27], 0x80
jne 0x4b99c6
push 1
push 0x4e4050
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4b9863
mov ecx, dword [0x4e4008]
test ecx, ecx
mov edx, ecx
jle 0x4b9983
lea eax, [ecx*4 + 0x4e400c]
cmp dword [eax], edi
je 0x4b9983
dec edx
sub eax, 4
test edx, edx
jg 0x4b9977
test edx, edx
jne 0x4b99b4
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4b9990
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4b99a8
lea eax, [edx*4 + 0x4e4010]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4b9996
cmp ecx, 0x10
jge 0x4b99b4
inc ecx
mov dword [0x4e4008], ecx
push 0
push 0x4e4050
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4b9863
xor eax, eax
jmp 0x4b9a49
test esi, esi
jle 0x4b9863
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4e4050
call ebx
test eax, eax
jne 0x4b9863
cmp dword [esi*4 + 0x4e4010], edi
je 0x4b9a20
mov eax, dword [0x4e4008]
lea esi, [eax - 1]
test esi, esi
jl 0x4b9a0e
cmp dword [esi*4 + 0x4e4010], edi
je 0x4b9a0a
dec esi
jns 0x4b99fe
test esi, esi
jge 0x4b9a1e
cmp eax, 0x10
jge 0x4b9a19
inc eax
mov dword [0x4e4008], eax
lea esi, [eax - 1]
jmp 0x4b9a20
je 0x4b9a38
xor ecx, ecx
test esi, esi
jl 0x4b9a38
lea eax, [ecx*4 + 0x4e4010]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4b9a26
push 0
push 0x4e4050
call ebx
jmp 0x4b9863
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b9aaf
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.004b4900
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4b9b4a
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 [0x4e3f9c]
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 0x4b9b4a
cmp eax, 1
je 0x4b9b6b
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 0x4b9b4a
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4b9b17
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4b9b46
xor eax, eax
inc eax
jmp 0x4b9b8a
cmp edi, eax
jae 0x4b9b4e
xor eax, eax
jmp 0x4b9b8a
cmp eax, esi
jae 0x4b9b55
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 [0x4e3f9c]
jmp 0x4b9b6e
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 0x4bf928
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4e235c]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4e2370]
je 0x4bf95f
inc eax
cmp eax, 0x13
jb 0x4bf950
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4e2370]
jne 0x4bfa82
mov eax, dword [0x4e3f94]
cmp eax, 1
je 0x4bfa5d
cmp eax, edx
jne 0x4bf98f
cmp dword [0x4e195c], 1
je 0x4bfa5d
cmp ecx, 0xfc
je 0x4bfa82
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bf9c5
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.004b4670
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004b8940
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4bf9f9
mov eax, edi
push eax
call fcn.004b8940
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4db208
push edi
call fcn.004b6eb0
add esp, 0x10
push edi
call fcn.004b8940
push dword [esi + 0x4e2374]
mov ebx, eax
call fcn.004b8940
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004b4900
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004b4670
push edi
push ebx
call fcn.004b4680
push 0x4db1e8
push ebx
call fcn.004b4680
push dword [esi + 0x4e2374]
push ebx
call fcn.004b4680
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004c3533
add esp, 0x2c
jmp 0x4bfa82
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x4e2374]
push dword [esi]
call fcn.004b8940
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]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.004c075e
add ebp, 0x90
leave
ret
Function at 0x4bff4c
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4e449c]
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 0x4bff95
call ebp
mov esi, eax
cmp esi, ebx
je 0x4bff7b
mov dword [0x4e449c], 1
jmp 0x4bff9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4bff90
push 2
pop eax
mov dword [0x4e449c], eax
jmp 0x4bff95
mov eax, dword [0x4e449c]
cmp eax, 1
jne 0x4bfff2
cmp esi, ebx
jne 0x4bffad
call ebp
mov esi, eax
cmp esi, ebx
jne 0x4bffad
xor eax, eax
jmp 0x4c0099
cmp word [esi], bx
mov eax, esi
je 0x4bffc2
inc eax
inc eax
cmp word [eax], bx
jne 0x4bffb4
inc eax
inc eax
cmp word [eax], bx
jne 0x4bffb4
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.004b5a54
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x4bffe5
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x4c0099
push ebp
push esi
push edi
call fcn.004b4bd0
add esp, 0xc
jmp 0x4bffd7
cmp eax, 2
je 0x4bfffb
cmp eax, ebx
jne 0x4bffa6
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x4bffa6
cmp byte [ebp], bl
mov esi, ebp
je 0x4c0031
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x4bffa6
push esi
add edi, eax
call fcn.004b8940
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x4c000e
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.004b5a54
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x4c00aa
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x4c008b
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 0x4c00a0
push edi
call fcn.004b8940
push esi
lea edi, [edi + eax + 1]
call fcn.004b55d9
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x4c0051
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.004b55ef
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x4bffa6
Function at 0x4c00b6
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x4e44a0]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x4c00f6
call esi
test eax, eax
je 0x4c00db
mov dword [0x4e44a0], 1
jmp 0x4c00fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4c00f2
mov dword [0x4e44a0], 2
jmp 0x4c0104
xor eax, eax
jmp 0x4c0152
cmp eax, 1
jne 0x4c00ff
call esi
jmp 0x4c0152
cmp eax, 2
jne 0x4c00f2
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 0x4c014a
lea eax, [esi + esi]
push eax
call fcn.004b5a54
mov ebp, eax
test ebp, ebp
pop ecx
je 0x4c014a
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x4c014e
push ebp
call fcn.004b55ef
pop ecx
xor eax, eax
jmp 0x4c0150
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x4c3533
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4e452c], ebx
push esi
push edi
jne 0x4c35b3
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4c35ee
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4e452c], eax
je 0x4c35ee
push 0x4dcd18
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4e4530], eax
call esi
cmp dword [0x4e3f9c], 2
mov dword [0x4e4534], eax
jne 0x4c35b3
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4e453c], eax
je 0x4c35b3
push 0x4dccd0
push edi
call esi
mov dword [0x4e4538], eax
mov eax, dword [0x4e4538]
test eax, eax
je 0x4c35f8
call eax
test eax, eax
je 0x4c35df
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4e453c]
test eax, eax
je 0x4c35df
test byte [ebp - 8], 1
jne 0x4c35f8
cmp dword [0x4e3fa8], 4
jb 0x4c35f2
or byte [ebp + 0x12], 0x20
jmp 0x4c3617
xor eax, eax
jmp 0x4c3627
or byte [ebp + 0x12], 4
jmp 0x4c3617
mov eax, dword [0x4e4530]
test eax, eax
je 0x4c3617
call eax
mov ebx, eax
test ebx, ebx
je 0x4c3617
mov eax, dword [0x4e4534]
test eax, eax
je 0x4c3617
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4e452c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c4aac
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 0x4c4c82
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4e4820]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4c4c82
test cl, 0x48
je 0x4c4b17
cmp byte [eax + 5], 0xa
je 0x4c4b17
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 0x4c4b69
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4c4b51
call fcn.004b8647
mov dword [eax], 9
call fcn.004b8650
mov dword [eax], esi
jmp 0x4c4b61
cmp eax, 0x6d
je 0x4c4c82
push eax
call fcn.004b8659
pop ecx
or eax, 0xffffffff
jmp 0x4c4c84
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4c4c7d
test eax, eax
je 0x4c4b90
cmp byte [ebx], 0xa
jne 0x4c4b90
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4c4b99
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 0x4c4c77
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4c4c67
cmp al, 0xd
je 0x4c4bcb
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4c4c59
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4c4be5
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4c4be0
add dword [ebp + 0x10], 2
jmp 0x4c4c39
mov dword [ebp + 0x10], eax
jmp 0x4c4c55
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 0x4c4c0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4c4c55
cmp dword [ebp - 0xc], 0
je 0x4c4c55
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4c4c2e
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4c4c39
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4c4c58
cmp ebx, dword [ebp + 0xc]
jne 0x4c4c3e
cmp byte [ebp - 1], 0xa
jne 0x4c4c3e
mov byte [ebx], 0xa
jmp 0x4c4c58
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004c0807
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4c4c59
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4c4baf
jmp 0x4c4c77
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4c4c77
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 0x4c4c84
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c5605
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 0x4c561e
or eax, 0xffffffff
jmp 0x4c567f
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x4c567b
push 0x3d
push esi
call fcn.004c5806
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4c567b
cmp esi, eax
je 0x4c567b
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x4e3fbc]
sete cl
cmp eax, dword [0x4e3fc0]
mov dword [ebp - 4], ecx
jne 0x4c5661
mov edi, eax
call fcn.004c55a4
mov dword [0x4e3fbc], eax
cmp eax, ebx
jne 0x4c56ba
cmp dword [ebp + 0xc], ebx
je 0x4c5683
cmp dword [0x4e3fc4], ebx
je 0x4c5683
call fcn.004c4a1c
test eax, eax
je 0x4c56ba
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x4c568c
xor eax, eax
jmp 0x4c567e
push 4
call fcn.004b5a54
cmp eax, ebx
pop ecx
mov dword [0x4e3fbc], eax
je 0x4c567b
mov dword [eax], ebx
cmp dword [0x4e3fc4], ebx
jne 0x4c56ba
push 4
call fcn.004b5a54
cmp eax, ebx
pop ecx
mov dword [0x4e3fc4], eax
je 0x4c567b
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x4e3fbc]
sub edi, esi
push esi
call fcn.004c5557
mov edi, eax
test edi, edi
pop ecx
jl 0x4c5721
cmp dword [ebx], 0
je 0x4c5721
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004b55ef
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4c5701
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x4c5762
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x4c56f8
mov eax, edi
shl eax, 2
push eax
push dword [0x4e3fbc]
call fcn.004b774a
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x4c5762
jmp 0x4c575d
cmp dword [ebp - 4], 0
jne 0x4c57c9
test edi, edi
jge 0x4c5731
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4e3fbc]
call fcn.004b774a
test eax, eax
pop ecx
pop ecx
je 0x4c567b
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x4e3fbc], eax
cmp dword [ebp + 0xc], 0
je 0x4c57b4
push esi
call fcn.004b8940
inc eax
inc eax
push eax
call fcn.004b5a54
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4c57b4
push esi
push edi
call fcn.004b4670
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4c57ad
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.004b55ef
pop ecx
cmp dword [ebp - 4], 0
je 0x4c57c1
push esi
call fcn.004b55ef
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4c567e
push esi
call fcn.004b55ef
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x4c5688
Function at 0x4c59bd
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4e235c]
xor eax, ebp
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.004c598d
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004b4520
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4c5a21
cmp dword [ebp - 0x1c], 5
jb 0x4c5a39
jmp 0x4c5a35
cmp dword [ebp - 0x10], 1
jne 0x4c5a39
cmp dword [ebp - 0x1c], 4
ja 0x4c5a35
jne 0x4c5a39
cmp dword [ebp - 0x18], 0
jbe 0x4c5a39
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x4dcfa8
call fcn.0043789c
test eax, eax
jge 0x4c5a5a
mov byte [0x4e31d4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004c075e
add ebp, 0x78
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
nop
mov ecx, 0x588218ec
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x7d072930
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x13673232
nop
nop
nop
nop
test eax, eax
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x2541ac
nop
nop
nop
nop
test eax, eax
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x402031
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
call dword [0x5eb3dd]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40206a
push 6
call fcn.00404da1
add esp, 4
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fadd qword [0x421348]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.0040200a
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.00405f20
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4020bd
push ebx
call fcn.00404d8f
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4020e9
push 6
call fcn.00404da1
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x402105
push eax
mov ebx, eax
call fcn.004011bb
inc eax
push eax
call fcn.00404d95
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40210a
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40211b
push ebx
call fcn.00404d8f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4