joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6361ff1e
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x6362000e
mov eax, 0x94
call fcn.6361d3b0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x63620083
mov ecx, dword [esi + 0x10]
mov dword [0x6363f00c], ecx
mov eax, dword [esi + 4]
mov dword [0x6363f018], eax
mov edx, dword [esi + 8]
mov dword [0x6363f01c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x6363f010], esi
je 0x6361ff89
or esi, 0x8000
mov dword [0x6363f010], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x6363f014], eax
call fcn.6362143c
test eax, eax
pop ecx
je 0x63620083
call fcn.63620dd9
test eax, eax
jne 0x6361ffb6
call fcn.6362148d
jmp 0x63620083
call fcn.636269c3
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x636408a0], eax
call fcn.636268a1
mov dword [0x6363ee84], eax
call fcn.63626382
test eax, eax
jl 0x63620007
call fcn.636267ff
test eax, eax
jl 0x63620002
call fcn.636265cc
test eax, eax
jl 0x63620002
push 0
call fcn.636220a4
test eax, eax
pop ecx
jne 0x63620002
inc dword [0x6363ee80]
jmp 0x63620094
call fcn.63626580
call fcn.63620bc2
jmp 0x6361ffac
test eax, eax
jne 0x6362003e
cmp dword [0x6363ee80], eax
jle 0x63620083
dec dword [0x6363ee80]
cmp dword [0x6363f048], eax
jne 0x6362002d
call fcn.636221e2
call fcn.63626580
call fcn.63620bc2
call fcn.6362148d
jmp 0x63620094
cmp eax, 2
jne 0x63620087
push 0x8c
push 1
call fcn.636262ab
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x63620083
push esi
push dword [0x6363a6c0]
call dword [0x6363eea0]
test eax, eax
push esi
je 0x6362007d
call fcn.63620bdf
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x63620094
call fcn.6361d0f8
pop ecx
xor eax, eax
jmp 0x63620097
cmp eax, 3
jne 0x63620094
push 0
call fcn.63620daa
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x6362210e
Capabilities:
Terminate process

