joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402570
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411f58
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
mov eax, dword [0x450028]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x38], 0x414dc0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [ebp - 0x30]
push ecx
call esi
mov edx, dword [ebp - 0x38]
push edx
push 0x414d5c
push 0x414d70
mov ecx, 0x25
call fcn.00406a00
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
mov dword [ebp - 4], 0
call fcn.00402650
test eax, eax
je 0x4025ea
mov ecx, dword [ebp + 8]
call fcn.00402810
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 4], 0xffffffff
call esi
mov edx, dword [ebp - 0x28]
sub edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
sbb eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
mov ecx, dword [ebp - 0x38]
fild qword [ebp - 0x20]
sub esp, 8
fdivp st(1)
fstp qword [esp]
push ecx
push 0x414d9c
push 0x414d70
mov ecx, 0x25
call fcn.00406a00
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x402650
Capabilities:
Check for time delay via queryperformancecounter
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411f28
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
mov eax, dword [0x450028]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x44], 0x414e00
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [ebp - 0x3c]
push ecx
call esi
mov edx, dword [ebp - 0x44]
push edx
push 0x414d5c
push 0x414d70
mov ecx, 0x25
call fcn.00406a00
add esp, 0xc
push 0
push 0
push 0x414e50
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x402729
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], 0xffffffff
call esi
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
sbb edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
fild qword [ebp - 0x24]
mov eax, dword [ebp - 0x44]
fild qword [ebp - 0x2c]
sub esp, 8
mov ecx, 0x25
fdivp st(1)
fstp qword [esp]
push eax
push 0x414d9c
push 0x414d70
call fcn.00406a00
add esp, 0x14
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004036a0
test eax, eax
je 0x402759
lea esi, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.00402520
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x414e94
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
movzx eax, ax
test eax, eax
je 0x402732
lea ecx, [ebp - 0x14]
push ecx
mov ecx, 0x414eb8
call fcn.00404ac0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
push ecx
mov byte [ebp - 4], 1
call fcn.004070c0
mov esi, eax
mov byte [ebp - 4], 2
call fcn.00404ee0
mov bl, al
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
or esi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4027c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4027e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], esi
lea esi, [ebp - 0x44]
call fcn.00402520
test bl, bl
jne 0x402711
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402810
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x450028]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x128]
push eax
mov esi, ecx
mov dword [ebp - 0x128], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x124], 6
jb 0x40285a
call fcn.00402bb0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410b3e
mov esp, ebp
pop ebp
ret
call fcn.004029e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00410b3e
mov esp, ebp
pop ebp
ret

Function at 0x402870
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4119cb
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x450028]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x455ebc]
mov ebx, dword [ebp + 8]
mov esi, ecx
mov edi, edx
mov edx, dword [eax + 0xc]
mov ecx, 0x455ebc
call edx
add eax, 0x10
mov dword [ebp - 0x418], eax
push ebx
push edi
push 0x414ecc
lea edi, [ebp - 0x418]
mov dword [ebp - 4], 0
call fcn.00406470
mov edi, dword [ebp - 0x418]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x420], ebx
je 0x40299f
push 0x414ed8
push 0x414d70
mov ecx, 0x25
call fcn.00406a00
add esp, 8
push 0
lea eax, [ebp - 0x41c]
push eax
push 0x400
lea ecx, [ebp - 0x414]
push ecx
push ebx
mov dword [ebp - 0x41c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
push ebx
push 0x414f00
push 0x414d70
mov ecx, 0x25
call fcn.00406a00
add esp, 0xc
test ebx, ebx
jne 0x402994
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov ebx, eax
push ebx
push 0x64
push str.66Hr
push 0x415a68
push 0x415ab4
mov ecx, 0x40
call fcn.00406a00
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ebx, [ebp - 0x420]
call fcn.004050f0
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4029c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00410b3e
mov esp, ebp
pop ebp
ret 4
Function at 0x4029e0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411b9b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x450028]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 0x240], 0x414f88
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [ebp - 0x238]
push ecx
call edi
mov edx, dword [ebp - 0x240]
push edx
push 0x414d5c
push 0x414d70
mov ecx, 0x25
call fcn.00406a00
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x414fd0
lea edx, [ebp - 0x218]
mov ecx, esi
call fcn.00402870
push 0x414fec
lea edx, [ebp - 0x218]
mov ecx, esi
call fcn.00402870
push 0x415010
lea edx, [ebp - 0x218]
mov ecx, esi
call fcn.00402870
push 0x415030
lea edx, [ebp - 0x218]
mov ecx, esi
call fcn.00402870
push 0x414fec
lea edx, [ebp - 0x218]
mov ecx, esi
call fcn.00402870
push 0x41504c
lea edx, [ebp - 0x218]
mov ecx, esi
call fcn.00402870
push 0x41505c
lea edx, [ebp - 0x218]
mov ecx, esi
call fcn.00402870
push 0x415080
lea edx, [ebp - 0x218]
mov ecx, esi
call fcn.00402870
push 0x41509c
lea edx, [ebp - 0x218]
mov ecx, esi
call fcn.00402870
push 0x4150b8
lea edx, [ebp - 0x218]
mov ecx, esi
call fcn.00402870
lea edx, [ebp - 0x230]
push edx
mov dword [ebp - 4], 0xffffffff
call edi
mov eax, dword [ebp - 0x230]
sub eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x22c]
sbb ecx, dword [ebp - 0x234]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], ecx
fild qword [ebp - 0x220]
mov edx, dword [ebp - 0x240]
fild qword [ebp - 0x228]
sub esp, 8
fdivp st(1)
fstp qword [esp]
push edx
push 0x414d9c
push 0x414d70
mov ecx, 0x25
call fcn.00406a00
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410b3e
mov esp, ebp
pop ebp
ret
Function at 0x4036a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x450028]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x1c]
push ecx
push eax
push 0x415270
push 0x80000001
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], 0x14
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push 0x4152b8
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
add eax, 1
call fcn.00410b3e
mov esp, ebp
pop ebp
ret
Function at 0x404250
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [ebp - 0x18]
push ecx
call edi
call dword [sym.imp.bdlog.dll_GetLogController]
mov esi, eax
mov edx, dword [esi]
mov eax, dword [edx]
push 0x415734
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push 0x415750
push 4
push 0x415764
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push 0x415750
push 3
push 0x415770
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push 0x415750
push 2
push 0x41577c
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push 0x415790
push 5
push 0x4157c8
mov ecx, esi
call eax
lea ecx, [ebp - 0x10]
push ecx
call edi
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
push edx
mov edx, dword [ebp - 0xc]
sbb edx, dword [ebp - 0x14]
push eax
push edx
push ecx
push 0x4157e0
push 0x415a60
mov ecx, 0x25
call fcn.00406a00
add esp, 0x18
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404320
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0
push 0
push 0x415818
call ebx
test eax, eax
jbe 0x40435f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
call edi
test eax, eax
jne 0x40435e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
push 0x3e8
call esi
call edi
test eax, eax
je 0x404350
pop esi
pop edi
push 0
push 0
push 0x415858
call ebx
test eax, eax
pop ebx
jbe 0x40437a
mov eax, dword [sym.imp.objectfactory.dll_PGO_AtlDebugInterface]
mov dword [eax], 1
ret

