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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movaps xmm0, xmmword [0x1006b120]
xor eax, eax
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x18], 0x4e546852
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0x585d59
mov cl, byte [ebp - 0x28]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0x16
jb 0x10016ae6
mov byte [ebp - 0x10], 0x45
mov al, 0x2b
xor al, byte [ebp - 0x10]
mov bl, 0x29
mov ah, bl
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x10]
mov dl, 0x21
mov bh, ah
mov byte [ebp - 1], ah
xor bl, al
mov byte [ebp - 6], 0
xor ah, al
mov byte [ebp - 0x11], 0
xor bh, al
mov byte [ebp - 0xb], ah
mov dh, dl
mov byte [ebp - 0xc], bl
xor dl, al
mov byte [ebp - 8], bh
xor dh, al
mov byte [ebp - 0xd], dl
mov cl, 0x31
mov byte [ebp - 9], dh
xor cl, al
mov byte [ebp - 6], 0
mov ch, 0x6b
mov byte [ebp - 0xe], cl
xor ch, al
mov al, byte [ebp - 1]
xor al, byte [ebp - 0x10]
mov byte [ebp - 7], al
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0xf]
mov byte [ebp - 0xa], ch
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x10016b6f
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x11
test esi, esi
jne 0x10016b8e
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
test eax, eax
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call edi
pop edi
test eax, eax
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10016ba0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
pushal
pushfd
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 8]
jne 0x10016bde
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10016be2
cmp edx, esi
jne 0x10016bc7
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp - 8]
jne 0x10016c02
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10016c06
cmp edx, esi
jne 0x10016beb
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jne 0x10016c26
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10016c2a
cmp edx, esi
jne 0x10016c0f
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10019380
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10019550
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1001945d
mov edx, dword [ebp - 4]
cmp edx, dword [0x10074064]
jb 0x100193ca
mov eax, dword [ebp - 4]
cmp eax, dword [0x10074068]
ja 0x100193ca
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1001939a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100346b0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x100193ef
jmp 0x1001945d
cmp dword [ebp - 0x14], 0x10000
jne 0x10019443
cmp dword [ebp - 0x18], 0x10000
jb 0x10019443
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10019426
mov eax, dword [ebp - 8]
jmp 0x1001945f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10019436
xor eax, eax
jmp 0x1001945f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10019458
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10019550
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1001939a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10019470
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10019580
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10019545
mov edx, dword [ebp - 4]
cmp edx, dword [0x10074064]
jb 0x100194b5
mov eax, dword [ebp - 4]
cmp eax, dword [0x10074068]
ja 0x100194b5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10019485
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100346b0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x100194da
jmp 0x10019545
cmp dword [ebp - 0x14], 0x10000
jne 0x1001952e
cmp dword [ebp - 0x18], 0x10000
jb 0x1001952e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10019511
mov eax, dword [ebp - 8]
jmp 0x10019547
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10019521
xor eax, eax
jmp 0x10019547
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10019540
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10019580
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10019485
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100195b0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100199a0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x100780a8], 0
jne 0x100195ed
cmp dword [0x100780a4], 0
je 0x100195ed
mov eax, dword [0x100780a4]
mov dword [0x100780a8], eax
cmp dword [0x100780a8], 0
je 0x1001966a
mov ecx, dword [0x100780a8]
cmp dword [ecx + 8], 0
je 0x1001966a
mov edx, dword [0x100780a8]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1001966a
mov ecx, dword [0x100780a8]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1001966a
mov eax, dword [0x100780a8]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10019639
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10019640
xor eax, eax
jmp 0x10019789
mov ecx, dword [0x100780a8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.100346b0
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10019789
mov edx, dword [0x100780a4]
mov dword [0x100780a8], edx
jmp 0x10019686
mov eax, dword [0x100780a8]
mov ecx, dword [eax + 4]
mov dword [0x100780a8], ecx
cmp dword [0x100780a8], 0
je 0x100196c6
cmp dword [0x100780a8], 0
je 0x100196c4
mov edx, dword [0x100780a8]
cmp dword [edx + 8], 0
je 0x100196c4
mov eax, dword [0x100780a8]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x100196c4
mov edx, dword [0x100780a8]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x100196c4
jmp 0x1001961e
jmp 0x10019678
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10019790
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10019787
mov eax, dword [ebp - 0x18]
mov dword [0x100780a8], eax
mov ecx, dword [0x100780a8]
mov dword [ecx], 0x52727464
mov edx, dword [0x100780a8]
mov dword [edx + 8], 0
mov eax, dword [0x100780a8]
mov ecx, dword [0x100780a4]
mov dword [eax + 4], ecx
mov edx, dword [0x100780a8]
mov dword [0x100780a4], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x100780a8]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10019757
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10019777
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1001974e
mov eax, dword [0x100780a8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1001961e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1001a4d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100780a4]
mov dword [ebp - 4], eax
jmp 0x1001a4e9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1001a510
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1001a50e
call sub.KERNEL32.dll_GetLastError
jmp 0x1001a512
jmp 0x1001a4e0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1001a9b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100780b4], eax
je 0x1001a9d4
mov eax, 0x10dd
jmp 0x1001ab7c
cmp dword [0x100780b8], 0
je 0x1001a9e7
mov eax, dword [0x100780b8]
jmp 0x1001ab7c
cmp dword [ebp + 0xc], 0
jne 0x1001a9f7
mov eax, 0x57
jmp 0x1001ab7c
cmp dword [ebp + 8], 0
jne 0x1001aa07
mov eax, 6
jmp 0x1001ab7c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1001aa30
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x100780b8], ecx
mov edx, dword [ebp + 8]
mov dword [0x100780bc], edx
mov eax, dword [ebp - 8]
jmp 0x1001ab7c
push 0x18
call fcn.1001c066
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1001aa8b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x100780b8], ecx
cmp dword [ebp - 4], 0
je 0x1001aa7a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.1001c623
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x100780bc], ecx
mov eax, dword [ebp - 8]
jmp 0x1001ab7c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1001a990
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1001a990
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x1001aacb
cmp dword [ebp - 0xc], 0x1e
jbe 0x1001aae7
mov dword [ebp - 8], 9
cmp dword [0x100780ac], 0
je 0x1001aae2
jmp 0x1001aa59
jmp 0x1001aa50
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1001ab0e
mov dword [ebp - 8], 9
cmp dword [0x100780ac], 0
je 0x1001ab09
jmp 0x1001aa59
jmp 0x1001aa50
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1001ab39
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1001aa50
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x100780c4]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x100780c4], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1001ab90
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100780b4], eax
je 0x1001abad
mov eax, 0x10dd
jmp 0x1001ac90
mov eax, dword [0x100780c4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1001ac2c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1001ac08
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1001ac08
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10019a30
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1001c623
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1001abb5
mov dword [0x100780c4], 0
call fcn.1001a310
mov ecx, dword [0x100780c0]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1001ac7a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1001c623
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1001ac44
mov dword [0x100780c0], 0
mov dword [0x100780b4], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1001b170
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100780b8], 0
je 0x1001b189
mov eax, dword [0x100780b8]
jmp 0x1001b228
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1001b19a
xor eax, eax
jmp 0x1001b228
push 8
call fcn.1001c066
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1001b1f2
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1001b1db
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1001c623
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x100780b8], eax
mov dword [0x100780bc], 0
mov eax, dword [ebp - 8]
jmp 0x1001b228
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1001b20a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1001b1ba
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x100780c0]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x100780c0], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x1001ee8a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x10037e11
Capabilities:
Parse pe header

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

Function at 0x10043a9a
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 + 0x10078910]
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 0x10043ada
cmp byte [ebx], 0xa
jne 0x10043ada
or byte [edi + eax + 0x28], 4
jmp 0x10043adf
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 0x10043bde
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10043bc1
inc eax
cmp dl, 0xd
je 0x10043b0b
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10043b31
cmp eax, ecx
jae 0x10043b3f
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 0x10043af3
jmp 0x10043bde
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 0x10043bbc
cmp dword [ebp - 0x10], 0
je 0x10043bbc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10078910]
test byte [eax + edi + 0x28], 0x48
je 0x10043b96
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10043b81
mov byte [esi], dl
jmp 0x10043b92
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10078910]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10043bde
cmp byte [ebp - 1], 0xa
jne 0x10043ba5
cmp esi, ebx
jne 0x10043ba5
mov byte [esi], 0xa
jmp 0x10043bdd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10048392
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10043bde
mov byte [esi], 0xd
jmp 0x10043bdd
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10078910]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10043bdb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10043bde
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10043be7
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 + 0x10078910]
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 0x10043c2d
cmp word [ebx], dx
jne 0x10043c2d
or byte [eax + edi + 0x28], 4
jmp 0x10043c32
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 0x10043d95
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 0x10043d75
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10043c73
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10043ca9
cmp eax, edx
jae 0x10043cb7
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 0x10043c4e
jmp 0x10043d95
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 0x10043d70
cmp dword [ebp - 0x18], 0
je 0x10043d70
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10078910]
test byte [eax + edi + 0x28], 0x48
je 0x10043d46
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 0x10043d0a
mov word [esi], cx
jmp 0x10043d41
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10078910]
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 + 0x10078910]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10078910]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10043d95
pop eax
cmp word [ebp - 4], ax
jne 0x10043d56
cmp esi, ebx
jne 0x10043d56
mov word [esi], ax
jmp 0x10043d92
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10048392
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10043d95
push 0xd
pop eax
jmp 0x10043d51
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10078910]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10043d8f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10043d95
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 0x1004606c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x100613d8
push str.FlsAlloc
push 0x1f
call fcn.10045ef4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100460a0
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005a29c]
call esi
jmp 0x100460a6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100460ea
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x100613fc
push str.FlsGetValue
push 0x21
call fcn.10045ef4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10046121
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005a29c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10046129
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x10061410
push str.FlsSetValue
push 0x22
call fcn.10045ef4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10046163
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1005a29c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100474f6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1001d3d0
mov eax, dword [0x10074084]
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.10043a73
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10047538
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10047694
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100563f0
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 + 0x10078910]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10048374
mov ecx, dword [esi*4 + 0x10078910]
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 0x1004768d
cmp eax, dword [ecx + edi + 0x24]
jne 0x1004768d
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 0x1004768d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10048374
add esp, 0x14
test edx, edx
jl 0x1004768d
jg 0x10047603
test eax, eax
jb 0x1004768d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1004768d
jl 0x1004761d
cmp dword [ebp - 0x1008], eax
ja 0x1004768d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1004763b
test ebx, ebx
je 0x10047674
cmp ecx, edi
jae 0x10047674
mov al, byte [ecx]
cmp al, 0xd
jne 0x10047655
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10047661
cmp byte [ecx + 1], 0xa
jne 0x10047661
inc ecx
jmp 0x10047661
movzx eax, al
movsx eax, byte [eax + 0x10074370]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1004763b
cmp edx, ebx
jne 0x1004763b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10047692
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1001c055
leave
ret