joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c5e14
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push dword [0xffc9cc]
mov edi, dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x18]
mov ebp, eax
mov edx, ebx
add ecx, dword [ebp + 0x90]
mov esi, dword [ebp + 0x8c]
add esi, dword [esp + 0x14]
test edi, edi
lea eax, [esi + edi]
cmovns eax, esi
mov esi, edi
neg esi
mov dword [esp + 0x18], eax
test edi, edi
lea eax, [ecx + ebx]
cmovns esi, edi
mov edi, dword [esp + 0x24]
test ebx, ebx
mov dword [esp + 0x1c], esi
cmovns eax, ecx
neg edx
test ebx, ebx
mov dword [esp + 0x14], eax
lea eax, [edi + edi]
cmovns edx, ebx
mov dword [esp + 0x20], edx
cmp eax, esi
jle 0x4c5e8c
mov eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
mov edi, eax
sar edi, 1
mov esi, dword [esp + 0x28]
lea ecx, [esi + esi]
cmp ecx, edx
jle 0x4c5ea0
mov eax, edx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov eax, dword [ebp + 0xa4]
cmp eax, dword [ebp + 0xac]
je 0x4c5eb9
push eax
push ebp
mov dword [ebp + 0xac], eax
call dword [ebp + 0x40]
push esi
push edi
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x24]
push dword [esp + 0x2c]
push ebp
call dword [ebp + 8]
pop edi
pop esi
pop ebp
pop ebx
ret 0x18

Function at 0x4c5ed6
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0xffc9cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [esi + 0xa4]
cmp eax, dword [esi + 0xac]
je 0x4c5efe
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [esp + 0x14]
mov eax, dword [esi + 0x90]
push dword [esp + 0x14]
add eax, dword [esp + 0x14]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [esp + 0x14]
push eax
push esi
call dword [esi + 4]
pop esi
ret 0x10

Function at 0x4c5f24
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xffc9cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
mov ecx, dword [edx + 0x74]
cmp ecx, 2
je 0x4c5f49
cmp ecx, 3
je 0x4c5f49
cmp ecx, 8
je 0x4c5f49
cmp ecx, 0xc
jne 0x4c5f57
mov eax, dword [esp + 4]
test eax, eax
je 0x4c5f57
mov dword [edx + 0xb8], eax
ret 4

Function at 0x4c5f5a
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xffc9cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0x90]
add ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [eax + 0x8c]
add ecx, dword [esp + 0xc]
push ecx
push dword [esp + 0xc]
push eax
call dword [eax + 0x24]
ret 0xc
Function at 0x4c5fb5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push dword [0xffc9cc]
mov edi, dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x18]
mov ebp, eax
mov edx, ebx
add ecx, dword [ebp + 0x90]
mov esi, dword [ebp + 0x8c]
add esi, dword [esp + 0x14]
test edi, edi
lea eax, [esi + edi]
cmovns eax, esi
mov esi, edi
neg esi
mov dword [esp + 0x18], eax
test edi, edi
lea eax, [ecx + ebx]
cmovns esi, edi
mov edi, dword [esp + 0x24]
test ebx, ebx
mov dword [esp + 0x1c], esi
cmovns eax, ecx
neg edx
test ebx, ebx
mov dword [esp + 0x14], eax
lea eax, [edi + edi]
cmovns edx, ebx
mov dword [esp + 0x20], edx
cmp eax, esi
jle 0x4c602d
mov eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
mov edi, eax
sar edi, 1
mov esi, dword [esp + 0x28]
lea ecx, [esi + esi]
cmp ecx, edx
jle 0x4c6041
mov eax, edx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov eax, dword [esp + 0x2c]
cmp eax, dword [ebp + 0xac]
je 0x4c6058
push eax
push ebp
mov dword [ebp + 0xac], eax
call dword [ebp + 0x40]
push esi
push edi
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x24]
push dword [esp + 0x2c]
push ebp
call dword [ebp + 8]
pop edi
pop esi
pop ebp
pop ebx
ret 0x1c

Function at 0x4c7190
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x10c
push 8
push dword [0xf81280]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0xffc9cc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0xffc9d0], esi
mov eax, esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 1
mov dword [esi + 0x78], 7
mov dword [esi], 0x4c6222
mov dword [esi + 4], 0x4c6242
mov dword [esi + 8], 0x4c6f7e
mov dword [esi + 0xc], 0x4c62da
mov dword [esi + 0x10], 0x4c6806
mov dword [esi + 0x14], 0x4c6798
mov dword [esi + 0x18], 0x4c67d6
mov dword [esi + 0x1c], 0x4c67ee
mov dword [esi + 0x20], fcn.004c6862
mov dword [esi + 0x24], 0x4c664f
mov dword [esi + 0x28], fcn.004c64a6
mov dword [esi + 0x2c], 0x4c63bd
mov dword [esi + 0x30], 0x4c6720
mov dword [esi + 0x34], 0x4c666b
mov dword [esi + 0x38], 0x4c68db
mov dword [esi + 0x3c], 0x4c69ec
mov dword [esi + 0x40], 0x4c6a8c
mov dword [esi + 0x44], 0x4c6b23
mov dword [esi + 0x48], 0x4c6c1d
mov dword [esi + 0x4c], 0x4c6e00
mov dword [esi + 0x50], 0x4c6c6e
mov dword [esi + 0x54], 0x4c6ec2
mov dword [esi + 0x58], 0x4c6fbd
mov dword [esi + 0x5c], 0x4c7078
mov dword [esi + 0x60], 0x4c70f0
mov dword [esi + 0x64], 0x4c713a
pop esi
ret
Function at 0x4c8a2f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebp
xor ebp, ebp
cmp dword [0xffc2d4], ebp
je 0x4c8c15
push ebx
mov ebx, dword [esp + 0x60]
push edi
test ebx, ebx
je 0x4c8a4f
mov edi, ebx
jmp 0x4c8a61
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x4c8c13
lea eax, [esp + 0x18]
push eax
push 0x18
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x4c8c08
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push esi
mov esi, dword [esp + 0x24]
push 0x2c
push 0
push eax
mov dword [esp + 0x20], ebp
call fcn.00465b30
add esp, 0xc
mov dword [esp + 0x34], 0x28
xor eax, eax
mov dword [esp + 0x38], ebp
inc eax
mov dword [esp + 0x3c], esi
mov word [esp + 0x40], ax
xor ecx, ecx
push 0x20
pop eax
push ecx
push ecx
mov word [esp + 0x4a], ax
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x54], ecx
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x4c8c07
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x18]
push esi
push 0
push dword [esp + 0x78]
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
imul esi, dword [esp + 0x14]
test esi, esi
jle 0x4c8c07
cmp dword [esp + 0x6c], 0
je 0x4c8bb4
mov ebp, dword [esp + 0x10]
push 0xa
pop ebx
movzx ecx, byte [ebp + 1]
xor edx, edx
movzx eax, byte [ebp + 2]
lea eax, [eax + ecx*2]
movzx ecx, byte [ebp]
imul eax, eax, 3
add eax, ecx
div ebx
mov cl, al
cmp cl, 0x40
jae 0x4c8b48
movzx eax, cl
sub eax, 0x40
imul eax, eax, 7
cdq
idiv ebx
lea ecx, [eax + 0x40]
jmp 0x4c8b5e
cmp cl, 0xc0
jbe 0x4c8b5e
movzx eax, cl
sub eax, 0xc0
imul eax, eax, 7
cdq
idiv ebx
lea ecx, [eax - 0x40]
movzx eax, byte [ebp + 3]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movzx eax, cl
movd xmm0, eax
divss xmm1, dword [0x5c4c60]
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm0
cvttss2si ecx, xmm1
mov byte [ebp], cl
mov eax, dword [esp + 0x10]
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
mov byte [ecx + 2], al
mov ebp, dword [esp + 0x10]
add ebp, 4
mov dword [esp + 0x10], ebp
sub esi, 1
jne 0x4c8b18
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
jmp 0x4c8c07
mov edx, dword [esp + 0x10]
mov al, byte [edx + 3]
cmp al, 0xff
jae 0x4c8bfb
movzx ecx, al
movzx eax, byte [edx]
imul ecx, eax
shr ecx, 8
mov byte [edx], cl
mov edx, dword [esp + 0x10]
movzx eax, byte [edx + 1]
movzx ecx, byte [edx + 3]
imul ecx, eax
shr ecx, 8
mov byte [edx + 1], cl
mov edx, dword [esp + 0x10]
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
imul ecx, eax
shr ecx, 8
mov byte [edx + 2], cl
mov edx, dword [esp + 0x10]
add edx, 4
mov dword [esp + 0x10], edx
sub esi, 1
jne 0x4c8bb8
pop esi
test ebx, ebx
jne 0x4c8c13
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop ebx
mov eax, ebp
pop ebp
add esp, 0x50
ret 0xc
Function at 0x4ce04a
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0xffc50c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4ce0ab
push esi
push dword [0xffc508]
push 8
push dword [0xf81280]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0xffc50c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0xffc504]
jmp 0x4ce09b
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4ce099
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x4ce089
push edi
push 0x4cdfe8
call fcn.0055a801
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x4ce0b5
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ecx, edi
and ecx, 3
je 0x4ce0cb
push 4
pop eax
sub eax, ecx
add edi, eax
mov esi, dword [0xffc508]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
jne 0x4ce104
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push edi
push 8
push dword [0xf81280]
mov dword [0xffc50c], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0xffc50c]
call ebx
mov esi, dword [0xffc508]
lea eax, [edi + esi]
push eax
push dword [0xffc50c]
mov dword [0xffc508], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0xf81280]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0xffc50c]
call ebx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test edi, edi
jne 0x4ce143
test ebx, ebx
je 0x4ce164
push 0x14
push 0xffc504
call fcn.004ce9bf
pop ecx
pop ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
test edi, edi
je 0x4ce164
lea ecx, [esi + ebp]
push ecx
call edi
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x4ceac0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0xf7cc38]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov edi, eax
mov ebp, dword [esp + 0x14]
mov esi, dword [edi + 8]
mov ecx, dword [ebp]
sub esi, ebx
lea eax, [esi + 0xa]
push eax
test ecx, ecx
jne 0x4ceaf9
push ecx
push dword [0xffcaec]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x4ceb08
push ecx
push 0
push dword [0xffcaec]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
shr esi, 1
mov dword [ebp], ecx
mov eax, dword [edi]
push esi
add eax, ebx
push eax
push ecx
call fcn.004ceef0
mov dword [edi + 8], ebx
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x4ceb30
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xf7cc38]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add dword [eax + 8], 2
ret

Function at 0x4cebf0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xf7cc38]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
add ecx, dword [eax]
mov eax, ecx
ret
Function at 0x4cecf0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0xf7cc38]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov esi, eax
cmp ebx, 0xffffffff
jne 0x4ced0e
mov ebx, dword [esi + 8]
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
lea ebp, [eax + eax]
add ecx, ebp
lea eax, [edx - 4]
cmp ecx, eax
jl 0x4ced32
lea eax, [ecx + 0x4000]
mov dword [esi + 4], eax
add eax, 0xa
jmp 0x4ced4d
cmp edx, 0x100000
jle 0x4ced60
cmp ecx, 0x100000
jge 0x4ced47
mov ecx, 0x100000
mov dword [esi + 4], ecx
lea eax, [ecx + 0xa]
push eax
push dword [esi]
push 0
push dword [0xffcaec]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esi], eax
lea eax, [ebx + ebp]
mov dword [esi + 8], eax
mov eax, dword [esi]
pop edi
pop esi
pop ebp
add eax, ebx
pop ebx
ret 8

Function at 0x4ced80
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xf7cc38]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
neg ecx
add ecx, ecx
add dword [eax + 8], ecx
ret 4

Function at 0x4ceea0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xf7cc38]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov eax, dword [esp + 4]
mov edx, dword [ecx]
cmp eax, edx
jb 0x4ceec7
mov ecx, dword [ecx + 8]
add ecx, edx
cmp eax, ecx
ja 0x4ceec7
sub eax, edx
inc eax
ret 4
xor eax, eax
ret 4

Function at 0x4ceed0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xf7cc38]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
mov eax, dword [esp + 4]
dec eax
add eax, ecx
ret 4

Function at 0x4cef30
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xf7cc38]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
add eax, dword [esp + 4]
ret 4

Function at 0x4cf0c0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xf7cc38]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
mov dword [eax + 8], ecx
mov eax, dword [eax]
add eax, ecx
ret 4
Function at 0x4fe480
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [eax + 0x38]
mov bl, byte [eax + 0x34]
test esi, esi
jle 0x4fe4bd
mov edx, dword [eax + 0x260]
push edi
movzx edi, bl
nop word [eax + eax]
mov ecx, edx
shl edx, 8
shr ecx, 0x18
xor ecx, edi
xor edx, dword [ecx*4 + 0xf7d108]
mov dword [eax + 0x260], edx
sub esi, 1
jne 0x4fe4a0
pop edi
mov ecx, dword [eax + 0x34]
mov byte [ecx + eax + 0x58], 1
mov edx, dword [eax + 0x38]
mov ecx, edx
sub ecx, 1
je 0x4fe56c
sub ecx, 1
je 0x4fe550
sub ecx, 1
je 0x4fe528
mov byte [edx + eax + 0x54], 1
mov edx, dword [eax + 0x24]
mov ecx, dword [eax + 0x44]
mov byte [edx + ecx], bl
mov edx, dword [eax + 0x44]
inc edx
mov dword [eax + 0x44], edx
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov esi, dword [eax + 0x44]
mov dl, byte [eax + 0x38]
mov ecx, dword [eax + 0x24]
sub dl, 4
mov byte [esi + ecx], dl
inc dword [eax + 0x44]
pop esi
pop ebx
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
inc edx
mov dword [eax + 0x44], edx
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
inc edx
mov dword [eax + 0x44], edx
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
Function at 0x55a801
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0xffc57c], 0
push ebx
push esi
mov esi, 0xffc584
jne 0x55a82d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0xffc59c], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0xffc57c], 1
push dword [0xffc59c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x55a8ca
push 0x14
push 8
push dword [0xf81280]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x55a8f4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0xffc580]
test eax, eax
je 0x55a86f
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0xffc580], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x55a8f9
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0xffc59c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0xf81280]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x55a8f4
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x55b050
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x55b07d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x55b07d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x572fb9
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0xf7c250]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5d5f38
push esi
call fcn.0045c399
pop ecx
pop ecx
test eax, eax
jne 0x572fe7
xor al, al
jmp 0x573064
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.00572c4c
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x573021
push dword [ebp - 0x210]
call fcn.0055b72e
xor al, al
jmp 0x573062
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x573027
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x573047
push edx
call fcn.00572ef0
pop ecx
test al, al
je 0x573012
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x573055
mov bl, 1
push dword [ebp - 0x210]
call fcn.0055b72e
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045030f
leave
ret
Function at 0x574e11
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0055af10
mov eax, dword [0xf7c250]
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.004626e7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x574e53
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x574faf
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0055b1a0
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 + 0xf82658]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004653b8
mov ecx, dword [esi*4 + 0xf82658]
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 0x574fa8
cmp eax, dword [ecx + edi + 0x24]
jne 0x574fa8
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 0x574fa8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004653b8
add esp, 0x14
test edx, edx
jl 0x574fa8
jg 0x574f1e
test eax, eax
jb 0x574fa8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x574fa8
jl 0x574f38
cmp dword [ebp - 0x1008], eax
ja 0x574fa8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x574f56
test ebx, ebx
je 0x574f8f
cmp ecx, edi
jae 0x574f8f
mov al, byte [ecx]
cmp al, 0xd
jne 0x574f70
lea eax, [edi - 1]
cmp ecx, eax
jae 0x574f7c
cmp byte [ecx + 1], 0xa
jne 0x574f7c
inc ecx
jmp 0x574f7c
movzx eax, al
movsx eax, byte [eax + 0xf7c9a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x574f56
cmp edx, ebx
jne 0x574f56
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x574fad
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0045030f
leave
ret
Function at 0x58ee80
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0xf7c250]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x58eec3
call fcn.00456cbf
mov dword [eax], 0xf
call fcn.00456cd2
mov dword [eax], 0xd
call fcn.0045568d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045030f
leave
ret
test eax, eax
jne 0x58eeca
inc eax
jmp 0x58eeb7
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x58eeb5
xor eax, eax
cmp ecx, 1
setne al
jmp 0x58eeb7

Function at 0x59259f
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x188
push 8
push dword [0xf81280]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0xffc9cc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0xffc9d0], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.00595559
mov dword [esi + 0x58], 0x593582
mov eax, esi
mov dword [esi + 0x5c], 0x5935ce
mov dword [esi + 0x10], fcn.005930ba
mov dword [esi + 0x30], 0x592e95
mov dword [esi + 0x64], 0x593663
mov dword [esi + 0x60], 0x593617
mov dword [esi + 0x34], 0x592960
mov dword [esi + 0x24], 0x592937
mov dword [esi + 0x28], 0x59290c
mov dword [esi + 0x2c], 0x592860
mov dword [esi + 0x44], 0x593352
mov dword [esi + 0x68], 0x592660
mov dword [esi + 0x6c], 0x593865
pop esi
ret 4
Function at 0x402a3c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404004
test esi, esi
jne 0x402a72
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004040f4
jmp 0x402a90
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402950
mov edi, eax
test esi, esi
je 0x402a90
cmp dword [ebx], 0
je 0x402a90
dec esi
jmp 0x402a79
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403124
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x457020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4031bc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40319c
xor eax, eax
push ebp
push 0x403195
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4031d8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40319c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x457020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x457020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e88
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45904c], 0
je 0x403ee9
cmp word [0x459220], 0xd7b2
jne 0x403eb1
cmp dword [0x459228], 0
jbe 0x403eb1
mov eax, 0x45921c
call dword [0x459238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45706c
push 0xfffffffffffffff5
call fcn.00401204
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403f10
push 0xfffffffffffffff5
call fcn.00401204
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x457030], 0
jne 0x403f05
push 0
push 0x457064
push 0x45706c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret