joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dca70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5a33dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, edi
mov dword [ebp - 0xc], eax
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4dca94
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
sub esi, edx
push ecx
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x4dcaf6
lea eax, [esi*2 + 2]
push eax
push edi
push 1
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb ebx, ebx
mov eax, dword [ebp - 8]
inc ebx
test eax, eax
je 0x4dcaf6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4dcb11
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d84d0
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4deb4e
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 0x5313b6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x577578
push 0x577570
push str.FlsAlloc
push 0x1e
call fcn.005311e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5313ea
push dword [ebp + 8]
mov ecx, esi
call dword [0x55c778]
call esi
jmp 0x5313f0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x531434
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x577588
push 0x577580
push str.FlsGetValue
push 0x20
call fcn.005311e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x53146b
push dword [ebp + 8]
mov ecx, esi
call dword [0x55c778]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x533067
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00532ed8
Function at 0x53350c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004d9710
mov eax, dword [0x5a33dc]
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.005304e9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x53354e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5336aa
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0054c260
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 + 0x5aab18]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0052710d
mov ecx, dword [esi*4 + 0x5aab18]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x5336a3
cmp eax, dword [edi + ecx + 0x24]
jne 0x5336a3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5336a3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0052710d
add esp, 0x14
test edx, edx
jl 0x5336a3
jg 0x533619
test eax, eax
jb 0x5336a3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5336a3
jl 0x533633
cmp dword [ebp - 0x1008], eax
ja 0x5336a3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x533651
test ebx, ebx
je 0x53368a
cmp ecx, edi
jae 0x53368a
mov al, byte [ecx]
cmp al, 0xd
jne 0x53366b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x533677
cmp byte [ecx + 1], 0xa
jne 0x533677
inc ecx
jmp 0x533677
movzx eax, al
movsx eax, byte [eax + 0x5a39c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x533651
cmp edx, ebx
jne 0x533651
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5336a8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004d84d0
leave
ret
Function at 0x5338d9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x5aab18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x533919
cmp byte [ebx], 0xa
jne 0x533919
or byte [eax + edi + 0x28], 4
jmp 0x53391e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x533a1c
mov al, byte [edx]
cmp al, 0x1a
je 0x5339fe
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x53394d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x533972
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x53397c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x53392f
jmp 0x533a1c
push 0
lea eax, [ebp - 0xc]
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 0x5339f9
cmp dword [ebp - 0xc], 0
je 0x5339f9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5aab18]
test byte [eax + edi + 0x28], 0x48
je 0x5339d3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5339be
mov byte [esi], dl
jmp 0x5339cf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5aab18]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x533a1c
cmp byte [ebp - 1], 0xa
jne 0x5339e2
cmp esi, ebx
jne 0x5339e2
mov byte [esi], 0xa
jmp 0x533a1b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0052712b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x533a1c
mov byte [esi], 0xd
jmp 0x533a1b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5aab18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x533a18
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x533a1c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x533a25
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x5aab18]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x533a68
cmp word [esi], dx
jne 0x533a68
or byte [edi + eax + 0x28], 4
jmp 0x533a6d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x533bc0
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x533ba0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x533aaf
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x533ae5
cmp eax, edx
jae 0x533af1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x533a87
jmp 0x533bc0
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x533b9c
cmp dword [ebp - 0x14], 0
je 0x533b9c
mov eax, dword [ebx*4 + 0x5aab18]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x533b74
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x533b3d
mov word [esi], cx
jmp 0x533b70
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5aab18]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x5aab18]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5aab18]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x533bc0
pop ebx
cmp word [ebp - 4], bx
jne 0x533b85
cmp esi, dword [ebp + 0xc]
jne 0x533b85
mov word [esi], bx
jmp 0x533bbd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0052712b
add esp, 0x10
cmp word [ebp - 4], bx
je 0x533bc0
push 0xd
jmp 0x533bb9
mov ecx, dword [ebx*4 + 0x5aab18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x533bb7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x533bc0
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x536dea
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00536d66
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x536f62
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x536f62
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x536f11
jg 0x536e43
test eax, eax
je 0x536f07
push 1
push 0x1000
call fcn.0052f529
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x536e69
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x536efe
push 0x8000
push ebx
call fcn.0052cfe9
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x536e95
jg 0x536e90
cmp ecx, 0x1000
jb 0x536e95
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00527a76
add esp, 0x10
cmp eax, 0xffffffff
je 0x536eda
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x536e90
jl 0x536ec1
test ecx, ecx
jne 0x536e82
push dword [ebp - 0xc]
push ebx
call fcn.0052cfe9
push esi
call fcn.0052f586
add esp, 0xc
xor edi, edi
jmp 0x536f73
cmp byte [edi + 0x24], 0
je 0x536ef1
cmp dword [edi + 0x20], 5
jne 0x536ef1
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x536efc
mov edi, dword [edi + 0x18]
jmp 0x536efe
xor edi, edi
push esi
call fcn.0052f586
pop ecx
jmp 0x536f73
test ecx, ecx
jg 0x536ed3
jl 0x536f11
test eax, eax
jae 0x536ed3
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0052712b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x536f34
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x536ed3
jmp 0x536f6b
push ebx
call fcn.00536cfc
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x536ed3
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x536f73
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x536f70
mov edi, dword [edi + 0x18]
jmp 0x536f73
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0052712b
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x539117
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5a33dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x539162
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.005392b6
test al, al
jne 0x53915c
sub edx, 2
cmp edx, edi
jne 0x539142
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x539184
lea eax, [edi + 2]
cmp edx, eax
je 0x539184
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00539063
add esp, 0x10
jmp 0x53927e
push esi
lea ecx, [ebp - 0x255]
call fcn.005392b6
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5391c7
push dword [ebp - 0x25c]
jmp 0x539174
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x539204
cmp word [ebp - 0x226], 0
je 0x539225
cmp word [ebp - 0x226], ax
jne 0x539204
cmp word [ebp - 0x224], 0
je 0x539225
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00539063
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x539271
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5391de
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x539259
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x53927e
push 0x538e93
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0053e940
add esp, 0x10
jmp 0x53924e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d84d0
leave
ret

Function at 0x539ba2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x539bb3
pop esi
ret
push ebx
push edi
push esi
call fcn.00539b6b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0052f5c0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x539bdb
push ebx
push esi
push edi
call fcn.00515070
add esp, 0xc
push 0
call fcn.0052f586
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x539f9f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00539bf0
Function at 0x544520
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a570
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5a33dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
test edi, edi
je 0x544669
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x544669
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x544669
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x544669
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 5
push SysReAllocString
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, 0xffffffff
je 0x544655
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push edi
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x54464e
cmp dword [ebp - 0x1c], ebx
jne 0x54464e
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
cmp eax, ecx
ja 0x5445ed
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x5445e7
mov ecx, dword [esi]
mov byte [ecx + eax], 0
jmp 0x5445f9
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00429620
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push dword [ebp - 0x20]
mov ecx, esi
push 0
call fcn.0044dd00
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 8]
jne 0x54464e
push edi
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000f7b3
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001250c
push ebx
push esi
call fcn.10012438
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100123cc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100124b9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001250b
push edi
push eax
call fcn.1001342a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100124d9
call fcn.10010f14
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001250a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100123cc
add esp, 0x20
test eax, eax
jne 0x100124f8
push edi
call fcn.10010f14
jmp 0x10012500
push ebx
call fcn.10010f14
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10012779
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001a888
push 0x1001a880
push str.FlsAlloc
push 0x1f
call fcn.10012695
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100127ad
push dword [ebp + 8]
mov ecx, esi
call dword [0x10019150]
call esi
jmp 0x100127b3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100127f7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001a898
push 0x1001a890
push str.FlsGetValue
push 0x21
call fcn.10012695
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001282e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10019150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10012836
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001a8a0
push 0x1001a898
push str.FlsSetValue
push 0x22
call fcn.10012695
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012870
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10019150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10017ef0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10017f1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10017f1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x406234
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x406243
pop dword [ebp - 0x50]
mov eax, 0x2dce8fd
sub eax, 0x29c86ba
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x865e3e91
add dword [ebp - 0x60], 0xc7f406ba
mov dword [ebp - 0x5c], 0xfa41d0bd
add dword [ebp - 0x5c], 0x37f17b88
mov dword [ebp - 0x58], 0x11c8a8e5
sub dword [ebp - 0x58], 0xc57c64b7
mov dword [ebp - 0x54], 0x107c972e
sub dword [ebp - 0x54], 0x107c972e
lea eax, [ebp - 0x60]
push eax
mov eax, 0xccb581b8
sub eax, 0xcc7500b4
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x8d7701e
add dword [ebp - 0x60], 0x6b9af938
mov dword [ebp - 0x5c], 0x5e69e816
sub dword [ebp - 0x5c], 0x1cfd86a1
mov dword [ebp - 0x58], 0x542521b2
add dword [ebp - 0x58], 0xf4a4aba
mov dword [ebp - 0x54], 0xa9db81e1
sub dword [ebp - 0x54], 0xa9db81e1
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x5e09983e
sub eax, 0x5dc9173e
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3a99f
push 0
call eax
mov ecx, 0xa354e626
add ecx, 0x5cab702a
xor edx, edx
add edx, eax
mov esi, 0x64b03ba6
sub esi, 0x646957a6
add esi, dword [ebp - 0x50]
mov ebx, 0x1f5f0f6f
sub ebx, 0xeb9ad909
mov edi, dword [esi]
xor edi, ebx
add dword [ebp - 0x18], edx
mov dword [edx], edi
add dword [ebp - 0x44], 0xd9fdce1
add edx, 0x38856d5d
add edx, 0xc77a92a7
add esi, 4
loop 0x406367
add eax, 0x67baa7e1
add eax, 0x9846a432
mov ebx, eax
add eax, 0xbfab373e
add eax, 0x4054c8c7
mov ecx, 0x8304fd02
sub ecx, 0x82c4fd02
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

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

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406705
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4066e7
pop edi
not eax
pop esi
ret 0xc