joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49fedb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x10], edi
je 0x49ff18
cmp dword [ebp + 0x14], edi
je 0x49ff18
cmp ecx, edi
jne 0x49ff1f
call fcn.004a28c2
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004a436d
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x49ff33
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x49ff54
cmp ebx, 0xffffffff
je 0x49ff43
push ebx
push edi
push ecx
call fcn.0049ebe0
add esp, 0xc
cmp esi, edi
je 0x49ff00
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x49ff00
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test dword [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x49ff71
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x49ff78
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4a006a
test dword [esi + 0xc], 0x10c
je 0x49ffcd
mov eax, dword [esi + 4]
test eax, eax
je 0x49ffcd
jl 0x4a00cb
mov edi, ebx
cmp ebx, eax
jb 0x49ff9e
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4a0072
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004a8997
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4a0062
cmp ebx, dword [ebp - 0xc]
jb 0x4a003a
cmp dword [ebp - 0xc], 0
je 0x49fff7
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x49ffec
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x49fff3
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4a0002
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x4a0002
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4a009e
push eax
push dword [ebp - 8]
push esi
call fcn.004a7657
pop ecx
push eax
call fcn.004a889a
add esp, 0xc
test eax, eax
je 0x4a00dd
cmp eax, 0xffffffff
je 0x4a00cb
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4a0062
push esi
call fcn.004a81b4
pop ecx
cmp eax, 0xffffffff
je 0x4a00cf
cmp dword [ebp - 4], 0
je 0x4a009e
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x49ff80
mov eax, dword [ebp + 0x14]
jmp 0x49ff1a
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a0089
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0049ebe0
add esp, 0xc
call fcn.004a28c2
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x49ff10
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a00b4
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0049ebe0
add esp, 0xc
call fcn.004a28c2
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x49ff10
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x49ff1a
or dword [esi + 0xc], 0x10
jmp 0x4a00cf
Function at 0x4a4266
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x4c03a0]
xor eax, ebp
mov dword [ebp + 0x2a4], eax
and dword [ebp - 0x80], 0
push ebx
push 0x4c
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.0049ebe0
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x84], ecx
mov dword [ebp + 0x80], edx
mov dword [ebp + 0x7c], ebx
mov dword [ebp + 0x78], esi
mov dword [ebp + 0x74], edi
mov word [ebp + 0xa0], ss
mov word [ebp + 0x94], cs
mov word [ebp + 0x70], ds
mov word [ebp + 0x6c], es
mov word [ebp + 0x68], fs
mov word [ebp + 0x64], gs
pushfd
pop dword [ebp + 0x98]
mov eax, dword [ebp + 0x2ac]
lea ecx, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov dword [ebp + 0x90], eax
mov dword [ebp + 0x9c], ecx
mov ecx, dword [ecx - 4]
mov dword [ebp + 0x8c], ecx
mov dword [ebp - 0x80], 0xc0000417
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x74], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x4a4345
test ebx, ebx
jne 0x4a4345
push 2
call fcn.004a9c6d
pop ecx
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
xor ecx, ebp
pop ebx
call fcn.0049e626
add ebp, 0x2a8
leave
ret

