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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
lea esi, [ebp - 0x18]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 8]
mov dword [esi - 4], esp
or dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0x41a930
mov ecx, dword fs:[0]
mov dword [esi], ecx
mov dword fs:[0], esi
and dword [ebp - 0x34], 0
lea ecx, [ebp - 0x58]
push eax
call fcn.00403dc7
pop eax
and dword [esi + 8], 0
sub esp, 4
and dword [esp], 0
xor edx, edx
lea ecx, [ebp - 0x4c]
inc edx
call fcn.00403dc7
pop eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x40]
push eax
call fcn.00403dc7
pop eax
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x10], 2
push 0
push eax
push 0
push 0x20106
push 0
push 0
push 0
mov dword [ebp - 0x30], ecx
push ecx
push 0x80000001
call sub.advapi32.dll_RegCreateKeyExW
test eax, eax
je 0x404e01
sub esp, 4
and dword [esp], 0
xor edx, edx
lea ecx, [ebp - 0x64]
inc edx
call fcn.00408fa5
pop eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x24]
movsd xmm0, qword [ebp - 0x64]
mov edx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x48]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
jmp 0x404e8a
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x10], 3
add eax, eax
push eax
mov dword [ebp - 0x28], edx
push edx
push 1
push 0
mov dword [ebp - 0x2c], ecx
push ecx
mov dword [ebp - 0x20], esi
push esi
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x404e6c
sub esp, 4
and dword [esp], 0
xor edx, edx
lea ecx, [ebp - 0x64]
inc edx
call fcn.00408fa5
pop eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x24]
movsd xmm0, qword [ebp - 0x64]
mov dword [ebp - 0x10], 2
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
push dword [ebp - 0x20]
call sub.advapi32.dll_RegCloseKey
mov esi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
jmp 0x404e8a
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], 2
mov dword [eax], 0x80000000
push dword [ebp - 0x20]
call sub.advapi32.dll_RegCloseKey
mov esi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x40]
call fcn.00412739
mov ecx, dword [ebp - 0x4c]
mov edx, esi
call fcn.00412739
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x30]
call fcn.00412739
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404f11
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x150
lea eax, [ebp - 0x18]
lea esi, [ebp - 0x158]
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x41a940
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
push 0xc8
push 0
push esi
call fcn.0041beb0
add esp, 0xc
xorps xmm0, xmm0
lea eax, [0x42036b]
lea edx, [ebp - 0x40]
mov dword [esi - 4], 0xcc
mov dword [esi + 0x28], 1
mov dword [edx], eax
movups xmmword [ebp - 0x5c], xmm0
lea eax, [ebp - 0x40]
mov ecx, dword [edx]
mov dword [edx], 0x494584bc
mov edx, dword [eax]
call fcn.004025eb
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [ebp - 0x90], xmm0
movups xmmword [ebp - 0x80], xmm0
movups xmmword [ebp - 0x70], xmm0
cmp ecx, 0x2f
ja 0x404fb3
mov edx, dword [ecx + 0x42ab5c]
xor edx, dword [eax + ecx]
mov dword [ebp + ecx - 0x90], edx
add ecx, 4
jmp 0x404f99
movzx ecx, byte [eax + 0x32]
movzx eax, word [eax + 0x30]
or dword [ebp - 0x10], 0xffffffff
lea edx, [ebp - 0x90]
lea esi, [ebp - 0x4c]
xor eax, 0x9d23
xor cl, 0x64
mov word [edx + 0x30], ax
mov byte [edx + 0x32], cl
mov ecx, esi
push 0x33
call fcn.00408fa5
pop eax
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
lea edx, [ebp - 0x40]
and dword [ebp - 0x10], 0
add eax, ecx
mov dword [edx + 4], ecx
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x30]
mov dword [edx + 8], eax
and word [edx + 0xc], 0
mov dword [edx], 1
call fcn.00401f80
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x15c]
push eax
push ecx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
mov dword [ebp - 0x20], edx
push edx
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x405069
push dword [ebp - 0x5c]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 0x58]
call sub.kernel32.dll_CloseHandle
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
call fcn.00412739
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x24]
call fcn.00408f0a
xor esi, esi
jmp 0x4050b2
sub esp, 4
and dword [esp], 0
xor edx, edx
lea ecx, [ebp - 0x40]
inc edx
call fcn.00408fa5
pop eax
push 4
pop ecx
push 0xc
pop edx
call fcn.00408e4a
test eax, eax
je 0x4050c8
mov ecx, dword [ebp - 0x38]
mov esi, eax
mov dword [esi + 8], ecx
movsd xmm0, qword [ebp - 0x40]
movsd qword [esi], xmm0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
call fcn.00412739
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
call fcn.00408f0a
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x150
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 2
push 4
pop ecx
push 0xc
pop edx
call fcn.004291c6
ud2

