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

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4fb770]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x4a2d04
xor eax, eax
jmp 0x4a2e8d
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x5011a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4a2d40
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004acbcc
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4a2e1b
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4a2e59
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x4a2da4
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4a2d95
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x4a2d75
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a2de4
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x4a2ded
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4a2d66
jmp 0x4a2def
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4a2e88
cmp dword [ebp - 0x6c], edi
je 0x4a2e59
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4a2e4e
call fcn.004a0e84
mov dword [eax], 9
call fcn.004a0e8d
mov dword [eax], esi
jmp 0x4a2e83
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a2e43
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x4a2def
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x4a2def
push dword [ebp - 0x6c]
call fcn.004a0e96
pop ecx
jmp 0x4a2e83
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4a2e71
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4a2e71
xor eax, eax
jmp 0x4a2e8b
call fcn.004a0e84
mov dword [eax], 0x1c
call fcn.004a0e8d
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4a2e8b
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0049d184
add ebp, 0x3a0
leave
ret
Function at 0x4a70ec
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4a711a
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4a7121
cmp ebx, dword [eax + 4]
jae 0x4a7121
xor eax, eax
jmp 0x4a7311
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4a7132
xor eax, eax
inc eax
jmp 0x4a7310
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4a7148
cmp ecx, edx
jae 0x4a728d
cmp dword [eax + 4], 0
je 0x4a7151
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4a7139
cmp dword [ebp + 8], 0
je 0x4a7173
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4a728d
cmp eax, esi
jae 0x4a728d
mov eax, dword [0x500cd0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4a7198
cmp dword [esi*4 + 0x500cd8], edi
je 0x4a7291
inc esi
cmp esi, eax
jl 0x4a7186
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4a730d
cmp dword [ebp - 8], section..vm
jne 0x4a730d
test byte [ebp - 0xc], 0xcc
je 0x4a7216
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4a730d
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4a730d
cmp word [eax + 0x18], 0x10b
jne 0x4a730d
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4a730d
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4a7216
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4a7216
test byte [ecx + 0x27], 0x80
jne 0x4a728d
push 1
push 0x500d18
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4a712a
mov ecx, dword [0x500cd0]
test ecx, ecx
mov edx, ecx
jle 0x4a724a
lea eax, [ecx*4 + 0x500cd4]
cmp dword [eax], edi
je 0x4a724a
dec edx
sub eax, 4
test edx, edx
jg 0x4a723e
test edx, edx
jne 0x4a727b
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4a7257
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4a726f
lea eax, [edx*4 + 0x500cd8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4a725d
cmp ecx, 0x10
jge 0x4a727b
inc ecx
mov dword [0x500cd0], ecx
push 0
push 0x500d18
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4a712a
xor eax, eax
jmp 0x4a7310
test esi, esi
jle 0x4a712a
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x500d18
call ebx
test eax, eax
jne 0x4a712a
cmp dword [esi*4 + 0x500cd8], edi
je 0x4a72e7
mov eax, dword [0x500cd0]
lea esi, [eax - 1]
test esi, esi
jl 0x4a72d5
cmp dword [esi*4 + 0x500cd8], edi
je 0x4a72d1
dec esi
jns 0x4a72c5
test esi, esi
jge 0x4a72e5
cmp eax, 0x10
jge 0x4a72e0
inc eax
mov dword [0x500cd0], eax
lea esi, [eax - 1]
jmp 0x4a72e7
je 0x4a72ff
xor ecx, ecx
test esi, esi
jl 0x4a72ff
lea eax, [ecx*4 + 0x500cd8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4a72ed
push 0
push 0x500d18
call ebx
jmp 0x4a712a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4abdea
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4abfbe
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x5011a0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4abfbe
test cl, 0x48
je 0x4abe55
cmp byte [eax + 5], 0xa
je 0x4abe55
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 0x4abea7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4abe8f
call fcn.004a0e84
mov dword [eax], 9
call fcn.004a0e8d
mov dword [eax], esi
jmp 0x4abe9f
cmp eax, 0x6d
je 0x4abfbe
push eax
call fcn.004a0e96
pop ecx
or eax, 0xffffffff
jmp 0x4abfc0
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4abfb9
test eax, eax
je 0x4abece
cmp byte [ebx], 0xa
jne 0x4abece
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4abed7
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 0x4abfb3
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4abfa3
cmp al, 0xd
je 0x4abf09
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4abf95
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4abf23
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4abf1e
add dword [ebp + 0x10], 2
jmp 0x4abf77
mov dword [ebp + 0x10], eax
jmp 0x4abf91
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 0x4abf4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4abf91
cmp dword [ebp - 0xc], 0
je 0x4abf91
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4abf6c
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4abf77
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4abf94
cmp ebx, dword [ebp + 0xc]
jne 0x4abf7c
cmp byte [ebp - 1], 0xa
jne 0x4abf7c
mov byte [ebx], 0xa
jmp 0x4abf94
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004acd95
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4abf95
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4abeed
jmp 0x4abfb3
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4abfb3
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 0x4abfc0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ac105
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x500df8], ebx
push esi
push edi
jne 0x4ac185
push 0x4e5fc8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4ac1c0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4e5fbc
push edi
call esi
test eax, eax
mov dword [0x500df8], eax
je 0x4ac1c0
push 0x4e5fac
push edi
call esi
push 0x4e5f98
push edi
mov dword [0x500dfc], eax
call esi
cmp dword [0x5008e8], 2
mov dword [0x500e00], eax
jne 0x4ac185
push 0x4e5f7c
push edi
call esi
test eax, eax
mov dword [0x500e08], eax
je 0x4ac185
push 0x4e5f64
push edi
call esi
mov dword [0x500e04], eax
mov eax, dword [0x500e04]
test eax, eax
je 0x4ac1ca
call eax
test eax, eax
je 0x4ac1b1
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x500e08]
test eax, eax
je 0x4ac1b1
test byte [ebp - 8], 1
jne 0x4ac1ca
cmp dword [0x5008f4], 4
jb 0x4ac1c4
or byte [ebp + 0x12], 0x20
jmp 0x4ac1e9
xor eax, eax
jmp 0x4ac1f9
or byte [ebp + 0x12], 4
jmp 0x4ac1e9
mov eax, dword [0x500dfc]
test eax, eax
je 0x4ac1e9
call eax
mov ebx, eax
test ebx, ebx
je 0x4ac1e9
mov eax, dword [0x500e00]
test eax, eax
je 0x4ac1e9
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x500df8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b18ce
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0049ec70
mov eax, dword [0x4fb770]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004acd95
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x4b1a01
push 2
push esi
push dword [ebp + 8]
call fcn.004acd95
add esp, 0xc
cmp eax, ebx
je 0x4b1a01
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4b19a1
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0049db40
push 0x8000
push dword [ebp + 8]
call fcn.004b24e6
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x4b1957
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004a2cd3
add esp, 0xc
cmp eax, 0xffffffff
je 0x4b1977
sub edi, eax
test edi, edi
jg 0x4b194f
jmp 0x4b198f
call fcn.004a0e8d
cmp dword [eax], 5
jne 0x4b198c
call fcn.004a0e84
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004b24e6
pop ecx
pop ecx
jmp 0x4b19e9
jge 0x4b19e9
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004acd95
push dword [ebp + 8]
call fcn.004ac94d
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 0x4b19e9
call fcn.004a0e84
mov dword [eax], 0xd
call fcn.004a0e8d
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.004acd95
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4b1a03
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0049d184
leave
ret
Function at 0x4b2552
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4e6f40
call fcn.004a09d0
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x500eb8], edi
jne 0x4b2596
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b2581
mov dword [0x500eb8], ebx
jmp 0x4b2596
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4b2596
mov dword [0x500eb8], 2
mov eax, dword [0x500eb8]
cmp eax, ebx
jne 0x4b25b6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4b2679
cmp eax, 2
je 0x4b25bf
cmp eax, edi
jne 0x4b25e7
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4b25d2
mov eax, dword [0x500e30]
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 0x4b25ee
xor eax, eax
jmp 0x4b2679
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0049ec70
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4b2621
cmp esi, edi
jne 0x4b2637
push dword [ebp - 0x20]
call fcn.0049e61f
pop ecx
mov esi, eax
cmp esi, edi
je 0x4b25e7
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 0x4b266a
cmp dword [ebp + 0x14], edi
jne 0x4b2654
push edi
push edi
jmp 0x4b265a
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 0x4b2676
push esi
call fcn.0049dd5b
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004a0a0b
ret
Function at 0x4b2682
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4e6f50
call fcn.004a09d0
xor esi, esi
cmp dword [0x500ebc], esi
jne 0x4b26c6
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b26b1
mov dword [0x500ebc], edi
jmp 0x4b26c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4b26c6
mov dword [0x500ebc], 2
mov eax, dword [0x500ebc]
cmp eax, 2
je 0x4b27a7
cmp eax, esi
je 0x4b27a7
cmp eax, 1
jne 0x4b270b
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4b26f4
mov eax, dword [0x500e30]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x4b2712
xor eax, eax
jmp 0x4b27b9
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0049ec70
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4b2748
cmp edi, esi
jne 0x4b2763
lea eax, [ebx + ebx]
push eax
call fcn.0049e61f
pop ecx
mov edi, eax
cmp edi, esi
je 0x4b270b
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b2796
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4b2780
push esi
push esi
jmp 0x4b2786
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4b27a2
push edi
call fcn.0049dd5b
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4b27b9
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004a0a0b
ret
Function at 0x4b2c7f
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4b2c98
or eax, 0xffffffff
jmp 0x4b2cf9
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4b2cf5
push 0x3d
push esi
call fcn.004b2e7f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4b2cf5
cmp esi, eax
je 0x4b2cf5
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x500908]
sete cl
cmp eax, dword [0x50090c]
mov dword [ebp - 8], ecx
jne 0x4b2cdb
mov edi, eax
call fcn.004b2c1e
mov dword [0x500908], eax
cmp eax, ebx
jne 0x4b2d34
cmp dword [ebp + 0xc], ebx
je 0x4b2cfd
cmp dword [0x500910], ebx
je 0x4b2cfd
call fcn.004b20b2
test eax, eax
je 0x4b2d34
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4b2d06
xor eax, eax
jmp 0x4b2cf8
push 4
call fcn.0049e61f
cmp eax, ebx
pop ecx
mov dword [0x500908], eax
je 0x4b2cf5
mov dword [eax], ebx
cmp dword [0x500910], ebx
jne 0x4b2d34
push 4
call fcn.0049e61f
cmp eax, ebx
pop ecx
mov dword [0x500910], eax
je 0x4b2cf5
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x500908]
call fcn.004b2bd1
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4b2d95
cmp dword [esi], ebx
je 0x4b2d95
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0049dd5b
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4b2d78
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4b2dd6
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4b2d6f
mov eax, edi
shl eax, 2
push eax
push dword [0x500908]
call fcn.004a0817
cmp eax, ebx
pop ecx
pop ecx
je 0x4b2dd6
jmp 0x4b2dd1
cmp dword [ebp - 8], ebx
jne 0x4b2e41
cmp edi, ebx
jge 0x4b2da4
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x500908]
call fcn.004a0817
cmp eax, ebx
pop ecx
pop ecx
je 0x4b2cf5
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x500908], eax
cmp dword [ebp + 0xc], ebx
je 0x4b2e2b
push dword [ebp - 4]
call fcn.0049d6c0
inc eax
inc eax
push eax
call fcn.0049e61f
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4b2e2b
push dword [ebp - 4]
push esi
call fcn.0049d5c0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4b2e24
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0049dd5b
pop ecx
cmp dword [ebp - 8], ebx
je 0x4b2e39
push dword [ebp - 4]
call fcn.0049dd5b
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4b2cf8
push dword [ebp - 4]
call fcn.0049dd5b
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4b2d02
Function at 0x4b38a5
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x4ca858
call fcn.004a07f8
sub esp, 0x11c
mov eax, dword [0x4fb770]
push ebx
push esi
push edi
push dword [ebp + 0x1c]
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x128], esi
call fcn.004b5901
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], 0x4df4cc
call fcn.0041bfe0
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x4b3936
mov edi, 0x114
push edi
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.0049db40
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 2
jne 0x4b392f
cmp dword [ebp - 0x120], 5
mov dword [ebp + 0x20], 0x58
jae 0x4b3936
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.0049e61f
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x4b394b
call fcn.004b350a
push dword [ebp + 0x20]
push ebx
push eax
call fcn.0049db40
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x74], eax
add esp, 0xc
neg eax
sbb eax, eax
add eax, 0x7005
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x304], ebx
lea ecx, [esi + 0x7c]
mov word [ecx], bx
lea edi, [esi + 0xfc]
mov word [edi], bx
mov dword [eax], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edi
mov eax, dword [esi + 0x70]
mov dword [eax + 0x20], 0x104
mov eax, dword [esi + 0x70]
mov dword [eax + 0x3c], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x24], ecx
mov eax, dword [esi + 0x70]
push 0x40
pop ecx
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 0x70]
or edx, 0x80020
or dword [eax + 0x34], edx
test byte [ebp + 0x14], cl
je 0x4b39ca
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.004c1eab
cmp dword [ebp + 0x10], ebx
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x70]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x70]
mov dword [eax + 0x44], 0x4b3c56
je 0x4b39f6
push 0x104
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x18], ebx
je 0x4b3a2f
push dword [ebp + 0x18]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.00493a5f
push ebx
mov ecx, edi
call fcn.0041bf90
jmp 0x4b3a18
mov word [eax], bx
add eax, 2
push 0x7c
push eax
call fcn.0049f5ae
cmp eax, ebx
pop ecx
pop ecx
jne 0x4b3a12
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0049d184
leave
ret 0x1c