joyce8/EMBER2024-capa huggingface dataset:
Function at 0x596a30
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.005c8080
cmp dword [esp + 0xc], 0
push ebp
push esi
push edi
je 0x596bda
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
inc eax
push esi
push ebp
push dword [esp + 0x30]
shr eax, 1
push dword [esp + 0x30]
mov dword [esp + 0x1c], eax
push eax
push edi
push dword [esp + 0x2c]
call fcn.00596860
add esp, 0x1c
test eax, eax
je 0x596c02
push ebx
push 0
push 0x66ed1f
push esi
call fcn.004a4e80
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x596ac3
call fcn.004a93e0
push str.tls1_prf_alg
push ebx
push 0x66ed1f
call fcn.004a94e0
push ebx
push 0xc0100
push 0x39
call fcn.004a94f0
add esp, 0x18
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
mov eax, dword [esp + 0x10]
sub edi, eax
add edi, dword [esp + 0x24]
push esi
push ebx
push dword [esp + 0x34]
push dword [esp + 0x34]
push eax
push edi
push dword [esp + 0x34]
call fcn.00596860
add esp, 0x1c
test eax, eax
jne 0x596b01
push eax
push 0x66ed1f
push esi
push ebx
call fcn.004a4f60
add esp, 0x10
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
xor edi, edi
test esi, esi
je 0x596bbe
cmp esi, 0x40
jb 0x596b9b
lea eax, [esi - 1]
lea ecx, [ebp - 1]
add eax, ebx
add ecx, esi
cmp ebp, eax
ja 0x596b26
cmp ecx, ebx
jae 0x596b9b
mov edx, esi
lea eax, [ebp + 0x10]
mov esi, ebx
lea ecx, [ebx + 0x30]
and edx, 0xffffffc0
sub esi, ebp
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x1c]
movups xmm0, xmmword [eax - 0x10]
add edi, 0x40
lea ecx, [ecx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [eax + ebp - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx - 0x50]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edi, edx
jb 0x596b41
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x1c], edi
cmp edi, esi
jae 0x596bbe
lea ecx, [edi + ebp]
mov edx, esi
mov ebp, ebx
sub ebp, dword [esp + 0x30]
sub edx, edi
nop dword [eax + eax]
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x596bb0
push 0
push 0x66ed1f
push esi
push ebx
call fcn.004a4f60
add esp, 0x10
mov eax, 1
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x2c]
call fcn.00596860
add esp, 0x1c
test eax, eax
jne 0x596c09
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
Function at 0x59d320
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
je 0x59d393
mov edx, dword [esp + 0x10]
test edx, edx
je 0x59d393
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [ebx + 0x14]
cmp edx, edi
cmovb edi, edx
test edi, edi
je 0x59d360
push esi
mov esi, ebp
lea ecx, [ebx + 0x1c]
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
xor byte [ecx], al
lea ecx, [ecx + 1]
sub edi, 1
jne 0x59d350
pop esi
mov eax, dword [ebx + 0x14]
cmp edx, eax
jbe 0x59d391
sub edx, eax
cmp edx, 0x10
jbe 0x59d375
mov edx, 0x10
jmp 0x59d379
test edx, edx
je 0x59d391
xor ecx, ecx
nop dword [eax + eax]
mov eax, dword [ebx + 0x14]
add eax, ecx
mov al, byte [eax + ebp]
xor byte [ebx + ecx + 0x3c], al
inc ecx
cmp ecx, edx
jb 0x59d380
pop edi
pop ebx
pop ebp
ret
Function at 0x59d610
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x74
call fcn.005c8080
mov eax, dword [0x678dc8]
xor eax, esp
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x78]
mov edx, 0x10
mov eax, dword [esp + 0x84]
push ebx
push ebp
mov ebp, dword [esp + 0x84]
push esi
mov esi, dword [ecx + 0x94]
mov dword [esp + 0x10], 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x98]
movups xmm0, xmmword [esi + 0x3c]
mov dword [esp + 0x18], ecx
mov ecx, 1
push edi
mov dword [esp + 0x18], eax
movups xmmword [esp + 0x20], xmm0
nop
movzx eax, byte [edx + esi + 0x3b]
dec edx
add ecx, eax
mov byte [edx + esi + 0x3c], cl
shr ecx, 8
test edx, edx
jne 0x59d670
movups xmm0, xmmword [esi + 0x3c]
movups xmmword [esp + 0x30], xmm0
cmp dword [esi + 0x14], 0x10
jne 0x59d697
lea edi, [edx + 0x20]
jmp 0x59d6c2
mov edx, 0x10
mov ecx, 1
movzx eax, byte [edx + esi + 0x3b]
dec edx
add ecx, eax
mov byte [edx + esi + 0x3c], cl
shr ecx, 8
test edx, edx
jne 0x59d6a1
movups xmm0, xmmword [esi + 0x3c]
mov edi, 0x30
movups xmmword [esp + 0x40], xmm0
push edi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x5c]
push eax
push dword [esi]
call fcn.004acb20
add esp, 0x14
test eax, eax
je 0x59d7d9
cmp dword [esp + 0x14], edi
jne 0x59d7d9
push dword [esi + 0x14]
lea eax, [esp + 0x54]
push eax
lea ebx, [esi + 0x1c]
push ebx
call fcn.005c9000
mov eax, dword [esi + 0x14]
add esp, 0xc
cmp dword [esi + 0x18], 0
movups xmm0, xmmword [esp + eax + 0x50]
movups xmmword [esi + 0x3c], xmm0
je 0x59d76f
mov edi, dword [esp + 0x90]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test ebp, ebp
jne 0x59d72f
test ecx, ecx
jne 0x59d72f
test eax, eax
je 0x59d752
push dword [esp + 0x98]
push eax
push dword [esp + 0xa8]
push ecx
push edi
push ebp
push esi
call fcn.0059d3a0
add esp, 0x1c
test eax, eax
je 0x59d7d9
test edi, edi
je 0x59d792
mov eax, dword [esp + 0x1c]
push dword [eax + 0x8c]
lea eax, [esi + 0x60]
push eax
push esi
call fcn.0059d320
add esp, 0xc
jmp 0x59d792
push dword [esp + 0x90]
push ebp
push esi
call fcn.0059d320
push dword [esp + 0xa4]
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.0059d320
add esp, 0x18
push 0xffffffffffffffff
push 0
push ebx
push 0
push 0
push dword [esi]
call fcn.004acaf0
add esp, 0x18
test eax, eax
je 0x59d7d9
push 0xffffffffffffffff
push 0
push ebx
push 0
push 0
push dword [esi + 4]
call fcn.004acaf0
add esp, 0x18
test eax, eax
je 0x59d7d9
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.005c77ea
add esp, 0x74
ret
mov ecx, dword [esp + 0x80]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c77ea
add esp, 0x74
ret
Function at 0x5a0b6d
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
jne 0x5a0abd
xor eax, eax
pop ebx
ret
push edi
push dword [ebx + 4]
push 0
push dword [ebx + 8]
push dword [ebx]
call fcn.004eed70
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x5a0b00
call fcn.004a93e0
push str.ecx_gen
push edi
push 0x66ed1f
call fcn.004a94e0
push edi
push 0xc0100
push 0x39
call fcn.004a94f0
add esp, 0x18
xor eax, eax
pop edi
pop ebx
ret
test byte [ebx + 0xc], 3
je 0x5a0b47
push esi
push edi
call fcn.004eecf0
mov esi, eax
add esp, 4
test esi, esi
jne 0x5a0b4a
call fcn.004a93e0
push str.ecx_gen
push esi
push 0x66ed1f
call fcn.004a94e0
push esi
push 0xc0100
push 0x39
call fcn.004a94f0
add esp, 0x18
push edi
call fcn.004eed10
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
ret
push 0
push dword [edi + 0x4c]
push esi
push dword [ebx]
call fcn.004bdce0
add esp, 0x10
test eax, eax
jle 0x5a0b3b
mov eax, dword [ebx + 8]
cmp eax, 3
ja case.default.0x5a0b66
jmp dword [eax*4 + 0x5a0be4]
mov al, byte [esi + 0x1f]
and byte [esi], 0xf8
and al, 0x3f
or al, 0x40
mov byte [esi + 0x1f], al
lea eax, [edi + 0xc]
push esi
push eax
call fcn.00549b30
add esp, 8
mov eax, edi
or dword [edi + 8], 1
pop esi
pop edi
pop ebx
ret
and byte [esi], 0xfc
lea eax, [edi + 0xc]
or byte [esi + 0x37], 0x80
push esi
push eax
call fcn.00552de0
add esp, 8
mov eax, edi
or dword [edi + 8], 1
pop esi
pop edi
pop ebx
ret
push dword [ebx + 4]
lea eax, [edi + 0xc]
push esi
push eax
push dword [ebx]
call fcn.005494f0
jmp 0x5a0bcf
push dword [ebx + 4]
lea eax, [edi + 0xc]
push esi
push eax
push dword [ebx]
call fcn.005511c0
add esp, 0x10
test eax, eax
je 0x5a0b3b
or dword [edi + 8], 1
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x5bfa50
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
cmp dword [ebx + 0x84], 0xffffffff
je 0x5bfb24
push dword [ebx]
call fcn.004aa790
mov esi, eax
add esp, 4
test esi, esi
js 0x5bfb24
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5bfa81
mov dword [eax], esi
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x5bfb1b
mov ecx, dword [ebx + 0x84]
push edi
cmp ecx, esi
jne 0x5bfaba
test esi, esi
jle 0x5bfaf9
mov edx, ebp
lea ecx, [ebx + 4]
mov edi, esi
mov al, byte [ecx + 0x60]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub edi, 1
jne 0x5bfaa4
jmp 0x5bfaf9
mov eax, esi
mov byte [ecx + ebx + 0x64], 0x80
sub eax, ecx
cmp eax, 1
jle 0x5bfada
dec eax
push eax
lea eax, [ebx + 0x65]
add eax, ecx
push 0
push eax
call fcn.005c9580
add esp, 0xc
test esi, esi
jle 0x5bfaf9
mov edx, ebp
lea ecx, [ebx + 0x24]
mov edi, esi
mov al, byte [ecx + 0x40]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub edi, 1
jne 0x5bfae5
push esi
push ebp
push ebp
push dword [ebx]
call fcn.004aafa0
add esp, 0x10
pop edi
test eax, eax
jne 0x5bfb1b
push esi
push ebp
call fcn.00401320
add esp, 8
xor eax, eax
pop ebp
pop esi
pop ebx
ret
pop ebp
pop esi
mov eax, 1
pop ebx
ret
pop esi
xor eax, eax
pop ebx
ret
Function at 0x5c7060
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x30
call fcn.005c8080
mov eax, dword [0x678dc8]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [esp + 0x44]
push esi
push edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x30]
test eax, eax
je 0x5c7172
movups xmm0, xmmword [edi + 0x10]
mov ebx, dword [esp + 0x50]
lea esi, [edi + 0x10]
dec eax
mov dword [esp + 0x10], ebx
movups xmmword [esp + 0x2c], xmm0
and byte [esp + 0x38], 0x7f
lea ecx, [esp + 0x2c]
push 1
mov dword [edi + 0x30], eax
push ecx
psrldq xmm0, 8
movd eax, xmm0
push 0
push 0
and al, 0x7f
mov byte [esp + 0x44], al
mov eax, dword [edi + 0x20]
push 0
push eax
mov dword [esp + 0x30], eax
call fcn.004acaf0
add esp, 0x18
test eax, eax
je 0x5c7172
push dword [esp + 0x10]
lea eax, [esp + 0x14]
push dword [esp + 0x18]
push eax
push ebp
push dword [esp + 0x28]
call fcn.004ad4c0
add esp, 0x14
test eax, eax
je 0x5c7172
push ebx
push ebp
lea eax, [esp + 0x24]
push eax
push edi
call fcn.005c7610
add esp, 0x10
test eax, eax
je 0x5c7172
lea eax, [esi + 0xf]
xor edx, edx
lea ecx, [esp + 0x1c]
cmp ecx, eax
ja 0x5c7143
lea eax, [esp + 0x2b]
cmp eax, esi
jb 0x5c7143
mov eax, ecx
sub esi, eax
lea ecx, [esp + 0x1c]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor byte [ecx], al
cmp edx, 0x10
jl 0x5c7130
jmp 0x5c7154
movups xmm1, xmmword [esp + 0x1c]
movups xmm0, xmmword [esi]
pxor xmm1, xmm0
movups xmmword [esp + 0x1c], xmm1
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
or ecx, dword [esp + 0x24]
or eax, dword [esp + 0x28]
or ecx, eax
je 0x5c7187
push ebx
push ebp
call fcn.00401320
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005c77ea
add esp, 0x30
ret
mov ecx, dword [esp + 0x3c]
mov eax, ebx
mov dword [edi + 0x2c], 0
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005c77ea
add esp, 0x30
ret

Function at 0x5c8720
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x5c875f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5c875f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5c875f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x5c875f
cmp dword [ecx + 0x74], 0xe
jbe 0x5c875f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x5da06a
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x678dc8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x66687c
push esi
call fcn.005e8ddc
pop ecx
pop ecx
test eax, eax
jne 0x5da098
xor al, al
jmp 0x5da115
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.005d9dab
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x5da0d2
push dword [ebp - 0x210]
call fcn.005d1b1e
xor al, al
jmp 0x5da113
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x5da0d8
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x5da0f8
push edx
call fcn.005d9fa1
pop ecx
test al, al
je 0x5da0c3
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x5da106
mov bl, 1
push dword [ebp - 0x210]
call fcn.005d1b1e
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005c77ea
leave
ret
Function at 0x5dc69f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.005c8080
mov eax, dword [0x678dc8]
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.005dc1cb
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5dc6e1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5dc83d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005f2c70
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 + 0x67eac8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.005e6830
mov ecx, dword [esi*4 + 0x67eac8]
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 0x5dc836
cmp eax, dword [ecx + edi + 0x24]
jne 0x5dc836
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 0x5dc836
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005e6830
add esp, 0x14
test edx, edx
jl 0x5dc836
jg 0x5dc7ac
test eax, eax
jb 0x5dc836
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5dc836
jl 0x5dc7c6
cmp dword [ebp - 0x1008], eax
ja 0x5dc836
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5dc7e4
test ebx, ebx
je 0x5dc81d
cmp ecx, edi
jae 0x5dc81d
mov al, byte [ecx]
cmp al, 0xd
jne 0x5dc7fe
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5dc80a
cmp byte [ecx + 1], 0xa
jne 0x5dc80a
inc ecx
jmp 0x5dc80a
movzx eax, al
movsx eax, byte [eax + 0x679058]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5dc7e4
cmp edx, ebx
jne 0x5dc7e4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5dc83b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005c77ea
leave
ret

Function at 0x5e1a08
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x66742c
push 0x667424
push str.FlsAlloc
push 0x1f
call fcn.005e1873
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5e1a3c
push dword [ebp + 8]
mov ecx, esi
call dword [0x5f52c0]
call esi
jmp 0x5e1a42
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5e1a86
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x66743c
push 0x667434
push str.FlsGetValue
push 0x21
call fcn.005e1873
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5e1abd
push dword [ebp + 8]
mov ecx, esi
call dword [0x5f52c0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x5e1ac5
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x667444
push 0x66743c
push str.FlsSetValue
push 0x22
call fcn.005e1873
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5e1aff
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5f52c0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x5e5cc8
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 + 0x67eac8]
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 0x5e5d08
cmp byte [ebx], 0xa
jne 0x5e5d08
or byte [edi + eax + 0x28], 4
jmp 0x5e5d0d
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 0x5e5e0c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x5e5def
inc eax
cmp dl, 0xd
je 0x5e5d39
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x5e5d5f
cmp eax, ecx
jae 0x5e5d6d
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 0x5e5d21
jmp 0x5e5e0c
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 0x5e5dea
cmp dword [ebp - 0x10], 0
je 0x5e5dea
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x67eac8]
test byte [eax + edi + 0x28], 0x48
je 0x5e5dc4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5e5daf
mov byte [esi], dl
jmp 0x5e5dc0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x67eac8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5e5e0c
cmp byte [ebp - 1], 0xa
jne 0x5e5dd3
cmp esi, ebx
jne 0x5e5dd3
mov byte [esi], 0xa
jmp 0x5e5e0b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005e684e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5e5e0c
mov byte [esi], 0xd
jmp 0x5e5e0b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x67eac8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5e5e09
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5e5e0c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5e5e15
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 + 0x67eac8]
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 0x5e5e5b
cmp word [ebx], dx
jne 0x5e5e5b
or byte [eax + edi + 0x28], 4
jmp 0x5e5e60
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 0x5e5fc3
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 0x5e5fa3
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x5e5ea1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5e5ed7
cmp eax, edx
jae 0x5e5ee5
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 0x5e5e7c
jmp 0x5e5fc3
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 0x5e5f9e
cmp dword [ebp - 0x18], 0
je 0x5e5f9e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x67eac8]
test byte [eax + edi + 0x28], 0x48
je 0x5e5f74
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 0x5e5f38
mov word [esi], cx
jmp 0x5e5f6f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x67eac8]
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 + 0x67eac8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x67eac8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x5e5fc3
pop eax
cmp word [ebp - 4], ax
jne 0x5e5f84
cmp esi, ebx
jne 0x5e5f84
mov word [esi], ax
jmp 0x5e5fc0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005e684e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x5e5fc3
push 0xd
pop eax
jmp 0x5e5f7f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x67eac8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x5e5fbd
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x5e5fc3
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 0x5ead17
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 0x5eadb4
push ebx
push esi
call fcn.005eace0
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.005e7df1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5ead61
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5eadb3
push edi
push eax
call fcn.005e207b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5ead81
call fcn.005e1594
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5eadb2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005e7df1
add esp, 0x20
test eax, eax
jne 0x5eada0
push edi
call fcn.005e1594
jmp 0x5eada8
push ebx
call fcn.005e1594
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 0x5eadb7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5eadc8
pop esi
ret
push ebx
push edi
push esi
call fcn.005eace0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.005e207b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5eadf0
push ebx
push esi
push edi
call fcn.005c9000
add esp, 0xc
push 0
call fcn.005e1594
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5eb54a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005eb065

Function at 0x5ed71f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.005e0eef
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 0x5ed78e
cmp esi, dword [ebp - 4]
je 0x5ed789
cmp dword [ebp + 0xc], 0
je 0x5ed789
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5ed766
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.005ed271
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x5ed790
xor eax, eax
inc eax
jmp 0x5ed790
xor eax, eax
pop edi
pop esi
leave
ret