Function at 0x4a436d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [0x50111c]
call fcn.004a55f3
pop ecx
test eax, eax
je 0x4a4383
pop ebp
jmp eax
push 2
call fcn.004a9c6d
pop ecx
pop ebp
jmp fcn.004a4266
Function at 0x4a46e9
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4c0940]
je 0x4a4704
inc edi
cmp edi, 0x17
jb 0x4a46f5
cmp edi, 0x17
jae 0x4a4884
push ebp
push 3
call fcn.004aa4fb
pop ecx
cmp eax, 1
je 0x4a4850
push 3
call fcn.004aa4fb
pop ecx
test eax, eax
jne 0x4a4738
cmp dword [0x4c0690], 1
je 0x4a4850
cmp ebx, 0xfc
je 0x4a4883
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x501158
push ebp
call fcn.004a90e0
add esp, 0xc
test eax, eax
je 0x4a476e
push esi
push esi
push esi
push esi
push esi
call fcn.004a4266
add esp, 0x14
push 0x104
mov esi, 0x501171
push esi
push 0
mov byte [0x501275], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4a47b2
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004a90e0
add esp, 0xc
test eax, eax
je 0x4a47b2
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004a4266
add esp, 0x14
push esi
call fcn.004a8fc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4a47f7
push esi
call fcn.004a8fc0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x50146c
push 0x4b37e4
sub ecx, eax
push ecx
push eax
call fcn.004a0d73
add esp, 0x14
test eax, eax
je 0x4a47f7
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004a4266
add esp, 0x14
jmp 0x4a47f9
xor esi, esi
push 0x4b6438
push ebx
push ebp
call fcn.004aa48a
add esp, 0xc
test eax, eax
je 0x4a4819
push esi
push esi
push esi
push esi
push esi
call fcn.004a4266
add esp, 0x14
push dword [edi*8 + 0x4c0944]
push ebx
push ebp
call fcn.004aa48a
add esp, 0xc
test eax, eax
je 0x4a483b
push esi
push esi
push esi
push esi
push esi
call fcn.004a4266
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004aa323
add esp, 0xc
jmp 0x4a4883
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4a4883
cmp ebp, 0xffffffff
je 0x4a4883
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4c0944]
push dword [esi]
call fcn.004a8fc0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4a5a1c
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
push edi
mov esi, str.KERNEL32.DLL
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4a5a35
push esi
call fcn.004a4391
pop ecx
mov edi, eax
test edi, edi
je 0x4a5b9d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FlsAlloc
push edi
call esi
push str.FlsGetValue
push edi
mov dword [0x50146c], eax
call esi
push str.FlsSetValue
push edi
mov dword [0x501470], eax
call esi
push str.FlsFree
push edi
mov dword [0x501474], eax
call esi
cmp dword [0x50146c], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x501478], eax
je 0x4a5a9e
cmp dword [0x501470], 0
je 0x4a5a9e
cmp dword [0x501474], 0
je 0x4a5a9e
test eax, eax
jne 0x4a5ac2
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x501470], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x50146c], 0x4a5662
mov dword [0x501474], esi
mov dword [0x501478], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4c0a20], eax
cmp eax, 0xffffffff
je 0x4a5ba2
push dword [0x501470]
push eax
call esi
test eax, eax
je 0x4a5ba2
call fcn.004a469d
push dword [0x50146c]
call fcn.004a557b
push dword [0x501470]
mov dword [0x50146c], eax
call fcn.004a557b
push dword [0x501474]
mov dword [0x501470], eax
call fcn.004a557b
push dword [0x501478]
mov dword [0x501474], eax
call fcn.004a557b
add esp, 0x10
mov dword [0x501478], eax
call fcn.004a2930
test eax, eax
je 0x4a5b9d
push fcn.004a5884
push dword [0x50146c]
call fcn.004a55f3
pop ecx
call eax
mov dword [0x4c0a1c], eax
cmp eax, 0xffffffff
je 0x4a5b9d
push 0x214
push 1
call fcn.004a72ba
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4a5b9d
push esi
push dword [0x4c0a1c]
push dword [0x501474]
call fcn.004a55f3
pop ecx
call eax
test eax, eax
je 0x4a5b9d
push 0
push esi
call fcn.004a570e
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x4a5ba4
call fcn.004a56d1
xor eax, eax
pop edi
pop esi
ret

Function at 0x4a6ff0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x4a7001
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4a6ffe
xor edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete dl
mov eax, edx
ret

