joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a6bf0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov edi, edi
push ebx
push ebp
push esi
push edi
sub esp, 8
mov eax, dword [edx]
mov ebx, dword [edx + 4]
mov ebp, dword [edx + 0xc]
mov edx, dword [edx + 8]
mov esi, dword [ecx + 0x1d4]
mov ecx, dword [ecx + 0x1d0]
mov dword [esp + 4], esi
xor eax, dword [ecx]
xor ebx, dword [ecx + 4]
xor edx, dword [ecx + 8]
xor ebp, dword [ecx + 0xc]
lea ecx, [ecx + 0x10]
mov dword [esp], ecx
lea esp, [esp]
lea esp, [esp]
nop
push ebp
movzx ecx, al
mov ecx, dword [ecx*4 + 0x4b9000]
movzx esi, ah
shr eax, 0x10
mov edi, dword [esi*4 + 0x4b9400]
movzx ebp, ah
mov ebp, dword [ebp*4 + 0x4b9c00]
movzx eax, al
mov eax, dword [eax*4 + 0x4b9800]
movzx esi, bl
xor edi, dword [esi*4 + 0x4b9000]
movzx esi, bh
shr ebx, 0x10
xor eax, dword [esi*4 + 0x4b9400]
movzx esi, bl
xor ebp, dword [esi*4 + 0x4b9800]
movzx ebx, bh
xor ecx, dword [ebx*4 + 0x4b9c00]
pop ebx
movzx esi, dl
xor eax, dword [esi*4 + 0x4b9000]
movzx esi, dh
xor ebp, dword [esi*4 + 0x4b9400]
shr edx, 0x10
movzx esi, dl
xor ecx, dword [esi*4 + 0x4b9800]
movzx edx, dh
xor edi, dword [edx*4 + 0x4b9c00]
mov esi, dword [esp]
movzx edx, bl
xor ebp, dword [edx*4 + 0x4b9000]
movzx edx, bh
xor ecx, dword [edx*4 + 0x4b9400]
shr ebx, 0x10
movzx edx, bl
xor edi, dword [edx*4 + 0x4b9800]
movzx ebx, bh
xor eax, dword [ebx*4 + 0x4b9c00]
mov edx, dword [esi + 8]
xor edx, eax
mov eax, dword [esi]
xor eax, ecx
xor ebp, dword [esi + 0xc]
mov ebx, dword [esi + 4]
xor ebx, edi
add esi, 0x10
cmp esi, dword [esp + 4]
mov dword [esp], esi
jb 0x4a6c34
push ebp
movzx ecx, al
movzx ecx, byte [ecx + 0x4ba000]
movzx edi, ah
shr eax, 0x10
movzx edi, byte [edi + 0x4ba000]
movzx esi, ah
shl edi, 8
movzx ebp, byte [esi + 0x4ba000]
movzx eax, al
shl ebp, 0x18
movzx eax, byte [eax + 0x4ba000]
shl eax, 0x10
movzx esi, bl
movzx esi, byte [esi + 0x4ba000]
or edi, esi
movzx esi, bh
shr ebx, 0x10
movzx esi, byte [esi + 0x4ba000]
shl esi, 8
or eax, esi
movzx esi, bl
movzx esi, byte [esi + 0x4ba000]
movzx ebx, bh
shl esi, 0x10
movzx ebx, byte [ebx + 0x4ba000]
or ebp, esi
shl ebx, 0x18
or ecx, ebx
movzx esi, dl
movzx esi, byte [esi + 0x4ba000]
movzx ebx, dh
shr edx, 0x10
movzx ebx, byte [ebx + 0x4ba000]
or eax, esi
shl ebx, 8
movzx esi, dl
movzx esi, byte [esi + 0x4ba000]
or ebp, ebx
pop ebx
movzx edx, dh
movzx edx, byte [edx + 0x4ba000]
shl esi, 0x10
or ecx, esi
shl edx, 0x18
or edi, edx
movzx esi, bl
movzx esi, byte [esi + 0x4ba000]
movzx edx, bh
shr ebx, 0x10
movzx edx, byte [edx + 0x4ba000]
or ebp, esi
shl edx, 8
or ecx, edx
mov edx, dword [esp]
movzx esi, bl
movzx esi, byte [esi + 0x4ba000]
movzx ebx, bh
movzx ebx, byte [ebx + 0x4ba000]
shl esi, 0x10
shl ebx, 0x18
or edi, esi
mov esi, dword [esp + 0x1c]
or eax, ebx
xor ecx, dword [edx]
xor edi, dword [edx + 4]
xor eax, dword [edx + 8]
xor ebp, dword [edx + 0xc]
mov dword [esi], ecx
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebp
mov dword [esp - 8], esp
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x401bd7
pop dword [ebp - 0x38]
mov eax, 0x401bd7
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xdf450581
add dword [ebp - 0x48], 0x6f0d3fca
mov dword [ebp - 0x44], 0x636c5dc1
sub dword [ebp - 0x44], 0x3139117c
mov dword [ebp - 0x40], 0xcde83b3e
add dword [ebp - 0x40], 0x7e6408f0
mov dword [ebp - 0x3c], 0x2592f35c
add dword [ebp - 0x3c], 0xda6d0ca4
lea eax, [ebp - 0x48]
push eax
mov eax, 0x2beeb16f
sub eax, 0x2bae410f
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x8f17d966
add dword [ebp - 0x48], 0xe55a8ff0
mov dword [ebp - 0x44], 0xcd0368ec
add dword [ebp - 0x44], 0x7468f889
mov dword [ebp - 0x40], 0x6475be53
sub dword [ebp - 0x40], 0x10651e7
mov dword [ebp - 0x3c], 0xcaf7304
add dword [ebp - 0x3c], 0xf3508cfc
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0xfee2bb57
sub eax, 0xfea24a57
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x364bf
push 0
call eax
mov ecx, 0xa688392d
sub ecx, 0xa687f24a
xor ebx, ebx
add ebx, eax
mov edx, 0x8be1ef03
add edx, 0x745f10fd
add edx, dword [ebp - 0x38]
mov edi, 0x8f9fdd0b
sub edi, 0x18fd46d9
xor dword [ebp - 0x34], 0x9ef0c695
mov esi, dword [edx]
sub dword [ebp - 4], 0xd1cefcae
sub esi, edi
add dword [ebp - 0x34], ebx
mov dword [ebx], esi
add dword [ebp - 0x14], eax
add ebx, 0xa280bf3f
sub ebx, 0xa280bf3b
add edx, 0x1ca1efec
add edx, 0xe35e1018
loop 0x401cf6
add eax, 0x10e5f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x404430
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 0xc], edx
push ebx
push esi
mov eax, dword [eax + ecx + 0x78]
push edi
mov dword [ebp - 8], ecx
mov edx, dword [eax + ecx + 0x1c]
mov dword [ebp - 0x10], edx
lea ebx, [edx + ecx]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [eax + ecx + 0x20]
mov eax, dword [eax + ecx + 0x24]
add ebx, ecx
add eax, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 4], eax
test edx, edx
je 0x4044c4
nop
mov edi, dword [ebx + eax*4]
mov ebx, 0x35
add edi, ecx
xor edx, edx
mov ecx, edi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404481
sub ecx, esi
je 0x4044ad
nop dword [eax]
movsx ecx, byte [edx + edi]
lea ebx, [ebx + ebx*2]
mov eax, edi
add ebx, ecx
inc edx
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4044a0
sub eax, esi
cmp edx, eax
jb 0x404490
mov eax, dword [ebp - 4]
cmp ebx, dword [ebp - 0xc]
je 0x4044cd
mov ecx, dword [ebp - 8]
inc eax
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 0x10]
jb 0x404470
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
movzx eax, word [ecx + eax*2]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + eax*4]
add eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x405170
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x4051a2
jl 0x405195
test ecx, ecx
jne 0x4051a2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x405262
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00407340
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40520e
jg 0x4051cd
test esi, esi
je 0x40520e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x4051e5
mov eax, dword [esp + 0x10]
jl 0x4051df
cmp eax, esi
jae 0x4051e5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0044c0d0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x40522f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x40524b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x4051b4
jl 0x40524b
test ecx, ecx
jne 0x4051b4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x4052a6
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x4052a6
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.0044c0d0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x405317
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4052cc
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x405302
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.004987d0
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x405317
cmp edi, eax
ja 0x4052e0
test edi, edi
je 0x405317
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.004987d0
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408770
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3a70
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5190c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x46
push str.D:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.38.33130includexlocale
push 2
lea ebx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
push 8
mov dword [ebx], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.00497210
mov edi, eax
add esp, 0x10
test edi, edi
je 0x408885
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0040d040
mov dword [edi + 4], eax
lea ecx, [esi + 0x14]
mov dword [esi + 0x34], edi
lea eax, [esi + 8]
mov dword [esi + 0xc], ebx
lea edx, [esi + 0x18]
mov dword [esi + 0x10], eax
lea edi, [esi + 0x24]
mov dword [esi + 0x1c], ecx
lea ebx, [esi + 0x28]
mov dword [esi + 0x20], edx
add esp, 4
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], ebx
mov dword [eax], 0
mov eax, esi
mov dword [edx], 0
mov dword [esi + 0x28], 0
mov dword [esi + 4], 0
mov dword [ecx], 0
mov dword [edi], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0040c2b0
int3
Function at 0x408890
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3a9d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5190c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x46
push str.D:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.38.33130includexlocale
push 2
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.00497210
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4089d5
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0040d040
mov dword [edi + 4], eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.00408ed0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 4], 0xffffffff
mov bl, al
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x408999
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x408999
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x4089b2
mov eax, dword [esi + 0xc]
mov ecx, esi
push 0
or eax, 4
push eax
call fcn.00403690
cmp byte [ebp + 0xc], 0
je 0x4089c1
push esi
call fcn.0040d550
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.0040c2b0
int3

