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

Disassembly:
sub esp, 0x404
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
mov esi, dword [esp + 0x40c]
push edi
mov edi, dword [esp + 0x414]
push edi
push 0x50
call fcn.004a86b0
push edi
push 0x4b
call fcn.004a86b0
push edi
push 3
call fcn.004a86b0
push edi
push 4
call fcn.004a86b0
movsx eax, byte [esi + 2]
push edi
push eax
call fcn.004a86b0
movsx ecx, byte [esi + 3]
push edi
push ecx
call fcn.004a86b0
movsx edx, byte [esi + 0x2c]
push edi
push edx
call fcn.004a86b0
movsx eax, byte [esi + 0x2d]
push edi
push eax
call fcn.004a86b0
movsx ecx, byte [esi + 6]
add esp, 0x40
push edi
push ecx
call fcn.004a86b0
movsx edx, byte [esi + 7]
push edi
push edx
call fcn.004a86b0
movsx eax, byte [esi + 8]
push edi
push eax
call fcn.004a86b0
movsx ecx, byte [esi + 9]
push edi
push ecx
call fcn.004a86b0
movsx edx, byte [esi + 0xa]
push edi
push edx
call fcn.004a86b0
movsx eax, byte [esi + 0xb]
push edi
push eax
call fcn.004a86b0
movsx ecx, byte [esi + 0xc]
push edi
push ecx
call fcn.004a86b0
movsx edx, byte [esi + 0xd]
push edi
push edx
call fcn.004a86b0
movsx eax, byte [esi + 0xe]
add esp, 0x40
push edi
push eax
call fcn.004a86b0
movsx ecx, byte [esi + 0xf]
push edi
push ecx
call fcn.004a86b0
movsx edx, byte [esi + 0x10]
push edi
push edx
call fcn.004a86b0
movsx eax, byte [esi + 0x11]
push edi
push eax
call fcn.004a86b0
movsx ecx, byte [esi + 0x12]
push edi
push ecx
call fcn.004a86b0
movsx edx, byte [esi + 0x13]
push edi
push edx
call fcn.004a86b0
movsx eax, byte [esi + 0x14]
push edi
push eax
call fcn.004a86b0
movsx ecx, byte [esi + 0x15]
push edi
push ecx
call fcn.004a86b0
movsx edx, byte [esi + 0x16]
add esp, 0x40
push edi
push edx
call fcn.004a86b0
movsx eax, byte [esi + 0x17]
push edi
push eax
call fcn.004a86b0
movsx ecx, byte [esi + 0x18]
push edi
push ecx
call fcn.004a86b0
mov edx, dword [esi + 0x18]
shr edx, 8
movsx eax, dl
push edi
push eax
call fcn.004a86b0
movsx ecx, byte [esi + 0x1c]
push edi
push ecx
call fcn.004a86b0
mov edx, dword [esi + 0x1c]
shr edx, 8
movsx eax, dl
push edi
push eax
call fcn.004a86b0
mov edx, dword [esi + 0x48]
add esp, 0x30
push 0x400
lea ecx, [esp + 0xc]
push ecx
push edx
call fcn.00452d10
mov eax, dword [esi + 0x18]
push edi
push eax
lea ecx, [esp + 0x10]
push 1
push ecx
call fcn.004a6ea4
add esp, 0x10
cmp eax, dword [esi + 0x18]
jne 0x4a21d4
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4a21d0
mov edx, dword [esi + 0x3c]
push edi
push eax
push 1
push edx
call fcn.004a6ea4
add esp, 0x10
cmp eax, dword [esi + 0x1c]
jne 0x4a21d4
xor eax, eax
jmp 0x4a21d9
mov eax, 0xa
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
call fcn.004a4bb3
add esp, 0x404
ret 8
Function at 0x4a2580
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x20]
push edi
push esi
push 0x50
call fcn.004a86b0
push esi
push 0x4b
call fcn.004a86b0
push esi
push 5
call fcn.004a86b0
push esi
push 6
call fcn.004a86b0
push esi
push 0
call fcn.004a86b0
push esi
push 0
call fcn.004a86b0
push esi
push 0
call fcn.004a86b0
push esi
push 0
call fcn.004a86b0
mov ebx, dword [esp + 0x50]
add esp, 0x40
movsx edi, bl
push esi
push edi
call fcn.004a86b0
sar ebx, 8
movsx ebx, bl
push esi
push ebx
call fcn.004a86b0
push esi
push edi
call fcn.004a86b0
push esi
push ebx
call fcn.004a86b0
mov ebx, dword [esp + 0x34]
movsx eax, bl
push esi
push eax
call fcn.004a86b0
mov ecx, ebx
shr ecx, 8
movsx edx, cl
push esi
push edx
call fcn.004a86b0
mov eax, ebx
shr eax, 0x10
movsx ecx, al
push esi
push ecx
call fcn.004a86b0
shr ebx, 0x18
movsx edx, bl
push esi
push edx
call fcn.004a86b0
mov ebx, dword [esp + 0x58]
add esp, 0x40
movsx eax, bl
push esi
push eax
call fcn.004a86b0
mov ecx, ebx
shr ecx, 8
movsx edx, cl
push esi
push edx
call fcn.004a86b0
push esi
mov eax, ebx
shr eax, 0x10
movsx ecx, al
push ecx
call fcn.004a86b0
shr ebx, 0x18
movsx edx, bl
push esi
push edx
call fcn.004a86b0
mov ebx, dword [esp + 0x3c]
movsx eax, bl
push esi
push eax
call fcn.004a86b0
mov ecx, ebx
shr ecx, 8
movsx edx, cl
push esi
push edx
call fcn.004a86b0
add esp, 0x30
test ebx, ebx
je 0x4a26ac
mov eax, dword [esp + 0x20]
push esi
push ebx
push 1
push eax
call fcn.004a6ea4
add esp, 0x10
cmp eax, ebx
je 0x4a26ac
pop edi
pop esi
mov eax, 0xa
pop ebx
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x18
Function at 0x4a4bb3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4cc3b0]
jne 0x4a4bbd
repz ret
jmp fcn.004a9dea

