joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438940
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x438a88
xor ecx, ecx
cmp word [eax], cx
je 0x438a88
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004c7026
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.004146fc
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x438999
cmp eax, 3
jne 0x4389d3
cmp word [esp + 0xa], 0x3a
jne 0x4389d3
cmp eax, 2
jne 0x4389b7
lea eax, [esp + 8]
push 0x4f1398
push eax
call fcn.004c6ff5
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x438a88
push 0xfffffffffffffffe
pop edi
jmp 0x438a88
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x4389e8
cmp ax, bx
jne 0x4389f2
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x4389db
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x438a31
test byte [esp + 0x21c], 0x10
je 0x438a18
push 0xfffffffffffffffe
pop edi
jmp 0x438a28
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x438a86
cmp word [esp + 0x10], bp
jne 0x438a3f
cmp word [esp + 0x12], bp
je 0x438a5e
cmp word [esp + 0x10], bx
jne 0x438a4d
cmp word [esp + 0x12], bx
je 0x438a5e
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x438a86
cmp word [esp + 0x12], ax
jne 0x438a86
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x438a73
test al, 0x10
je 0x438a86
jmp 0x438a83
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x438a86
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x438a97
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x438b0f
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.004c7026
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.004146fc
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x438af0
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x438aed
cmp ecx, 0x5c
je 0x438aed
cmp ecx, 0x2f
jne 0x438afa
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x438ada
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x438b11
xor eax, eax
leave
ret 4
Function at 0x438d79
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebx
mov ebx, eax
mov eax, dword [0x52d520]
push esi
push edi
test eax, eax
jne 0x438d9f
push fcn.00438ea8
push 0x10
push 0x258
call fcn.0043ee53
mov dword [0x52d520], eax
mov edi, dword [esp + 0x10]
push edi
push eax
call fcn.0043edbf
mov esi, eax
test esi, esi
je 0x438ea0
cmp dword [esp + 0x14], ebx
mov eax, 0x4f4268
push ebp
cmovne eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x438dd7
xor ecx, ecx
cmp word [ebp], cx
jne 0x438de0
mov ebp, 0x4f6c58
mov dword [esp + 0x1c], ebp
push eax
call fcn.004146fc
push ebp
mov dword [esp + 0x20], eax
call fcn.004146fc
add eax, dword [esp + 0x20]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x529ae8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x438e8d
push dword [esp + 0x14]
push ebp
call fcn.004c6fd3
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x438e40
mov eax, dword [esp + 0x14]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x438e40
push 0x4f1398
push ebp
call fcn.004c6ff5
pop ecx
pop ecx
push dword [esp + 0x1c]
push ebp
call fcn.004c6ff5
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x438e65
xor ecx, ecx
mov dword [esi + 4], ecx
jmp 0x438e79
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
jne 0x438e7b
mov dword [esi + 4], 1
mov ebx, esi
push ebp
push ecx
push dword [0x529ae8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x438e9f
cmp edi, 0xffffffff
cmove edi, esi
push edi
push dword [0x52d520]
call fcn.0043ed32
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
ret 0xc

Function at 0x43be90
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x43bec8
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43bec3
xor eax, eax
cmp dword [esp + 0xc], esi
pop edi
sete al
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call fcn.00422c20
add dword [edi + 8], esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
ret
Function at 0x43ebe1
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x52d564]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x43ec42
push esi
push dword [0x52d560]
push 8
push dword [0x529ae8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x52d564]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x52d55c]
jmp 0x43ec32
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x43ec30
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x43ec20
push edi
push 0x43eb7f
call fcn.004af908
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x43ec4c
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 0x43ec62
push 4
pop eax
sub eax, ecx
add edi, eax
mov esi, dword [0x52d560]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
jne 0x43ec9b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push edi
push 8
push dword [0x529ae8]
mov dword [0x52d564], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x52d564]
call ebx
mov esi, dword [0x52d560]
lea eax, [edi + esi]
push eax
push dword [0x52d564]
mov dword [0x52d560], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x529ae8]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x52d564]
call ebx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test edi, edi
jne 0x43ecda
test ebx, ebx
je 0x43ecfb
push 0x14
push 0x52d55c
call fcn.0043f512
pop ecx
pop ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
test edi, edi
je 0x43ecfb
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 0x43f640
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x526c40]
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 0x43f679
push ecx
push dword [0x52dac8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x43f688
push ecx
push 0
push dword [0x52dac8]
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.0043fa30
mov dword [edi + 8], ebx
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x43f700
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x526c40]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add dword [eax + 8], 2
ret
Function at 0x43f8c0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x526c40]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov esi, eax
cmp ebx, 0xffffffff
jne 0x43f8de
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 0x43f902
lea eax, [ecx + 0x4000]
mov dword [esi + 4], eax
add eax, 0xa
jmp 0x43f91d
cmp edx, 0x100000
jle 0x43f930
cmp ecx, 0x100000
jge 0x43f917
mov ecx, 0x100000
mov dword [esi + 4], ecx
lea eax, [ecx + 0xa]
push eax
push dword [esi]
push 0
push dword [0x52dac8]
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 0x43f950
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x526c40]
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 0x43f970
Capabilities:
Get thread local storage value

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

Function at 0x43f9a0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x526c40]
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 0x43faa0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x526c40]
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 0x452970
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 8
jl 0x452a25
push ebx
mov ebx, edi
shr ebx, 3
mov eax, ebx
neg eax
lea edi, [edi + eax*8]
mov eax, dword [esp + 0x10]
movzx edx, byte [esi]
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
xor eax, edx
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x506ce0]
xor edx, dword [ecx*4 + 0x5068e0]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + 0x5070e0]
movzx ecx, byte [esi + 6]
xor edx, dword [ecx*4 + 0x5058e0]
movzx ecx, byte [esi + 5]
xor edx, dword [ecx*4 + 0x505ce0]
movzx ecx, byte [esi + 7]
xor edx, dword [ecx*4 + 0x5054e0]
movzx ecx, byte [esi + 4]
add esi, 8
xor edx, dword [ecx*4 + 0x5060e0]
xor edx, dword [eax*4 + 0x5064e0]
mov eax, edx
sub ebx, 1
jne 0x452994
pop ebx
jmp 0x452a29
mov eax, dword [esp + 0xc]
test edi, edi
je 0x452a4c
nop dword [eax]
movzx ecx, byte [esi]
lea esi, [esi + 1]
mov edx, eax
shl eax, 8
shr edx, 0x18
xor edx, ecx
xor eax, dword [edx*4 + 0x5054e0]
sub edi, 1
jne 0x452a30
pop edi
pop esi
ret

Function at 0x458883
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.0045939f
mov edx, dword [esi + 0x14]
pop ecx
test edx, edx
je 0x4588de
mov ecx, dword [esi + 0x10]
mov eax, dword [esi]
push ebp
push edi
mov edi, dword [esi + 0x20]
mov ebp, dword [eax + ecx*4]
cmp edi, edx
jae 0x4588dc
push ebx
mov ebx, dword [esi + 0x18]
push 0x18
pop ecx
sub ecx, edi
mov eax, ebp
shr eax, cl
add edi, 8
movzx ecx, al
mov eax, ebx
shr eax, 8
xor ecx, eax
movzx ebx, bl
shl ebx, 8
movzx ecx, word [ecx*2 + 0x508870]
xor ebx, ecx
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], ebx
cmp edi, edx
jb 0x4588ab
pop ebx
pop edi
pop ebp
mov ax, word [esi + 0x18]
pop esi
ret

