joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a90b0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov eax, edx
mov dword [esp + 4], eax
push esi
push edi
mov edi, ecx
test eax, eax
je 0x4a9245
test edi, edi
je 0x4a911e
cmp byte [edi + 0x1e], 0
jne 0x4a9245
cmp byte [edi + 0xe2], 0
je 0x4a911e
mov eax, 0x44
cmp ax, word [edi + 0xe0]
ja 0x4a911e
mov ebx, dword [edi + 0xec]
test ebx, ebx
je 0x4a911e
mov eax, dword [ebx]
mov dword [edi + 0xec], eax
mov eax, dword [edi + 0xe4]
inc eax
mov dword [edi + 0xe4], eax
cmp eax, dword [edi + 0xe8]
jle 0x4a913e
mov dword [edi + 0xe8], eax
jmp 0x4a913e
push 0x44
call fcn.0048ad40
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4a913e
test edi, edi
je 0x4a9136
mov byte [edi + 0x1e], 1
test ebx, ebx
je 0x4a9245
mov edx, dword [esp + 0xc]
mov ecx, edi
mov esi, dword [ebp + 8]
push esi
mov edx, dword [edx]
call fcn.004a8b00
mov dword [ebx], eax
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
push esi
mov edx, dword [eax + 8]
call fcn.004a8d30
mov dword [ebx + 8], eax
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
push esi
mov edx, dword [eax + 0xc]
call fcn.004a8ae0
mov dword [ebx + 0xc], eax
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
push esi
mov edx, dword [eax + 0x10]
call fcn.004a8b00
mov dword [ebx + 0x10], eax
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
push esi
mov edx, dword [eax + 0x14]
call fcn.004a8ae0
mov dword [ebx + 0x14], eax
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
push esi
mov edx, dword [eax + 0x18]
call fcn.004a8b00
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [ebx + 0x18], eax
mov al, byte [ecx + 4]
mov byte [ebx + 4], al
mov edx, dword [ecx + 0x1c]
mov ecx, edi
push esi
call fcn.004a90b0
mov dword [ebx + 0x1c], eax
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
push esi
mov edx, dword [eax + 0x28]
call fcn.004a8ae0
add esp, 4
mov dword [ebx + 0x28], eax
mov ecx, edi
push esi
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0x2c]
call fcn.004a8ae0
mov dword [ebx + 0x2c], eax
add esp, 4
mov dword [ebx + 0x30], 0
mov eax, 0xfff7
mov dword [ebx + 0x34], 0
mov cx, word [esi + 6]
and cx, ax
mov dword [ebx + 0x24], 0
mov word [ebx + 6], cx
mov eax, ebx
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x3c], 0xffffffff
mov dword [ebx + 0x40], 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ae1d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x4ae355
test edi, edi
je 0x4ae355
movzx ecx, word [esi + 2]
push ebx
test ecx, 0x1000
jne 0x4ae34c
movzx eax, word [edi + 2]
test eax, 0x1000
jne 0x4ae34c
xor al, cl
test al, 0x10
jne 0x4ae34c
mov al, byte [esi]
cmp al, byte [edi]
jne 0x4ae34c
mov edx, dword [edi + 8]
mov ecx, dword [esi + 8]
call fcn.004ae1d0
test eax, eax
je 0x4ae34c
mov edx, dword [edi + 0xc]
mov ecx, dword [esi + 0xc]
call fcn.004ae1d0
test eax, eax
je 0x4ae34c
mov eax, dword [esi + 0x10]
mov ecx, dword [edi + 0x10]
test eax, eax
je 0x4ae29f
test ecx, ecx
je 0x4ae34c
mov edx, dword [eax]
cmp edx, dword [ecx]
jne 0x4ae34c
xor ebx, ebx
test edx, edx
jle 0x4ae2a7
xor edx, edx
mov dword [ebp - 4], edx
nop dword [eax + eax]
mov eax, dword [eax + 0xc]
mov ecx, dword [edx + eax]
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0xc]
mov edx, dword [edx + eax]
call fcn.004ae1d0
test eax, eax
je 0x4ae34c
mov eax, dword [esi + 0x10]
inc ebx
mov edx, dword [ebp - 4]
add edx, 0x14
mov dword [ebp - 4], edx
cmp ebx, dword [eax]
jl 0x4ae270
jmp 0x4ae2a7
test ecx, ecx
jne 0x4ae34c
mov eax, dword [esi + 0x18]
cmp eax, dword [edi + 0x18]
jne 0x4ae34c
mov eax, dword [esi + 0x20]
cmp eax, dword [edi + 0x20]
jne 0x4ae34c
mov eax, dword [esi + 0x24]
cmp eax, dword [edi + 0x24]
jne 0x4ae34c
mov eax, 0x800
test word [esi + 2], ax
je 0x4ae2e4
test word [edi + 2], ax
je 0x4ae34c
mov eax, dword [esi + 4]
cmp eax, dword [edi + 4]
jmp 0x4ae33e
cmp byte [esi], 0x98
je 0x4ae340
mov esi, dword [esi + 4]
test esi, esi
je 0x4ae340
test word [edi + 2], ax
jne 0x4ae34c
mov edx, dword [edi + 4]
test edx, edx
je 0x4ae34c
mov bl, byte [esi]
test bl, bl
je 0x4ae328
mov al, bl
sub esi, edx
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x51e778]
cmp al, byte [ecx + 0x51e778]
jne 0x4ae328
mov al, byte [esi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0x4ae307
movzx eax, bl
movzx ecx, byte [eax + 0x51e778]
movzx eax, byte [edx]
movzx eax, byte [eax + 0x51e778]
sub ecx, eax
jne 0x4ae34c
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp edi, esi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b0730
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, edx
mov edx, ecx
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
push edi
mov edi, eax
test eax, eax
je 0x4b075d
cmp byte [eax], cl
je 0x4b0755
inc edi
cmp byte [edi], cl
jne 0x4b0750
sub edi, eax
and edi, 0x3fffffff
mov eax, 1
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], eax
cmp dword [edx + 4], eax
jle 0x4b0825
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
xor esi, 1
cmp eax, 2
cmovge esi, eax
test ebx, ebx
je 0x4b07e3
mov eax, dword [edx + 8]
mov ecx, esi
add ecx, ecx
mov edx, dword [eax + ecx*8]
mov ecx, dword [ebp + 8]
mov bl, byte [ecx]
test bl, bl
je 0x4b07c5
sub ecx, edx
mov al, bl
mov dword [ebp - 0x14], ecx
mov edi, ecx
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x51e778]
cmp al, byte [ecx + 0x51e778]
jne 0x4b07c2
mov al, byte [edi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0x4b07a1
mov edi, dword [ebp - 4]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x51e778]
movzx eax, bl
mov ebx, dword [ebp + 8]
movzx eax, byte [eax + 0x51e778]
sub eax, ecx
jne 0x4b0806
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
add esi, esi
mov edx, dword [ebp - 0x18]
push edi
mov ecx, dword [eax + esi*8 + 0xc]
add ecx, 4
call fcn.0048e3c0
mov ecx, eax
add esp, 4
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x4b081c
jmp 0x4b0809
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [edx + 4]
jl 0x4b0776
pop esi
pop ebx
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4b0830
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, edx
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edx
push esi
mov esi, eax
push edi
test eax, eax
je 0x4b085d
cmp byte [eax], dl
je 0x4b0855
nop dword [eax]
inc esi
cmp byte [esi], dl
jne 0x4b0850
sub esi, eax
and esi, 0x3fffffff
mov eax, dword [ecx + 4]
mov edi, 1
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
cmp eax, edi
jle 0x4b0925
push ebx
mov ebx, dword [ecx + 8]
mov dword [ebp - 0x18], ebx
nop word [eax + eax]
mov eax, edi
xor eax, 1
cmp edi, 2
cmovge eax, edi
add eax, eax
mov ecx, dword [ebx + eax*8 + 0xc]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4b08ec
mov edx, dword [ebx + eax*8]
mov bl, byte [ecx]
test bl, bl
je 0x4b08d4
mov edi, ecx
mov al, bl
sub edi, edx
nop word [eax + eax]
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x51e778]
cmp al, byte [ecx + 0x51e778]
jne 0x4b08d1
mov al, byte [edi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0x4b08b0
mov edi, dword [ebp - 8]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x51e778]
movzx eax, bl
movzx eax, byte [eax + 0x51e778]
sub eax, ecx
jne 0x4b0909
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
add ecx, 0x14
push esi
call fcn.0048e3c0
mov edx, eax
add esp, 4
mov dword [ebp - 4], edx
test edx, edx
jne 0x4b091c
jmp 0x4b090c
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x18]
inc edi
mov dword [ebp - 8], edi
cmp edi, dword [ebp - 0x14]
jl 0x4b0880
pop ebx
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4dae4f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004dae2b
pop esi
leave
ret 8

Function at 0x4dcff5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4dd034
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4dd034
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4dd034
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4dd034
cmp dword [ecx + 0x74], 0xe
jbe 0x4dd034
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4e1e8e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004dd450
mov eax, dword [0x533048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004f3162
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4e1ed0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4e202c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00501bf0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x535a30]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004eb2ff
mov ecx, dword [esi*4 + 0x535a30]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4e2025
cmp eax, dword [ecx + edi + 0x24]
jne 0x4e2025
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e2025
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004eb2ff
add esp, 0x14
test edx, edx
jl 0x4e2025
jg 0x4e1f9b
test eax, eax
jb 0x4e2025
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4e2025
jl 0x4e1fb5
cmp dword [ebp - 0x1008], eax
ja 0x4e2025
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4e1fd3
test ebx, ebx
je 0x4e200c
cmp ecx, edi
jae 0x4e200c
mov al, byte [ecx]
cmp al, 0xd
jne 0x4e1fed
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4e1ff9
cmp byte [ecx + 1], 0xa
jne 0x4e1ff9
inc ecx
jmp 0x4e1ff9
movzx eax, al
movsx eax, byte [eax + 0x5331b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4e1fd3
cmp edx, ebx
jne 0x4e1fd3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4e202a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004dca95
leave
ret
Function at 0x4f120e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x535a30]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4f124e
cmp byte [ebx], 0xa
jne 0x4f124e
or byte [edi + eax + 0x28], 4
jmp 0x4f1253
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4f1352
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4f1335
inc eax
cmp dl, 0xd
je 0x4f127f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4f12a5
cmp eax, ecx
jae 0x4f12b3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4f1267
jmp 0x4f1352
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f1330
cmp dword [ebp - 0x10], 0
je 0x4f1330
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x535a30]
test byte [eax + edi + 0x28], 0x48
je 0x4f130a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4f12f5
mov byte [esi], dl
jmp 0x4f1306
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x535a30]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4f1352
cmp byte [ebp - 1], 0xa
jne 0x4f1319
cmp esi, ebx
jne 0x4f1319
mov byte [esi], 0xa
jmp 0x4f1351
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004eb31d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4f1352
mov byte [esi], 0xd
jmp 0x4f1351
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x535a30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4f134f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4f1352
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4f135b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x535a30]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4f13a1
cmp word [ebx], dx
jne 0x4f13a1
or byte [eax + edi + 0x28], 4
jmp 0x4f13a6
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4f1509
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4f14e9
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4f13e7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4f141d
cmp eax, edx
jae 0x4f142b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4f13c2
jmp 0x4f1509
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f14e4
cmp dword [ebp - 0x18], 0
je 0x4f14e4
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x535a30]
test byte [eax + edi + 0x28], 0x48
je 0x4f14ba
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4f147e
mov word [esi], cx
jmp 0x4f14b5
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x535a30]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x535a30]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x535a30]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4f1509
pop eax
cmp word [ebp - 4], ax
jne 0x4f14ca
cmp esi, ebx
jne 0x4f14ca
mov word [esi], ax
jmp 0x4f1506
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004eb31d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4f1509
push 0xd
pop eax
jmp 0x4f14c5
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x535a30]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4f1503
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4f1509
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4f4557
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x510ac8
push 0x510ac0
push str.FlsAlloc
push 0x1f
call fcn.004f43c2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f458b
push dword [ebp + 8]
mov ecx, esi
call dword [0x50c38c]
call esi
jmp 0x4f4591
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4f45d5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x510ad8
push 0x510ad0
push str.FlsGetValue
push 0x21
call fcn.004f43c2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f460c
push dword [ebp + 8]
mov ecx, esi
call dword [0x50c38c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4f4614
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x510ae0
push 0x510ad8
push str.FlsSetValue
push 0x22
call fcn.004f43c2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4f464e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x50c38c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4f79ac
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004f7928
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4f7b1b
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4f7b1b
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4f7ad0
jg 0x4f7a08
test eax, eax
je 0x4f7ac6
push 1
push 0x1000
call fcn.004f35d3
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4f7a2b
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4f7abd
push 0x8000
push ebx
call fcn.004ef97d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4f7a54
jg 0x4f7a4f
cmp ecx, 0x1000
jb 0x4f7a54
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004f267c
add esp, 0x10
cmp eax, 0xffffffff
je 0x4f7a99
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4f7a4f
jl 0x4f7a80
test ecx, ecx
jne 0x4f7a41
push dword [ebp - 0xc]
push ebx
call fcn.004ef97d
push esi
call fcn.004f3f93
add esp, 0xc
xor ebx, ebx
jmp 0x4f7b29
cmp byte [edi + 0x24], 0
je 0x4f7ab0
cmp dword [edi + 0x20], 5
jne 0x4f7ab0
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4f7abb
mov ebx, dword [edi + 0x18]
jmp 0x4f7abd
xor ebx, ebx
push esi
call fcn.004f3f93
pop ecx
jmp 0x4f7b29
test ecx, ecx
jg 0x4f7a92
jl 0x4f7ad0
test eax, eax
jae 0x4f7a92
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004eb31d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4f7af0
cmp byte [edi + 0x1c], 0
je 0x4f7a92
jmp 0x4f7b21
push ebx
call fcn.004f78be
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4f7a92
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4f7b29
cmp byte [edi + 0x1c], 0
je 0x4f7b26
mov ebx, dword [edi + 0x18]
jmp 0x4f7b29
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004eb31d
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4facce
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4fad6b
push ebx
push esi
call fcn.004fac97
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004f7bd3
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4fad18
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4fad6a
push edi
push eax
call fcn.004f400d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4fad38
call fcn.004f3f93
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4fad69
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004f7bd3
add esp, 0x20
test eax, eax
jne 0x4fad57
push edi
call fcn.004f3f93
jmp 0x4fad5f
push ebx
call fcn.004f3f93
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4fad6e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4fad7f
pop esi
ret
push ebx
push edi
push esi
call fcn.004fac97
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004f400d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4fada7
push ebx
push esi
push edi
call fcn.004de150
add esp, 0xc
push 0
call fcn.004f3f93
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4fb501
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fb01c

Function at 0x4fd73a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004f2dbb
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4fd7a9
cmp esi, dword [ebp - 4]
je 0x4fd7a4
cmp dword [ebp + 0xc], 0
je 0x4fd7a4
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4fd781
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004fd28c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4fd7ab
xor eax, eax
inc eax
jmp 0x4fd7ab
xor eax, eax
pop edi
pop esi
leave
ret