Function at 0x4a6108
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
jne 0x4a613a
call fcn.004a93f5
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.004a9396
add esp, 0x14
or eax, 0xffffffff
jmp 0x4a61bb
push esi
call fcn.004ac8d4
push 0x214
push 1
call fcn.004ad63a
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x4a619e
call fcn.004acaba
push dword [eax + 0x6c]
push esi
call fcn.004ac95c
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
push esi
push 4
push esi
push 0x4a6094
push dword [ebp + 0xc]
mov dword [esi + 0x54], edi
push ebx
mov dword [esi + 0x58], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
mov dword [esi + 4], edi
cmp edi, ebx
je 0x4a6195
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4a61b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push esi
call fcn.004a4d4f
pop ecx
cmp dword [ebp - 4], ebx
je 0x4a61b3
push dword [ebp - 4]
call fcn.004a941b
pop ecx
or eax, 0xffffffff
jmp 0x4a61ba
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x4a6634
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 0x4a6671
cmp dword [ebp + 0x14], edi
je 0x4a6671
cmp ecx, edi
jne 0x4a6678
call fcn.004a93f5
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004a9396
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4a668c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4a66ad
cmp ebx, 0xffffffff
je 0x4a669c
push ebx
push edi
push ecx
call fcn.004a5410
add esp, 0xc
cmp esi, edi
je 0x4a6659
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4a6659
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test dword [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4a66ca
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4a66d1
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4a67c3
test dword [esi + 0xc], 0x10c
je 0x4a6726
mov eax, dword [esi + 4]
test eax, eax
je 0x4a6726
jl 0x4a6824
mov edi, ebx
cmp ebx, eax
jb 0x4a66f7
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4a67cb
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004aef53
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 0x4a67bb
cmp ebx, dword [ebp - 0xc]
jb 0x4a6793
cmp dword [ebp - 0xc], 0
je 0x4a6750
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x4a6745
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4a674c
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4a675b
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x4a675b
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4a67f7
push eax
push dword [ebp - 8]
push esi
call fcn.004aef26
pop ecx
push eax
call fcn.004aee29
add esp, 0xc
test eax, eax
je 0x4a6836
cmp eax, 0xffffffff
je 0x4a6824
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4a67bb
push esi
call fcn.004ae743
pop ecx
cmp eax, 0xffffffff
je 0x4a6828
cmp dword [ebp - 4], 0
je 0x4a67f7
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 0x4a66d9
mov eax, dword [ebp + 0x14]
jmp 0x4a6673
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a67e2
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004a5410
add esp, 0xc
call fcn.004a93f5
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4a6669
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a680d
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004a5410
add esp, 0xc
call fcn.004a93f5
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4a6669
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4a6673
or dword [esi + 0xc], 0x10
jmp 0x4a6828
Function at 0x4a928f
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x4cc3b0]
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.004a5410
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 0x4a936e
test ebx, ebx
jne 0x4a936e
push 2
call fcn.004b16f4
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.004a4bb3
add ebp, 0x2a8
leave
ret

