joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47dc30
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov al, byte [ecx + 1]
mov dword [esp + 4], ecx
mov cl, al
push ebx
shr cl, 4
push ebp
and al, 0xf
push esi
cmp cl, 0x10
push edi
mov byte [esp + 0x18], cl
mov byte [esp + 0x13], al
jae 0x47dd21
mov ebx, dword [esp + 0x18]
mov cl, byte [str._b_b_b_b_b_b]
and ebx, 0xff
mov esi, dword [esp + 0x14]
mov eax, ebx
shl eax, 5
add eax, ebx
lea edx, [ebx + eax*2]
shl edx, 2
mov al, byte [edx + 0x65b7b4]
shr al, cl
xor al, byte [esi + 6]
test al, 1
jne 0x47dd21
xor ecx, ecx
mov cl, byte [esi + 5]
mov ebp, ecx
lea edi, [ebp + 0xd]
cmp edi, 0x100
jb 0x47dca1
mov edi, 0xff
mov ecx, dword [str._b_b_b_b_b_b]
mov esi, 1
xor eax, eax
shl esi, cl
cmp ebp, edi
lea ecx, [ebp + edx + 0x65b7bc]
ja 0x47dcd3
sub edi, ebp
inc edi
xor edx, edx
mov dl, byte [ecx]
and edx, esi
xor eax, edx
inc ecx
mov edx, eax
add eax, eax
shr edx, 0x1f
or eax, edx
dec edi
jne 0x47dcbe
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
mov ecx, dword [esp + 0x14]
mov edx, eax
shr edx, 8
xor eax, edx
mov dl, byte [ecx + 4]
cmp dl, al
jne 0x47dd21
mov eax, ebx
shl eax, 5
add eax, ebx
lea ebx, [ebx + eax*2]
shl ebx, 2
mov dx, word [ebx + 0x65b7b0]
cmp dx, word [ecx + 2]
jne 0x47dd21
mov al, byte [esp + 0x13]
mov cl, byte [ebx + 0x65b7b2]
cmp cl, al
jne 0x47dd21
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x47dd30
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov al, byte [0x65b7ac]
push ebp
inc al
push esi
cmp al, 0x10
push edi
mov byte [0x65b7ac], al
jb 0x47dd4b
mov byte [0x65b7ac], 0
mov al, byte [0x65c870]
mov cl, byte [0x65c874]
inc al
cmp al, cl
mov byte [0x65c870], al
jb 0x47dd68
mov byte [0x65c870], 0
mov eax, dword [0x65c870]
and eax, 0xff
mov cl, byte [eax + 0x65c880]
mov byte [esp + 0xc], cl
xor ecx, ecx
call fcn.0047bc00
mov ebp, eax
mov eax, dword [esp + 0xc]
and eax, 0xff
dec eax
je 0x47de0f
dec eax
je 0x47dda5
mov edi, dword [0x65b7ac]
and edi, 0xff
jmp 0x47de38
xor esi, esi
mov ecx, 0x508774
xor esi, dword [ecx - 0x30]
mov eax, esi
shr eax, 0x1d
lea edx, [esi*8]
or eax, edx
mov edx, dword [ecx]
xor eax, edx
mov edx, eax
shr edx, 0x1d
shl eax, 3
or edx, eax
mov esi, edx
mov edx, ecx
sub ecx, 4
cmp edx, 0x508748
jne 0x47ddac
call fcn.0047bc30
lea ecx, [esi*8]
shr esi, 0x1d
or ecx, esi
mov esi, dword [0x508864]
xor eax, ecx
lea ecx, [eax*8]
shr eax, 0x1d
or ecx, eax
xor ecx, esi
lea edi, [ecx*8]
shr ecx, 0x1d
or edi, ecx
jmp 0x47de38
xor edi, edi
call fcn.00421c90
mov esi, eax
test esi, esi
je 0x47de38
mov ecx, esi
call fcn.00424ae0
mov esi, dword [esi + 4]
xor eax, edi
lea edi, [eax*8]
shr eax, 0x1d
or edi, eax
test esi, esi
jne 0x47de1c
test ebp, ebp
je 0x47de46
mov ecx, 1
call fcn.0047bc00
mov edx, dword [0x5087fc]
mov esi, dword [0x65b7a4]
and edx, 0xffff
mov ecx, esi
imul ecx, edx
mov ebp, dword [0x646518]
xor eax, eax
shl edx, 2
sar edx, 2
lea ecx, [ebp + ecx*4]
mov ebp, edx
dec edx
test ebp, ebp
je 0x47de93
inc edx
mov ebp, dword [ecx]
add ecx, 4
and ebp, 0xbfffffff
xor eax, ebp
lea ebp, [eax*8]
shr eax, 0x1d
or eax, ebp
dec edx
jne 0x47de77
xor edx, edx
inc esi
mov dx, word [0x5087fe]
mov dword [0x65b7a4], esi
cmp esi, edx
jb 0x47deb1
mov dword [0x65b7a4], 0
mov edx, dword [0x4fc738]
mov ebp, dword [0x65a800]
mov ecx, 8
sub ecx, edx
mov edx, dword [0x65a804]
xor edx, ebp
shl edx, cl
xor edx, eax
mov eax, dword [0x65b7ac]
and eax, 0xff
xor edi, edx
mov ecx, eax
shl ecx, 5
add ecx, eax
lea edx, [eax + ecx*2]
mov ecx, edi
shr ecx, 0x10
lea eax, [edx*4 + 0x65b7b0]
mov dl, byte [esp + 0xc]
xor ecx, edi
mov word [eax], cx
mov byte [eax + 2], dl
mov cl, byte [0x65c878]
mov byte [eax + 4], cl
mov dl, byte [0x65b7a8]
lea ecx, [eax + 0xc]
mov byte [eax + 5], dl
push ecx
lea edx, [eax + 8]
lea ecx, [eax + 3]
call fcn.00410c20
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x4a5290
Capabilities:
Hash data using sha1