Function at 0x4a7020
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x4a705a
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x4a7052
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x4a705c
inc edx
add eax, 0x28
cmp edx, esi
jb 0x4a7042
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x4a81b4
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp esi, edi
jne 0x4a81dd
call fcn.004a28c2
push edi
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
call fcn.004a436d
add esp, 0x14
jmp 0x4a82d4
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x4a82d4
test al, 0x40
jne 0x4a82d4
test al, 2
je 0x4a81ff
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x4a82d4
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
jne 0x4a8215
push esi
call fcn.004a9e11
pop ecx
jmp 0x4a821a
mov eax, dword [esi + 8]
mov dword [esi], eax
push dword [esi + 0x18]
push dword [esi + 8]
push esi
call fcn.004a7657
pop ecx
push eax
call fcn.004a889a
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, edi
je 0x4a82c4
cmp eax, 0xffffffff
je 0x4a82c4
test byte [esi + 0xc], 0x82
jne 0x4a8299
push esi
call fcn.004a7657
pop ecx
cmp eax, 0xffffffff
je 0x4a8284
push esi
call fcn.004a7657
pop ecx
cmp eax, 0xfffffffe
je 0x4a8284
push esi
call fcn.004a7657
sar eax, 5
push esi
lea edi, [eax*4 + 0x501740]
call fcn.004a7657
and eax, 0x1f
pop ecx
shl eax, 6
add eax, dword [edi]
pop ecx
jmp 0x4a8289
mov eax, 0x4c1160
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x4a8299
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x4a82b7
mov eax, dword [esi + 0xc]
test al, 8
je 0x4a82b7
test eax, 0x400
jne 0x4a82b7
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x4a82d7
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], edi
or eax, 0xffffffff
pop edi
pop esi
ret
Function at 0x4a9a58
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x5015e8]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebx, ebx
xor esi, esi
push 2
pop ebp
cmp eax, ebx
jne 0x4a9aa1
call edi
mov esi, eax
cmp esi, ebx
je 0x4a9a88
mov dword [0x5015e8], 1
jmp 0x4a9aaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4a9a9c
mov eax, ebp
mov dword [0x5015e8], eax
jmp 0x4a9aa1
mov eax, dword [0x5015e8]
cmp eax, 1
jne 0x4a9b2e
cmp esi, ebx
jne 0x4a9abd
call edi
mov esi, eax
cmp esi, ebx
jne 0x4a9abd
xor eax, eax
jmp 0x4a9b86
mov eax, esi
cmp word [esi], bx
je 0x4a9ad2
add eax, ebp
cmp word [eax], bx
jne 0x4a9ac4
add eax, ebp
cmp word [eax], bx
jne 0x4a9ac4
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x4a9b23
push ebp
call fcn.004a727a
pop ecx
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x4a9b23
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
jne 0x4a9b1f
push dword [esp + 0x10]
call fcn.0049e37d
pop ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x4a9b86
cmp eax, ebp
je 0x4a9b36
cmp eax, ebx
jne 0x4a9ab6
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x4a9ab6
cmp byte [esi], bl
je 0x4a9b54
inc eax
cmp byte [eax], bl
jne 0x4a9b4a
inc eax
cmp byte [eax], bl
jne 0x4a9b4a
sub eax, esi
inc eax
mov ebp, eax
push ebp
call fcn.004a727a
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x4a9b72
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x4a9ab6
push ebp
push esi
push edi
call fcn.0049ec60
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x4aa323
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004a55ea
and dword [ebp - 4], 0
cmp dword [0x501614], 0
mov ebx, eax
jne 0x4aa3d2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4aa483
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4b66ec
push edi
call esi
test eax, eax
je 0x4aa483
push eax
call fcn.004a557b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x501614], eax
call esi
push eax
call fcn.004a557b
mov dword [esp], 0x4b66c8
push edi
mov dword [0x501618], eax
call esi
push eax
call fcn.004a557b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x50161c], eax
call esi
push eax
call fcn.004a557b
pop ecx
mov dword [0x501624], eax
test eax, eax
je 0x4aa3d2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004a557b
pop ecx
mov dword [0x501620], eax
mov eax, dword [0x501620]
cmp eax, ebx
je 0x4aa42a
cmp dword [0x501624], ebx
je 0x4aa42a
push eax
call fcn.004a55f3
push dword [0x501624]
mov esi, eax
call fcn.004a55f3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4aa42a
test edi, edi
je 0x4aa42a
call esi
test eax, eax
je 0x4aa421
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4aa421
test byte [ebp - 0xc], 1
jne 0x4aa42a
or dword [ebp + 0x10], 0x200000
jmp 0x4aa463
mov eax, dword [0x501618]
cmp eax, ebx
je 0x4aa463
push eax
call fcn.004a55f3
pop ecx
test eax, eax
je 0x4aa463
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4aa463
mov eax, dword [0x50161c]
cmp eax, ebx
je 0x4aa463
push eax
call fcn.004a55f3
pop ecx
test eax, eax
je 0x4aa463
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x501614]
call fcn.004a55f3
pop ecx
test eax, eax
je 0x4aa483
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4aa485
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ac7be
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
push 1
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.004a9c75
mov dword [ebp - 0x18], eax
and eax, edx
add esp, 0x10
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
je 0x4ac844
push 2
push ebx
push ebx
push dword [ebp + 8]
call fcn.004a9c75
mov ecx, eax
and ecx, edx
add esp, 0x10
cmp ecx, 0xffffffff
je 0x4ac844
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
sub esi, eax
sbb edi, edx
js 0x4ac8d9
jg 0x4ac81d
cmp esi, ebx
jbe 0x4ac8d9
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4ac850
call fcn.004a28c2
mov dword [eax], 0xc
call fcn.004a28c2
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push dword [ebp + 8]
call fcn.004ac972
pop ecx
pop ecx
mov dword [ebp - 8], eax
test edi, edi
jl 0x4ac870
jg 0x4ac86c
cmp esi, ebx
jb 0x4ac870
mov eax, ebx
jmp 0x4ac872
mov eax, esi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004a76b0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4ac8bc
cdq
sub esi, eax
sbb edi, edx
js 0x4ac893
jg 0x4ac862
test esi, esi
ja 0x4ac862
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004ac972
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
jmp 0x4ac942
call fcn.004a28d5
cmp dword [eax], 5
jne 0x4ac8d1
call fcn.004a28c2
mov dword [eax], 0xd
or esi, 0xffffffff
mov dword [ebp - 0xc], esi
jmp 0x4ac896
cmp edi, ebx
jg 0x4ac94e
jl 0x4ac8e3
cmp esi, ebx
jae 0x4ac94e
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004a9c75
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4ac844
push dword [ebp + 8]
call fcn.004a10c3
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov dword [ebp - 0x10], eax
and eax, edx
mov dword [ebp - 0xc], edx
cmp eax, 0xffffffff
jne 0x4ac94e
call fcn.004a28c2
mov dword [eax], 0xd
call fcn.004a28d5
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov esi, dword [ebp - 0x10]
and esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
je 0x4ac844
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.004a9c75
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4ac844
xor eax, eax
jmp 0x4ac84b
Function at 0x4acbe8
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4c03a0]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xa0]
or dword [ebp - 0x7c], 0xffffffff
push ebx
xor ebx, ebx
push esi
lea esi, [ebp - 0x74]
mov dword [ebp - 0x80], ebx
cmp eax, ebx
jne 0x4acc42
call fcn.004a28d5
mov dword [eax], ebx
call fcn.004a28c2
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.004a436d
add esp, 0x14
or eax, 0xffffffff
jmp 0x4accf4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x4accd7
lea eax, [ebp - 0x74]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, eax
cmp edi, 0x104
jle 0x4acc95
lea ebx, [edi + 1]
push 1
push ebx
call fcn.004a72ba
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4accd5
mov dword [ebp - 0x80], 1
test edi, edi
je 0x4accd5
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x4accd7
mov al, byte [esi]
cmp al, 0x5c
je 0x4acca3
cmp al, 0x2f
jne 0x4acca8
cmp al, byte [esi + 1]
je 0x4accd0
mov byte [ebp - 0x78], 0x3d
movzx eax, byte [esi]
push eax
call fcn.004ad034
pop ecx
mov byte [ebp - 0x77], al
push esi
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 0x76], 0x3a
mov byte [ebp - 0x75], 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x4accd7
mov dword [ebp - 0x7c], ebx
jmp 0x4acce4
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a28e8
pop ecx
pop edi
cmp dword [ebp - 0x80], ebx
je 0x4accf1
push esi
call fcn.0049e37d
pop ecx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp + 0x94]
pop esi
xor ecx, ebp
pop ebx
call fcn.0049e626
add ebp, 0x98
leave
ret
Function at 0x41f993
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f9d2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f9d2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f9d2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f9d2
cmp dword [ecx + 0x74], 0xe
jbe 0x41f9d2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x432150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43217d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43217d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x541b3fa7
nop
nop
nop
nop
nop
test eax, eax
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x4b834098
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219