Function at 0x406800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406818
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40684c
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x406848
cmp esi, eax
jae 0x40684c
sub edi, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406838
cmp esi, eax
jb 0x406852
pop esi
xor eax, eax
pop edi
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x4097b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412143
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x450028]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
or edi, 0xffffffff
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edi
mov eax, dword [0x455ebc]
mov edx, dword [eax + 0xc]
mov ecx, 0x455ebc
call edx
add eax, 0x10
mov dword [esi + 0x10], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], edi
push ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], edi
push ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], edi
push ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], edi
push ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], edi
push edi
mov dword [esi + 0x58], eax
mov eax, dword [ecx]
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [0x455ebc]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x455ebc
call eax
lea edi, [eax + 0x10]
mov dword [ebp + 0x10], edi
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
mov eax, dword [edi - 8]
mov edx, 1
sub edx, dword [edi - 4]
sub eax, ecx
or eax, edx
jge 0x409890
lea eax, [ebp + 0x10]
call fcn.00409110
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
jl 0x40995b
cmp ecx, dword [edi - 8]
jg 0x40995b
mov dword [edi - 0xc], ecx
mov byte [edi + ecx], bl
cmp dword [edi - 4], 1
jle 0x4098c0
mov ecx, dword [edi - 0xc]
push ecx
lea edx, [ebp + 0x10]
push edx
call fcn.004092a0
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
push ebx
push ecx
push edi
push 0xffffffffffffffff
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp edi, ebx
jne 0x4098e0
xor ecx, ecx
jmp 0x4098f6
mov ecx, edi
lea edx, [ecx + 1]
mov dword [ebp + 0xc], edx
mov dl, byte [ecx]
add ecx, 1
cmp dl, bl
jne 0x4098e8
sub ecx, dword [ebp + 0xc]
js 0x40995b
cmp ecx, dword [edi - 8]
jg 0x40995b
cmp eax, ebx
mov dword [edi - 0xc], ecx
mov byte [ecx + edi], bl
jne 0x40991a
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x409939
mov ecx, dword [esi + 0x58]
push ecx
lea eax, [ebp + 0x10]
call fcn.00409970
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409945
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.00406990
int3
Function at 0x40f440
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x44d220
push 0x411044
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x450028]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
cmp word [ecx], 0x5a4d
jne 0x40f4df
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40f4df
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x40f4df
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x40f4df
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40f5f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
mov esi, dword [0x455e88]
test esi, esi
je 0x40f61a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x40f603
pop edi
pop esi
pop ecx
ret
Function at 0x40f9d0
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x455e94], eax
je 0x40f9e6
mov eax, 0x10dd
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [0x455ea4]
xor ebp, ebp
cmp esi, ebp
push edi
je 0x40fa3c
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [esp]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x10]
push eax
movzx eax, byte [edx + 0x17]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call ebx
cmp dword [esi + 4], ebp
jne 0x40fa2b
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x40fa2b
call fcn.0040f880
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call fcn.00410b38
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x40fa00
mov dword [0x455ea4], ebp
call fcn.0040f620
mov esi, dword [0x455ea0]
cmp esi, ebp
je 0x40fa6e
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi + 4]
push edx
call ebx
mov edi, dword [esi]
push esi
call fcn.00410b38
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x40fa57
pop edi
pop esi
mov dword [0x455ea0], ebp
mov dword [0x455e94], ebp
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x40fd50
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x455e98]
test eax, eax
jne 0x40fdcc
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x40fd6e
xor eax, eax
pop edi
ret 4
push esi
push 8
call fcn.00410c04
mov esi, eax
add esp, 4
test esi, esi
jne 0x40fd84
lea edi, [eax + 8]
jmp 0x40fda1
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x40fdb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.00410b38
add esp, 4
pop esi
mov dword [0x455e98], edi
mov eax, edi
mov dword [0x455e9c], 0
pop edi
ret 4
mov eax, dword [0x455ea0]
mov dword [esi + 4], edi
mov dword [esi], eax
mov dword [0x455ea0], esi
pop esi
xor eax, eax
pop edi
ret 4

Function at 0x410560
Capabilities:
Encode data using xor

Disassembly:
fistp qword [eax]
jbe 0x410599
xor ecx, dword [esi - 0x5b2653a7]
out 0xc6, al
invalid
mov ah, 0x2e
leave
ror eax, 0x8d
imul edx, dword [edx + 0x6f], 0x86cba5e4
mul byte [edi - 0x3183ba19]
xor dword [edi + 0x7ea5edb1], ebx
test eax, 0x9b8a7fb7
popfd
out 0xbb, eax
cmc
jl 0x410610
xor byte [esi + 0x6cbe68e3], ch
push ebx
xor eax, 0xa6d73d37
cmp eax, 0xd324f1ea
and al, 0xd3
aam 0xe3
xor al, 0x63
cmp al, 0xda
cmp al, 0xcb
dec edi
scasd eax, dword es:[edi]
push edi
sbb bh, ah
bnd jp 0x4105ce
hlt
invalid
Function at 0x403a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x40f00c]
mov bl, 1
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ecx + 0x38], 0
je 0x403af3
cmp byte [ecx + 0x3d], 0
mov esi, ecx
je 0x403af3
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
push 0xffffffffffffffff
call edi
cmp eax, 0xffffffff
je 0x403af1
mov edi, dword [esi + 0x38]
lea eax, [esi + 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
mov ebx, dword [eax + 0x20]
mov ecx, ebx
call dword [section..00cfg]
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x30]
mov ecx, edi
push eax
lea eax, [ebp - 0x10]
push eax
push edx
push dword [ebp - 0x38]
call ebx
cmp eax, 3
je 0x403b07
cmp eax, 1
je 0x403aca
test eax, eax
jne 0x403af1
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
sub edi, eax
je 0x403ae8
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x403af1
cmp byte [esi + 0x3d], 0
sete bl
jmp 0x403af3
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409d10
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov bl, 1
jmp 0x403af3
Function at 0x401320
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
push eax
push 0xf003f
push 0
push str.Software
push 0x80000002
call esi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
push 0
push 0x404154
push edx
call esi
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.EXTIF_pro
push ecx
call esi
mov edx, dword [esp + 0x18]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x10]
push 1
push eax
push str.UserOutputFileName
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov eax, dword [esp + 8]
push eax
je 0x4013be
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret

Function at 0x4023c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
ret