Disassembly:
lea eax, [ecx + ecx*2]
shl eax, 3
sub eax, ecx
xor ecx, ecx
lea eax, [eax*4 + 0x691880]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
ret
Function at 0x4c9f30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
mov ebx, edx
xor ebp, ebp
xor eax, eax
test edi, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], eax
je 0x4c9f63
mov dword [esp + 0x10], 1
mov dword [ebx], edi
mov ebp, dword [esp + 0x10]
mov esi, dword [ecx]
test esi, esi
je 0x4ca0d7
lea eax, [ebx + ebp*4]
mov dword [esp + 0x14], eax
jmp 0x4c9f7a
mov ebx, dword [esp + 0x20]
cmp esi, edi
je case.0x4c9ff7.14
mov eax, dword [esi + 0x70]
test eax, eax
je 0x4c9fb7
xor ecx, ecx
mov cx, word [esi + 0x64]
test byte [ecx*4 + 0x6baa98], 0x10
je 0x4c9f9b
mov esi, eax
test ebp, ebp
lea eax, [ebp - 1]
je 0x4c9fb7
lea ecx, [ebx + eax*4]
cmp dword [ecx], esi
je case.0x4c9ff7.14
mov edx, eax
dec eax
sub ecx, 4
test edx, edx
jne 0x4c9fa5
mov ecx, dword [esi + 0xc]
mov eax, dword [0x65a800]
test byte [ecx + 0xc], al
je case.0x4c9ff7.14
mov ecx, dword [esi + 0xdc]
test ch, 3
je 0x4c9fdf
test dword [esi + 0xe4], eax
je case.0x4c9ff7.14
xor eax, eax
mov ax, word [esi + 0x64]
add eax, 0xfffffff2
cmp eax, 0xc2
ja case.0x4c9ff7.19
xor edx, edx
mov dl, byte [eax + 0x4ca13c]
jmp dword [edx*4 + 0x4ca124]
mov ecx, esi
call fcn.00425740
test eax, eax
je 0x4ca11b
mov eax, dword [0x665b70]
test eax, eax
jne 0x4ca11b
mov al, byte [esi + 0x4c]
mov edx, dword [0x4fc738]
mov ecx, eax
and ecx, 0xff
cmp ecx, edx
jne 0x4ca11b
test edi, edi
je 0x4ca06e
cmp byte [edi + 0x4c], al
jne case.0x4c9ff7.14
mov dx, word [edi + 0x64]
cmp dx, word [esi + 0x64]
jne case.0x4c9ff7.14
mov ecx, dword [esi + 0xdc]
mov eax, dword [edi + 0xdc]
xor eax, ecx
test al, 0x10
jne case.0x4c9ff7.14
test ch, 8
je 0x4ca062
test cl, 0x10
je 0x4ca067
test ah, 1
jne case.0x4c9ff7.14
test eax, 0x40000000
jne case.0x4c9ff7.14
cmp ebp, 0xc
jl 0x4ca107
mov ecx, dword [esi + 0xc]
mov edi, ebx
call fcn.00412a40
mov ebx, eax
mov eax, dword [esp + 0x10]
dec ebp
test eax, eax
je 0x4ca0b2
mov eax, dword [edi]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
je 0x4ca0a8
mov ecx, dword [eax + 0xc]
call fcn.00412a40
cmp ebx, eax
ja 0x4ca103
cmp esi, dword [esp + 0x28]
je 0x4ca103
add edi, 4
mov eax, ebp
dec ebp
test eax, eax
jne 0x4ca08c
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add eax, 4
mov dword [esp + 0x18], eax
mov esi, dword [eax]
test esi, esi
jne 0x4c9f76
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
test ebp, ebp
jne 0x4ca0f7
test eax, eax
jne 0x4ca0e3
test edi, edi
je 0x4ca0f7
test edi, edi
je 0x4ca0e9
mov eax, edi
mov dword [esp + 0x10], 1
mov dword [ebx], eax
mov ebp, dword [esp + 0x10]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
mov dword [edi], esi
jmp 0x4ca0b2
mov eax, dword [esp + 0x14]
inc ebp
mov dword [esp + 0x10], ebp
mov dword [eax], esi
add eax, 4
mov dword [esp + 0x14], eax
jmp case.0x4c9ff7.14
mov dword [esp + 0x1c], esi
jmp case.0x4c9ff7.14
Function at 0x4cf280
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0x74
push 1
xor edi, edi
call fcn.004d2d00
mov esi, eax
add esp, 8
test esi, esi
je 0x4cf2e0
push esi
call fcn.004d0d20
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x10]
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x14]
push eax
push esi
push 0x4cf300
push ecx
push edx
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4cf2f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.004d12d0
add esp, 4
test edi, edi
je 0x4cf2f6
push edi
call fcn.004d0450
add esp, 4
xor eax, eax
pop edi
pop esi
ret

Function at 0x4cfa90
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef2b0
push 0x4d30f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x6bcb20], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x6bcb1c], ecx
shl ecx, 8
add ecx, edx
mov dword [0x6bcb18], ecx
shr eax, 0x10
mov dword [0x6bcb14], eax
call fcn.004d3e50
test eax, eax
jne 0x4cfafa
push 0x1c
call fcn.004cfc70
add esp, 4
call fcn.004d0cc0
test eax, eax
jne 0x4cfb0d
push 0x10
call fcn.004cfc70
add esp, 4
mov dword [ebp - 4], 0
call fcn.004d3c40
call fcn.004d3c30
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x6c5a98], eax
call fcn.004d35d0
mov dword [0x6bca74], eax
test eax, eax
je 0x4cfb40
mov eax, dword [0x6c5a98]
test eax, eax
jne 0x4cfb4a
push 0xffffffffffffffff
call fcn.004d0ea0
add esp, 4
call fcn.004d3320
call fcn.004d3230
call fcn.004d0e70
mov esi, dword [0x6c5a98]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4cfc29
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x4cfb91
test al, al
je 0x4cfb91
and eax, 0xff
push eax
call fcn.004d31d0
add esp, 4
test eax, eax
je 0x4cfb6b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4cfb6b
cmp byte [esi], 0x22
jne 0x4cfb9a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x4cfbaa
cmp al, 0x20
ja 0x4cfbaa
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4cfb9a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4cfbcb
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4cfbd0
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.004d0ea0
jmp 0x4cfc0e
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x4cfb9a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4cfc29
Function at 0x4cfc70
Capabilities:
Terminate process

Disassembly:
cmp dword [0x6bca7c], 1
jne 0x4cfc7e
call fcn.004d3e90
mov eax, dword [esp + 4]
push eax
call fcn.004d3ed0
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4d0cc0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.004d02a0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x503650], eax
je 0x4d0d18
push 0x74
push 1
call fcn.004d2d00
mov esi, eax
add esp, 8
test esi, esi
je 0x4d0d18
mov eax, dword [0x503650]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4d0d18
push esi
call fcn.004d0d20
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4d0d40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x503650]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4d0dae
push 0x74
push 1
call fcn.004d2d00
mov esi, eax
add esp, 8
test esi, esi
je 0x4d0da4
mov ecx, dword [0x503650]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4d0da4
push esi
call fcn.004d0d20
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.004cfc40
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

Function at 0x4d0dc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x503650]
cmp eax, 0xffffffff
je 0x4d0e6f
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x4d0de4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4d0e60
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4d0df4
push eax
call fcn.004d12d0
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4d0e04
push eax
call fcn.004d12d0
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4d0e14
push eax
call fcn.004d12d0
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4d0e24
push eax
call fcn.004d12d0
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4d0e34
push eax
call fcn.004d12d0
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4d0e44
push eax
call fcn.004d12d0
add esp, 4
mov eax, dword [esi + 0x50]
cmp eax, 0x503720
je 0x4d0e57
push eax
call fcn.004d12d0
add esp, 4
push esi
call fcn.004d12d0
add esp, 4
mov eax, dword [0x503650]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x4d0ee0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.004d0fa0
mov eax, dword [0x6bcb50]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x4d0f04
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x6bcb4c], 1
mov byte [0x6bcb48], bl
jne 0x4d0f5e
mov ecx, dword [0x6c5a8c]
test ecx, ecx
je 0x4d0f4c
mov esi, dword [0x6c5a88]
sub esi, 4
cmp esi, ecx
jb 0x4d0f4c
mov eax, dword [esi]
test eax, eax
je 0x4d0f45
call eax
mov ecx, dword [0x6c5a8c]
sub esi, 4
cmp esi, ecx
jae 0x4d0f37
push 0x4f25a0
push 0x4f2598
call fcn.004d0fc0
add esp, 8
push 0x4f25a8
push 0x4f25a4
call fcn.004d0fc0
add esp, 8
test ebx, ebx
je 0x4d0f7d
call fcn.004d0fb0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x6bcb50], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4d35d0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x6bcd50]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x4d3612
call edi
mov esi, eax
test esi, esi
je 0x4d35fc
mov eax, 1
jmp 0x4d360d
call ebp
mov ebx, eax
test ebx, ebx
je 0x4d371f
mov eax, 2
mov dword [0x6bcd50], eax
cmp eax, 1
jne 0x4d36b2
test esi, esi
jne 0x4d362b
call edi
mov esi, eax
test esi, esi
je 0x4d371f
cmp word [esi], 0
mov eax, esi
je 0x4d3645
add eax, 2
cmp word [eax], 0
jne 0x4d3633
add eax, 2
cmp word [eax], 0
jne 0x4d3633
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4d36a4
push edi
call fcn.004d1200
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4d36a4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4d3696
push ebx
call fcn.004d12d0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x4d371f
test ebx, ebx
jne 0x4d36c3
call ebp
mov ebx, eax
test ebx, ebx
je 0x4d371f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4d36db
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4d36cb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4d36cb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004d1200
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4d36fd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4d3ed0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x5038d8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4d3ef4
add eax, 8
inc ebp
cmp eax, 0x503968
jb 0x4d3ee5
cmp ecx, dword [ebp*8 + 0x5038d8]
jne 0x4d409b
mov eax, dword [0x6bca7c]
cmp eax, 1
je 0x4d405d
test eax, eax
jne 0x4d3f20
cmp dword [0x503094], 1
je 0x4d405d
cmp ecx, 0xfc
je 0x4d409b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4d3f5b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4d3fa4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4f57e0
add ebx, ecx
push ebx
call fcn.004ce5a0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4faf28
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x5038dc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004d75d0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x6c5980]
test eax, eax
je 0x4d406e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x4d4078
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x5038dc]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x4d7000
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x4d702c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x6c5980]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x4d7067
push 2
push ebp
push ecx
call fcn.004d8650
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x4d71c9
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x4d7111
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x4d70c2
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x4d70af
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x4d7092
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d71ba
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x4d710d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x4d708e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4d71a9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4d7165
cmp eax, 5
jne 0x4d714e
call fcn.004d04d0
mov dword [eax], 9
call fcn.004d04e0
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.004d0450
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x4d7185
cmp byte [ebp], 0x1a
jne 0x4d7185
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.004d04d0
mov dword [eax], 0x1c
call fcn.004d04e0
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4d710d
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d71fa
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x4d7111
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4d7111
Function at 0x4d87f0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.004ce9b0
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
push esi
push edi
xor ebp, ebp
push 1
push ebp
push ebx
call fcn.004d8650
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x4d8930
push 2
push ebp
push ebx
call fcn.004d8650
add esp, 0xc
cmp eax, 0xffffffff
je 0x4d8930
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x4d88d1
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.004d9780
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x4d8876
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.004d7000
add esp, 0xc
cmp eax, 0xffffffff
je 0x4d8892
sub esi, eax
test esi, esi
jle 0x4d88aa
jmp 0x4d8867
call fcn.004d04e0
cmp dword [eax], 5
jne 0x4d88a7
call fcn.004d04d0
mov dword [eax], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.004d9780
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.004d8650
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x4d8917
push 0
push ecx
push ebx
call fcn.004d8650
add esp, 0xc
push ebx
call fcn.004d6df0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x4d8917
call fcn.004d04d0
mov dword [eax], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004d04e0
mov dword [eax], esi
push 0
push edi
push ebx
call fcn.004d8650
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret