joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4050e0
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0x2c
cmp byte [ecx + 1], 0
mov edi, dword [esp + 0x40]
jne 0x405265
mov eax, dword [0x4d9094]
test eax, eax
jne 0x405244
cmp byte [esi], 0
je 0x405232
mov dword [esp + 4], 0x3d
mov dword [esp], edi
call sub.msvcrt.dll_strchr
test eax, eax
je 0x405317
sub eax, edi
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00459d10
mov dword [esp], eax
mov dword [esp + 0x14], eax
call sub.msvcrt.dll_getenv
cmp byte [esi + 1], 0
mov ebx, eax
jne 0x405286
test ebx, ebx
mov dword [esp + 0x10], 0
je 0x405163
mov dword [esp], ebx
call fcn.00453580
mov dword [esp + 0x10], eax
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x405306
mov ebp, dword [ebx]
mov edx, dword [ebx + 4]
and ebp, 0x7fffffff
cmp ebp, edx
jne 0x40521b
cmp byte [ebx + 3], 0
jns 0x4052a7
mov dword [esi + 4], 0
lea eax, [ebp + 1]
mov byte [esp + 0x1f], 1
cmp eax, 4
mov edx, 4
cmovae edx, eax
lea eax, [edx*8 + 8]
mov dword [esp + 4], eax
mov dword [esp], 0
mov dword [esp + 0x18], edx
call fcn.00453530
mov edx, dword [esp + 0x18]
mov ecx, edx
and ecx, 0x7fffffff
mov edx, dword [eax]
mov dword [esi + 4], eax
mov dword [eax + 4], 0
and edx, 0x80000000
or edx, ecx
mov dword [eax], edx
shr edx, 0x18
and edx, 0x7f
cmp byte [esp + 0x1f], 0
mov byte [eax + 3], dl
je 0x405333
lea edx, [ebp*8]
add eax, 8
add ebx, 8
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov ebx, dword [esi + 4]
mov edx, ebp
mov dword [ebx + 4], ebp
mov ecx, dword [esp + 0x14]
lea eax, [edx + 1]
mov dword [ebx + 4], eax
lea eax, [ebx + edx*8]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0xc], ecx
mov dword [esp], edi
call sub.msvcrt.dll__putenv
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], edi
mov dword [esp + 4], 0x4894d8
add eax, 0x40
mov dword [esp], eax
call fcn.00424ab0
jmp 0x405104
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], edi
mov dword [esp + 4], str.env_manager::xput___s__n
add eax, 0x40
mov dword [esp], eax
call fcn.0047dbe0
jmp 0x4050f7
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.saving_old_value:__s_n
add eax, 0x40
mov dword [esp], eax
call fcn.0047dbe0
jmp 0x40514b
add ebp, 1
mov dword [esp + 4], ebp
mov eax, dword [ebx]
and eax, 0x7fffffff
mov dword [esp], eax
call fcn.0041faa0
mov ebp, eax
lea edx, [eax*8 + 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x40533c
mov ebx, dword [eax + 4]
mov dword [esp + 4], edx
and ebp, 0x7fffffff
mov dword [esp], eax
call fcn.00453530
mov edx, dword [eax]
mov dword [esi + 4], eax
mov dword [eax + 4], ebx
and edx, 0x80000000
or edx, ebp
mov dword [eax], edx
shr edx, 0x18
and edx, 0x7f
mov byte [eax + 3], dl
mov edx, ebx
mov ebx, eax
jmp 0x40521b
mov byte [esp + 0x1f], 0
xor ebp, ebp
mov eax, 1
jmp 0x40519a
mov dword [esp + 8], str.xput
mov dword [esp + 4], 0x7c
mov dword [esp], str..._.._gcc_gcc_gcc.c
call fcn.00424b40
mov ebx, eax
xor edx, edx
jmp 0x40521b
xor ebx, ebx
jmp 0x4052d0
Function at 0x4072d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], 0x4261c0
mov dword [esp + 0xc], 0x426180
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x4d71c0
call fcn.00459860
mov eax, dword [0x4d71cc]
mov edx, dword [0x4d71d0]
sub edx, eax
cmp edx, 0xb
jbe 0x4073d0
mov dword [eax], 0x4c4c4f43
mov dword [eax + 4], 0x5f544345
mov dword [eax + 8], 0x3d434347
mov eax, dword [0x4d71cc]
mov dword [esp], esi
lea edi, [eax + 0xc]
mov dword [0x4d71cc], edi
call sub.msvcrt.dll_strlen
lea ebx, [eax + 1]
mov eax, dword [0x4d71d0]
sub eax, edi
cmp ebx, eax
ja 0x4073f0
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.msvcrt.dll_memcpy
mov eax, dword [0x4d71cc]
mov ecx, dword [0x4d71c8]
add eax, ebx
cmp eax, ecx
je 0x407410
mov edx, dword [0x4d71d8]
mov ebx, dword [0x4d71c4]
add eax, edx
not edx
and eax, edx
mov edx, dword [0x4d71d0]
mov esi, eax
sub esi, ebx
mov dword [0x4d71cc], eax
mov edi, edx
sub edi, ebx
cmp esi, edi
jbe 0x4073b0
mov dword [0x4d71cc], edx
mov eax, edx
mov dword [ebp + 8], ecx
mov ecx, 0x4d7268
mov dword [0x4d71c8], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004050e0
mov dword [esp + 4], 0xc
mov dword [esp], 0x4d71c0
call fcn.004598c0
mov eax, dword [0x4d71cc]
jmp 0x40731e
mov dword [esp + 4], ebx
mov dword [esp], 0x4d71c0
call fcn.004598c0
mov edi, dword [0x4d71cc]
jmp 0x40735a
or byte [0x4d71e8], 2
jmp 0x40737f
Function at 0x41f680
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x2c
movzx eax, byte [eax]
cmp al, 0x24
mov byte [ebp - 0x20], al
jne 0x41f7fb
movzx eax, byte [esi + 1]
lea ecx, [esi + 1]
test al, al
je 0x41f760
cmp al, 0x2f
je 0x41f760
cmp al, 0x5c
je 0x41f760
lea edx, [esi + 2]
xor eax, eax
movzx ebx, byte [edx]
add eax, 1
mov edi, eax
mov dword [ebp - 0x1c], edx
test bl, bl
jne 0x41f780
mov ebx, eax
lea eax, [eax + 1]
add eax, 0x1e
mov edi, 0x10
xor edx, edx
div edi
shl eax, 4
call fcn.004712d0
sub esp, eax
lea edi, [esp + 0x1b]
and edi, 0xfffffff0
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], edi
call sub.msvcrt.dll_strncpy
cmp byte [ebp - 0x20], 0x40
mov byte [edi + ebx], 0
je 0x41f7a0
mov dword [esp], edi
call sub.msvcrt.dll_getenv
mov edx, str._home_jenkins_mingw32_workspace_avr_gcc_staging_label_Ubuntu14.04x64_mingw32_objdir
test eax, eax
cmove eax, edx
mov edx, dword [ebp - 0x1c]
mov dword [esp + 8], 0
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004536a0
mov dword [esp], esi
mov ebx, eax
call sub.msvcrt.dll_free
movzx eax, byte [ebx]
cmp al, 0x24
mov byte [ebp - 0x20], al
jne 0x41f770
mov esi, ebx
movzx eax, byte [esi + 1]
lea ecx, [esi + 1]
test al, al
jne 0x41f6a8
nop
mov dword [ebp - 0x1c], ecx
mov eax, 1
xor ebx, ebx
jmp 0x41f6d5
cmp al, 0x40
je 0x41f74d
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
add edx, 1
cmp bl, 0x5c
je 0x41f791
cmp bl, 0x2f
jne 0x41f6bd
mov ebx, edi
add eax, 1
jmp 0x41f6d5
mov dword [esp], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str._ROOT
call fcn.004536a0
mov dword [esp], eax
mov edi, eax
call sub.msvcrt.dll_getenv
test eax, eax
je 0x41f7d9
mov dword [esp], edi
mov dword [ebp - 0x20], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x20]
jmp 0x41f722
mov eax, dword [str._home_jenkins_mingw32_workspace_avr_gcc_staging_label_Ubuntu14.04x64_mingw32_objdir]
mov dword [esp], edi
mov dword [ebp - 0x20], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x20]
mov edx, str._home_jenkins_mingw32_workspace_avr_gcc_staging_label_Ubuntu14.04x64_mingw32_objdir
test eax, eax
cmove eax, edx
jmp 0x41f722
cmp al, 0x40
je 0x41f699
lea esp, [ebp - 0xc]
mov ebx, esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x421980
Capabilities:
Read file on windows

