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

Disassembly:
mov eax, 4
call fcn.005c85a0
cmp dword [esp + 0xc], 0
push ebp
push esi
push edi
je 0x5970fa
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.00596d80
add esp, 0x1c
test eax, eax
je 0x597122
push ebx
push 0
push 0x66fd1f
push esi
call fcn.004a53d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x596fe3
call fcn.004a9920
push str.tls1_prf_alg
push ebx
push 0x66fd1f
call fcn.004a9a20
push ebx
push 0xc0100
push 0x39
call fcn.004a9a30
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.00596d80
add esp, 0x1c
test eax, eax
jne 0x597021
push eax
push 0x66fd1f
push esi
push ebx
call fcn.004a54b0
add esp, 0x10
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
xor edi, edi
test esi, esi
je 0x5970de
cmp esi, 0x40
jb 0x5970bb
lea eax, [esi - 1]
lea ecx, [ebp - 1]
add eax, ebx
add ecx, esi
cmp ebp, eax
ja 0x597046
cmp ecx, ebx
jae 0x5970bb
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 0x597061
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x1c], edi
cmp edi, esi
jae 0x5970de
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 0x5970d0
push 0
push 0x66fd1f
push esi
push ebx
call fcn.004a54b0
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.00596d80
add esp, 0x1c
test eax, eax
jne 0x597129
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 0x59d840
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
je 0x59d8b3
mov edx, dword [esp + 0x10]
test edx, edx
je 0x59d8b3
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [ebx + 0x14]
cmp edx, edi
cmovb edi, edx
test edi, edi
je 0x59d880
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 0x59d870
pop esi
mov eax, dword [ebx + 0x14]
cmp edx, eax
jbe 0x59d8b1
sub edx, eax
cmp edx, 0x10
jbe 0x59d895
mov edx, 0x10
jmp 0x59d899
test edx, edx
je 0x59d8b1
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 0x59d8a0
pop edi
pop ebx
pop ebp
ret
Function at 0x59db30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x74
call fcn.005c85a0
mov eax, dword [0x679dc8]
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 0x59db90
movups xmm0, xmmword [esi + 0x3c]
movups xmmword [esp + 0x30], xmm0
cmp dword [esi + 0x14], 0x10
jne 0x59dbb7
lea edi, [edx + 0x20]
jmp 0x59dbe2
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 0x59dbc1
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.004ad050
add esp, 0x14
test eax, eax
je 0x59dcf9
cmp dword [esp + 0x14], edi
jne 0x59dcf9
push dword [esi + 0x14]
lea eax, [esp + 0x54]
push eax
lea ebx, [esi + 0x1c]
push ebx
call fcn.005c9520
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 0x59dc8f
mov edi, dword [esp + 0x90]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test ebp, ebp
jne 0x59dc4f
test ecx, ecx
jne 0x59dc4f
test eax, eax
je 0x59dc72
push dword [esp + 0x98]
push eax
push dword [esp + 0xa8]
push ecx
push edi
push ebp
push esi
call fcn.0059d8c0
add esp, 0x1c
test eax, eax
je 0x59dcf9
test edi, edi
je 0x59dcb2
mov eax, dword [esp + 0x1c]
push dword [eax + 0x8c]
lea eax, [esi + 0x60]
push eax
push esi
call fcn.0059d840
add esp, 0xc
jmp 0x59dcb2
push dword [esp + 0x90]
push ebp
push esi
call fcn.0059d840
push dword [esp + 0xa4]
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.0059d840
add esp, 0x18
push 0xffffffffffffffff
push 0
push ebx
push 0
push 0
push dword [esi]
call fcn.004ad020
add esp, 0x18
test eax, eax
je 0x59dcf9
push 0xffffffffffffffff
push 0
push ebx
push 0
push 0
push dword [esi + 4]
call fcn.004ad020
add esp, 0x18
test eax, eax
je 0x59dcf9
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.005c7d0a
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.005c7d0a
add esp, 0x74
ret
Function at 0x5a0fd0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
jne 0x5a0fdd
xor eax, eax
pop ebx
ret
push edi
push dword [ebx + 4]
push 0
push dword [ebx + 8]
push dword [ebx]
call fcn.004ef280
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x5a1020
call fcn.004a9920
push str.ecx_gen
push edi
push 0x66fd1f
call fcn.004a9a20
push edi
push 0xc0100
push 0x39
call fcn.004a9a30
add esp, 0x18
xor eax, eax
pop edi
pop ebx
ret
test byte [ebx + 0xc], 3
je 0x5a1067
push esi
push edi
call fcn.004ef200
mov esi, eax
add esp, 4
test esi, esi
jne 0x5a106a
call fcn.004a9920
push str.ecx_gen
push esi
push 0x66fd1f
call fcn.004a9a20
push esi
push 0xc0100
push 0x39
call fcn.004a9a30
add esp, 0x18
push edi
call fcn.004ef220
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.004be210
add esp, 0x10
test eax, eax
jle 0x5a105b
mov eax, dword [ebx + 8]
cmp eax, 3
ja case.default.0x5a1086
jmp dword [eax*4 + 0x5a1104]
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.0054a080
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.00553330
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.00549a40
jmp 0x5a10ef
push dword [ebx + 4]
lea eax, [edi + 0xc]
push esi
push eax
push dword [ebx]
call fcn.00551710
add esp, 0x10
test eax, eax
je 0x5a105b
or dword [edi + 8], 1
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x5bff60
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
cmp dword [ebx + 0x84], 0xffffffff
je 0x5c0034
push dword [ebx]
call fcn.004aacd0
mov esi, eax
add esp, 4
test esi, esi
js 0x5c0034
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5bff91
mov dword [eax], esi
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x5c002b
mov ecx, dword [ebx + 0x84]
push edi
cmp ecx, esi
jne 0x5bffca
test esi, esi
jle 0x5c0009
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 0x5bffb4
jmp 0x5c0009
mov eax, esi
mov byte [ecx + ebx + 0x64], 0x80
sub eax, ecx
cmp eax, 1
jle 0x5bffea
dec eax
push eax
lea eax, [ebx + 0x65]
add eax, ecx
push 0
push eax
call fcn.005c9aa0
add esp, 0xc
test esi, esi
jle 0x5c0009
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 0x5bfff5
push esi
push ebp
push ebp
push dword [ebx]
call fcn.004ab4e0
add esp, 0x10
pop edi
test eax, eax
jne 0x5c002b
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 0x5c7580
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x30
call fcn.005c85a0
mov eax, dword [0x679dc8]
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 0x5c7692
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.004ad020
add esp, 0x18
test eax, eax
je 0x5c7692
push dword [esp + 0x10]
lea eax, [esp + 0x14]
push dword [esp + 0x18]
push eax
push ebp
push dword [esp + 0x28]
call fcn.004ad9f0
add esp, 0x14
test eax, eax
je 0x5c7692
push ebx
push ebp
lea eax, [esp + 0x24]
push eax
push edi
call fcn.005c7b30
add esp, 0x10
test eax, eax
je 0x5c7692
lea eax, [esi + 0xf]
xor edx, edx
lea ecx, [esp + 0x1c]
cmp ecx, eax
ja 0x5c7663
lea eax, [esp + 0x2b]
cmp eax, esi
jb 0x5c7663
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 0x5c7650
jmp 0x5c7674
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 0x5c76a7
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.005c7d0a
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.005c7d0a
add esp, 0x30
ret

Function at 0x5c8c40
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x679dc8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x66787c
push esi
call fcn.005e930c
pop ecx
pop ecx
test eax, eax
jne 0x5da5b8
xor al, al
jmp 0x5da635
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.005da2cb
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x5da5f2
push dword [ebp - 0x210]
call fcn.005d203e
xor al, al
jmp 0x5da633
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x5da5f8
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x5da618
push edx
call fcn.005da4c1
pop ecx
test al, al
je 0x5da5e3
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x5da626
mov bl, 1
push dword [ebp - 0x210]
call fcn.005d203e
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005c7d0a
leave
ret
Function at 0x5dcbbf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.005c85a0
mov eax, dword [0x679dc8]
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.005dc6eb
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5dcc01
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5dcd5d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005f31a0
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 + 0x67fac8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.005e6d51
mov ecx, dword [esi*4 + 0x67fac8]
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 0x5dcd56
cmp eax, dword [ecx + edi + 0x24]
jne 0x5dcd56
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 0x5dcd56
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005e6d51
add esp, 0x14
test edx, edx
jl 0x5dcd56
jg 0x5dcccc
test eax, eax
jb 0x5dcd56
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5dcd56
jl 0x5dcce6
cmp dword [ebp - 0x1008], eax
ja 0x5dcd56
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5dcd04
test ebx, ebx
je 0x5dcd3d
cmp ecx, edi
jae 0x5dcd3d
mov al, byte [ecx]
cmp al, 0xd
jne 0x5dcd1e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5dcd2a
cmp byte [ecx + 1], 0xa
jne 0x5dcd2a
inc ecx
jmp 0x5dcd2a
movzx eax, al
movsx eax, byte [eax + 0x67a058]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5dcd04
cmp edx, ebx
jne 0x5dcd04
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5dcd5b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005c7d0a
leave
ret

Function at 0x5e1f29
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x66842c
push 0x668424
push str.FlsAlloc
push 0x1f
call fcn.005e1d94
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5e1f5d
push dword [ebp + 8]
mov ecx, esi
call dword [0x5f62c4]
call esi
jmp 0x5e1f63
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5e1fa7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x66843c
push 0x668434
push str.FlsGetValue
push 0x21
call fcn.005e1d94
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5e1fde
push dword [ebp + 8]
mov ecx, esi
call dword [0x5f62c4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x5e1fe6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x668444
push 0x66843c
push str.FlsSetValue
push 0x22
call fcn.005e1d94
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5e2020
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5f62c4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x5e61e9
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 + 0x67fac8]
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 0x5e6229
cmp byte [ebx], 0xa
jne 0x5e6229
or byte [edi + eax + 0x28], 4
jmp 0x5e622e
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 0x5e632d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x5e6310
inc eax
cmp dl, 0xd
je 0x5e625a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x5e6280
cmp eax, ecx
jae 0x5e628e
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 0x5e6242
jmp 0x5e632d
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 0x5e630b
cmp dword [ebp - 0x10], 0
je 0x5e630b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x67fac8]
test byte [eax + edi + 0x28], 0x48
je 0x5e62e5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5e62d0
mov byte [esi], dl
jmp 0x5e62e1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x67fac8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5e632d
cmp byte [ebp - 1], 0xa
jne 0x5e62f4
cmp esi, ebx
jne 0x5e62f4
mov byte [esi], 0xa
jmp 0x5e632c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005e6d6f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5e632d
mov byte [esi], 0xd
jmp 0x5e632c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x67fac8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5e632a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5e632d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5e6336
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 + 0x67fac8]
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 0x5e637c
cmp word [ebx], dx
jne 0x5e637c
or byte [eax + edi + 0x28], 4
jmp 0x5e6381
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 0x5e64e4
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 0x5e64c4
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x5e63c2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5e63f8
cmp eax, edx
jae 0x5e6406
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 0x5e639d
jmp 0x5e64e4
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 0x5e64bf
cmp dword [ebp - 0x18], 0
je 0x5e64bf
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x67fac8]
test byte [eax + edi + 0x28], 0x48
je 0x5e6495
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 0x5e6459
mov word [esi], cx
jmp 0x5e6490
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x67fac8]
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 + 0x67fac8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x67fac8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x5e64e4
pop eax
cmp word [ebp - 4], ax
jne 0x5e64a5
cmp esi, ebx
jne 0x5e64a5
mov word [esi], ax
jmp 0x5e64e1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005e6d6f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x5e64e4
push 0xd
pop eax
jmp 0x5e64a0
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x67fac8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x5e64de
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x5e64e4
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 0x5eb247
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 0x5eb2e4
push ebx
push esi
call fcn.005eb210
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.005e8321
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5eb291
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5eb2e3
push edi
push eax
call fcn.005e259c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5eb2b1
call fcn.005e1ab5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5eb2e2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005e8321
add esp, 0x20
test eax, eax
jne 0x5eb2d0
push edi
call fcn.005e1ab5
jmp 0x5eb2d8
push ebx
call fcn.005e1ab5
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 0x5eb2e7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5eb2f8
pop esi
ret
push ebx
push edi
push esi
call fcn.005eb210
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.005e259c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5eb320
push ebx
push esi
push edi
call fcn.005c9520
add esp, 0xc
push 0
call fcn.005e1ab5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5eba7a
Capabilities:
Set environment variable

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

Function at 0x5edc4f
Capabilities:
Get geographical location

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