Function at 0x4a9396
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [0x51e5c8]
call fcn.004ac841
pop ecx
test eax, eax
je 0x4a93ac
pop ebp
jmp eax
push 2
call fcn.004b16f4
pop ecx
pop ebp
jmp fcn.004a928f
Function at 0x4ab90b
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 + 0x4cc948]
je 0x4ab926
inc edi
cmp edi, 0x17
jb 0x4ab917
cmp edi, 0x17
jae 0x4abaa6
push ebp
push 3
call fcn.004b2010
pop ecx
cmp eax, 1
je 0x4aba72
push 3
call fcn.004b2010
pop ecx
test eax, eax
jne 0x4ab95a
cmp dword [0x4cc6a0], 1
je 0x4aba72
cmp ebx, 0xfc
je 0x4abaa5
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x51ea88
push ebp
call fcn.004b03a0
add esp, 0xc
test eax, eax
je 0x4ab990
push esi
push esi
push esi
push esi
push esi
call fcn.004a928f
add esp, 0x14
push 0x104
mov esi, 0x51eaa1
push esi
push 0
mov byte [0x51eba5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ab9d4
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004b03a0
add esp, 0xc
test eax, eax
je 0x4ab9d4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004a928f
add esp, 0x14
push esi
call fcn.004b0280
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4aba19
push esi
call fcn.004b0280
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x51ed9c
push 0x4c246c
sub ecx, eax
push ecx
push eax
call fcn.004b1f5d
add esp, 0x14
test eax, eax
je 0x4aba19
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004a928f
add esp, 0x14
jmp 0x4aba1b
xor esi, esi
push 0x4c2468
push ebx
push ebp
call fcn.004b1eec
add esp, 0xc
test eax, eax
je 0x4aba3b
push esi
push esi
push esi
push esi
push esi
call fcn.004a928f
add esp, 0x14
push dword [edi*8 + 0x4cc94c]
push ebx
push ebp
call fcn.004b1eec
add esp, 0xc
test eax, eax
je 0x4aba5d
push esi
push esi
push esi
push esi
push esi
call fcn.004a928f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004b1d85
add esp, 0xc
jmp 0x4abaa5
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4abaa5
cmp ebp, 0xffffffff
je 0x4abaa5
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4cc94c]
push dword [esi]
call fcn.004b0280
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 0x4acc6a
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 0x4acc83
push esi
call fcn.004ab5b3
pop ecx
mov edi, eax
test edi, edi
je 0x4acdeb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FlsAlloc
push edi
call esi
push str.FlsGetValue
push edi
mov dword [0x51eda4], eax
call esi
push str.FlsSetValue
push edi
mov dword [0x51eda8], eax
call esi
push str.FlsFree
push edi
mov dword [0x51edac], eax
call esi
cmp dword [0x51eda4], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x51edb0], eax
je 0x4accec
cmp dword [0x51eda8], 0
je 0x4accec
cmp dword [0x51edac], 0
je 0x4accec
test eax, eax
jne 0x4acd10
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x51eda8], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x51eda4], 0x4ac8b0
mov dword [0x51edac], esi
mov dword [0x51edb0], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4cca28], eax
cmp eax, 0xffffffff
je 0x4acdf0
push dword [0x51eda8]
push eax
call esi
test eax, eax
je 0x4acdf0
call fcn.004ab8bf
push dword [0x51eda4]
call fcn.004ac7c9
push dword [0x51eda8]
mov dword [0x51eda4], eax
call fcn.004ac7c9
push dword [0x51edac]
mov dword [0x51eda8], eax
call fcn.004ac7c9
push dword [0x51edb0]
mov dword [0x51edac], eax
call fcn.004ac7c9
add esp, 0x10
mov dword [0x51edb0], eax
call fcn.004aa8cf
test eax, eax
je 0x4acdeb
push fcn.004acad2
push dword [0x51eda4]
call fcn.004ac841
pop ecx
call eax
mov dword [0x4cca24], eax
cmp eax, 0xffffffff
je 0x4acdeb
push 0x214
push 1
call fcn.004ad63a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4acdeb
push esi
push dword [0x4cca24]
push dword [0x51edac]
call fcn.004ac841
pop ecx
call eax
test eax, eax
je 0x4acdeb
push 0
push esi
call fcn.004ac95c
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 0x4acdf2
call fcn.004ac91f
xor eax, eax
pop edi
pop esi
ret

