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

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x40ef35
cmp byte [esi + 1], 0
je 0x40ef3d
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x40ef52
cmp byte [esi + 1], 0
je 0x40ef44
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x40ef5b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x40ef0e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x40ef5b
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x40ef6f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.00413280
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40ef8d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x40f0a1
jmp 0x40efb0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x40efc1
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x40efda
mov ebp, 0x404
cmp byte [esi], 0
je 0x40efff
cmp byte [esi + 1], 0
je 0x40f0a1
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x40f002
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x40f02a
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x40f024
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x40f050
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x40f03b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.004178f0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x40f0a1
lea eax, [ebp - 3]
test eax, eax
jl 0x40f08c
dec eax
cmp byte [eax + ebx], 0x50
jne 0x40f07c
cmp byte [eax + ebx + 1], 0x4b
jne 0x40f07c
cmp byte [eax + ebx + 2], 5
jne 0x40f07c
cmp byte [eax + ebx + 3], 6
je 0x40f082
test eax, eax
jge 0x40f060
jmp 0x40f08c
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x40f0a1
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x40efa4
push ebx
call fcn.004131a3
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x40f9d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x40f9ee
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x40f9e2
cmp dword [edi + 0x7c], ebx
je 0x40f9fd
call fcn.0040fdc0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0040f740
add esp, 0xc
test eax, eax
je 0x40fa24
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x84
call fcn.00413280
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40fa65
push 0x4000
call fcn.00413280
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x40fa72
push esi
call fcn.004131a3
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x40faba
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0040e8a0
test eax, eax
jne 0x40faba
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x40fae4
mov cl, byte [edi + 0x39]
mov byte [esi + 0x80], cl
jmp 0x40faed
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x80], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x70]
mov dword [esi + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmp ebp, ebx
je 0x40fb27
mov cl, byte [ebp]
cmp cl, bl
je 0x40fb27
call fcn.0040e590
add ebp, 1
jne 0x40fb16
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x40ff20
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x40ffc8
cmp dword [ebx + 4], 0xffffffff
jne 0x40ffc8
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ff50
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp ax, 0x5c
je 0x40ff89
cmp ax, 0x2f
je 0x40ff89
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40ff76
mov eax, dword [0x431768]
mov dword [edi], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea esi, [esp + 0x1c]
call fcn.0040ecf0
add esp, 8
test eax, eax
jne 0x40ffad
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ecx
ret 8
call fcn.0040f0c0
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop esi
pop ecx
ret 8
pop edi
mov eax, 0x1000000
pop esi
pop ecx
ret 8
Function at 0x4114f0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
mov ecx, eax
shr ecx, 4
xor ecx, esi
and ecx, 0xf0f0f0f
xor esi, ecx
shl ecx, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, esi
and ecx, 0xffff
xor esi, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, esi
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
add ecx, ecx
add ecx, ecx
xor esi, ecx
mov ecx, esi
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor ecx, esi
rol ecx, 1
mov esi, ecx
xor ecx, eax
and ecx, 0xaaaaaaaa
xor esi, ecx
xor ecx, eax
rol ecx, 1
push edi
mov edi, ecx
mov dword [esp + 0x10], 8
jmp 0x411570
mov eax, esi
ror eax, 4
xor eax, dword [edx]
add edx, 4
mov ecx, eax
shr ecx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x436490]
or ecx, dword [ebx*4 + 0x436690]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x436890]
and eax, 0x3f
or ecx, dword [eax*4 + 0x436a90]
mov eax, dword [edx]
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x436590]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x436790]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x436990]
and eax, 0x3f
or ebx, dword [eax*4 + 0x436b90]
add edx, 4
or ebx, ecx
xor edi, ebx
mov eax, edi
ror eax, 4
xor eax, dword [edx]
add edx, 4
mov ecx, eax
shr ecx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x436490]
or ecx, dword [ebx*4 + 0x436690]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x436890]
and eax, 0x3f
or ecx, dword [eax*4 + 0x436a90]
mov eax, dword [edx]
xor eax, edi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x436590]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x436790]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
or ebx, dword [ebp*4 + 0x436990]
and eax, 0x3f
or ebx, dword [eax*4 + 0x436b90]
add edx, 4
or ebx, ecx
xor esi, ebx
sub dword [esp + 0x10], 1
jne 0x411570
ror esi, 1
mov eax, esi
xor eax, edi
and eax, 0xaaaaaaaa
xor esi, eax
xor eax, edi
ror eax, 1
mov ecx, eax
shr ecx, 8
xor ecx, esi
and ecx, 0xff00ff
xor esi, ecx
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, esi
and ecx, 0x33333333
xor esi, ecx
lea edx, [ecx*4]
mov ecx, esi
shr ecx, 0x10
xor eax, edx
mov edx, dword [esp + 0x18]
xor ecx, eax
and ecx, 0xffff
xor eax, ecx
shl ecx, 0x10
xor esi, ecx
mov ecx, esi
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
mov edi, ecx
shl edi, 4
xor edi, esi
mov dword [edx], edi
pop edi
pop esi
xor ecx, eax
pop ebp
mov dword [edx + 4], ecx
pop ebx
pop ecx
ret
Function at 0x412b00
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
push esi
push edi
lea eax, [esp + 0x10]
push eax
call ebp
call fcn.00414738
add eax, dword [esp + 0x10]
push eax
call fcn.00414726
add esp, 4
call fcn.00414738
cdq
mov ecx, 5
idiv ecx
xor esi, esi
mov edi, edx
add edi, dword [esp + 0x1c]
test edi, edi
jle 0x412b93
mov edi, edi
lea edx, [esp + 0x10]
push edx
call ebp
call fcn.00414738
add eax, dword [esp + 0x10]
push eax
call fcn.00414726
add esp, 4
call fcn.00414738
cdq
mov ecx, 0x3e
idiv ecx
cmp edx, 0xa
jge 0x412b70
add edx, 0x30
jmp 0x412b7d
cmp edx, 0x24
jge 0x412b7a
add edx, 0x37
jmp 0x412b7d
add edx, 0x3d
mov word [ebx + esi*2], dx
inc esi
cmp esi, edi
jl 0x412b40
xor edx, edx
mov word [ebx + edi*2], dx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
xor eax, eax
mov word [ebx + edi*2], ax
pop edi
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x413194
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43514c]
jne 0x41319e
repz ret
jmp fcn.00416ab5