Function at 0x448690
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
push ecx
call fcn.00448680
add esp, 4
mov dword [ebp - 0xc], eax
call fcn.0049aa10
mov edx, 4
imul ecx, edx, 5
mov edx, dword [eax + ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x22
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 4]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0x30
je 0x4486f5
cmp dword [ebp - 8], 0x31
je 0x4486fc
cmp dword [ebp - 8], 0x32
je 0x448703
jmp 0x44870a
mov eax, 2
jmp 0x44870c
mov eax, 1
jmp 0x44870c
mov eax, 3
jmp 0x44870c
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x45cc70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0045c890
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x45cca2
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x4ea194]
call dword [ebp - 8]
jmp 0x45ccac
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret
Function at 0x4b70c0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004b6760
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4b70f4
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x4ea194]
call dword [ebp - 8]
jmp 0x4b70fa
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esp, ebp
pop ebp
ret 4

Function at 0x4b7150
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004b67a0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4b7184
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x4ea194]
call dword [ebp - 8]
jmp 0x4b718e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret 4

Function at 0x4b71a0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004b67c0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4b71d8
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
call dword [0x4ea194]
call dword [ebp - 8]
jmp 0x4b71e6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esp, ebp
pop ebp
ret 8

Function at 0x4b72b0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004b6860
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4b72f0
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x4ea194]
call dword [ebp - 8]
jmp 0x4b730e
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004b7670
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4b8c90
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.004e28a0
mov eax, dword [0x5190c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x51bdb0]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x4b8e68
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x4b8db7
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x4b8db7
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x4b8d95
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x4b8d19
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4b8e21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x4b8e88
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x4b8e63
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x4b8e88
jmp 0x4b8cf2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449610
mov esp, ebp
pop ebp
ret
Function at 0x4b8ea0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.004e28a0
mov eax, dword [0x5190c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x51bdb0]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x4b908b
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x4b8fd6
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x4b8fd6
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x4b8fb2
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x4b8f29
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4b9044
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x4b90ab
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x4b9086
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x4b90ab
jmp 0x4b8f02
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449610
mov esp, ebp
pop ebp
ret