Function at 0x4ad370
Capabilities:
Parse pe header

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

Function at 0x4ad3a0
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 0x4ad3da
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x4ad3d2
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x4ad3dc
inc edx
add eax, 0x28
cmp edx, esi
jb 0x4ad3c2
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x4ae743
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp esi, edi
jne 0x4ae76c
call fcn.004a93f5
push edi
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
call fcn.004a9396
add esp, 0x14
jmp 0x4ae863
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x4ae863
test al, 0x40
jne 0x4ae863
test al, 2
je 0x4ae78e
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x4ae863
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
jne 0x4ae7a4
push esi
call fcn.004b1652
pop ecx
jmp 0x4ae7a9
mov eax, dword [esi + 8]
mov dword [esi], eax
push dword [esi + 0x18]
push dword [esi + 8]
push esi
call fcn.004aef26
pop ecx
push eax
call fcn.004aee29
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, edi
je 0x4ae853
cmp eax, 0xffffffff
je 0x4ae853
test byte [esi + 0xc], 0x82
jne 0x4ae828
push esi
call fcn.004aef26
pop ecx
cmp eax, 0xffffffff
je 0x4ae813
push esi
call fcn.004aef26
pop ecx
cmp eax, 0xfffffffe
je 0x4ae813
push esi
call fcn.004aef26
sar eax, 5
push esi
lea edi, [eax*4 + 0x51f080]
call fcn.004aef26
and eax, 0x1f
pop ecx
shl eax, 6
add eax, dword [edi]
pop ecx
jmp 0x4ae818
mov eax, 0x4cd168
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x4ae828
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x4ae846
mov eax, dword [esi + 0xc]
test al, 8
je 0x4ae846
test eax, 0x400
jne 0x4ae846
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x4ae866
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 0x4b12a1
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x51ef20]
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 0x4b12ea
call edi
mov esi, eax
cmp esi, ebx
je 0x4b12d1
mov dword [0x51ef20], 1
jmp 0x4b12f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4b12e5
mov eax, ebp
mov dword [0x51ef20], eax
jmp 0x4b12ea
mov eax, dword [0x51ef20]
cmp eax, 1
jne 0x4b1377
cmp esi, ebx
jne 0x4b1306
call edi
mov esi, eax
cmp esi, ebx
jne 0x4b1306
xor eax, eax
jmp 0x4b13cf
mov eax, esi
cmp word [esi], bx
je 0x4b131b
add eax, ebp
cmp word [eax], bx
jne 0x4b130d
add eax, ebp
cmp word [eax], bx
jne 0x4b130d
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 0x4b136c
push ebp
call fcn.004ad5fa
pop ecx
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x4b136c
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
jne 0x4b1368
push dword [esp + 0x10]
call fcn.004a4d4f
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 0x4b13cf
cmp eax, ebp
je 0x4b137f
cmp eax, ebx
jne 0x4b12ff
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x4b12ff
cmp byte [esi], bl
je 0x4b139d
inc eax
cmp byte [eax], bl
jne 0x4b1393
inc eax
cmp byte [eax], bl
jne 0x4b1393
sub eax, esi
inc eax
mov ebp, eax
push ebp
call fcn.004ad5fa
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x4b13bb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x4b12ff
push ebp
push esi
push edi
call fcn.004a5490
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 0x4b1d85
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004ac838
and dword [ebp - 4], 0
cmp dword [0x51ef4c], 0
mov ebx, eax
jne 0x4b1e34
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4b1ee5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4b1ee5
push eax
call fcn.004ac7c9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x51ef4c], eax
call esi
push eax
call fcn.004ac7c9
mov dword [esp], 0x4c2738
push edi
mov dword [0x51ef50], eax
call esi
push eax
call fcn.004ac7c9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x51ef54], eax
call esi
push eax
call fcn.004ac7c9
pop ecx
mov dword [0x51ef5c], eax
test eax, eax
je 0x4b1e34
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004ac7c9
pop ecx
mov dword [0x51ef58], eax
mov eax, dword [0x51ef58]
cmp eax, ebx
je 0x4b1e8c
cmp dword [0x51ef5c], ebx
je 0x4b1e8c
push eax
call fcn.004ac841
push dword [0x51ef5c]
mov esi, eax
call fcn.004ac841
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4b1e8c
test edi, edi
je 0x4b1e8c
call esi
test eax, eax
je 0x4b1e83
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4b1e83
test byte [ebp - 0xc], 1
jne 0x4b1e8c
or dword [ebp + 0x10], 0x200000
jmp 0x4b1ec5
mov eax, dword [0x51ef50]
cmp eax, ebx
je 0x4b1ec5
push eax
call fcn.004ac841
pop ecx
test eax, eax
je 0x4b1ec5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4b1ec5
mov eax, dword [0x51ef54]
cmp eax, ebx
je 0x4b1ec5
push eax
call fcn.004ac841
pop ecx
test eax, eax
je 0x4b1ec5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x51ef4c]
call fcn.004ac841
pop ecx
test eax, eax
je 0x4b1ee5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4b1ee7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b4dee
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.004b14b6
mov dword [ebp - 0x18], eax
and eax, edx
add esp, 0x10
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
je 0x4b4e74
push 2
push ebx
push ebx
push dword [ebp + 8]
call fcn.004b14b6
mov ecx, eax
and ecx, edx
add esp, 0x10
cmp ecx, 0xffffffff
je 0x4b4e74
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
sub esi, eax
sbb edi, edx
js 0x4b4f09
jg 0x4b4e4d
cmp esi, ebx
jbe 0x4b4f09
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 0x4b4e80
call fcn.004a93f5
mov dword [eax], 0xc
call fcn.004a93f5
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push dword [ebp + 8]
call fcn.004b4fa2
pop ecx
pop ecx
mov dword [ebp - 8], eax
test edi, edi
jl 0x4b4ea0
jg 0x4b4e9c
cmp esi, ebx
jb 0x4b4ea0
mov eax, ebx
jmp 0x4b4ea2
mov eax, esi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004af582
add esp, 0xc
cmp eax, 0xffffffff
je 0x4b4eec
cdq
sub esi, eax
sbb edi, edx
js 0x4b4ec3
jg 0x4b4e92
test esi, esi
ja 0x4b4e92
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004b4fa2
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 0x4b4f72
call fcn.004a9408
cmp dword [eax], 5
jne 0x4b4f01
call fcn.004a93f5
mov dword [eax], 0xd
or esi, 0xffffffff
mov dword [ebp - 0xc], esi
jmp 0x4b4ec6
cmp edi, ebx
jg 0x4b4f7e
jl 0x4b4f13
cmp esi, ebx
jae 0x4b4f7e
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b14b6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b4e74
push dword [ebp + 8]
call fcn.004a78a0
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 0x4b4f7e
call fcn.004a93f5
mov dword [eax], 0xd
call fcn.004a9408
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 0x4b4e74
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.004b14b6
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b4e74
xor eax, eax
jmp 0x4b4e7b