Function at 0x41f0d1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004164c4
and dword [ebp - 4], 0
cmp dword [0x43bdfc], 0
mov ebx, eax
jne 0x41f182
push 0x425d18
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41f233
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x425d0c
push edi
call esi
test eax, eax
je 0x41f233
push eax
call fcn.00416452
mov dword [esp], 0x425cfc
push edi
mov dword [0x43bdfc], eax
call esi
push eax
call fcn.00416452
mov dword [esp], 0x425ce8
push edi
mov dword [0x43be00], eax
call esi
push eax
call fcn.00416452
mov dword [esp], 0x425ccc
push edi
mov dword [0x43be04], eax
call esi
push eax
call fcn.00416452
pop ecx
mov dword [0x43be0c], eax
test eax, eax
je 0x41f182
push 0x425cb4
push edi
call esi
push eax
call fcn.00416452
pop ecx
mov dword [0x43be08], eax
mov eax, dword [0x43be08]
cmp eax, ebx
je 0x41f1da
cmp dword [0x43be0c], ebx
je 0x41f1da
push eax
call fcn.004164cd
push dword [0x43be0c]
mov esi, eax
call fcn.004164cd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41f1da
test edi, edi
je 0x41f1da
call esi
test eax, eax
je 0x41f1d1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41f1d1
test byte [ebp - 0xc], 1
jne 0x41f1da
or dword [ebp + 0x10], 0x200000
jmp 0x41f213
mov eax, dword [0x43be00]
cmp eax, ebx
je 0x41f213
push eax
call fcn.004164cd
pop ecx
test eax, eax
je 0x41f213
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41f213
mov eax, dword [0x43be04]
cmp eax, ebx
je 0x41f213
push eax
call fcn.004164cd
pop ecx
test eax, eax
je 0x41f213
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43bdfc]
call fcn.004164cd
pop ecx
test eax, eax
je 0x41f233
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41f235
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402e00
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x438880], 0
push esi
push edi
jne 0x402f6b
mov eax, dword fs:[0x30]
xor esi, esi
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [edx + 0x18]
test eax, eax
je 0x402f76
nop
mov edi, eax
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
test eax, eax
je 0x402e63
mov ecx, dword [eax + edi + 0xc]
lea esi, [eax + edi]
mov eax, dword [ecx + edi]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x402e63
mov eax, dword [ecx + edi + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x402e6c
mov edx, dword [edx]
mov eax, dword [edx + 0x18]
test eax, eax
jne 0x402e30
test esi, esi
je 0x402f76
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x1c]
add edx, 0xfffffffe
mov ecx, dword [esi + 0x20]
add eax, edi
push ebx
mov ebx, dword [esi + 0x18]
add ecx, edi
xor esi, esi
mov dword [ebp - 0xc], eax
add edx, edi
lea eax, [ebx - 1]
lea eax, [ecx + eax*4]
lea edx, [edx + ebx*2]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
nop
mov ecx, dword [eax]
mov edx, 0x775a
add ecx, edi
cmp word [ecx], dx
mov edx, dword [ebp - 4]
jne 0x402edc
call fcn.004023d0
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [esi*8 + 0x438884], eax
movzx eax, word [edx]
mov eax, dword [ecx + eax*4]
mov dword [esi*8 + 0x438888], eax
inc esi
cmp esi, 0x1f4
je 0x402eed
mov eax, dword [ebp - 8]
sub eax, 4
sub edx, 2
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
sub ebx, 1
jne 0x402ea0
lea eax, [esi - 1]
mov dword [0x438880], esi
xor edi, edi
test eax, eax
je 0x402f6a
nop dword [eax]
mov ecx, esi
xor eax, eax
sub ecx, edi
sub ecx, 1
je 0x402f62
nop dword [eax + eax]
mov ecx, dword [eax*8 + 0x438888]
mov ebx, dword [eax*8 + 0x438890]
mov dword [ebp - 0xc], ecx
cmp ecx, ebx
jbe 0x402f58
mov ecx, dword [eax*8 + 0x43888c]
mov edx, dword [eax*8 + 0x438884]
mov dword [eax*8 + 0x438884], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax*8 + 0x438888], ebx
mov dword [eax*8 + 0x43888c], edx
mov dword [eax*8 + 0x438890], ecx
mov esi, dword [0x438880]
mov ecx, esi
inc eax
sub ecx, edi
dec ecx
cmp eax, ecx
jb 0x402f10
inc edi
lea eax, [esi - 1]
cmp edi, eax
jb 0x402f00
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4037e6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403825
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403825
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403825
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403825
cmp dword [ecx + 0x74], 0xe
jbe 0x403825
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4096f7
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 0x409794
push ebx
push esi
call fcn.004096c0
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.00409654
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x409741
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409793
push edi
push eax
call fcn.00409f8a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x409761
call fcn.0040821e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409792
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00409654
add esp, 0x20
test eax, eax
jne 0x409780
push edi
call fcn.0040821e
jmp 0x409788
push ebx
call fcn.0040821e
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 0x40a690
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411fe0
push 0x411fd8
push str.FlsAlloc
push 0x1f
call fcn.0040a5ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a6c4
push dword [ebp + 8]
mov ecx, esi
call dword [0x410124]
call esi
jmp 0x40a6ca
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40a70e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411ff0
push 0x411fe8
push str.FlsGetValue
push 0x21
call fcn.0040a5ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a745
push dword [ebp + 8]
mov ecx, esi
call dword [0x410124]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40a74d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411ff8
push 0x411ff0
push str.FlsSetValue
push 0x22
call fcn.0040a5ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a787
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x410124]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40f580
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40f5ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f5ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4013cf
Capabilities:
Get number of processors

Disassembly:
mov ecx, 0x5039f8
jmp 0x4013c3
mov eax, 0x4c50e4
call fcn.00494674
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004014d5
mov eax, dword [0x4ff3c8]
lea ecx, [esi + 0xa0]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ecx], eax
mov eax, dword [0x4ff3c8]
mov dword [esi + 0xb0], eax
push 1
mov dword [esi], 0x4cc7cc
or dword [esi + 0x20], 0xffffffff
or dword [esi + 0x1c], 0xffffffff
pop edi
mov dword [esi + 0x28], ebx
push 0xa
mov dword [esi + 0x24], ebx
pop eax
mov byte [ebp - 4], 2
push 0x64
mov dword [esi + 0x58], eax
mov dword [esi + 0x60], eax
pop eax
push 0x5039f0
mov dword [esi + 0x2c], 2
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], ebx
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], 0x3e8
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], 0xc0
mov dword [esi + 0x84], 0x6c
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x9c], ebx
call fcn.004af98d
push 0x5039f0
lea ecx, [esi + 0xb0]
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
call fcn.004af98d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40ae35
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4c5f0c
call fcn.00494674
sub esp, 0x22c
push ebx
push esi
mov dword [ebp - 0x2c], ecx
mov esi, 0x503ac8
push str.DataFile_Types
mov ecx, esi
call fcn.004c25ec
xor ebx, ebx
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x40ae6b
xor eax, eax
jmp 0x40afb3
mov eax, dword [0x4ff3c8]
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x38]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 2
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x24], 0x100
mov dword [ebp - 0x20], ebx
call edi
cmp eax, 0x103
je 0x40af83
lea eax, [ebp - 0x238]
push eax
push str.DataFile_Types
lea eax, [ebp - 0x10]
push 0x4ebd78
push eax
call fcn.004ad127
add esp, 0x10
lea eax, [ebp - 0x28]
mov ecx, esi
push ebx
push str.Name
push dword [ebp - 0x10]
push eax
call fcn.004c269e
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004af93d
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004af7f6
push ebx
push str.Extension
push dword [ebp - 0x10]
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.004c269e
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004af93d
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004af7f6
push 0xffffffffffffffff
push str.Icon
push dword [ebp - 0x10]
mov ecx, esi
call fcn.004c2632
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 8], ebx
je 0x40af5c
mov edx, dword [ebp - 0x1c]
cmp dword [edx - 8], ebx
je 0x40af5c
cmp eax, 0xffffffff
je 0x40af5c
push eax
push edx
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.0040b0a0
lea eax, [ebp - 0x38]
inc dword [ebp - 0x20]
push eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x24], 0x100
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x18]
jmp 0x40aea7
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004af7f6
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004af7f6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004af7f6
push 1
pop eax
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40c0f5
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
mov edi, 0x4ceb20
push ebx
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, 0x2b4
lea eax, [ebp - 0x2bc]
push esi
push ebx
push eax
call fcn.004946a0
lea eax, [ebp - 8]
add esp, 0xc
neg eax
sbb eax, eax
lea ecx, [ebp - 4]
and eax, ecx
xor ecx, ecx
cmp dword [ebp + 8], ebx
mov eax, dword [eax]
sete cl
or cx, 0x4008
push ecx
lea ecx, [ebp - 0x2bc]
push esi
push ecx
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea ecx, [ebp - 8]
mov esi, eax
neg ecx
sbb ecx, ecx
lea eax, [ebp - 4]
and ecx, eax
mov dword [ebp - 8], edi
call fcn.0040c469
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4