Function at 0x405121
Capabilities:
Check os version

Disassembly:
push esi
sub esp, 0x11c
lea esi, [esp + 4]
push 0x118
push 0
push esi
call fcn.0041beb0
add esp, 0xc
mov eax, esp
mov dword [esi - 4], 0x11c
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x405169
mov ecx, dword [esp + 4]
mov al, 1
cmp ecx, 5
jbe 0x40516b
cmp ecx, 6
jne 0x405169
cmp dword [esp + 8], 2
setb al
jmp 0x40516b
xor eax, eax
add esp, 0x11c
pop esi
ret
Function at 0x405173
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x41a950
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea eax, [ebp - 0x24]
and dword [eax], 0
push eax
push 0
push 0
push 0x42ab90
call sub.shell32.dll_SHGetKnownFolderPath
test eax, eax
je 0x4051ea
lea ecx, [ebp - 0x34]
call fcn.00401334
and dword [ebp - 0x10], 0
push 8
pop ecx
call fcn.00402224
movsd xmm0, qword [ebp - 0x34]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 4], eax
mov dword [ecx + 8], 0x42a744
movsd qword [eax], xmm0
mov dword [ecx], 0x80000000
jmp 0x40522f
mov edx, dword [ebp - 0x24]
xor eax, eax
dec eax
cmp word [edx + eax*2 + 2], 0
lea eax, [eax + 1]
jne 0x4051f0
or dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x34]
push eax
call fcn.0041326a
pop eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], 1
push eax
call sub.ole32.dll_CoTaskMemFree
movsd xmm0, qword [ebp - 0x34]
mov eax, dword [ebp - 0x20]
movsd xmm1, qword [ebp - 0x2c]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x405336
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], ecx
mov dword [esi], esp
or dword [esi + 0xc], 0xffffffff
push 4
pop ebx
mov dword [esi + 8], 0x41a970
lea ecx, [esi + ebx]
mov edi, dword [ebp + 8]
lea edx, [ebp - 0x44]
mov eax, dword fs:[0]
mov dword [esi + 4], eax
mov dword fs:[0], ecx
mov ecx, dword [ebp + 0xc]
mov dword [edx + 4], edi
add ecx, edi
lea edi, [ebp - 0x34]
mov dword [edx + 8], ecx
and word [edx + 0xc], 0
mov ecx, edi
mov dword [edx], 1
call fcn.00401e46
mov ecx, dword [edi + 4]
and dword [esi + 0xc], 0
lea eax, [ebp + 0x10]
push ebx
push eax
push ebx
push 0
mov dword [ebp - 0x24], ecx
push ecx
push dword [ebp - 0x28]
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x4053ba
mov ecx, dword [ebp - 0x20]
call fcn.00401323
jmp 0x4053c0
mov eax, dword [ebp - 0x20]
mov byte [eax], 4
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
call fcn.00412739
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4088e7
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movdqu xmm0, xmmword [edx]
movdqa xmm2, xmm0
movdqa xmm1, xmm0
movdqa xmmword [ecx], xmm0
pslldq xmm1, 4
pslldq xmm2, 0xc
pxor xmm2, xmm1
aeskeygenassist xmm1, xmm0, 1
pshufd xmm1, xmm1, 0xff
pxor xmm1, xmm0
pslldq xmm0, 8
pxor xmm2, xmm0
pxor xmm1, xmm2
movdqa xmm0, xmm1
movdqa xmm2, xmm1
movdqa xmmword [ecx + 0x10], xmm1
pslldq xmm2, 4
pslldq xmm0, 0xc
pxor xmm0, xmm2
aeskeygenassist xmm2, xmm1, 2
pshufd xmm2, xmm2, 0xff
pxor xmm2, xmm1
pslldq xmm1, 8
pxor xmm0, xmm1
pxor xmm2, xmm0
movdqa xmm0, xmm2
movdqa xmm1, xmm2
movdqa xmmword [ecx + 0x20], xmm2
pslldq xmm1, 4
pslldq xmm0, 0xc
pxor xmm0, xmm1
aeskeygenassist xmm1, xmm2, 4
pshufd xmm1, xmm1, 0xff
pxor xmm1, xmm2
pslldq xmm2, 8
pxor xmm0, xmm2
pxor xmm1, xmm0
movdqa xmm0, xmm1
movdqa xmm2, xmm1
movdqa xmmword [ecx + 0x30], xmm1
pslldq xmm2, 4
pslldq xmm0, 0xc
pxor xmm0, xmm2
aeskeygenassist xmm2, xmm1, 8
pshufd xmm2, xmm2, 0xff
pxor xmm2, xmm1
pslldq xmm1, 8
pxor xmm0, xmm1
pxor xmm2, xmm0
movdqa xmm0, xmm2
movdqa xmm1, xmm2
movdqa xmmword [ecx + 0x40], xmm2
pslldq xmm1, 4
pslldq xmm0, 0xc
pxor xmm0, xmm1
aeskeygenassist xmm1, xmm2, 0x10
pshufd xmm1, xmm1, 0xff
pxor xmm1, xmm2
pslldq xmm2, 8
pxor xmm0, xmm2
pxor xmm1, xmm0
movdqa xmm0, xmm1
movdqa xmm2, xmm1
movdqa xmmword [ecx + 0x50], xmm1
pslldq xmm2, 4
pslldq xmm0, 0xc
pxor xmm0, xmm2
aeskeygenassist xmm2, xmm1, 0x20
pshufd xmm2, xmm2, 0xff
pxor xmm2, xmm1
pslldq xmm1, 8
pxor xmm0, xmm1
pxor xmm2, xmm0
movdqa xmm0, xmm2
movdqa xmm1, xmm2
movdqa xmmword [ecx + 0x60], xmm2
pslldq xmm1, 4
pslldq xmm0, 0xc
pxor xmm0, xmm1
aeskeygenassist xmm1, xmm2, 0x40
pshufd xmm1, xmm1, 0xff
pxor xmm1, xmm2
pslldq xmm2, 8
pxor xmm0, xmm2
pxor xmm1, xmm0
movdqa xmm0, xmm1
movdqa xmm2, xmm1
movdqa xmmword [ecx + 0x70], xmm1
pslldq xmm2, 4
pslldq xmm0, 0xc
pxor xmm0, xmm2
aeskeygenassist xmm2, xmm1, 0x80
pshufd xmm2, xmm2, 0xff
pxor xmm2, xmm1
pslldq xmm1, 8
pxor xmm0, xmm1
pxor xmm2, xmm0
movdqa xmm0, xmm2
movdqa xmm1, xmm2
movdqa xmmword [ecx + 0x80], xmm2
pslldq xmm1, 4
pslldq xmm0, 0xc
pxor xmm0, xmm1
aeskeygenassist xmm1, xmm2, 0x1b
pshufd xmm1, xmm1, 0xff
pxor xmm1, xmm2
pslldq xmm2, 8
pxor xmm0, xmm2
pxor xmm1, xmm0
movdqa xmm0, xmm1
movdqa xmm2, xmm1
movdqa xmmword [ecx + 0x90], xmm1
pslldq xmm2, 4
pslldq xmm0, 0xc
pxor xmm0, xmm2
aeskeygenassist xmm2, xmm1, 0x36
pshufd xmm2, xmm2, 0xff
pxor xmm2, xmm1
pslldq xmm1, 8
pxor xmm0, xmm1
pxor xmm2, xmm0
movdqa xmmword [ecx + 0xa0], xmm2
ret
Function at 0x40aebe
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
mov edi, edx
lea eax, [edx + eax*2]
mov dword [esp], eax
xor eax, eax
cmp edi, dword [esp]
je 0x40af1e
movzx edx, byte [edi + 1]
cmp byte [edi], ch
lea ebx, [edi + 2]
lea esi, [eax + edx]
jne 0x40af04
cmp eax, esi
ja 0x40af67
cmp esi, dword [esp + 0x20]
ja 0x40af57
add eax, dword [esp + 0x1c]
test edx, edx
je 0x40af0c
dec edx
cmp byte [eax], cl
lea eax, [eax + 1]
jne 0x40aef6
jmp 0x40af12
mov edi, ebx
mov eax, esi
jbe 0x40aed5
jmp 0x40af1e
mov edi, ebx
mov eax, esi
jmp 0x40aed5
xor eax, eax
and al, 1
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [esp + 0x28]
movzx ecx, cx
mov al, 1
add edi, ebp
cmp ebp, edi
je 0x40af14
movzx edx, byte [ebp]
lea esi, [ebp + 1]
test dl, dl
js 0x40af3c
mov ebp, esi
jmp 0x40af4f
cmp esi, edi
je 0x40af75
movzx esi, byte [ebp + 1]
and edx, 0x7f
add ebp, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x40af14
xor al, 1
jmp 0x40af29
mov edx, dword [esp + 0x20]
mov ecx, esi
push 0x42c088
call fcn.00429240
mov ecx, eax
mov edx, esi
push 0x42c088
call fcn.004293a5
mov ecx, 0x42c078
call fcn.00429466
Function at 0x411c29
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, dword [esp + 0x24]
mov edi, dword [edx + 4]
mov ebp, dword [edx]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edx
mov eax, ebx
rol ebx, 0xe
mov esi, edi
mov ecx, ebp
mov dword [esp], ebp
rol ebp, 0xe
rol eax, 0x19
rol esi, 0xe
rol ecx, 0x19
xor ebx, eax
mov eax, edi
xor ebp, ecx
rol eax, 0x19
xor esi, eax
mov eax, dword [edx + 8]
mov ecx, eax
mov edx, eax
rol ecx, 0x19
rol edx, 0xe
xor edx, ecx
mov ecx, dword [esp + 0x24]
shr ecx, 3
xor ecx, ebx
mov ebx, dword [esp]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 4]
shr ebx, 3
xor ebx, ebp
mov ebp, dword [esp + 0x2c]
add ebx, edi
shr edi, 3
xor edi, esi
add edi, eax
shr eax, 3
xor eax, edx
mov edx, dword [ebp + 4]
add eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x28]
mov esi, edx
add ebx, dword [ecx]
add edi, dword [ecx + 4]
add eax, dword [ecx + 8]
mov ecx, edx
rol esi, 0xd
shr edx, 0xa
rol ecx, 0xf
xor esi, ecx
xor edx, esi
add edx, eax
mov eax, dword [ebp]
mov ecx, eax
mov esi, eax
shr eax, 0xa
rol ecx, 0xf
rol esi, 0xd
xor esi, ecx
mov ecx, edx
xor eax, esi
mov esi, edx
rol ecx, 0xf
rol esi, 0xd
add eax, edi
xor esi, ecx
mov ecx, edx
mov edi, eax
shr ecx, 0xa
rol edi, 0xd
xor ecx, esi
mov esi, eax
rol esi, 0xf
add ecx, ebx
xor edi, esi
mov esi, eax
shr esi, 0xa
xor esi, edi
mov edi, dword [esp]
add edi, dword [ebp + 0xc]
add edi, dword [esp + 8]
add edi, esi
mov esi, dword [esp + 0xc]
mov dword [esi], edi
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4180f6
Capabilities:
Terminate process

Disassembly:
call fcn.00415634
call 0x418100
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x41b4b5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x41b4f4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41b4f4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41b4f4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41b4f4
cmp dword [ecx + 0x74], 0xe
jbe 0x41b4f4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x422676
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 0x422713
push ebx
push esi
call fcn.0042263f
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.00422588
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4226c0
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x422712
push edi
push eax
call fcn.00423276
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4226e0
call fcn.004211b1
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x422711
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00422588
add esp, 0x20
test eax, eax
jne 0x4226ff
push edi
call fcn.004211b1
jmp 0x422707
push ebx
call fcn.004211b1
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 0x4239f9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4322a8
push 0x4322a0
push str.FlsAlloc
push 0x1e
call fcn.004238ba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x423a2d
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a1b4]
call esi
jmp 0x423a33
call dword [sym.imp.kernel32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x423a77
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4322b8
push 0x4322b0
push str.FlsGetValue
push 0x20
call fcn.004238ba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x423aae
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a1b4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.kernel32.dll_TlsGetValue]
Function at 0x428f30
Capabilities:
Parse pe header

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

Function at 0x10018e0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x10018f3
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10018ef
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x1001920
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x100195f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1001955
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1001961
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1001945
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10004130
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov esi, dword [ebp + 8]
test byte [0x1001405c], 8
je 0x10004165
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str._p._n
mov dword [esp + 8], str.BackgroundCopyJob_Cancel
mov dword [esp], 3
call sym._wine_dbg_log_4
lea edi, [esi + 0x58]
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov eax, dword [esi + 0x48]
lea ecx, [eax - 9]
mov ebx, 0x80200002
cmp ecx, 0xfffffffd
ja 0x100042f7
dec eax
cmp eax, 1
ja 0x100041d9
mov dword [esi + 0x48], 8
mov eax, dword [esi + 0x130]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
mov eax, dword [esi + 0x134]
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [ebp - 0x14], edi
lea ebx, [esi + 0x28]
mov esi, dword [esi + 0x28]
cmp esi, ebx
je 0x100042e0
mov dword [ebp - 0x10], 0
jmp 0x1000420a
mov esi, dword [esi]
cmp esi, ebx
je 0x100042e7
cmp word [esi - 0x208], 0
je 0x10004270
lea edi, [esi - 0x208]
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_DeleteFileW]
sub esp, 4
test eax, eax
jne 0x10004270
mov dword [ebp - 0x10], 0x20001a
test byte [0x1001405c], 4
je 0x10004270
mov ecx, edi
call dbg.debugstr_w
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x34]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Couldnt_delete__s___lu__n
mov dword [esp + 8], str.BackgroundCopyJob_Cancel
mov dword [esp], 2
call sym._wine_dbg_log_4
nop
mov eax, dword [esi - 0x224]
test eax, eax
je 0x10004200
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
sub esp, 4
test eax, eax
jne 0x10004200
mov dword [ebp - 0x10], 0x20001a
test byte [0x1001405c], 4
je 0x10004200
mov ecx, dword [esi - 0x224]
call dbg.debugstr_w
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x34]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Couldnt_delete__s___lu__n
mov dword [esp + 8], str.BackgroundCopyJob_Cancel
mov dword [esp], 2
call sym._wine_dbg_log_4
jmp 0x10004200
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], 8
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x10004310
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov esi, dword [ebp + 8]
test byte [0x1001405c], 8
je 0x10004345
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str._p._n
mov dword [esp + 8], str.BackgroundCopyJob_Complete
mov dword [esp], 3
call sym._wine_dbg_log_4
lea eax, [esi + 0x58]
mov dword [ebp - 0x14], eax
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov eax, dword [esi + 0x48]
add eax, 0xfffffff7
mov dword [ebp - 0x10], 0x80200002
cmp eax, 0xfffffffd
ja 0x1000441b
mov eax, dword [ebp + 8]
lea ebx, [eax + 0x28]
mov esi, dword [eax + 0x28]
cmp esi, ebx
je 0x10004414
mov dword [ebp - 0x10], 0
jmp 0x1000439d
mov dword [ebp - 0x10], 0x200017
mov esi, dword [esi]
cmp esi, ebx
je 0x1000441b
cmp dword [esi - 0x210], 0
je 0x10004390
lea edi, [esi - 0x208]
mov eax, dword [esi - 0x224]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 8], 0xb
call dword [sym.imp.kernel32.dll_MoveFileExW]
sub esp, 0xc
test eax, eax
jne 0x10004397
test byte [0x1001405c], 2
je 0x10004390
mov ecx, edi
call dbg.debugstr_w
mov edi, eax
mov ecx, dword [esi - 0x224]
call dbg.debugstr_w
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.Couldnt_rename_file__s_____s_n
mov dword [esp + 8], str.BackgroundCopyJob_Complete
mov dword [esp], 1
call sym._wine_dbg_log_4
jmp 0x10004390
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], 7
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
mov eax, dword [ebp - 0x10]
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x10006e50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.ucrtbase.dll_strlen]
add esp, 4
test eax, eax
je 0x10006e9d
mov esi, eax
xor eax, eax
cmp byte [edi + esi - 1], 0xa
je 0x10006e7a
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov ecx, 0x10014194
lock xchg dword [ecx], eax
push 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
add esp, 4
push eax
push esi
push 1
push edi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
jmp 0x10006e9f
xor eax, eax
pop esi
pop edi
pop ebp
ret