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

Disassembly:
mov eax, 0x1005cb6a
call fcn.1005b9e8
sub esp, 0x18
mov byte [ebp - 0x18], dl
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
test cl, cl
je 0x10038e61
cmp byte [ebp + 0xc], 0
je 0x10038e26
mov byte [ebp - 0x11], 0
cmp byte [ebp - 0x11], 0
je 0x10038e15
push 1
push 0x403f
mov dl, 1
xor cl, cl
call fcn.10036a58
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
mov dword [esi], 0
jmp 0x10038e5a
mov byte [ebp - 0x11], 0
cmp byte [ebp - 0x11], 0
je 0x10038e58
push 0x26c3
push 0x4d4a
push 0
push 1
xor dl, dl
mov ecx, 0x57d0
call fcn.10038197
add esp, 0x10
dec dword [esi]
cmp dword [esi], 0xfffffffc
je 0x10038e31
jmp 0x10038e15
mov dword [ebp - 0x20], 0x61e2
cmp dword [ebp - 0x20], 0x61f1
jle 0x10038e9a
xor esi, esi
xor ebx, ebx
mov ecx, ebx
mov eax, esi
shl eax, cl
mov ecx, 0x100761b8
cdq
push edx
push eax
call fcn.100062df
inc ebx
cmp ebx, 0x5354
jl 0x10038e75
inc esi
cmp esi, 0x2332
jl 0x10038e73
cmp byte [ebp - 0x18], 0
je 0x10038f58
mov dword [ebp - 0x1c], 0x60ad
cmp dword [ebp - 0x1c], 0x63b9
jle 0x10038efb
xor esi, esi
xor ebx, ebx
mov eax, ebx
mov ecx, 0x100761b8
xor eax, esi
cdq
push edx
push eax
call fcn.100062df
inc ebx
cmp ebx, 0x2127
jl 0x10038eb8
inc esi
cmp esi, 0x1965
jl 0x10038eb6
push 0
push 0x2149
push 0x254f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetCharWidth32A]
and dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0x5f8b
jge 0x10038f17
mov edx, str.bmkw_jzdg_kgfsjpl_ysnpocfdz_vopffaxo_zfjkhxsx_gfokjkiuv_bvknqvma
mov ecx, 0x100761b8
call fcn.10008b0d
mov esi, dword [ebp + 8]
mov ecx, esi
or dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
push dword [eax + 4]
call fcn.1003e4b3
mov eax, dword [esi]
mov dword [eax + 4], eax
mov eax, dword [esi]
mov dword [eax], eax
mov eax, dword [esi]
mov dword [eax + 8], eax
and dword [esi + 4], 0
jmp 0x10038f5e
mov eax, dword [ebp + 0x14]
add dword [eax], 4
mov dword [ebp - 4], 2
cmp dword [ebp - 0x20], 0x5e37
jge 0x10038e15
mov edx, str.tjf_qtpn_xdyeqfyll_fspcli_fcqzqp_lsawu_notktlwgm_yuj_hbm_uwhzpa_swwiii_fhlhlu_hcvkty_pjrjhg
mov ecx, 0x100761b8
call fcn.10008b0d
jmp 0x10038e15
Function at 0x40759d
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
test edx, edx
jle 0x4075c5
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x4075b7
pop edi
pop esi
pop ebp
ret 4
Function at 0x41f815
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0x4d2353]
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], al
push 0x8000
push edi
mov esi, edx
call fcn.0042dd8e
pop ecx
push eax
call fcn.0042dbaf
cmp dword [esi + 0xc], 0xb
mov ebx, eax
pop ecx
pop ecx
je 0x45f8fc
lea ecx, [ebp - 0x18]
call fcn.004076f5
mov ecx, esi
call fcn.0040c97f
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x18]
call fcn.0041fa0a
push dword [ebp - 0x18]
push 0x49e130
push edi
call fcn.0041f8b5
add esp, 0xc
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0
jne 0x45f91c
lea ecx, [ebp - 0x18]
call fcn.00407765
mov esi, dword [ebp - 8]
push edi
call fcn.0042e1d2
push edi
call fcn.0042dd8e
pop ecx
pop ecx
cmp ebx, 0xffffffff
jne 0x41f8a5
mov ebx, 0x4000
push ebx
push eax
call fcn.0042dbaf
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push edi
mov ecx, esi
call fcn.004727b0
push eax
push 1
call fcn.00472740
push eax
call fcn.0042dfec
add esp, 0x10
mov esi, eax
jmp 0x41f88d
mov ecx, esi
call fcn.0040c97f
mov eax, dword [esi + 8]
push dword [eax]
call dword [0x49d240]
jmp 0x41f882

Function at 0x4396b4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00439533
Function at 0x469e6e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebx]
push 2
pop edx
mov esi, dword [ecx + edi]
lea eax, [ecx + 4]
mov dword [ebx], eax
xor ecx, ecx
mov dword [ebp + 8], esi
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420244
mov ecx, dword [ebx]
add esi, esi
add ecx, edi
mov edi, eax
push esi
push ecx
push edi
call fcn.00421259
add dword [ebx], esi
xor eax, eax
mov ecx, dword [ebp + 8]
add esp, 0x10
mov word [esi + edi], ax
test ecx, ecx
jle 0x469ec9
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0x469ec0
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x46e9c6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, ecx
xor esi, esi
mov dword [ebp - 4], eax
mov byte [0x4d238d], 0
mov ebx, edx
test edi, edi
je 0x46ea18
mov byte [0x4d238e], 1
call dword [0x49d180]
mov dword [ebp - 0xc], eax
xor ecx, ecx
lea eax, [ebp + 0x10]
mov dword [ebp - 8], edi
push eax
push ecx
lea eax, [ebp - 0xc]
push eax
push 0x46ee87
push ecx
push ecx
call fcn.0042d691
mov esi, eax
add esp, 0x18
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push eax
call dword [0x49d6fc]
mov edi, eax
test esi, esi
je 0x46ea43
push 0xffffffffffffffff
push esi
mov byte [0x4d238e], 0
call dword [0x49d16c]
push esi
call dword [0x49d360]
cmp byte [0x4d238d], 1
jne 0x46ea51
or eax, 0xffffffff
jmp 0x46ea53
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x472806
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub dword [0x4d16d0], 1
jne 0x472814
call fcn.004728f0
mov eax, dword [0x4d4004]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d4004], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x47284c
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
sub dword [0x4d16d0], 1
jne 0x47285f
call fcn.004728f0
mov eax, dword [0x4d4004]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d4004], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x4728a2
fadd qword [0x4c9130]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4c9100]
leave
ret

Function at 0x4728b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
mov dword [0x4d3640], ecx
inc esi
mov edx, esi
mov eax, dword [edx*4 + 0x4d363c]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x4d3640], eax
inc edx
cmp edx, 0x270
jl 0x4728bc
mov dword [0x4d16d0], esi
mov dword [0x4d4000], esi
pop esi
ret
Function at 0x4728f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4d4000], 0
push esi
push edi
mov esi, 0x4d3640
jne 0x472913
push 0
call fcn.0042e921
pop ecx
mov ecx, eax
call fcn.004728b0
mov dword [0x4d16d0], 0x270
mov edx, 0xe3
mov dword [0x4d4004], esi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, dword [esi]
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi + 0x634]
mov dword [esi], ecx
add esi, 4
sub edx, 1
jne 0x472928
mov eax, dword [esi]
mov dword [ebp - 4], 0x18c
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi - 0x38c]
sub dword [ebp - 4], 1
mov dword [esi], ecx
lea esi, [esi + 4]
jne 0x472962
mov eax, dword [0x4d3640]
mov ecx, edi
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, edi
shr ecx, 1
neg eax
pop edi
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
leave
ret

Function at 0x472e01
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 1
jne 0x472e26
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.00421259
add esp, 0xc
jmp 0x472e39
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.0042ecfd
add esp, 0x10
movzx ecx, byte [ebp - 4]
movzx eax, byte [ebp - 3]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, eax
mov byte [ebp - 4], 0
movzx eax, byte [ebp - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 1]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 8]
push 0x4c7a8c
mov dword [eax], ecx
lea eax, [ebp - 8]
push eax
call fcn.0042edb9
neg eax
pop ecx
pop ecx
sbb eax, eax
neg eax
pop esi
leave
ret 4

Function at 0x472f3d
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, 0x10000
mov ecx, dword [esi + 0x464]
test ecx, ecx
je 0x472f53
cmp ecx, eax
jne 0x472f6f
push dword [esi + 0x1c]
push eax
push 1
push dword [esi + 0x45c]
call fcn.0042ecfd
add esp, 0x10
xor ecx, ecx
mov dword [esi + 0x464], ecx
mov eax, dword [esi + 0x45c]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x464], ecx
pop esi
ret

Function at 0x472f81
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x460]
mov esi, dword [edi + 0x458]
mov byte [esi + edx], al
mov eax, 0x10000
inc dword [edi + 0x460]
cmp dword [edi + 0x460], eax
jne 0x472fc8
push dword [edi + 0x20]
push eax
push 1
push dword [edi + 0x458]
call fcn.0042dfec
add esp, 0x10
and dword [edi + 0x460], 0
pop edi
pop esi
pop ebp
ret 4
Function at 0x472fce
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x460]
test eax, eax
je 0x472ff6
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x458]
call fcn.0042dfec
add esp, 0x10
and dword [esi + 0x460], 0
pop esi
ret

Function at 0x4731a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
lea ecx, [ebp - 0xdc]
call fcn.00472ff8
push dword [ebp + 8]
lea ecx, [ebp - 0xdc]
call fcn.0047303c
xor esi, esi
test ebx, ebx
je 0x4731ec
push ecx
push ecx
lea ecx, [ebp - 0xdc]
call fcn.0047317c
xor byte [esi + edi], al
inc esi
cmp esi, ebx
jb 0x4731d7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47d68b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
mov esi, ecx
push edi
push 0x4c7aac
push dword [esi + 0x34]
call fcn.0042ea24
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x47d6b7
mov dword [esi + 0x18], 0x1f
jmp 0x47d731
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 8]
call dword [0x49d7bc]
test eax, eax
je 0x47d72a
cmp dword [ebp - 4], 0
je 0x47d702
push edi
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x404]
push eax
call fcn.0042dfec
mov eax, dword [ebp - 4]
add esp, 0x10
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
test eax, eax
jne 0x47d6bd
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x47d713
mov dword [esi + 0x18], 0x21
jmp 0x47d731
and dword [esi + 0x18], 0
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47d74d
push eax
call dword [0x49d2cc]
jmp 0x47d74d
mov dword [esi + 0x18], 0x20
call dword [0x49d330]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47d74b
push eax
call dword [0x49d2cc]
xor bl, bl
test edi, edi
je 0x47d758
push edi
call fcn.0042eab1
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4

Function at 0x47da4f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0xd0], 0
je 0x47da8b
cmp byte [ebp + 8], 0
je 0x47da8b
sub esp, 0x10
lea ecx, [esi + 0xd4]
call fcn.0047c964
push esi
push 0
push 0x47db06
call fcn.0042d605
add esp, 0xc
cmp dword [esi + 0x18], 0
sete al
jmp 0x47da93
push dword [ebp + 8]
call fcn.0047cbb0
pop esi
pop ebp
ret 4
Function at 0x10002c00
Capabilities:
Check for windows sandbox via genuine state

Disassembly:
sub esp, 0x18
mov eax, dword [0x10044040]
xor eax, esp
mov dword [esp + 0x14], eax
lea eax, [esp + 4]
push eax
push str.55c92734_d682_4d71_983e_d6ec3f16059f
call dword [sym.imp.RPCRT4.dll_UuidFromStringA]
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
call sub.SLWGA.dll_SLIsGenuineLocal
cmp dword [esp], 0
mov ecx, dword [esp + 0x14]
sete al
xor ecx, esp
call fcn.100142e1
add esp, 0x18
ret
Function at 0x1000a1a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000a202
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000a202
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1000a1f2
nop word [eax + eax]
cmp esi, edx
jae 0x1000a202
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x1000a1e0
cmp esi, edx
jae 0x1000a202
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x100119a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x100119c1
jl 0x100119b8
test edi, edi
jne 0x100119c1
xor eax, eax
xor edx, edx
jmp 0x10011a82
cmp dword [ebx + 0x38], 0
je 0x100119d6
push eax
push edi
push dword [ebp + 8]
call fcn.10004f60
jmp 0x10011a82
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10011a1d
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x10011a1d
cmp eax, edi
jb 0x100119f7
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.100155a0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x10011a23
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x10011a77
mov ecx, ebx
call fcn.1001130a
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x10011a62
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.1001e820
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x10011a77
jmp 0x10011a35
test edx, edx
je 0x10011a77
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.1001e820
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x10018ed3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10018f12
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10018f12
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10018f12
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10018f12
cmp dword [ecx + 0x74], 0xe
jbe 0x10018f12
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10025f15
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003b960
push 0x1003b958
push str.FlsAlloc
push 0x1f
call fcn.10025d80
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10025f49
push dword [ebp + 8]
mov ecx, esi
call dword [0x100361d8]
call esi
jmp 0x10025f4f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10025f93
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003b970
push 0x1003b968
push str.FlsGetValue
push 0x21
call fcn.10025d80
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10025fca
push dword [ebp + 8]
mov ecx, esi
call dword [0x100361d8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10025fd2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003b978
push 0x1003b970
push str.FlsSetValue
push 0x22
call fcn.10025d80
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002600c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100361d8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100288c6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10014d40
mov eax, dword [0x10044040]
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.10023e12
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10028908
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10028a64
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10033c30
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 + 0x10046128]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10029a9e
mov ecx, dword [esi*4 + 0x10046128]
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 0x10028a5d
cmp eax, dword [ecx + edi + 0x24]
jne 0x10028a5d
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 0x10028a5d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10029a9e
add esp, 0x14
test edx, edx
jl 0x10028a5d
jg 0x100289d3
test eax, eax
jb 0x10028a5d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10028a5d
jl 0x100289ed
cmp dword [ebp - 0x1008], eax
ja 0x10028a5d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10028a0b
test ebx, ebx
je 0x10028a44
cmp ecx, edi
jae 0x10028a44
mov al, byte [ecx]
cmp al, 0xd
jne 0x10028a25
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10028a31
cmp byte [ecx + 1], 0xa
jne 0x10028a31
inc ecx
jmp 0x10028a31
movzx eax, al
movsx eax, byte [eax + 0x10044300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10028a0b
cmp edx, ebx
jne 0x10028a0b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10028a62
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100142e1
leave
ret
Function at 0x10028f36
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 + 0x10046128]
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 0x10028f76
cmp byte [ebx], 0xa
jne 0x10028f76
or byte [edi + eax + 0x28], 4
jmp 0x10028f7b
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 0x1002907a
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1002905d
inc eax
cmp dl, 0xd
je 0x10028fa7
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10028fcd
cmp eax, ecx
jae 0x10028fdb
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 0x10028f8f
jmp 0x1002907a
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 0x10029058
cmp dword [ebp - 0x10], 0
je 0x10029058
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10046128]
test byte [eax + edi + 0x28], 0x48
je 0x10029032
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1002901d
mov byte [esi], dl
jmp 0x1002902e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10046128]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1002907a
cmp byte [ebp - 1], 0xa
jne 0x10029041
cmp esi, ebx
jne 0x10029041
mov byte [esi], 0xa
jmp 0x10029079
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10029abc
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1002907a
mov byte [esi], 0xd
jmp 0x10029079
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10046128]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10029077
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1002907a
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10029083
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 + 0x10046128]
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 0x100290c9
cmp word [ebx], dx
jne 0x100290c9
or byte [eax + edi + 0x28], 4
jmp 0x100290ce
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 0x10029231
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 0x10029211
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1002910f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10029145
cmp eax, edx
jae 0x10029153
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 0x100290ea
jmp 0x10029231
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 0x1002920c
cmp dword [ebp - 0x18], 0
je 0x1002920c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10046128]
test byte [eax + edi + 0x28], 0x48
je 0x100291e2
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 0x100291a6
mov word [esi], cx
jmp 0x100291dd
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10046128]
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 + 0x10046128]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10046128]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10029231
pop eax
cmp word [ebp - 4], ax
jne 0x100291f2
cmp esi, ebx
jne 0x100291f2
mov word [esi], ax
jmp 0x1002922e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10029abc
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10029231
push 0xd
pop eax
jmp 0x100291ed
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10046128]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1002922b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10029231
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret