joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa709b0
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 + 0xadf578]
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 0xa709f0
cmp byte [ebx], 0xa
jne 0xa709f0
or byte [eax + edi + 0x28], 4
jmp 0xa709f5
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0xa70af3
mov al, byte [edx]
cmp al, 0x1a
je 0xa70ad5
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0xa70a24
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0xa70a49
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0xa70a53
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 0xa70a06
jmp 0xa70af3
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 0xa70ad0
cmp dword [ebp - 0xc], 0
je 0xa70ad0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0xadf578]
test byte [eax + edi + 0x28], 0x48
je 0xa70aaa
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0xa70a95
mov byte [esi], dl
jmp 0xa70aa6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0xadf578]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0xa70af3
cmp byte [ebp - 1], 0xa
jne 0xa70ab9
cmp esi, ebx
jne 0xa70ab9
mov byte [esi], 0xa
jmp 0xa70af2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00a67027
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0xa70af3
mov byte [esi], 0xd
jmp 0xa70af2
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0xadf578]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0xa70aef
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0xa70af3
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0xa70afc
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 + 0xadf578]
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 0xa70b3f
cmp word [esi], dx
jne 0xa70b3f
or byte [edi + eax + 0x28], 4
jmp 0xa70b44
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 0xa70c7d
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 0xa70c5d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0xa70b86
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0xa70bbc
cmp eax, edx
jae 0xa70bc8
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 0xa70b5e
jmp 0xa70c7d
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 0xa70c59
cmp dword [ebp - 0x14], 0
je 0xa70c59
mov eax, dword [ebx*4 + 0xadf578]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0xa70c31
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0xa70c77
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0xadf578]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0xadf578]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0xadf578]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0xa70c7a
pop ebx
cmp word [ebp - 4], bx
jne 0xa70c42
cmp esi, dword [ebp + 0xc]
jne 0xa70c42
mov word [esi], bx
jmp 0xa70c7a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00a67027
add esp, 0x10
cmp word [ebp - 4], bx
je 0xa70c7d
push 0xd
jmp 0xa70c76
mov ecx, dword [ebx*4 + 0xadf578]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0xa70c74
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0xa70c7d
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 0xa7149e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a7130f
Function at 0xa7251a
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.00a72496
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0xa72692
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0xa72692
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0xa72641
jg 0xa72573
test eax, eax
je 0xa72637
push 1
push 0x1000
call fcn.00a5c2de
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0xa72599
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0xa7262e
push 0x8000
push ebx
call fcn.00a5a99d
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 0xa725c5
jg 0xa725c0
cmp ecx, 0x1000
jb 0xa725c5
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00a71d96
add esp, 0x10
cmp eax, 0xffffffff
je 0xa7260a
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 0xa725c0
jl 0xa725f1
test ecx, ecx
jne 0xa725b2
push dword [ebp - 0xc]
push ebx
call fcn.00a5a99d
push esi
call fcn.00a5d005
add esp, 0xc
xor edi, edi
jmp 0xa726a3
cmp byte [edi + 0x24], 0
je 0xa72621
cmp dword [edi + 0x20], 5
jne 0xa72621
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0xa7262c
mov edi, dword [edi + 0x18]
jmp 0xa7262e
xor edi, edi
push esi
call fcn.00a5d005
pop ecx
jmp 0xa726a3
test ecx, ecx
jg 0xa72603
jl 0xa72641
test eax, eax
jae 0xa72603
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00a67027
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0xa72664
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0xa72603
jmp 0xa7269b
push ebx
call fcn.00a6b849
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0xa72603
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 0xa726a3
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0xa726a0
mov edi, dword [edi + 0x18]
jmp 0xa726a3
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00a67027
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0xa7849f
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 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x409b38
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x409b47
pop dword [ebp - 0x18]
mov eax, 0x409b47
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x62a79e22
add dword [ebp - 0x28], 0xebaaa729
mov dword [ebp - 0x24], 0xbd56661a
add dword [ebp - 0x24], 0x74dce62b
mov dword [ebp - 0x20], 0x6a88edf8
sub dword [ebp - 0x20], 0x1e3ca9ca
mov dword [ebp - 0x1c], 0xfb43adf1
sub dword [ebp - 0x1c], 0xfb43adf1
lea eax, [ebp - 0x28]
push eax
mov eax, 0x810d6d9
sub eax, 0x7d00685
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x1335389f
add dword [ebp - 0x28], 0x613d30b7
mov dword [ebp - 0x24], 0x8a4df0cd
add dword [ebp - 0x24], 0xb71e70a8
mov dword [ebp - 0x20], 0x9ab6f199
add dword [ebp - 0x20], 0xc8b87ad3
mov dword [ebp - 0x1c], 0xcda4de99
add dword [ebp - 0x1c], 0x325b2167
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x209afb5
add eax, 0xfe372097
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3b63e
push 0
call eax
mov ecx, 0x4f64
mov ebx, eax
mov esi, 0x9c5e5cf9
sub esi, 0x9c1cacf9
add esi, dword [ebp - 0x18]
mov edx, 0x2c6d69df
sub edx, 0x50f76e0a
mov dword [ebp - 0x14], 0xdf6cb2c5
mov edi, dword [esi]
sub dword [ebp - 0x10], edx
xor edi, edx
add dword [ebp - 0x14], 0xa073532c
mov dword [ebx], edi
add dword [ebp - 0xc], 0xfb42eeb
add ebx, 0xff61f71d
sub ebx, 0xff61f719
add esi, 0xfd6fbfcf
sub esi, 0xfd6fbfcb
loop 0x409c5e
add eax, 0x88d697cc
add eax, 0x772a9897
xor ebx, ebx
add ebx, eax
add eax, 0xaaffe945
sub eax, 0xaaffe940
mov ecx, 0xb79e337f
sub ecx, 0xb75e337f
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x402ae6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea eax, [ebp - 0x20c]
push 0x4012a4
push eax
call ebx
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jne 0x402b12
mov eax, 0x40152c
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00403529
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
push edi
push 2
push edi
push edi
lea eax, [ebp - 0x20c]
push edi
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402ba8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp + 8]
call esi
inc eax
push eax
push dword [ebp + 8]
push 1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x401520
push dword [ebp - 4]
call edi
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call ebx
lea eax, [ebp - 0x108]
push eax
call fcn.00403560
lea eax, [ebp - 0x108]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push 0x401530
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
pop ebx
leave
ret 8

Function at 0x402bae
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
lea eax, [ebp - 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
xor ebx, ebx
push 0x2001f
push ebx
push 0x401550
push SysStringLen
call esi
test eax, eax
jne 0x402c51
lea eax, [ebp - 8]
push edi
push eax
push 1
mov edi, 0x40152c
push ebx
push edi
push dword [ebp - 4]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x402c4b
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x104
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
push ebx
push 0x401540
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402c38
push 1
lea eax, [ebp - 0x110]
push 0x4014ac
push eax
jmp loc.0040d000
push dword [ebp - 8]
call esi
test ebx, ebx
je 0x402c4b
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x54c620
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xef000]
push edi
jmp 0x54c63a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x54c641
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54c630
mov eax, 1
add ebx, ebx
jne 0x54c653
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x54c664
jne 0x54c683
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54c683
dec eax
add ebx, ebx
jne 0x54c670
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x54c648
add ebx, ebx
jne 0x54c67f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x54c6d5
xor ecx, ecx
sub eax, 3
jb 0x54c69b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x54c70a
sar eax, 1
mov ebp, eax
jmp 0x54c6a6
add ebx, ebx
jne 0x54c6a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54c674
inc ecx
add ebx, ebx
jne 0x54c6b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x54c674
add ebx, ebx
jne 0x54c6c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x54c6b6
jne 0x54c6d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x54c6b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x54c6f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x54c6e6
jmp 0x54c636
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x54c6f4
add edi, ecx
jmp 0x54c636
pop esi
mov edi, esi
mov ecx, 0x2dbb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x54c712
cmp byte [edi], 0x19
jne 0x54c712
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x54c717
lea edi, [esi + 0x149000]
mov eax, dword [edi]
or eax, eax
je 0x54c78f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1b103c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1b1188]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x54c744
mov ecx, edi
jns 0x54c773
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1b1190]
or eax, eax
je 0x54c789
mov dword [ebx], eax
add ebx, 4
jmp 0x54c761
call dword [esi + 0x1b118c]
mov ebp, dword [esi + 0x1b1194]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x54c7c3
sub esp, 0xffffff80
jmp 0x4931c3
Function at 0x10001800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x10006094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x100019c0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x10006094]
movzx eax, al
bt eax, esi
jae 0x10001a20
mov ecx, dword [0x10006084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x100018c5
test byte [0x10002030], 8
jne 0x10001960
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10002040], 8
jne 0x10001910
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10001894
cmp esi, 3
jbe 0x100018d0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x100040cc]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10001894
mov ecx, dword [0x10006094]
test ecx, ecx
je 0x10001a00
mov dword [esp], 0x10002040
call dword [0x10006094]
test al, 8
je 0x1000186b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x1000186b
mov ebx, dword [0x10006094]
test ebx, ebx
je 0x100019e0
mov dword [esp], 0x10002030
call dword [0x10006094]
test al, 8
je 0x10001856
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x1000185e
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10006094
call sym._load_func.part.0
jmp 0x1000181d
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10006094
call sym._load_func.part.0
jmp 0x1000196a
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10006094
call sym._load_func.part.0
jmp 0x1000191e
mov eax, 0xffffffff
jmp 0x100018c5
Function at 0x408fc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x12c
mov eax, dword [0x447d10]
mov dword [esp + 0x128], eax
mov al, byte [0x449d54]
test al, al
jne 0x4090da
lea eax, [esp]
push eax
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea ecx, [esp + 4]
push ecx
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x409031
mov eax, dword [esp + 4]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
jmp 0x409043
lea eax, [esp + 0x24]
push 0x4398b8
push eax
call fcn.00416f3f
add esp, 8
mov eax, dword [esp]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [esp + 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409053
sub eax, edx
push eax
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x10]
call fcn.00403ef0
push 8
push str.FB23OF_
lea ecx, [esp + 0x10]
call fcn.00408870
push 0x16
push 0x439894
lea ecx, [esp + 0x10]
call fcn.00408870
push 1
push 0x439890
lea ecx, [esp + 0x10]
call fcn.00408870
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x4090aa
lea eax, [esp + 0xc]
push 0x410
push eax
push 0x449388
call fcn.004171a0
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, 0x10
mov byte [0x449d54], 1
jb 0x4090da
mov eax, dword [esp + 0xc]
push eax
call fcn.0042cfc9
add esp, 4
mov ecx, dword [esp + 0x128]
mov eax, 0x449388
call fcn.004164ae
add esp, 0x12c
ret

Function at 0x40c553
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40c568
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40c57a
xor eax, eax
jmp 0x40c5ac
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40c59e
cmp esi, eax
jae 0x40c576
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40c590
cmp esi, eax
jae 0x40c576
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x40b0e0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x569a18
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x5a53f4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], ax
call fcn.0040a900
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40b140
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.0040aa60
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], dx
call fcn.0040a900
cmp dword [esp + 0x28], 8
jb 0x40b18d
mov eax, dword [esp + 0x14]
push eax
call fcn.005303ae
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret

Function at 0x40de20
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x5a53f4]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
call fcn.00534b20
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 5
jne 0x40de6c
mov eax, 1
cmp dword [esp + 8], eax
je 0x40de6e
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.005308cb
add esp, 0x118
ret

Function at 0x40df70
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x5a53f4]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x118
lea eax, [esp + 8]
push 0
push eax
call fcn.00534b20
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40dfc5
mov al, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.005308cb
add esp, 0x120
ret
cmp dword [esp + 4], 6
jb 0x40dfd7
mov eax, 1
cmp dword [esp + 8], eax
jae 0x40dfd9
xor al, al
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.005308cb
add esp, 0x120
ret

Function at 0x412bec
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
pop edi
push edi
push ecx
add esp, 4
and edi, 0x14a7d
pop edi
mov dword [ebp - 0x20a4], 0xffffffff
push edi
jmp 0x412bc4
and edi, 0x14141
pop edi
push edx
push eax
add esp, 4
or edx, 0x11ef0
or edx, 0xf42
call 0x412bec
add byte [ebx + edi + 0x40], al
dec edi
xor al, 0x3b
inc esp
xor eax, 0xc483414b
add al, 0x5a
mov ecx, dword [ebp - 0x3f0]
mov dword [ebp - 0x500], ecx
jmp 0x412c0d
Function at 0x413910
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
rol byte [eax], 1
add byte [esi - 0x75], bl
test dword [eax - 0x74000008], esi
dec eax
sbb byte [ecx - 0x31f73], cl
inc edi
test dword [eax + 0xfffff8], esp
add byte [eax], al
add byte [ebx - 0x31f6b], cl
dec dword [ecx - 0x15ef6b]
inc dword [ebx - 0x15ef43]
inc dword [eax]
Function at 0x413f10
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push esi
add esp, 4
call 0x413f21
add byte [edx], bh
dec ebx
inc ebx
inc ebp
aas
xor al, 0x4f
add esp, 4
add ebx, 0xbd7f
call 0x413f38
add byte [edx + 0x44], cl
dec esi
cmp eax, 0x4b4e413a
add esp, 4
jmp 0x413f40
pop ebx
movzx eax, word [ebp - 0x34]
test eax, eax
jne 0x413f5e
movzx ecx, word [ebp - 0x218]
movzx edx, word [ebp - 0x34]
sub ecx, edx
mov dword [ebp - 0x1604], ecx
jmp 0x413fb8
movzx eax, word [ebp - 0x218]
movzx ecx, word [ebp - 0x34]
cmp eax, ecx
je 0x413e86
movzx edx, word [ebp - 0x218]
xor edx, 0x20
movzx eax, word [ebp - 0x34]
cmp edx, eax
je 0x413e86
movzx ecx, word [ebp - 0x218]
movzx edx, word [ebp - 0x34]
cmp ecx, edx
jge 0x413fa2
mov dword [ebp - 0x1600], 0xffffffff
jmp 0x413fac
mov dword [ebp - 0x1600], 1
mov eax, dword [ebp - 0x1600]
mov dword [ebp - 0x1604], eax
cmp dword [ebp - 0x1604], 0
jne 0x414001
push ebx
add ebx, 0x1041d
add ebx, 0x4caf
and ebx, 0x6889
call 0x413fe3
add byte [ecx], bh
push eax
inc ebp
dec edx
cmp dword [esi + 0x4c], ecx
cmp esi, dword [ebx]
add esp, 4
pop ebx
push eax
push ecx
add esp, 4
and eax, 0x10d7d
pop eax
mov ecx, dword [ebp - 0x50c]
mov dword [ebp - 0x31c], ecx
jmp 0x414069
push ecx
push eax
add esp, 4
and ecx, 0x9e6
add ecx, 0x34ba
sub ecx, 0x11fe9
and ecx, 0xe0ed
pop ecx
push edi
sub edi, 0x135ad
pop edi
push esi
push ebx
add esp, 4
or esi, 0x86c7
pop esi
mov edx, dword [ebp - 0x50c]
mov eax, dword [edx]
mov dword [ebp - 0x50c], eax
mov ecx, dword [ebp - 0x50c]
cmp ecx, dword [ebp - 0xcb4]
je 0x41405f
mov edx, dword [ebp - 0x50c]
cmp dword [edx + 0x30], 0
jne 0x413e2a
mov dword [ebp - 0x31c], 0