Function at 0x45939f
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0x1c]
mov edx, ecx
mov edi, dword [esi + 0x10]
cmp edi, ecx
jbe 0x45941b
push ebx
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x45941a
mov eax, dword [esi]
lea edx, [ecx + 1]
mov dword [esp + 0xc], edx
push ebp
mov ebp, dword [eax + ecx*4]
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], edx
mov dword [esp + 0x18], eax
cmp ebx, 0x20
jae 0x459412
mov edx, eax
push 0x18
pop ecx
sub ecx, ebx
mov eax, ebp
shr eax, cl
add ebx, 8
movzx ecx, al
mov eax, edx
shr eax, 8
xor ecx, eax
movzx edx, dl
shl edx, 8
movzx ecx, word [ecx*2 + 0x508870]
xor edx, ecx
mov dword [esi + 0x20], ebx
cmp ebx, 0x20
jb 0x4593d8
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
and dword [esi + 0x20], 0
mov dword [esi + 0x18], eax
pop ebp
pop ebx
movzx eax, word [esi + 0x18]
sub edi, edx
push eax
mov eax, dword [esi]
push edi
lea eax, [eax + edx*4]
push eax
call fcn.0045cd93
add esp, 0xc
movzx eax, ax
and dword [esi + 0x1c], 0
mov dword [esi + 0x18], eax
pop edi
pop esi
pop ecx
ret
Function at 0x45cd93
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
cmp esi, 2
jb 0x45ce2d
push ebp
mov ebp, esi
shr ebp, 1
mov ebx, dword [edi]
sub esi, 2
mov edx, dword [edi + 4]
movzx eax, cx
shr ebx, 0x10
xor ebx, eax
mov eax, edx
shr eax, 0x18
mov ecx, ebx
shr ecx, 8
mov cx, word [ecx*2 + 0x509670]
xor cx, word [eax*2 + 0x508e70]
movzx eax, byte [edi + 5]
xor cx, word [eax*2 + 0x508a70]
movzx eax, byte [edi + 6]
xor cx, word [eax*2 + 0x508c70]
movzx eax, byte [edi + 1]
xor cx, word [eax*2 + 0x509270]
movzx eax, bl
xor cx, word [eax*2 + 0x509470]
mov eax, dword [edi]
add edi, 8
movzx eax, al
xor cx, word [eax*2 + 0x509070]
movzx eax, dl
xor cx, word [eax*2 + 0x508870]
movzx ecx, cx
sub ebp, 1
jne 0x45cdb0
pop ebp
test esi, esi
je 0x45ce6f
mov ebx, dword [edi]
mov edx, ebx
movzx eax, cx
shr edx, 0x10
xor edx, eax
movzx eax, byte [edi + 1]
mov ecx, edx
shr ecx, 8
mov cx, word [ecx*2 + 0x508e70]
xor cx, word [eax*2 + 0x508a70]
movzx eax, dl
xor cx, word [eax*2 + 0x508c70]
movzx eax, bl
xor cx, word [eax*2 + 0x508870]
movzx ecx, cx
pop edi
pop esi
mov ax, cx
pop ebx
ret

Function at 0x45ce76
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor al, al
test edx, edx
je 0x45ce9a
push esi
mov esi, dword [esp + 8]
movzx ecx, byte [esi]
movzx eax, al
xor ecx, eax
inc esi
mov al, byte [ecx + 0x509870]
sub edx, 1
jne 0x45ce85
pop esi
ret
Function at 0x492ff0
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
je 0x49319f
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x49319f
push esi
mov esi, dword [esp + 0x24]
push edi
test esi, esi
je 0x493026
mov eax, dword [esi + 4]
test eax, eax
je 0x493036
push dword [esi]
push 0x18
call eax
add esp, 8
jmp 0x493030
push 0x18
call fcn.004b05b0
add esp, 4
mov edi, eax
test edi, edi
jne 0x493040
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
ret
mov eax, dword [esp + 0x24]
mov dword [edi + 4], eax
lea eax, [edi + 8]
mov dword [edi], ebx
test eax, eax
je 0x4930a0
test esi, esi
je 0x493085
cmp dword [esi], 0
jne 0x49306b
cmp dword [esi + 0xc], 0
jne 0x493071
cmp dword [esi + 4], 0
jne 0x49306b
cmp dword [esi + 8], 0
je 0x493085
cmp dword [esi + 0xc], 0
je 0x4930a0
cmp dword [esi + 4], 0
jne 0x49307d
cmp dword [esi + 8], 0
je 0x4930a0
movups xmm0, xmmword [esi]
movups xmmword [eax], xmm0
jmp 0x4930a0
mov dword [eax], 0
mov dword [eax + 4], 0x45f5d0
mov dword [eax + 8], 0x45f5e0
mov dword [eax + 0xc], 0x45f560
lea eax, [esp + 0x14]
push eax
push 0
push edi
push 0x4932b0
push dword [esp + 0x2c]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
mov dword [ebp], ecx
test ecx, ecx
jne 0x493105
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0048f9d0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x493198
test esi, esi
je 0x4930f5
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4930fe
push dword [esi]
push edi
call ecx
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call fcn.004b05bb
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
mov eax, dword [esp + 0x18]
add eax, 5
cmp eax, 6
ja case.0x493111.2
jmp dword [eax*4 + 0x4931a8]
mov eax, 0xfffffff1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
or eax, 0xffffffff
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 0xf
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
xor eax, eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop ebp
mov eax, 0xfffffffe
pop ebx
ret

Function at 0x49cb50
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x49cb70
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x49cb70
mov eax, dword [eax + 0x44]
test eax, eax
je 0x49cb70
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4af908
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x52d5f4], 0
push ebx
push esi
mov esi, 0x52d5fc
jne 0x4af934
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x52d614], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x52d5f4], 1
push dword [0x52d614]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4af9d1
push 0x14
push 8
push dword [0x529ae8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4af9fb
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x52d5f8]
test eax, eax
je 0x4af976
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x52d5f8], 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 0x4afa00
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x52d614]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x529ae8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4af9fb
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 0x4afeb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4afedd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4afedd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4c6ae5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004afd70
mov eax, dword [0x526338]
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.0041c093
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4c6b27
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4c6c83
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004affc0
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 + 0x52ab88]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041ed64
mov ecx, dword [esi*4 + 0x52ab88]
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 0x4c6c7c
cmp eax, dword [ecx + edi + 0x24]
jne 0x4c6c7c
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 0x4c6c7c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041ed64
add esp, 0x14
test edx, edx
jl 0x4c6c7c
jg 0x4c6bf2
test eax, eax
jb 0x4c6c7c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4c6c7c
jl 0x4c6c0c
cmp dword [ebp - 0x1008], eax
ja 0x4c6c7c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4c6c2a
test ebx, ebx
je 0x4c6c63
cmp ecx, edi
jae 0x4c6c63
mov al, byte [ecx]
cmp al, 0xd
jne 0x4c6c44
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4c6c50
cmp byte [ecx + 1], 0xa
jne 0x4c6c50
inc ecx
jmp 0x4c6c50
movzx eax, al
movsx eax, byte [eax + 0x526a90]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4c6c2a
cmp edx, ebx
jne 0x4c6c2a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4c6c81
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409d5f
leave
ret
Function at 0x4d9d01
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x526338]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x513410
push esi
call fcn.00415db2
pop ecx
pop ecx
test eax, eax
jne 0x4d9d2f
xor al, al
jmp 0x4d9dac
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.004d9994
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4d9d69
push dword [ebp - 0x210]
call fcn.004b05bb
xor al, al
jmp 0x4d9daa
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4d9d6f
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4d9d8f
push edx
call fcn.004d9c38
pop ecx
test al, al
je 0x4d9d5a
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4d9d9d
mov bl, 1
push dword [ebp - 0x210]
call fcn.004b05bb
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00409d5f
leave
ret

Function at 0x4e63d0
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x526338]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4e6413
call fcn.004106d8
mov dword [eax], 0xf
call fcn.004106eb
mov dword [eax], 0xd
call fcn.0040f0dd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409d5f
leave
ret
test eax, eax
jne 0x4e641a
inc eax
jmp 0x4e6407
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 0x4e6405
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4e6407