joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003e481
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x1003e4cd
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1003e4bc
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1003e4b5
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1003e492
pop ebx
push dword [esi]
push 0
push dword [0x100a87b8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret

Function at 0x1003e4cf
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
imul edi, ecx, 0x2c
add edi, dword [0x100a8b60]
mov al, byte [edi + 0x14]
mov esi, dword [edi]
and al, 1
je 0x1003e4eb
sub esi, 5
movzx eax, al
lea ebx, [eax*2 + 5]
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1003e50c
push 0xa
pop eax
jmp 0x1003e54b
mov byte [esi], 0xe9
mov eax, dword [edi + 4]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
test byte [edi + 0x14], 1
je 0x1003e527
mov eax, dword [edi]
mov word [eax], 0xf9eb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [edi + 0x14], 6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1003ea22
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x100a8b54]
push esi
xor esi, esi
jmp 0x1003ea34
cmp dword [edx + 4], esi
jne 0x1003ea88
mov edx, dword [edx]
test edx, edx
jne 0x1003ea2d
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x1003ea84
push edi
push 0x20
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x20
add ecx, 0x20
mov esi, eax
cmp edi, 0xfe0
jbe 0x1003ea5b
mov eax, dword [0x100a8b54]
mov dword [edx], eax
mov dword [0x100a8b54], edx
pop edi
test edx, edx
jne 0x1003ea88
xor eax, eax
pop esi
ret
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
Function at 0x10042a90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x10042a9c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.10042ab0

Function at 0x10042d80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x10042da5
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x10042dbd
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x10042dec
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x10042e2e
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x10042f02
sub edx, 0x10000
js 0x10042f02
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x10042e14
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x10042e14
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x10042e85
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x10042e82
add edx, 8
jne 0x10042e69
jmp 0x10042ef3
add edx, 4
test eax, 0xffff
jne 0x10042e92
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x10042ef3
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x10042ec6
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x10042e14
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x10042f02
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x10042e14
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x10042f13
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x100521c7
Capabilities:
Parse pe header

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

