joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402730
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x4159bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov eax, dword [0x41c6c0]
push esi
mov dword [esp + 4], eax
lea edx, [esp + 0xc]
mov dword [esp + 0x228], 0
push edx
call fcn.00402660
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x22c], 1
call fcn.00411f76
lea ecx, [esp + 0xc]
mov byte [esp + 0x228], 0
call fcn.00411e89
push 0x41c27c
lea ecx, [esp + 0x18]
call fcn.00411ef7
push 0x41c114
lea ecx, [esp + 8]
mov byte [esp + 0x22c], 2
call fcn.004120f0
lea eax, [esp + 0x14]
lea ecx, [esp + 4]
push eax
call fcn.0041212c
push str..lnk
lea ecx, [esp + 8]
call fcn.004120f0
mov esi, dword [esp + 0x230]
lea ecx, [esp + 0x10]
push esi
call fcn.00411ef7
push str.TEST.EXE
lea ecx, [esp + 0x14]
mov byte [esp + 0x22c], 3
call fcn.004120f0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 8]
push ecx
push 0x417f08
push 1
push 0
push 0x417ef8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40289d
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x14]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [esp + 8]
push esi
push eax
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push 0x417f18
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x402893
mov ecx, dword [esp + 4]
lea eax, [esp + 0x18]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x10]
mov byte [esp + 0x228], 2
call fcn.00411e89
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], 0
call fcn.00411e89
lea ecx, [esp + 4]
mov dword [esp + 0x228], 0xffffffff
call fcn.00411e89
mov ecx, dword [esp + 0x220]
pop esi
mov dword fs:[0], ecx
add esp, 0x228
ret 4
Function at 0x406a91
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41cce0
cmp edx, dword [eax]
je 0x406ab3
add eax, 8
inc ecx
cmp eax, 0x41cd70
jl 0x406aa4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41cce0]
jne 0x406be1
mov eax, dword [0x41f5f0]
cmp eax, 1
je 0x406bbb
test eax, eax
jne 0x406ae4
cmp dword [0x41c814], 1
je 0x406bbb
cmp edx, 0xfc
je 0x406be1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406b1b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406bf0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406ce0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x406b5e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406ce0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x417d9c
push edi
call fcn.004088f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406bf0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406c00
lea eax, [ebp - 0xa0]
push 0x417d7c
push eax
call fcn.00406c00
push dword [esi + 0x41cce4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406c00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408859
add esp, 0x2c
pop edi
jmp 0x406be1
lea eax, [ebp + 8]
lea esi, [esi + 0x41cce4]
push 0
push eax
push dword [esi]
call fcn.00406ce0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40ce90
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00403b70
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40cf5b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40cf5b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40cf0e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40cf19
or bh, 8
and edi, 0x8000000
je 0x40cf34
mov eax, dword [0x420d7c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x40cf5b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40d35b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40d37f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x40d39a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x411332
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x411374
call fcn.00414704
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x411374
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41136b
xor eax, eax
jmp 0x41137c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00411382
pop edi
pop esi
pop ebx
ret 4

Function at 0x414bf7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x414c25
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x414c43
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00414b5d
jmp 0x414c43
mov eax, dword [esi + 0x14]
test eax, eax
je 0x414c43
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00414b5d
test edi, edi
mov eax, edi
jne 0x414c2d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1001c3f
Capabilities:
Enumerate gui resources

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x1008010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x88], eax
mov eax, 0x100135c
push eax
push eax
push 0x64
call fcn.01005b85
mov edi, dword [0x10011a4]
mov esi, eax
add esp, 0xc
mov ebx, 0x1001bbb
test esi, esi
je 0x1001c8d
push esi
push ebx
call edi
push esi
call dword [fcn.01001090]
mov esi, dword [0x10011a8]
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x4ba
push dword [ebp - 0x88]
call esi
cmp word [ebp - 0x84], 0
je 0x1001cbd
lea eax, [ebp - 0x84]
push eax
push ebx
call edi
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x1c
push dword [ebp - 0x88]
call esi
cmp word [ebp - 0x84], 0
je 0x1001ce4
lea eax, [ebp - 0x84]
push eax
push ebx
call edi
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x4b0
push dword [ebp - 0x88]
call esi
cmp word [ebp - 0x84], 0
je 0x1001d0e
lea eax, [ebp - 0x84]
push eax
push ebx
call edi
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x4b6
push dword [ebp - 0x88]
call esi
cmp word [ebp - 0x84], 0
je 0x1001d38
lea eax, [ebp - 0x84]
push eax
push ebx
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100663c
leave
ret 4

Function at 0x1001e2e
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x1008010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [0x10010a0]
test eax, eax
je 0x1001eca
push 0x38
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.01006652
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x22c], eax
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x248], 0x3c
mov dword [ebp - 0x244], 0x400
mov dword [ebp - 0x23c], 0x1001360
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x240], esi
call dword [0x1001124]
test eax, eax
je 0x1001eca
xor eax, eax
jmp 0x1001ecf
call fcn.01001d8f
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100663c
leave
ret 0xc

Function at 0x100270a
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x1002727
push 0
push dword [ebp + 8]
call dword [fcn.01001180]
and dword [0x1008038], 0
pop ebp
ret 4
Function at 0x10035c9
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push 8
push ebx
mov dword [0x1008038], ebx
call dword [0x10011a0]
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x1c]
cmp esi, edi
jne 0x10035f7
xor eax, eax
jmp 0x10036d8
cmp dword [esi + 0x670], edi
je 0x100362b
push 0xffffffffffffffff
lea ebx, [esi + 0x66c]
push dword [ebx]
lea edi, [esi + 0x6b0]
mov dword [edi], 1
call dword [0x10010ac]
push dword [ebx]
call dword [0x10010a8]
and dword [edi], 0
mov ebx, dword [ebp + 8]
xor edi, edi
push esi
push 8
push ebx
call dword [0x10011a0]
push ebx
call fcn.010028d7
test eax, eax
je 0x10036ca
push edi
push dword [esi + 4]
push 0x170
push 0x3ef
push ebx
call dword [fcn.0100118c]
call dword [0x1001120]
test eax, eax
jne 0x1003681
push 1
push edi
mov edi, dword [fcn.01001168]
push 0x160c
push 0x3ec
push ebx
call edi
push eax
call dword [fcn.0100115c]
jmp 0x1003697
push edi
mov edi, dword [fcn.01001168]
push 0x3ec
push ebx
call edi
push eax
call dword [fcn.01001180]
test byte [esi + 0x65c], 1
je 0x10036c0
push 0
push 0x407
push ebx
call edi
mov esi, dword [fcn.01001180]
push eax
call esi
push 0
push 0x402
push ebx
call edi
push eax
call esi
push ebx
call fcn.01003024
test eax, eax
jne 0x10036d5
push ebx
call fcn.0100270a
jmp 0x10035f0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10042d8
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x1008010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov word [ebp - 0x84], ax
mov eax, dword [esi + 0x14]
push edi
mov edi, ecx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x90], ebx
cmp eax, ebx
je 0x100432c
mov ecx, dword [eax]
lea edx, [ebp - 0x90]
push edx
push eax
call dword [ecx + 0x1c]
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x14], ebx
cmp dword [esi + 0x18], ebx
je 0x100446b
mov eax, dword [edi + 0x65c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jns 0x100441a
test al, 1
je 0x1004379
mov eax, dword [ebp - 0x88]
push 2
pop edi
push dword [eax + 0x660]
lea eax, [ebp - 0x84]
push 0x1001690
push 0x1001680
push 0x40
push eax
call fcn.01001ee4
add esp, 0x14
jmp 0x100438f
push 0x1001690
push 0x40
lea eax, [ebp - 0x84]
xor edi, edi
push eax
inc edi
call fcn.01002fb5
lea ecx, [ebp - 0x94]
push ecx
xor eax, eax
lea ecx, [ebp - 0x8c]
push ecx
push eax
push eax
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x84]
push eax
push dword [esi + 0x18]
mov dword [ebp - 0x94], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esi + 0x244], 0
je 0x10043d2
or dword [ebp - 0x8c], edi
jmp 0x10043da
not edi
and dword [ebp - 0x8c], edi
lea eax, [ebp - 0x88]
push eax
push 0x20006
push dword [esi + 0x18]
call fcn.01003e78
test eax, eax
jl 0x100441a
push 4
lea eax, [ebp - 0x8c]
push eax
push 4
push 0
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x88]
call ebx
push dword [esi + 0x18]
call ebx
test byte [ebp - 0x90], 4
je 0x100446b
cmp dword [esi + 0x244], 0
je 0x100446b
lea eax, [ebp - 0x88]
push eax
push 0x3001f
push 0
push 0x1001600
push 0x80000002
call dword [entry0]
test eax, eax
jne 0x100446b
lea eax, [esi + 0x1c]
push eax
push dword [ebp - 0x88]
call dword [0x1001144]
push dword [ebp - 0x88]
call ebx
mov ebx, dword [0x1001250]
lea edi, [esi + 0x228]
mov eax, dword [edi]
test eax, eax
je 0x1004483
push eax
call ebx
and dword [edi], 0
add esi, 0x224
mov eax, dword [esi]
test eax, eax
je 0x1004495
push eax
call ebx
and dword [esi], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100663c
leave
ret 4
Function at 0x10046f2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x1008010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
xor ecx, ecx
xor edi, edi
inc ebx
mov word [ebp - 0x20c], cx
push eax
cmp dword [ebp + 0xc], edi
je 0x1004739
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01002fb5
mov esi, eax
jmp 0x10047c5
push 0x10016a8
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.01001ee4
mov esi, eax
add esp, 0x10
cmp esi, edi
jl 0x1004876
lea eax, [ebp - 0x624]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x61c]
push eax
push 0x80000000
call dword [entry0]
test eax, eax
jne 0x10047c5
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x628]
push eax
push edi
push edi
push dword [ebp - 0x624]
mov dword [ebp - 0x628], ebx
mov dword [ebp - 0x630], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10047b9
mov dword [ebp + 0xc], ebx
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jl 0x1004876
cmp dword [ebp + 0xc], edi
je 0x1004876
mov edi, dword [0x1001088]
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
call edi
test eax, eax
jle 0x100480f
movzx eax, word [ebp + esi*2 - 0x20c]
cmp ax, 0x2c
je 0x100480f
mov word [ebp + esi*2 - 0x414], ax
lea eax, [ebp - 0x20c]
push eax
inc esi
call edi
cmp esi, eax
jl 0x10047eb
lea eax, [esi + esi]
xor ecx, ecx
mov word [ebp + eax - 0x414], cx
lea eax, [ebp + eax - 0x20a]
push eax
call dword [0x100112c]
push ebx
lea ecx, [ebp - 0x62c]
push ecx
lea ecx, [ebp - 0x620]
push ecx
push eax
lea eax, [ebp - 0x414]
push eax
call dword [0x100111c]
test eax, eax
je 0x1004876
mov esi, dword [ebp - 0x62c]
test esi, esi
je 0x100486c
cmp dword [ebp - 0x620], 0
je 0x1004872
push dword [ebp - 0x620]
call dword [0x1001178]
jmp 0x1004872
mov esi, dword [ebp - 0x620]
test esi, esi
jne 0x1004886
push 0x6f
push dword [0x100803c]
call dword [0x100117c]
mov esi, eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100663c
leave
ret 8
Function at 0x10059d7
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [0x1008010]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xa
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.01005972
xor eax, eax
lea ecx, [ebp - 0x2cc]
cmp dword [ebp + 0xc], eax
je 0x1005a0e
push 0x301
jmp 0x1005a13
push 0x300
push 0x2b4
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call dword [0x1001118]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2cc]
xor ecx, ebp
call fcn.0100663c
leave
ret 8

Function at 0x40699a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x4069d1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4069ab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x4069a6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x4069e4
pop edi
not eax
pop esi
ret 0xc
Function at 0x4013e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40143b
cmp byte [esi + ebx - 1], 0xa
je 0x40140f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4060c4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401ea0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0x40ca10
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47a8fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046f2e9
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40ca92
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046c9e7
mov eax, dword [eax]
push 0x4b31e0
push eax
call fcn.0045f844
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046f574
test bl, bl
je 0x40ca92
push 0x4b31e0
lea ecx, [esp + 0xc]
call fcn.0046f904
push 0x4b6d48
lea ecx, [esp + 0xc]
call fcn.0046f904
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40cace
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046f574
jmp 0x40cb99
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40cb52
lea edx, [esp + 0x7c]
push 0x4b6d44
push edx
call fcn.0045f844
add esp, 8
test eax, eax
je 0x40cb52
lea eax, [esp + 0x7c]
push 0x4b6d40
push eax
call fcn.0045f844
add esp, 8
test eax, eax
je 0x40cb52
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40cae2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046f574
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40d390
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40d3f2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc