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

Disassembly:
mov eax, 8
call fcn.1010d610
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x34]
mov edi, dword [edi]
mov dword [esp + 0x10], edi
test edi, edi
je 0x1000e859
mov ecx, dword [esp + 0x30]
nop dword [eax]
test esi, esi
je 0x1000e859
mov al, byte [edi + ecx]
dec esi
xor al, byte [ebp]
inc edi
mov byte [ebx], al
inc ebp
inc ebx
and edi, 0xf
mov dword [esp + 0x10], edi
jne 0x1000e840
mov edx, dword [esp + 0x2c]
movzx ecx, byte [edx + 0xc]
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xf]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x24], ecx
cmp esi, 0x10
jb 0x1000e92a
nop dword [eax]
mov eax, esi
mov edx, ecx
shr eax, 4
xor edi, edi
add ecx, eax
cmp ecx, eax
cmovae edi, ecx
neg edx
mov dword [esp + 0x24], edi
cmp ecx, eax
mov edi, dword [esp + 0x2c]
push edi
push dword [esp + 0x2c]
cmovae edx, eax
push edx
push ebx
push ebp
mov dword [esp + 0x28], edx
call dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
add esp, 0x14
mov eax, edx
mov byte [edi + 0xf], dl
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, edx
shr eax, 8
mov byte [edi + 0xe], al
test edx, edx
jne 0x1000e906
mov edx, 0xc
mov eax, 1
nop
movzx ecx, byte [edx + edi - 1]
dec edx
add eax, ecx
mov byte [edx + edi], al
shr eax, 8
test edx, edx
jne 0x1000e8f0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov ecx, edx
shl eax, 4
sub esi, eax
add ebx, eax
add ebp, eax
cmp esi, 0x10
jae 0x1000e890
mov edi, dword [esp + 0x10]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x2c]
test esi, esi
je 0x1000e998
mov eax, dword [esp + 0x30]
xorps xmm0, xmm0
push edx
push dword [esp + 0x2c]
push 1
push eax
push eax
movups xmmword [eax], xmm0
call dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
add esp, 0x14
mov edx, dword [esp + 0x2c]
inc ecx
mov eax, ecx
shr eax, 0x18
mov byte [edx + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edx + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [edx + 0xe], al
mov byte [edx + 0xf], cl
test ecx, ecx
jne 0x1000e979
push edx
call fcn.1000e9e0
add esp, 4
mov eax, dword [esp + 0x30]
sub ebp, eax
sub ebx, eax
lea ecx, [edi + eax]
add edi, esi
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub esi, 1
jne 0x1000e986
mov eax, dword [esp + 0x34]
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x1000efd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.1010d610
push ebp
mov ebp, dword [esp + 0xc]
mov eax, dword [ebp + 0x38]
or eax, dword [ebp + 0x3c]
je 0x1000efef
mov eax, 0xfffffffe
pop ebp
pop ecx
ret
push esi
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov eax, esi
add eax, dword [ebp + 0x30]
adc ecx, dword [ebp + 0x34]
cmp ecx, 0x20000000
ja 0x1000f0bf
jb 0x1000f014
test eax, eax
jne 0x1000f0bf
push ebx
mov dword [ebp + 0x34], ecx
mov ecx, dword [ebp + 0x16c]
mov dword [ebp + 0x30], eax
mov dword [esp + 0x14], ecx
push edi
mov edi, dword [esp + 0x1c]
test ecx, ecx
je 0x1000f060
nop
test esi, esi
je 0x1000f0b1
mov al, byte [edi]
dec esi
xor byte [ecx + ebp + 0x40], al
inc edi
inc ecx
and ecx, 0xf
mov dword [esp + 0x18], ecx
jne 0x1000f030
lea eax, [ebp + 0x60]
push eax
lea ebx, [ebp + 0x40]
push ebx
call fcn.10010670
mov eax, dword [esp + 0x20]
add esp, 8
mov dword [esp + 0x18], eax
jmp 0x1000f063
lea ebx, [ebp + 0x40]
mov eax, esi
lea ecx, [ebp + 0x60]
and eax, 0xfffffff0
mov dword [esp + 0x10], eax
je 0x1000f085
push eax
push edi
push ecx
push ebx
call fcn.10010440
add edi, dword [esp + 0x20]
add esp, 0x10
sub esi, dword [esp + 0x10]
test esi, esi
je 0x1000f0ad
mov ecx, esi
nop dword [eax + eax]
mov al, byte [edi]
lea edi, [edi + 1]
xor byte [ebx], al
lea ebx, [ebx + 1]
sub esi, 1
jne 0x1000f090
pop edi
pop ebx
pop esi
mov dword [ebp + 0x16c], ecx
xor eax, eax
pop ebp
pop ecx
ret
mov ecx, dword [esp + 0x18]
pop edi
pop ebx
pop esi
mov dword [ebp + 0x16c], ecx
xor eax, eax
pop ebp
pop ecx
ret
pop esi
or eax, 0xffffffff
pop ebp
pop ecx
ret
Function at 0x10010220
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.1010d610
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x20]
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
cmp ebp, 0xc
jne 0x1001028b
mov eax, dword [esp + 0x24]
lea ebx, [ebp - 0xb]
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x1000000
jmp 0x100103ba
push edi
xor edi, edi
mov dword [esp + 0x1c], ebp
mov dword [esi + 0x40], edi
lea ebx, [esi + 0x40]
mov dword [ebx + 4], edi
lea edx, [esi + 0x60]
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x14], edx
cmp ebp, 0x10
jb 0x1001031f
mov eax, ebp
lea ecx, [esi + 0x41]
shr eax, 4
mov esi, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], eax
lea edx, [edi + 2]
mov eax, ecx
mov ebx, 4
nop dword [eax]
movzx ecx, byte [edx - 2]
lea edx, [edx + 4]
xor byte [eax - 1], cl
lea eax, [eax + 4]
movzx ecx, byte [edx - 5]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 4]
xor byte [eax - 3], cl
movzx ecx, byte [edx - 3]
xor byte [eax - 2], cl
sub ebx, 1
jne 0x100102d0
push dword [esp + 0x14]
push esi
call fcn.10010670
mov ecx, dword [esp + 0x20]
add esp, 8
add edi, 0x10
sub ebp, 0x10
sub dword [esp + 0x2c], 1
jne 0x100102c3
mov esi, dword [esp + 0x24]
lea ebx, [esi + 0x40]
lea edx, [esi + 0x60]
test ebp, ebp
je 0x1001033e
mov ecx, ebx
mov al, byte [edi]
lea edi, [edi + 1]
xor byte [ecx], al
lea ecx, [ecx + 1]
sub ebp, 1
jne 0x10010325
push edx
push ebx
call fcn.10010670
add esp, 8
mov edx, dword [esp + 0x1c]
xor eax, eax
shld eax, edx, 3
xor byte [esi + 0x4b], al
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x24]
shl edx, 3
xor byte [esi + 0x4f], dl
mov ecx, edx
shrd ecx, eax, 0x18
mov eax, edi
xor byte [esi + 0x4c], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov eax, edx
xor byte [esi + 0x4d], cl
shrd eax, edi, 8
xor byte [esi + 0x4e], al
lea eax, [esi + 0x60]
push eax
push ebx
call fcn.10010670
movzx ebx, byte [esi + 0x4c]
add esp, 8
movzx eax, byte [esi + 0x4d]
mov ecx, dword [esi + 0x44]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0x4e]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0x4f]
shl ebx, 8
or ebx, eax
mov eax, dword [esi + 0x40]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
pop edi
mov dword [esi + 0x40], 0
lea eax, [esi + 0x20]
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
push dword [esi + 0x174]
push eax
mov eax, dword [esi + 0x170]
push esi
call eax
inc ebx
add esp, 0xc
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x1006e660
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.1010d610
mov eax, dword [0x101a6ec0]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
push ebx
push ebp
movzx ebx, byte [eax]
lea ebp, [eax + 1]
mov edx, ebp
shl ebx, 0x18
push esi
push edi
mov edi, dword [esp + 0x50]
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 0x10
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
mov esi, dword [edi]
movzx eax, byte [edx + 2]
or ebx, eax
mov dword [esp + 0x14], edi
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x24], ebp
movzx eax, byte [edx + 6]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [esp + 0x2c]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x18], ebx
mov eax, ebx
mov byte [esp + 0x2f], bl
shr eax, 0x18
or edx, ecx
mov byte [esp + 0x2c], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x32], al
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x33], dl
test eax, eax
je 0x1006e825
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x3c]
sub ecx, edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
nop dword [eax]
dec eax
mov dword [esp + 0x44], eax
test esi, esi
jne 0x1006e7b5
push dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
call fcn.1006e090
mov ebx, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x1c]
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
inc ebp
mov byte [esp + 0x2f], bl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
mov al, byte [esp + esi + 0x2c]
inc esi
xor al, byte [edi]
and esi, 7
mov byte [ecx + edi], al
inc edi
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x1006e750
test ebp, ebp
mov ebp, dword [esp + 0x24]
je 0x1006e80c
mov ecx, dword [esp + 0x28]
mov eax, ebx
shr eax, 0x18
mov byte [ebp + 2], bl
mov byte [ebp + 6], dl
mov byte [ecx], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp], al
mov eax, ebx
shr eax, 8
mov byte [ebp + 1], al
mov eax, edx
shr eax, 0x18
mov byte [ebp + 3], al
mov eax, edx
shr eax, 0x10
mov byte [ebp + 4], al
mov eax, edx
shr eax, 8
mov byte [ebp + 5], al
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1010cf1c
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1010cf1c
add esp, 0x28
ret
Function at 0x10074e90
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x10074ea4
mov dword [esp + 0x18], fcn.10073670
jmp fcn.1000e530
mov dword [esp + 0x18], fcn.10072910
jmp fcn.1000e230
Function at 0x100c8440
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100c8450

Function at 0x100c86d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x100c86dc
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.100c86f0

Function at 0x100dad90
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp byte [0x101aaa6c], 0
push esi
push edi
mov edi, dword [esp + 0x20]
je 0x100dae05
test edi, edi
je 0x100dae05
mov eax, dword [0x101aaa70]
test eax, eax
jne 0x100dadff
mov esi, dword [esp + 0x1c]
push str.recv
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
call fcn.100dab90
add esp, 0x10
push str.recv
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
push 2
call fcn.1011a5c3
add esp, 4
push eax
call fcn.100db200
push dword [0x101aaa68]
call fcn.10115a34
add esp, 0x18
call fcn.1011a72a
pop edi
pop esi
mov dword [eax], 0xc
or eax, 0xffffffff
ret
dec eax
mov dword [0x101aaa70], eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test edi, edi
je 0x100dae38
push esi
push dword [esp + 0x18]
push dword [esp + 0x24]
push edi
push str.RECV__s:_d_recv__lu____ld_n
call fcn.100dab90
add esp, 0x14
pop edi
mov eax, esi
pop esi
ret

Function at 0x100dae70
Capabilities:
Send data
Send data on socket

Disassembly:
cmp byte [0x101aaa6c], 0
push esi
push edi
mov edi, dword [esp + 0x20]
je 0x100daee5
test edi, edi
je 0x100daee5
mov eax, dword [0x101aaa70]
test eax, eax
jne 0x100daedf
mov esi, dword [esp + 0x1c]
push str.send
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
call fcn.100dab90
add esp, 0x10
push str.send
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
push 2
call fcn.1011a5c3
add esp, 4
push eax
call fcn.100db200
push dword [0x101aaa68]
call fcn.10115a34
add esp, 0x18
call fcn.1011a72a
pop edi
pop esi
mov dword [eax], 0xc
or eax, 0xffffffff
ret
dec eax
mov dword [0x101aaa70], eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test edi, edi
je 0x100daf18
push esi
push dword [esp + 0x18]
push dword [esp + 0x24]
push edi
push str.SEND__s:_d_send__lu____ld_n
call fcn.100dab90
add esp, 0x14
pop edi
mov eax, esi
pop esi
ret
Function at 0x100eace0
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push str.F:_vcpkg_vcpkg_buildtreescurl_srce5cd7b457b_ffb4748466.cleanlibgetenv.c
push 0x2d
lea esi, [ebp + 1]
push esi
push ebp
call fcn.100dacc0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x100ead3d
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x100ead5b
cmp esi, ebx
je 0x100ead5b
cmp esi, 0x8000
ja 0x100ead5b
cmp esi, ebx
jb 0x100ead54
push str.F:_vcpkg_vcpkg_buildtreescurl_srce5cd7b457b_ffb4748466.cleanlibgetenv.c
push 0x2d
push esi
push edi
call fcn.100dacc0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100ead00
push str.F:_vcpkg_vcpkg_buildtreescurl_srce5cd7b457b_ffb4748466.cleanlibgetenv.c
push 0x2f
push ebp
call fcn.100dab50
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push str.F:_vcpkg_vcpkg_buildtreescurl_srce5cd7b457b_ffb4748466.cleanlibgetenv.c
push 0x3a
push edi
call fcn.100dab50
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1011de08
Capabilities:
Parse pe header

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

Function at 0x1012048e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1010d610
mov eax, dword [0x101a6ec0]
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.1011ffba
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x101204d0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1012062c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1010dc00
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 + 0x101ab578]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1012241f
mov ecx, dword [esi*4 + 0x101ab578]
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 0x10120625
cmp eax, dword [ecx + edi + 0x24]
jne 0x10120625
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 0x10120625
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1012241f
add esp, 0x14
test edx, edx
jl 0x10120625
jg 0x1012059b
test eax, eax
jb 0x10120625
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10120625
jl 0x101205b5
cmp dword [ebp - 0x1008], eax
ja 0x10120625
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x101205d3
test ebx, ebx
je 0x1012060c
cmp ecx, edi
jae 0x1012060c
mov al, byte [ecx]
cmp al, 0xd
jne 0x101205ed
lea eax, [edi - 1]
cmp ecx, eax
jae 0x101205f9
cmp byte [ecx + 1], 0xa
jne 0x101205f9
inc ecx
jmp 0x101205f9
movzx eax, al
movsx eax, byte [eax + 0x101a7070]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x101205d3
cmp edx, ebx
jne 0x101205d3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1012062a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1010cf1c
leave
ret
Function at 0x10121701
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101a6ec0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x1019c500
push esi
call fcn.1012c632
pop ecx
pop ecx
test eax, eax
jne 0x1012172f
xor al, al
jmp 0x101217ac
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.10121403
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x10121769
push dword [ebp - 0x210]
call fcn.1011acb6
xor al, al
jmp 0x101217aa
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1012176f
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x1012178f
push edx
call fcn.10121638
pop ecx
test al, al
je 0x1012175a
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1012179d
mov bl, 1
push dword [ebp - 0x210]
call fcn.1011acb6
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1010cf1c
leave
ret
Function at 0x1012484c
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 + 0x101ab578]
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 0x1012488c
cmp byte [ebx], 0xa
jne 0x1012488c
or byte [edi + eax + 0x28], 4
jmp 0x10124891
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 0x10124990
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10124973
inc eax
cmp dl, 0xd
je 0x101248bd
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x101248e3
cmp eax, ecx
jae 0x101248f1
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 0x101248a5
jmp 0x10124990
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 0x1012496e
cmp dword [ebp - 0x10], 0
je 0x1012496e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x101ab578]
test byte [eax + edi + 0x28], 0x48
je 0x10124948
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10124933
mov byte [esi], dl
jmp 0x10124944
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101ab578]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10124990
cmp byte [ebp - 1], 0xa
jne 0x10124957
cmp esi, ebx
jne 0x10124957
mov byte [esi], 0xa
jmp 0x1012498f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1012243d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10124990
mov byte [esi], 0xd
jmp 0x1012498f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x101ab578]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1012498d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10124990
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10124999
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 + 0x101ab578]
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 0x101249df
cmp word [ebx], dx
jne 0x101249df
or byte [eax + edi + 0x28], 4
jmp 0x101249e4
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 0x10124b47
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 0x10124b27
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10124a25
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10124a5b
cmp eax, edx
jae 0x10124a69
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 0x10124a00
jmp 0x10124b47
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 0x10124b22
cmp dword [ebp - 0x18], 0
je 0x10124b22
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x101ab578]
test byte [eax + edi + 0x28], 0x48
je 0x10124af8
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 0x10124abc
mov word [esi], cx
jmp 0x10124af3
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x101ab578]
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 + 0x101ab578]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x101ab578]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10124b47
pop eax
cmp word [ebp - 4], ax
jne 0x10124b08
cmp esi, ebx
jne 0x10124b08
mov word [esi], ax
jmp 0x10124b44
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1012243d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10124b47
push 0xd
pop eax
jmp 0x10124b03
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x101ab578]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10124b41
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10124b47
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 0x1012b2a2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1019e17c
push 0x1019e174
push str.FlsAlloc
push 0x1f
call fcn.1012b0cd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1012b2d6
push dword [ebp + 8]
mov ecx, esi
call dword [0x10137360]
call esi
jmp 0x1012b2dc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1012b320
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1019e18c
push 0x1019e184
push str.FlsGetValue
push 0x21
call fcn.1012b0cd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1012b357
push dword [ebp + 8]
mov ecx, esi
call dword [0x10137360]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1012b35f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1019e194
push 0x1019e18c
push str.FlsSetValue
push 0x22
call fcn.1012b0cd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1012b399
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10137360]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]