Disassembly:
push esi
push ebx
mov ebx, eax
sub esp, 0x14
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4219a3
cmp eax, dword [ebx + 0x10]
je 0x4219a3
sub eax, 1
cmp dword [ebx + 0x18], eax
jae 0x4219a3
xor eax, eax
add esp, 0x14
pop ebx
pop esi
ret
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.msvcrt.dll_feof
test eax, eax
jne 0x42199b
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x42199b
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
cmp ecx, edx
je 0x4219d2
mov eax, dword [ebx + 0xc]
mov esi, ecx
jmp 0x4219f7
lea eax, [ecx + ecx]
test ecx, ecx
mov esi, 0x1000
cmovne esi, eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00453530
mov edx, dword [ebx + 0x14]
mov dword [ebx + 0x10], esi
mov dword [ebx + 0xc], eax
mov ecx, dword [ebx + 8]
sub esi, edx
add edx, eax
mov dword [esp], edx
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp + 0xc], ecx
call sub.msvcrt.dll_fread
mov esi, eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.msvcrt.dll_ferror
mov edx, eax
xor eax, eax
test edx, edx
jne 0x42199d
add dword [ebx + 0x14], esi
test esi, esi
setne al
jmp 0x42199d

Function at 0x424290
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, 0x7fffffff
sub esp, 0x18
mov dword [esp], str.COLUMNS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4242b6
mov dword [esp], eax
call fcn.0047d6d0
test eax, eax
cmovg ebx, eax
add esp, 0x18
mov eax, ebx
pop ebx
ret
Function at 0x45c6d0
Capabilities:
Delete file

Disassembly:
push esi
push ebx
sub esp, 0x24
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0xc]
test eax, eax
jle 0x45c6ef
mov edx, dword [ebx + 0x44]
mov edx, dword [edx + 0xc]
mov dword [esp + 4], eax
mov dword [esp], ebx
call edx
mov eax, dword [ebx + 0x18]
test eax, eax
jle 0x45c705
mov edx, dword [ebx + 0x44]
mov edx, dword [edx + 0xc]
mov dword [esp + 4], eax
mov dword [esp], ebx
call edx
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x45c714
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x45c723
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x45c7c0
mov edx, dword [ebx + 0x14]
test edx, edx
jne 0x45c7b0
mov eax, dword [ebx + 0x20]
xor esi, esi
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebx + 0x3c]
test eax, eax
jle 0x45c78f
nop
mov eax, dword [ebx + 0x40]
mov eax, dword [eax + esi*4]
mov dword [esp], eax
call sub.msvcrt.dll_remove
mov eax, dword [ebx + 0x40]
mov eax, dword [eax + esi*4]
add esi, 1
mov dword [esp], eax
call sub.msvcrt.dll_free
cmp dword [ebx + 0x3c], esi
jg 0x45c760
mov eax, dword [ebx + 0x40]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebx + 0x44]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x45c79e
mov dword [esp], ebx
call eax
mov dword [esp + 0x30], ebx
add esp, 0x24
pop ebx
pop esi
jmp sub.msvcrt.dll_free
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_free
jmp 0x45c735
and dword [ebx], 0xfffffffe
mov edx, 1
lea eax, [esp + 0x1c]
mov dword [esp], eax
lea ecx, [esp + 0x18]
mov eax, ebx
call fcn.0045ba70
jmp 0x45c72e
Function at 0x4705e0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00470640
Function at 0x470fd0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x471008
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x470ffe
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x47100a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x470ff0
xor eax, eax
pop ebx
pop esi
ret

Function at 0x474e30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x12c
mov ebx, dword [ebp + 8]
call sub.msvcrt.dll__errno
test ebx, ebx
mov dword [eax], 0
je 0x474fde
cmp byte [ebx], 0
je 0x474fa8
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
je 0x474fc0
test al, 0x10
je 0x474fa8
lea edi, [ebp - 0x11c]
mov dword [esp + 4], ebx
mov ebx, edi
mov dword [esp + 8], 0x104
mov dword [esp], edi
call sub.msvcrt.dll__fullpath
mov edx, dword [ebx]
add ebx, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x474e94
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [ebx + 2]
cmove ebx, edx
add al, al
sbb ebx, 3
sub ebx, edi
lea eax, [ebx + 0x233]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov esi, eax
je 0x474fcf
lea edx, [eax + 0x22c]
lea eax, [ebx + 1]
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [ebp - 0x12c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x12c]
cmp byte [esi + 0x22c], 0
je 0x474f23
movzx eax, byte [esi + ebx + 0x22b]
cmp al, 0x2f
je 0x474f23
cmp al, 0x5c
je 0x474f23
mov edi, 0x5c
mov word [edx + ebx], di
mov eax, edx
mov ecx, dword [eax]
add eax, 4
lea edx, [ecx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x474f25
mov ecx, edx
shr ecx, 0x10
test edx, 0x8080
cmove edx, ecx
lea ecx, [eax + 2]
cmove eax, ecx
add dl, dl
sbb eax, 3
mov edx, 0x2a
mov word [eax], dx
xor ecx, ecx
xor eax, eax
lea edx, [esi + 0x120]
xor ebx, ebx
mov word [esi + 0x11c], cx
mov edi, edx
mov ecx, 0x41
mov dword [esi + 0x224], 0xffffffff
mov dword [esi + 0x228], 0
mov dword [esi + 0x118], 0
mov word [esi + 0x11e], bx
rep stosd dword es:[edi], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x14
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 2
xor eax, eax
jmp 0x474fa0
call sub.msvcrt.dll__errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x474fa0
call sub.msvcrt.dll__errno
mov dword [eax], 0xe
xor eax, eax
jmp 0x474fa0
Function at 0x10001767
Capabilities:
Read file on windows

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebp, ecx
push edi
mov edi, dword [esp + 0x14]
test esi, esi
jg 0x10001787
jl 0x1000177e
test edi, edi
jne 0x10001787
xor eax, eax
xor edx, edx
jmp 0x10001849
cmp dword [ebp + 0x38], 0
je 0x1000179d
push esi
push edi
push dword [esp + 0x18]
call fcn.100011eb
jmp 0x10001849
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100017dc
mov eax, dword [ebp + 0x2c]
cmp dword [eax], 0
jbe 0x100017dc
cmp dword [eax], edi
mov esi, edi
cmovb esi, dword [eax]
push esi
push ecx
push dword [esp + 0x1c]
call fcn.100131b0
mov eax, dword [ebp + 0x2c]
sub ebx, esi
add dword [esp + 0x20], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebp + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x100017e4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x4c], 0
mov ecx, ebx
je 0x1000183f
mov ecx, ebp
call fcn.1000c1ae
mov edx, dword [esp + 0x14]
mov ecx, ebx
jmp 0x1000181f
push dword [ebp + 0x4c]
push eax
push 1
push edx
call fcn.10015d68
mov edx, dword [esp + 0x24]
sub ebx, eax
add edx, eax
add esp, 0x10
mov dword [esp + 0x14], edx
mov ecx, ebx
cmp eax, 0xfff
jne 0x1000184f
mov eax, 0xfff
cmp ebx, eax
ja 0x100017fb
test ecx, ecx
je 0x1000183f
push dword [ebp + 0x4c]
push ebx
push 1
push edx
call fcn.10015d68
mov ecx, ebx
add esp, 0x10
sub ecx, eax
sub edi, ecx
sbb esi, 0
mov eax, edi
mov edx, esi
pop ebx
pop edi
pop esi
pop ebp
ret 0xc
sub edi, ebx
jmp 0x10001841
Function at 0x1001cf33
Capabilities:
Parse pe header

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

Function at 0x10020620
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100503f0
push 0x100503e8
push str.FlsAlloc
push 0x1f
call fcn.100204e8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10020654
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002e19c]
call esi
jmp 0x1002065a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002069e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10050400
push 0x100503f8
push str.FlsGetValue
push 0x21
call fcn.100204e8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100206d5
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002e19c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100206dd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10050408
push 0x10050400
push str.FlsSetValue
push 0x22
call fcn.100204e8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10020717
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002e19c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100221a0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10011b50
mov eax, dword [0x1005b0ac]
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.10020c53
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100221e2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1002233e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1002d550
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 + 0x1005ccc0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1002319d
mov ecx, dword [esi*4 + 0x1005ccc0]
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 0x10022337
cmp eax, dword [ecx + edi + 0x24]
jne 0x10022337
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 0x10022337
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1002319d
add esp, 0x14
test edx, edx
jl 0x10022337
jg 0x100222ad
test eax, eax
jb 0x10022337
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10022337
jl 0x100222c7
cmp dword [ebp - 0x1008], eax
ja 0x10022337
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100222e5
test ebx, ebx
je 0x1002231e
cmp ecx, edi
jae 0x1002231e
mov al, byte [ecx]
cmp al, 0xd
jne 0x100222ff
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1002230b
cmp byte [ecx + 1], 0xa
jne 0x1002230b
inc ecx
jmp 0x1002230b
movzx eax, al
movsx eax, byte [eax + 0x1005b308]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100222e5
cmp edx, ebx
jne 0x100222e5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1002233c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10011543
leave
ret
Function at 0x10022635
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 + 0x1005ccc0]
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 0x10022675
cmp byte [ebx], 0xa
jne 0x10022675
or byte [edi + eax + 0x28], 4
jmp 0x1002267a
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 0x10022779
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1002275c
inc eax
cmp dl, 0xd
je 0x100226a6
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100226cc
cmp eax, ecx
jae 0x100226da
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 0x1002268e
jmp 0x10022779
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 0x10022757
cmp dword [ebp - 0x10], 0
je 0x10022757
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1005ccc0]
test byte [eax + edi + 0x28], 0x48
je 0x10022731
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1002271c
mov byte [esi], dl
jmp 0x1002272d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1005ccc0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10022779
cmp byte [ebp - 1], 0xa
jne 0x10022740
cmp esi, ebx
jne 0x10022740
mov byte [esi], 0xa
jmp 0x10022778
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100231bb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10022779
mov byte [esi], 0xd
jmp 0x10022778
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1005ccc0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10022776
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10022779
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10022782
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 + 0x1005ccc0]
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 0x100227c8
cmp word [ebx], dx
jne 0x100227c8
or byte [eax + edi + 0x28], 4
jmp 0x100227cd
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 0x10022930
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 0x10022910
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1002280e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10022844
cmp eax, edx
jae 0x10022852
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 0x100227e9
jmp 0x10022930
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 0x1002290b
cmp dword [ebp - 0x18], 0
je 0x1002290b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1005ccc0]
test byte [eax + edi + 0x28], 0x48
je 0x100228e1
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 0x100228a5
mov word [esi], cx
jmp 0x100228dc
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1005ccc0]
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 + 0x1005ccc0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1005ccc0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10022930
pop eax
cmp word [ebp - 4], ax
jne 0x100228f1
cmp esi, ebx
jne 0x100228f1
mov word [esi], ax
jmp 0x1002292d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100231bb
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10022930
push 0xd
pop eax
jmp 0x100228ec
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1005ccc0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1002292a
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10022930
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret