joyce8/EMBER2024-capa huggingface dataset:
Function at 0x77c2a166
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push edi
xor ebx, ebx
push ebx
push ebx
mov edi, 0x77c11fe8
push edi
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x77c2a2aa
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 4], eax
je 0x77c2a2aa
push dword [ebp - 8]
push eax
push edi
call esi
test eax, eax
je 0x77c2a29c
mov edi, dword [ebp - 4]
cmp byte [edi], 0
mov ecx, edi
je 0x77c2a1d6
mov al, byte [ecx]
cmp al, 0x61
jl 0x77c2a1d0
cmp al, 0x7a
jg 0x77c2a1d0
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x77c2a1c2
push 0x16
push edi
push 0x77c11fd0
call sym.msvcrt.dll_strncmp
add esp, 0xc
test eax, eax
je 0x77c2a243
push 0x105
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x77c2a29c
push 3
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [esi], 0
mov ecx, esi
je 0x77c2a22a
mov al, byte [ecx]
cmp al, 0x61
jl 0x77c2a224
cmp al, 0x7a
jg 0x77c2a224
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x77c2a216
push esi
push dword [ebp - 4]
call sym.msvcrt.dll_strstr
pop ecx
pop ecx
push esi
push 0
mov edi, eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x77c2a29c
push 0x2c
push edi
call sym.msvcrt.dll_strchr
test eax, eax
pop ecx
pop ecx
je 0x77c2a29c
inc eax
cmp byte [eax], 0x20
je 0x77c2a255
mov cl, byte [eax]
xor esi, esi
cmp cl, 0x30
jl 0x77c2a29c
cmp cl, 0x39
jg 0x77c2a27b
movsx ecx, cl
lea edx, [esi + esi*4]
inc eax
lea esi, [ecx + edx*2 - 0x30]
mov cl, byte [eax]
cmp cl, 0x30
jge 0x77c2a264
cmp esi, 2
je 0x77c2a28a
cmp esi, 3
je 0x77c2a28a
cmp esi, 1
jne 0x77c2a29c
push dword [ebp - 4]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
jmp 0x77c2a2d4
push dword [ebp - 4]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [sym.msvcrt.dll__osplatform], 2
jne 0x77c2a2c1
cmp dword [sym.msvcrt.dll__winmajor], 5
jb 0x77c2a2c1
xor eax, eax
inc eax
jmp 0x77c2a2d4
lea eax, [ebp - 8]
push eax
call fcn.77c2a12f
cmp byte [ebp - 8], 6
pop ecx
sbb eax, eax
add eax, 3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x77c2c03f
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.77c3a600
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x77c2c0a5
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [sym.msvcrt.dll__osplatform]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x77c2c0a9
xor eax, eax
jmp 0x77c2c0b6
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x77c2ce5c
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
call fcn.77c2ef34
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x77c2cfa3
push 2
push esi
push dword [ebp + 8]
call fcn.77c2ef34
add esp, 0xc
cmp eax, ebx
je 0x77c2cfa3
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x77c2cf46
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x77c2ced7
call sym.msvcrt.dll__errno
mov dword [eax], 0xc
or esi, 0xffffffff
jmp 0x77c2cf8e
push 0x8000
push dword [ebp + 8]
call fcn.77c2fb53
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp edi, ebx
mov eax, ebx
jge 0x77c2cef1
mov eax, edi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.77c30109
add esp, 0xc
cmp eax, 0xffffffff
je 0x77c2cf0d
sub edi, eax
test edi, edi
jg 0x77c2cee9
jmp 0x77c2cf25
call sym.msvcrt.dll___doserrno
cmp dword [eax], 5
jne 0x77c2cf22
call sym.msvcrt.dll__errno
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.77c2fb53
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]
jmp 0x77c2cf8e
jge 0x77c2cf8e
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.77c2ef34
push dword [ebp + 8]
call sym.msvcrt.dll__get_osfhandle
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x77c2cf8e
call sym.msvcrt.dll__errno
mov dword [eax], 0xd
call sym.msvcrt.dll___doserrno
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.77c2ef34
add esp, 0xc
mov eax, esi
pop edi
jmp 0x77c2cfa5
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x77c2f64a
Capabilities:
Create pipe

Disassembly:
push 0x24
push 0x77c12528
call fcn.77c37420
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
mov dword [ebx + 4], esi
mov dword [ebx], esi
mov dword [ebp - 0x34], 0xc
and dword [ebp - 0x30], 0
mov al, byte [ebp + 0x10]
and al, 0x80
neg al
sbb eax, eax
inc eax
mov dword [ebp - 0x2c], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x77c2f6a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.77c1f2d8
pop ecx
mov eax, esi
jmp 0x77c2f83e
call fcn.77c2e55d
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, esi
je 0x77c2f802
and dword [ebp - 4], 0
mov ecx, edi
sar ecx, 5
and eax, 0x1f
lea eax, [eax + eax*8]
mov ecx, dword [ecx*4 + sym.msvcrt.dll___pioinfo]
mov byte [ecx + eax*4 + 4], 0x89
mov dword [ebp - 4], esi
call fcn.77c2f7c4
call fcn.77c2e55d
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
je 0x77c2f7e2
mov dword [ebp - 4], 1
mov ecx, esi
sar ecx, 5
and eax, 0x1f
lea eax, [eax + eax*8]
mov ecx, dword [ecx*4 + sym.msvcrt.dll___pioinfo]
mov byte [ecx + eax*4 + 4], 0x89
or dword [ebp - 4], 0xffffffff
call fcn.77c2f7d5
mov eax, 0x8000
test dword [ebp + 0x10], eax
jne 0x77c2f72d
test byte [ebp + 0x11], 0x40
jne 0x77c2f763
cmp dword [sym.msvcrt.dll__fmode], eax
jne 0x77c2f763
mov ecx, edi
sar ecx, 5
mov eax, edi
and eax, 0x1f
lea eax, [eax + eax*8]
mov ecx, dword [ecx*4 + sym.msvcrt.dll___pioinfo]
lea eax, [ecx + eax*4 + 4]
and byte [eax], 0x7f
mov ecx, esi
sar ecx, 5
mov eax, esi
and eax, 0x1f
lea eax, [eax + eax*8]
mov ecx, dword [ecx*4 + sym.msvcrt.dll___pioinfo]
lea eax, [ecx + eax*4 + 4]
and byte [eax], 0x7f
test byte [ebp + 0x10], 0x80
je 0x77c2f79f
mov ecx, edi
sar ecx, 5
mov eax, edi
and eax, 0x1f
lea eax, [eax + eax*8]
mov ecx, dword [ecx*4 + sym.msvcrt.dll___pioinfo]
lea eax, [ecx + eax*4 + 4]
or byte [eax], 0x10
mov ecx, esi
sar ecx, 5
mov eax, esi
and eax, 0x1f
lea eax, [eax + eax*8]
mov ecx, dword [ecx*4 + sym.msvcrt.dll___pioinfo]
lea eax, [ecx + eax*4 + 4]
or byte [eax], 0x10
push dword [ebp - 0x24]
push edi
call fcn.77c2e35a
push dword [ebp - 0x28]
push esi
call fcn.77c2e35a
add esp, 0x10
call sym.msvcrt.dll__errno
and dword [eax], 0
jmp 0x77c2f810
mov ecx, edi
sar ecx, 5
mov eax, edi
and eax, 0x1f
lea eax, [eax + eax*8]
mov ecx, dword [ecx*4 + sym.msvcrt.dll___pioinfo]
mov byte [ecx + eax*4 + 4], 0
call sym.msvcrt.dll__errno
jmp 0x77c2f80a
call sym.msvcrt.dll__errno
mov esi, dword [ebp - 0x20]
mov dword [eax], 0x18
call sym.msvcrt.dll__errno
cmp dword [eax], 0
je 0x77c2f837
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x28]
call esi
call sym.msvcrt.dll___doserrno
and dword [eax], 0
or eax, 0xffffffff
jmp 0x77c2f83e
mov dword [ebx], edi
mov dword [ebx + 4], esi
xor eax, eax
call fcn.77c3745b
ret
Function at 0x77c2f8bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
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 0x77c2fa97
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + sym.msvcrt.dll___pioinfo]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x77c2fa97
test cl, 0x48
je 0x77c2f92c
cmp byte [eax + 5], 0xa
je 0x77c2f92c
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 0x77c2f97e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x77c2f966
call sym.msvcrt.dll__errno
mov dword [eax], 9
call sym.msvcrt.dll___doserrno
mov dword [eax], esi
jmp 0x77c2f976
cmp eax, 0x6d
je 0x77c2fa97
push eax
call fcn.77c1f2d8
pop ecx
or eax, 0xffffffff
jmp 0x77c2fa99
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x77c2fa92
test eax, eax
je 0x77c2f9a5
cmp byte [ebx], 0xa
jne 0x77c2f9a5
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x77c2f9ae
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 0x77c2fa8c
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x77c2fa7c
cmp al, 0xd
je 0x77c2f9e0
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x77c2fa6e
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x77c2f9fa
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x77c2f9f5
add dword [ebp + 0x10], 2
jmp 0x77c2fa4e
mov dword [ebp + 0x10], eax
jmp 0x77c2fa6a
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 0x77c2fa22
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x77c2fa6a
cmp dword [ebp - 0xc], 0
je 0x77c2fa6a
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x77c2fa43
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x77c2fa4e
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x77c2fa6d
cmp ebx, dword [ebp + 0xc]
jne 0x77c2fa53
cmp byte [ebp - 1], 0xa
jne 0x77c2fa53
mov byte [ebx], 0xa
jmp 0x77c2fa6d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.77c2f060
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x77c2fa6e
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x77c2f9c4
jmp 0x77c2fa8c
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x77c2fa8c
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 0x77c2fa99
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x77c30109
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x77c5fac4]
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x41c], ecx
jne 0x77c30140
xor eax, eax
jmp 0x77c302f3
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + sym.msvcrt.dll___pioinfo]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x77c30175
push 2
push ecx
push ecx
push dword [ebp + 8]
call fcn.77c2f060
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x77c30243
cmp dword [ebp + 0x10], ecx
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x40c], ecx
jbe 0x77c302c1
jmp 0x77c3019c
xor ecx, ecx
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp - 0x414]
sub ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x77c301f2
mov edx, dword [ebp - 0x414]
inc dword [ebp - 0x414]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x77c301dd
inc dword [ebp - 0x41c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x410]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x410]
cmp dword [ebp - 0x410], 0x400
jl 0x77c301b4
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x424]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x77c30270
mov eax, dword [ebp - 0x424]
add dword [ebp - 0x418], eax
cmp eax, edi
jl 0x77c3027c
mov eax, dword [ebp - 0x414]
sub eax, dword [ebp - 0x420]
cmp eax, dword [ebp + 0x10]
jb 0x77c3019a
jmp 0x77c3027c
push ecx
lea ecx, [ebp - 0x424]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x77c30270
mov eax, dword [ebp - 0x424]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x418], eax
jmp 0x77c3027c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x77c302eb
cmp dword [ebp - 0x40c], eax
je 0x77c302bb
push 5
pop esi
cmp dword [ebp - 0x40c], esi
jne 0x77c302ad
call sym.msvcrt.dll__errno
mov dword [eax], 9
call sym.msvcrt.dll___doserrno
mov dword [eax], esi
jmp 0x77c302e6
push dword [ebp - 0x40c]
call fcn.77c1f2d8
pop ecx
jmp 0x77c302e6
mov edi, dword [ebp - 0x420]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x77c302d3
cmp byte [edi], 0x1a
jne 0x77c302d3
xor eax, eax
jmp 0x77c302f1
call sym.msvcrt.dll__errno
mov dword [eax], 0x1c
call sym.msvcrt.dll___doserrno
and dword [eax], 0
or eax, 0xffffffff
jmp 0x77c302f1
sub eax, dword [ebp - 0x41c]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.77c57993
leave
ret
Function at 0x77c343ae
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x77c127e8
call fcn.77c37420
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x77c61878], edi
jne 0x77c343f2
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x77c343dd
mov dword [0x77c61878], ebx
jmp 0x77c343f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x77c343f2
mov dword [0x77c61878], 2
mov eax, dword [0x77c61878]
cmp eax, ebx
jne 0x77c34412
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x77c344d5
cmp eax, 2
je 0x77c3441b
cmp eax, edi
jne 0x77c34443
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x77c3442e
mov eax, dword [sym.msvcrt.dll___lc_codepage]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x77c3444a
xor eax, eax
jmp 0x77c344d5
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.77c3a600
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x77c3447d
cmp esi, edi
jne 0x77c34493
push dword [ebp - 0x20]
call sym.msvcrt.dll_malloc
pop ecx
mov esi, eax
cmp esi, edi
je 0x77c34443
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x77c344c6
cmp dword [ebp + 0x14], edi
jne 0x77c344b0
push edi
push edi
jmp 0x77c344b6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x77c344d2
push esi
call sym.msvcrt.dll_free
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.77c3745b
ret

Function at 0x77c374ed
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x77c61944]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x77c37531
call esi
test eax, eax
je 0x77c37516
mov dword [0x77c61944], 1
jmp 0x77c37536
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x77c3752d
mov dword [0x77c61944], 2
jmp 0x77c3753f
xor eax, eax
jmp 0x77c37595
cmp eax, 1
jne 0x77c3753a
call esi
jmp 0x77c37595
cmp eax, 2
jne 0x77c3752d
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 1
push 0
mov dword [ebp - 8], eax
call esi
mov edi, eax
test edi, edi
je 0x77c37592
lea eax, [edi + edi]
push eax
call sym.msvcrt.dll_malloc
test eax, eax
pop ecx
mov dword [ebp - 4], eax
je 0x77c37592
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push 1
push 0
call esi
test eax, eax
je 0x77c37589
mov eax, dword [ebp - 4]
jmp 0x77c37594
push dword [ebp - 4]
call sym.msvcrt.dll_free
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x77c3759d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x77c61948]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x77c375e9
call esi
mov edi, eax
cmp edi, ebx
je 0x77c375cf
mov dword [0x77c61948], 1
jmp 0x77c375ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x77c375e4
push 2
pop eax
mov dword [0x77c61948], eax
jmp 0x77c375e9
mov eax, dword [0x77c61948]
cmp eax, 1
jne 0x77c37666
cmp edi, ebx
jne 0x77c375fa
call esi
mov edi, eax
cmp edi, ebx
je 0x77c3766f
cmp word [edi], bx
mov eax, edi
je 0x77c3760f
inc eax
inc eax
cmp word [eax], bx
jne 0x77c37601
inc eax
inc eax
cmp word [eax], bx
jne 0x77c37601
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x77c3765d
push eax
call sym.msvcrt.dll_malloc
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x77c3765d
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x77c3765a
push dword [ebp - 4]
call sym.msvcrt.dll_free
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x77c376be
cmp eax, 2
je 0x77c37673
cmp eax, ebx
je 0x77c37673
xor eax, eax
jmp 0x77c376c0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x77c3766f
cmp byte [esi], bl
je 0x77c37690
inc eax
cmp byte [eax], bl
jne 0x77c37686
inc eax
cmp byte [eax], bl
jne 0x77c37686
sub eax, esi
inc eax
mov edi, eax
push edi
call sym.msvcrt.dll_malloc
cmp eax, ebx
pop ecx
je 0x77c376b7
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x77c377d0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x77c6194c]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
cmp eax, ebx
push 2
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
pop edi
jne 0x77c37823
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x77c3780a
mov dword [0x77c6194c], 1
jmp 0x77c37828
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x77c3781e
mov eax, edi
mov dword [0x77c6194c], eax
jmp 0x77c37823
mov eax, dword [0x77c6194c]
cmp eax, 1
jne 0x77c3788f
cmp dword [ebp - 4], ebx
jne 0x77c3783d
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x77c3783d
xor eax, eax
jmp 0x77c3794e
mov ecx, dword [ebp - 4]
cmp word [ecx], bx
mov eax, ecx
je 0x77c37855
add eax, edi
cmp word [eax], bx
jne 0x77c37847
add eax, edi
cmp word [eax], bx
jne 0x77c37847
sub eax, ecx
add eax, edi
mov esi, eax
push esi
call sym.msvcrt.dll_malloc
cmp eax, ebx
pop ecx
jne 0x77c37876
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x77c3794e
mov ecx, esi
mov esi, dword [ebp - 4]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, eax
jmp 0x77c37866
cmp eax, edi
je 0x77c37897
cmp eax, ebx
jne 0x77c37836
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x77c37836
cmp byte [esi], bl
je 0x77c378dc
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x77c37836
add dword [ebp - 8], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x77c378c8
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x77c378aa
mov esi, dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, eax
push eax
call sym.msvcrt.dll_malloc
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
jne 0x77c378f5
push esi
jmp 0x77c3795f
mov edi, esi
mov esi, eax
mov eax, dword [ebp - 4]
cmp byte [eax], bl
je 0x77c3793f
mov ecx, dword [ebp - 8]
mov eax, esi
sub eax, dword [ebp - 0xc]
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 0x77c37953
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x77c37923
sub eax, edx
push esi
lea edi, [edi + eax + 1]
call sym.msvcrt.dll_wcslen
cmp byte [edi], bl
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x77c37900
push dword [ebp - 4]
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0xc]
call sym.msvcrt.dll_free
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x77c37836
Function at 0x77c3920a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x77c619ac], ebx
push esi
push edi
jne 0x77c3928c
push 0x77c14068
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x77c392c7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x77c1405c
push edi
call esi
test eax, eax
mov dword [0x77c619ac], eax
je 0x77c392c7
push 0x77c1404c
push edi
call esi
push 0x77c14038
push edi
mov dword [0x77c619b0], eax
call esi
cmp dword [sym.msvcrt.dll__osplatform], 2
mov dword [0x77c619b4], eax
jne 0x77c3928c
push 0x77c1401c
push edi
call esi
test eax, eax
mov dword [0x77c619bc], eax
je 0x77c3928c
push 0x77c14004
push edi
call esi
mov dword [0x77c619b8], eax
mov eax, dword [0x77c619b8]
test eax, eax
je 0x77c392d1
call eax
test eax, eax
je 0x77c392b8
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x77c619bc]
test eax, eax
je 0x77c392b8
test byte [ebp - 8], 1
jne 0x77c392d1
cmp dword [sym.msvcrt.dll__winmajor], 4
jb 0x77c392cb
or byte [ebp + 0x12], 0x20
jmp 0x77c392f0
xor eax, eax
jmp 0x77c39300
or byte [ebp + 0x12], 4
jmp 0x77c392f0
mov eax, dword [0x77c619b0]
test eax, eax
je 0x77c392f0
call eax
mov ebx, eax
test ebx, ebx
je 0x77c392f0
mov eax, dword [0x77c619b4]
test eax, eax
je 0x77c392f0
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x77c619ac]
pop edi
pop esi
pop ebx
leave
ret