Function at 0x100564c6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10089ddc
push 0x10089dd4
push str.FlsAlloc
push 0x1f
call fcn.1005638e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100564fa
push dword [ebp + 8]
mov ecx, esi
call dword [0x10066228]
call esi
jmp 0x10056500
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10056544
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10089dec
push 0x10089de4
push str.FlsGetValue
push 0x21
call fcn.1005638e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005657b
push dword [ebp + 8]
mov ecx, esi
call dword [0x10066228]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10056583
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10089df4
push 0x10089dec
push str.FlsSetValue
push 0x22
call fcn.1005638e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100565bd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10066228]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100597b9
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 0x10059856
push ebx
push esi
call fcn.10059782
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.100586a1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10059803
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10059855
push edi
push eax
call fcn.10054e8f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10059823
call fcn.10054c7f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10059854
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100586a1
add esp, 0x20
test eax, eax
jne 0x10059842
push edi
call fcn.10054c7f
jmp 0x1005984a
push ebx
call fcn.10054c7f
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 0x1005ba66
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100532cc
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005bad5
cmp esi, dword [ebp - 4]
je 0x1005bad0
cmp dword [ebp + 0xc], 0
je 0x1005bad0
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1005baad
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1005b5b8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1005bad7
xor eax, eax
inc eax
jmp 0x1005bad7
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1005bb3c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100a6080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.100532cc
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100532cc
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1005bbb3
cmp word [ecx], dx
je 0x1005bbb3
mov eax, dword [0x1008a43c]
push edi
dec eax
push eax
push 0x1008a328
call fcn.1005badb
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1005bc26
cmp word [eax], dx
je 0x1005bc26
mov eax, dword [edi]
test eax, eax
je 0x1005bbd7
cmp word [eax], dx
je 0x1005bbd7
lea eax, [ebp - 0x10]
push eax
call fcn.1005b4be
jmp 0x1005bbe0
lea eax, [ebp - 0x10]
push eax
call fcn.1005b559
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1005bc50
mov eax, dword [0x1008a324]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1008a018
call fcn.1005badb
add esp, 0xc
test al, al
je 0x1005bc50
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1005bc1b
cmp word [eax], di
je 0x1005bc1b
lea eax, [ebp - 0x10]
push eax
call fcn.1005b4be
pop ecx
jmp 0x1005bc52
lea eax, [ebp - 0x10]
push eax
call fcn.1005b559
jmp 0x1005bc18
mov eax, dword [edi]
test eax, eax
je 0x1005bc3d
cmp word [eax], dx
je 0x1005bc3d
lea eax, [ebp - 0x10]
push eax
call fcn.1005b473
pop ecx
jmp 0x1005bc50
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1005bd1b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1005b960
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1005bd1b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1005bd1b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1005bd1b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1005bca8
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100566c3
test ebx, ebx
je 0x1005bd16
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100566c3
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005bd1b
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005bd1b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1005f761
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1005bd1d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10044977
leave
ret
Function at 0x10061790
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bdf0
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x140], ecx
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], esi
cmp dword [ebx + 4], esi
jbe 0x401f61
nop
mov eax, edi
lea esi, [ebp - 0x138]
and eax, 1
mov ecx, ebx
lea esi, [esi + eax*2]
call fcn.00402400
movzx eax, word [eax + edi*2]
push eax
call fcn.0042ac48
xor word [esi], ax
inc edi
add esp, 4
cmp edi, dword [ebx + 4]
jb 0x401f30
mov esi, dword [ebp - 0x138]
mov eax, 4
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
mov word [ebp - 0x1a], ax
lea ecx, [ebp - 0x12c]
lea eax, [ebp - 0x128]
mov byte [ebp - 0x18], 1
push 1
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.00406610
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
cmove eax, dword [ebp - 0x12c]
xor ecx, ecx
mov word [eax + 4], cx
push str.Local_
lea eax, [ebp - 0x134]
mov dword [ebp - 4], ecx
push 0x44eac8
push eax
call fcn.00406410
push str.mutex_file_
lea eax, [ebp - 0x134]
push 0x44eac8
push eax
call fcn.00406410
push esi
lea eax, [ebp - 0x134]
push str.0x_p
push eax
call fcn.00406410
mov esi, dword [ebp - 0x13c]
lea eax, [ebp - 0x128]
mov ecx, dword [ebp - 0x140]
add esp, 0x24
cmp byte [ebp - 0x18], 0
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
push esi
call fcn.00408f10
test al, al
jne 0x402042
push 0x44a728
mov ecx, esi
call fcn.00401e30
xor bl, bl
jmp 0x402044
mov bl, 1
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40206d
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x40206d
push eax
call fcn.00429f67
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004224f6
mov esp, ebp
pop ebp
ret 8
Function at 0x4025c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov cl, byte [edi + 0x11c]
lea eax, [edi + 0xc]
test cl, cl
jne 0x4025e7
mov eax, dword [edi + 8]
cmp word [eax + 6], 0x3a
jne 0x40267f
lea eax, [edi + 0xc]
test cl, cl
jne 0x4025fc
mov eax, dword [edi + 8]
cmp word [eax + 8], 0
jne 0x40267f
push edi
lea ecx, [ebp - 0x24c]
call fcn.004060b0
push 0x44a758
lea eax, [ebp - 0x24c]
push 0x44eac8
push eax
call fcn.00406410
add esp, 0xc
lea eax, [ebp - 0x240]
cmp byte [ebp - 0x130], 0
cmove eax, dword [ebp - 0x244]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402651
xor bl, bl
jmp 0x402657
shr ebx, 4
and bl, 1
cmp byte [ebp - 0x130], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4027a0
mov eax, dword [ebp - 0x244]
lea ecx, [ebp - 0x240]
jmp 0x402793
push edi
lea ecx, [ebp - 0x128]
call fcn.004060b0
mov al, byte [edi + 0x11c]
lea ecx, [edi + 0xc]
test al, al
jne 0x40269b
mov ecx, dword [edi + 8]
cmp word [ecx + 6], 0x3a
jne 0x4026c4
lea ecx, [edi + 0xc]
test al, al
jne 0x4026ac
mov ecx, dword [edi + 8]
cmp word [ecx + 8], 0x5c
jne 0x4026c4
lea ecx, [edi + 0xc]
test al, al
jne 0x4026bd
mov ecx, dword [edi + 8]
cmp word [ecx + 0xa], 0
je 0x40270c
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40270c
test al, al
lea eax, [edi + 0xc]
jne 0x4026d5
mov eax, dword [edi + 8]
cmp word [eax + ecx*2 + 2], 0x5c
jne 0x40270c
push esi
lea esi, [ecx - 1]
push ecx
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x124], esi
call fcn.00406610
cmp byte [ebp - 0xc], 0
lea eax, [ebp - 0x11c]
cmove eax, dword [ebp - 0x120]
xor ecx, ecx
mov word [eax + esi*2 + 4], cx
pop esi
cmp byte [ebp - 0xc], 0
lea eax, [ebp - 0x11c]
cmove eax, dword [ebp - 0x120]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402732
xor bl, bl
jmp 0x402777
mov al, byte [edi + 0x11c]
lea ecx, [edi + 0xc]
test al, al
jne 0x402742
mov ecx, dword [edi + 8]
cmp word [ecx + 6], 0x3a
jne 0x402771
lea ecx, [edi + 0xc]
test al, al
jne 0x402753
mov ecx, dword [edi + 8]
cmp word [ecx + 8], 0x5c
jne 0x402771
test al, al
je 0x402763
add edi, 0xc
jmp 0x402766
mov edi, dword [edi + 8]
cmp word [edi + 0xa], 0
jne 0x402771
mov bl, 1
jmp 0x402777
shr ebx, 4
and bl, 1
cmp byte [ebp - 0xc], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4027a0
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
cmp eax, ecx
je 0x4027a0
push eax
call fcn.00429f67
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
xor ecx, ebp
pop ebx
call fcn.004224f6
mov esp, ebp
pop ebp
ret
Function at 0x402870
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bea0
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
mov ebx, dword [ebp + 8]
jne 0x4028b2
mov eax, dword [esi + 8]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x4028d0
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40298c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x11c], 0
mov edi, eax
lea eax, [esi + 0xc]
jne 0x4028f9
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40298c
shr eax, 4
not al
test al, 1
je 0x40298c
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x402924
mov eax, dword [esi + 8]
push 0
push 0
push 0
push 0
push 0
add eax, 4
lea ecx, [ebp - 0x134]
push eax
call fcn.00402110
lea eax, [ebp - 0x134]
mov dword [ebp - 4], 0
push eax
push 0x44a76c
push edi
mov ecx, ebx
call fcn.00407350
mov ecx, eax
call fcn.00407580
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x402988
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x402988
push eax
call fcn.00429f67
add esp, 4
xor al, al
jmp 0x40298e
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004224f6
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4029b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43beeb
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
call fcn.004025c0
test al, al
je 0x4029f3
mov al, 1
jmp 0x402b88
lea ecx, [ebp - 0x134]
call fcn.00406000
push 1
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.00406610
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
cmove eax, dword [ebp - 0x12c]
xor ecx, ecx
mov word [eax + 4], cx
lea eax, [ebp - 0x134]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00402bb0
test al, al
je 0x402ab9
cmp dword [ebp - 0x130], 2
jb 0x402aa1
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x128]
mov ecx, dword [ebp - 0x12c]
test bl, bl
cmove eax, ecx
movzx edx, word [eax + 6]
lea eax, [ebp - 0x128]
cmove eax, ecx
movzx eax, word [eax + 8]
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x128]
cmove eax, ecx
movzx eax, word [eax + 0xa]
cmp edx, 0x3a
jne 0x402aa1
cmp word [ebp - 0x25c], 0x5c
jne 0x402aa1
test ax, ax
je 0x402ab9
push 1
push 0
push edi
lea ecx, [ebp - 0x134]
call fcn.004029b0
test al, al
je 0x402b49
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x402ac8
mov eax, dword [esi + 8]
push 0
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402b4d
cmp byte [esi + 0x11c], al
lea eax, [esi + 0xc]
jne 0x402ae6
mov eax, dword [esi + 8]
push 0
push 0
push 0
push 0
push 0
add eax, 4
lea ecx, [ebp - 0x258]
push eax
call fcn.00402110
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 2
push eax
push 0x44a77c
mov ecx, edi
call fcn.004073e0
mov ecx, eax
call fcn.00407580
cmp byte [ebp - 0x13c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x402b49
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x24c]
cmp eax, ecx
je 0x402b49
push eax
call fcn.00429f67
add esp, 4
xor bl, bl
jmp 0x402b5d
mov ecx, esi
call fcn.00402d70
mov ecx, esi
call fcn.00402ce0
mov bl, 1
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x402b86
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x402b86
push eax
call fcn.00429f67
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004224f6
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4032c0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push edi
mov edi, ecx
push str.Wintrust.dll
mov byte [edi], 0
call esi
push str.Crypt32.dll
mov dword [edi + 4], eax
call esi
mov ecx, dword [edi + 4]
mov dword [edi + 8], eax
test ecx, ecx
je 0x4033ca
test eax, eax
je 0x4033ca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WinVerifyTrust
push ecx
call esi
push str.WTHelperProvDataFromStateData
push dword [edi + 4]
mov dword [edi + 0xc], eax
call esi
push str.WTHelperGetProvSignerFromChain
push dword [edi + 4]
mov dword [edi + 0x10], eax
call esi
push str.CertNameToStrW
push dword [edi + 8]
mov dword [edi + 0x14], eax
call esi
push str.CryptMsgClose
push dword [edi + 8]
mov dword [edi + 0x18], eax
call esi
push str.CryptMsgGetParam
push dword [edi + 8]
mov dword [edi + 0x20], eax
call esi
push str.CertCloseStore
push dword [edi + 8]
mov dword [edi + 0x1c], eax
call esi
push str.CertFindCertificateInStore
push dword [edi + 8]
mov dword [edi + 0x24], eax
call esi
push str.CertFreeCertificateContext
push dword [edi + 8]
mov dword [edi + 0x28], eax
call esi
push str.CertGetNameStringW
push dword [edi + 8]
mov dword [edi + 0x2c], eax
call esi
push str.CryptQueryObject
push dword [edi + 8]
mov dword [edi + 0x30], eax
call esi
cmp dword [edi + 0xc], 0
mov dword [edi + 0x34], eax
je 0x4033ca
cmp dword [edi + 0x10], 0
je 0x4033ca
cmp dword [edi + 0x14], 0
je 0x4033ca
cmp dword [edi + 0x18], 0
je 0x4033ca
cmp dword [edi + 0x20], 0
je 0x4033ca
cmp dword [edi + 0x1c], 0
je 0x4033ca
cmp dword [edi + 0x24], 0
je 0x4033ca
cmp dword [edi + 0x28], 0
je 0x4033ca
cmp dword [edi + 0x2c], 0
je 0x4033ca
cmp dword [edi + 0x30], 0
je 0x4033ca
test eax, eax
je 0x4033ca
mov byte [edi], 1
pop edi
pop esi
ret