Disassembly:
push 8
push 0x63632078
call fcn.6361d24c
push 8
call fcn.636213f1
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x6363f04c], esi
jne 0x63622142
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x6363f048], esi
mov al, byte [ebp + 0x10]
mov byte [0x6363f044], al
cmp dword [ebp + 0xc], edi
jne 0x6362218c
cmp dword [0x63640634], edi
je 0x6362217c
mov eax, dword [0x63640630]
sub eax, 4
mov dword [0x63640630], eax
cmp eax, dword [0x63640634]
jb 0x6362217c
mov eax, dword [eax]
cmp eax, edi
je 0x6362215d
call eax
jmp 0x6362215d
push 0x6363a084
mov eax, 0x6363a07c
call fcn.6362208c
pop ecx
push 0x6363a090
mov eax, 0x6363a088
call fcn.6362208c
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x636221bd
cmp dword [ebp + 0x10], edi
jne 0x636221cb
mov dword [0x6363f04c], esi
push dword [ebp + 8]
call fcn.6362204a
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x636221ca
push 8
call fcn.6362133c
pop ecx
ret
call fcn.6361d287
ret
Function at 0x63623e0b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x6363a530]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x63623e47
xor eax, eax
jmp 0x63623fb1
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x6363f500]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x63623e85
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.6362737d
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x63623f1f
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x63623f82
jmp 0x63623ea9
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x63623ee4
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x63623ed5
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x63623eb5
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x63623f43
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x63623f4c
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x63623ea7
jmp 0x63623f4c
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x63623f43
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x63623f4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x63623fac
cmp dword [ebp - 0x68], eax
je 0x63623f7f
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x63623f74
call fcn.63624d59
mov dword [eax], 9
call fcn.63624d62
mov dword [eax], esi
jmp 0x63623fa7
push dword [ebp - 0x68]
call fcn.63624d6b
pop ecx
jmp 0x63623fa7
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x63623f94
cmp byte [edi], 0x1a
jne 0x63623f94
xor eax, eax
jmp 0x63623faf
call fcn.63624d59
mov dword [eax], 0x1c
call fcn.63624d62
and dword [eax], 0
or eax, 0xffffffff
jmp 0x63623faf
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.6361d41e
add ebp, 0x3a4
leave
ret
Function at 0x63626bca
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x6363a530]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x6363afa8]
je 0x63626c01
inc eax
cmp eax, 0x13
jb 0x63626bf2
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x6363afa8]
jne 0x63626d24
mov eax, dword [0x6363ee8c]
cmp eax, 1
je 0x63626cff
cmp eax, edx
jne 0x63626c31
cmp dword [0x6363ee90], 1
je 0x63626cff
cmp ecx, 0xfc
je 0x63626d24
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x63626c67
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.6361dd70
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.6361dc80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x63626c9b
mov eax, edi
push eax
call fcn.6361dc80
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x636320bc
push edi
call fcn.6361f6f0
add esp, 0x10
push edi
call fcn.6361dc80
push dword [esi + str._cc_b]
mov ebx, eax
call fcn.6361dc80
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.6361d3b0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.6361dd70
push edi
push ebx
call fcn.6361dd80
push 0x636320b8
push ebx
call fcn.6361dd80
push dword [esi + str._cc_b]
push ebx
call fcn.6361dd80
push 0x12010
push 0x63632084
push ebx
call fcn.63627934
add esp, 0x2c
jmp 0x63626d24
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + str._cc_b]
push dword [esi]
call fcn.6361dc80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.6361d41e
add ebp, 0x90
leave
ret
Function at 0x63626d7b
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 0x63626f51
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x6363f500]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x63626f51
test cl, 0x48
je 0x63626de6
cmp byte [eax + 5], 0xa
je 0x63626de6
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 0x63626e38
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x63626e20
call fcn.63624d59
mov dword [eax], 9
call fcn.63624d62
mov dword [eax], esi
jmp 0x63626e30
cmp eax, 0x6d
je 0x63626f51
push eax
call fcn.63624d6b
pop ecx
or eax, 0xffffffff
jmp 0x63626f53
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x63626f4c
test eax, eax
je 0x63626e5f
cmp byte [ebx], 0xa
jne 0x63626e5f
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x63626e68
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 0x63626f46
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x63626f36
cmp al, 0xd
je 0x63626e9a
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x63626f28
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x63626eb4
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x63626eaf
add dword [ebp + 0x10], 2
jmp 0x63626f08
mov dword [ebp + 0x10], eax
jmp 0x63626f24
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 0x63626edc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x63626f24
cmp dword [ebp - 0xc], 0
je 0x63626f24
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x63626efd
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x63626f08
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x63626f27
cmp ebx, dword [ebp + 0xc]
jne 0x63626f0d
cmp byte [ebp - 1], 0xa
jne 0x63626f0d
mov byte [ebx], 0xa
jmp 0x63626f27
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.6362737d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x63626f28
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x63626e7e
jmp 0x63626f46
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x63626f46
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 0x63626f53
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x63627934
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x6363f2d0], ebx
push esi
push edi
jne 0x636279b4
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x636279ef
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x63632b7c
push edi
call esi
test eax, eax
mov dword [0x6363f2d0], eax
je 0x636279ef
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x6363f2d4], eax
call esi
cmp dword [0x6363f00c], 2
mov dword [0x6363f2d8], eax
jne 0x636279b4
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x6363f2e0], eax
je 0x636279b4
push 0x63632b24
push edi
call esi
mov dword [0x6363f2dc], eax
mov eax, dword [0x6363f2dc]
test eax, eax
je 0x636279f9
call eax
test eax, eax
je 0x636279e0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x6363f2e0]
test eax, eax
je 0x636279e0
test byte [ebp - 8], 1
jne 0x636279f9
cmp dword [0x6363f018], 4
jb 0x636279f3
or byte [ebp + 0x12], 0x20
jmp 0x63627a18
xor eax, eax
jmp 0x63627a28
or byte [ebp + 0x12], 4
jmp 0x63627a18
mov eax, dword [0x6363f2d4]
test eax, eax
je 0x63627a18
call eax
mov ebx, eax
test ebx, ebx
je 0x63627a18
mov eax, dword [0x6363f2d8]
test eax, eax
je 0x63627a18
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x6363f2d0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6362aa48
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.6361d3b0
mov eax, dword [0x6363a530]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.63624dde
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x6362ab7d
push 2
push esi
push dword [ebp + 8]
call fcn.63624dde
add esp, 0xc
cmp eax, ebx
je 0x6362ab7d
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x6362ab1d
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.6361d770
push 0x8000
push dword [ebp + 8]
call fcn.6362b6eb
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x6362aad3
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.63623e0b
add esp, 0xc
cmp eax, 0xffffffff
je 0x6362aaf3
sub edi, eax
test edi, edi
jg 0x6362aacb
jmp 0x6362ab0b
call fcn.63624d62
cmp dword [eax], 5
jne 0x6362ab08
call fcn.63624d59
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.6362b6eb
pop ecx
pop ecx
jmp 0x6362ab65
jge 0x6362ab65
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.63624dde
push dword [ebp + 8]
call fcn.636270fe
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 0x6362ab65
call fcn.63624d59
mov dword [eax], 0xd
call fcn.63624d62
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.63624dde
add esp, 0xc
mov eax, esi
pop edi
jmp 0x6362ab7f
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.6361d41e
leave
ret
Function at 0x6362ab8d
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x63634030
call fcn.6361d24c
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x6363f358], edi
jne 0x6362abd1
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x6362abbc
mov dword [0x6363f358], ebx
jmp 0x6362abd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x6362abd1
mov dword [0x6363f358], 2
mov eax, dword [0x6363f358]
cmp eax, ebx
jne 0x6362abf1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x6362acb4
cmp eax, 2
je 0x6362abfa
cmp eax, edi
jne 0x6362ac22
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x6362ac0d
mov eax, dword [0x6363f2c0]
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 0x6362ac29
xor eax, eax
jmp 0x6362acb4
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.6361d3b0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x6362ac5c
cmp esi, edi
jne 0x6362ac72
push dword [ebp - 0x20]
call fcn.6361d0e6
pop ecx
mov esi, eax
cmp esi, edi
je 0x6362ac22
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 0x6362aca5
cmp dword [ebp + 0x14], edi
jne 0x6362ac8f
push edi
push edi
jmp 0x6362ac95
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 0x6362acb1
push esi
call fcn.6361d0f8
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.6361d287
ret
Function at 0x6362acbd
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x63634040
call fcn.6361d24c
xor esi, esi
cmp dword [0x6363f35c], esi
jne 0x6362ad01
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x6362acec
mov dword [0x6363f35c], edi
jmp 0x6362ad01
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x6362ad01
mov dword [0x6363f35c], 2
mov eax, dword [0x6363f35c]
cmp eax, 2
je 0x6362ade2
cmp eax, esi
je 0x6362ade2
cmp eax, 1
jne 0x6362ad46
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x6362ad2f
mov eax, dword [0x6363f2c0]
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 0x6362ad4d
xor eax, eax
jmp 0x6362adf4
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.6361d3b0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x6362ad83
cmp edi, esi
jne 0x6362ad9e
lea eax, [ebx + ebx]
push eax
call fcn.6361d0e6
pop ecx
mov edi, eax
cmp edi, esi
je 0x6362ad46
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 0x6362add1
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x6362adbb
push esi
push esi
jmp 0x6362adc1
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 0x6362addd
push edi
call fcn.6361d0f8
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x6362adf4
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.6361d287
ret
Function at 0x6362b515
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 0x6362b52e
or eax, 0xffffffff
jmp 0x6362b58f
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x6362b58b
push 0x3d
push esi
call fcn.6361f843
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x6362b58b
cmp esi, eax
je 0x6362b58b
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x6363f02c]
sete cl
cmp eax, dword [0x6363f030]
mov dword [ebp - 4], ecx
jne 0x6362b571
mov edi, eax
call fcn.6362b4b4
mov dword [0x6363f02c], eax
cmp eax, ebx
jne 0x6362b5ca
cmp dword [ebp + 0xc], ebx
je 0x6362b593
cmp dword [0x6363f034], ebx
je 0x6362b593
call fcn.6362a9b8
test eax, eax
je 0x6362b5ca
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x6362b59c
xor eax, eax
jmp 0x6362b58e
push 4
call fcn.6361d0e6
cmp eax, ebx
pop ecx
mov dword [0x6363f02c], eax
je 0x6362b58b
mov dword [eax], ebx
cmp dword [0x6363f034], ebx
jne 0x6362b5ca
push 4
call fcn.6361d0e6
cmp eax, ebx
pop ecx
mov dword [0x6363f034], eax
je 0x6362b58b
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x6363f02c]
sub edi, esi
push esi
call fcn.6362b467
mov edi, eax
test edi, edi
pop ecx
jl 0x6362b631
cmp dword [ebx], 0
je 0x6362b631
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.6361d0f8
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x6362b611
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x6362b672
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x6362b608
mov eax, edi
shl eax, 2
push eax
push dword [0x6363f02c]
call fcn.6361d839
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x6362b672
jmp 0x6362b66d
cmp dword [ebp - 4], 0
jne 0x6362b6d9
test edi, edi
jge 0x6362b641
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x6363f02c]
call fcn.6361d839
test eax, eax
pop ecx
pop ecx
je 0x6362b58b
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x6363f02c], eax
cmp dword [ebp + 0xc], 0
je 0x6362b6c4
push esi
call fcn.6361dc80
inc eax
inc eax
push eax
call fcn.6361d0e6
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x6362b6c4
push esi
push edi
call fcn.6361dd70
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x6362b6bd
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.6361d0f8
pop ecx
cmp dword [ebp - 4], 0
je 0x6362b6d1
push esi
call fcn.6361d0f8
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x6362b58e
push esi
call fcn.6361d0f8
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x6362b598
Function at 0x40197a
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.0046512b
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.0046512b
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0x10
call fcn.0046512b
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0
mov ebx, 0x467ec0
call fcn.0046513d
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 3
je 0x401a33
mov eax, 0
jmp 0x401b77
cmp dword [ebp + 0xc], 0
jne 0x401a5f
mov dword [ebp - 0x18], esp
mov eax, 3
call fcn.00465137
cmp dword [ebp - 0x18], esp
je 0x401a5c
push 6
call fcn.00465131
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
jne 0x401a87
mov eax, str.SeDebugPrivilege
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x401a81
push ebx
call fcn.00465125
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [ebp - 0x18], esp
lea eax, [ebp - 8]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 4
call fcn.00465137
cmp dword [ebp - 0x18], esp
je 0x401ab2
push 6
call fcn.00465131
add esp, 4
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 0x52c5dc
mov eax, 5
call fcn.00465137
cmp dword [ebp - 0x18], esp
je 0x401ade
push 6
call fcn.00465131
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 2
mov dword [ebp - 0x18], esp
mov eax, 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push 0x1c
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
mov eax, 6
call fcn.00465137
cmp dword [ebp - 0x18], esp
je 0x401b72
push 6
call fcn.00465131
add esp, 4
jmp 0x401b77
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00465125
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00465125
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.00465125
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10