joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405590
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x42e008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, edx
lea eax, [ebp - 0x44]
push edi
mov edx, 0x40
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub edx, 1
jne 0x4055b0
push ebx
mov ebx, esi
lea edx, [ebp - 0x44]
shr ebx, 2
mov edi, ebx
test edi, edi
je 0x4055df
nop word [eax + eax]
mov eax, dword [ecx]
add ecx, 4
mov dword [edx], eax
add edx, 4
sub edi, 1
jne 0x4055d0
mov edi, esi
and edi, 3
je 0x4055f3
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
sub edi, 1
jne 0x4055e8
xor edx, edx
test esi, esi
jle 0x405617
nop dword [eax]
mov cl, byte [ebp + edx - 0x44]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x405612
add cl, 0x20
mov byte [ebp + edx - 0x44], cl
inc edx
cmp edx, esi
jl 0x405600
mov dword [ebp - 0x48], esi
lea edx, [ebp - 0x44]
mov edi, 0x5b2d
cmp esi, 4
jl 0x405653
mov eax, ebx
neg eax
lea esi, [esi + eax*4]
nop
imul ecx, dword [edx], 0x5bd1e995
add edx, 4
imul edi, edi, 0x5bd1e995
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
xor edi, ecx
sub ebx, 1
jne 0x405630
xor ecx, ecx
pop ebx
sub esi, 1
je 0x405675
sub esi, 1
je 0x40566c
sub esi, 1
jne 0x40567a
movzx ecx, byte [edx + 2]
shl ecx, 0x10
movzx eax, byte [edx + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [edx]
xor ecx, eax
imul edx, dword [ebp - 0x48], 0x5bd1e995
imul ecx, ecx, 0x5bd1e995
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
imul eax, edi, 0x5bd1e995
pop edi
pop esi
xor ecx, eax
mov eax, edx
shr eax, 0x18
xor eax, edx
imul ecx, ecx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor ecx, eax
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c1b4
mov esp, ebp
pop ebp
ret
Function at 0x41b290
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x42e008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x61
push 0xb96fdcc6
mov edx, 0xf
mov edi, ecx
call fcn.00405270
add esp, 8
push 0
push 2
call eax
mov ebx, eax
mov dword [ebp - 0x250], ebx
test ebx, ebx
je 0x41b4d0
push 0x62
push 0x9209ce83
mov edx, 0xf
mov dword [ebp - 0x230], 0x22c
call fcn.00405270
add esp, 8
lea ecx, [ebp - 0x230]
push ecx
push ebx
call eax
test eax, eax
jne 0x41b322
push 0x12
push 0xa5eb6e47
lea edx, [eax + 0xf]
call fcn.00405270
add esp, 8
push ebx
call eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c1b4
mov esp, ebp
pop ebp
ret
push esi
nop dword [eax]
nop word [eax + eax]
mov byte [ebp - 0x24c], 0
mov byte [ebp - 0x24b], 0x21
mov byte [ebp - 0x24a], 0x55
mov byte [ebp - 0x249], 0x47
mov byte [ebp - 0x248], 0x55
mov byte [ebp - 0x247], 0x37
mov byte [ebp - 0x246], 0x55
mov byte [ebp - 0x245], 0x2f
mov byte [ebp - 0x244], 0x55
mov byte [ebp - 0x243], 0x35
mov byte [ebp - 0x242], 0x55
mov byte [ebp - 0x241], 0x3b
mov byte [ebp - 0x240], 0x55
mov byte [ebp - 0x23f], 0x21
mov byte [ebp - 0x23e], 0x55
mov byte [ebp - 0x23d], 0x3b
mov byte [ebp - 0x23c], 0x55
mov byte [ebp - 0x23b], 0x32
mov byte [ebp - 0x23a], 0x55
mov byte [ebp - 0x239], 0x21
mov byte [ebp - 0x238], 0x55
mov byte [ebp - 0x237], 0x47
mov byte [ebp - 0x236], 0x55
mov byte [ebp - 0x235], 0x21
mov byte [ebp - 0x234], 0x55
mov byte [ebp - 0x233], 0x55
mov byte [ebp - 0x232], 0x55
mov al, byte [ebp - 0x24b]
cmp byte [ebp - 0x24c], 0
jne 0x41b435
xor esi, esi
lea ebx, [esi + 0x7f]
mov al, byte [ebp + esi - 0x24b]
mov ecx, 0x55
movzx eax, al
sub ecx, eax
mov eax, ecx
shl eax, 6
sub eax, ecx
cdq
idiv ebx
lea eax, [edx + 0x7f]
cdq
idiv ebx
mov byte [ebp + esi - 0x24b], dl
inc esi
cmp esi, 0x1a
jb 0x41b401
mov ebx, dword [ebp - 0x250]
push 0x1c
push 0xd72e57a9
mov edx, 0xf
call fcn.00405270
add esp, 8
lea ecx, [ebp - 0x24b]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
call eax
test eax, eax
jne 0x41b492
push 0xc
call fcn.0041e584
xorps xmm0, xmm0
add esp, 4
movq qword [eax], xmm0
mov dword [eax + 8], 0
test eax, eax
je 0x41b4b8
mov ecx, dword [ebp - 0x228]
mov dword [eax], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 8], ecx
mov ecx, dword [edi + 4]
mov dword [ecx], eax
add eax, 4
mov dword [edi + 4], eax
push 0x63
push 0xa9a24646
mov edx, 0xf
call fcn.00405270
add esp, 8
lea ecx, [ebp - 0x230]
push ecx
push ebx
call eax
test eax, eax
jne 0x41b330
push 0x12
push 0xa5eb6e47
mov edx, 0xf
call fcn.00405270
add esp, 8
push ebx
call eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041c1b4
mov esp, ebp
pop ebp
ret
Function at 0x4011f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x40a614], 0
push esi
jne 0x401227
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 0x401201
mov dword [ecx*4 + 0x40a610], eax
inc ecx
cmp ecx, 0x100
jl 0x4011fc
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x401258
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 + 0x40a610]
xor eax, esi
inc ecx
dec edx
jne 0x40123a
pop edi
not eax
pop esi
ret 0xc
Function at 0x402af2
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x4357d0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402b86
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402b43
cmp dword [ebp + 0x10], ebx
jne 0x402b7a
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402af2
test eax, eax
jne 0x402b55
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402b2a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00406e39
cmp eax, ebx
je 0x402b8d
push ebx
push dword [0x4357d0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402b86
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x4357d0], ebx
jne 0x402b83
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402b83
jmp 0x402b86
Function at 0x404500
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [0x435750]
push edi
push 6
call fcn.00406e39
xor ebp, ebp
cmp eax, ebp
je 0x404529
call eax
movzx eax, ax
push eax
push 0x442000
call fcn.004069f4
jmp 0x404583
mov edi, 0x42e830
push ebp
push edi
push ebp
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov word [0x442000], 0x30
mov word [0x442002], 0x78
mov word [0x442004], bp
call fcn.0040697a
cmp word [0x42e830], bp
jne 0x404578
push ebp
push edi
push 0x40848c
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.0040697a
push edi
push 0x442000
call sub.KERNEL32.dll_lstrcatW
call fcn.00404739
mov eax, dword [0x435758]
mov ebx, 0x440800
and eax, 0x20
push ebx
mov dword [0x4357a0], eax
mov dword [0x4357bc], 0x10000
call fcn.004065e6
test eax, eax
jne 0x40463e
mov ecx, dword [esi + 0x40]
cmp ecx, ebp
je 0x40463e
mov edx, dword [esi + 0x44]
mov eax, dword [0x435778]
mov edi, str.Call
push ebp
lea edx, [eax + edx*2]
push edi
lea eax, [eax + ecx*2]
push edx
push eax
push dword [esi + 0x3c]
call fcn.0040697a
mov ax, word [str.Call]
cmp ax, bp
je 0x40463e
cmp ax, 0x22
jne 0x4045fd
mov edi, 0x4336e2
push 0x22
push edi
call fcn.0040650b
mov word [eax], bp
push edi
call sub.KERNEL32.dll_lstrlenW
lea eax, [edi + eax*2 - 8]
cmp eax, edi
jbe 0x404631
push 0x40a390
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x404631
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40462b
test al, 0x10
jne 0x404631
push edi
call fcn.0040652a
push edi
call fcn.004064de
push eax
push ebx
call fcn.00406aad
push ebx
call fcn.004065e6
test eax, eax
jne 0x404654
push dword [esi + 0x104]
push ebx
call fcn.00406ae7
push 0x8040
push ebp
push ebp
push 1
push 0x67
push dword [0x435740]
call dword [sym.imp.USER32.dll_LoadImageW]
push ebp
mov dword [0x434728], eax
call fcn.004012fc
test eax, eax
je 0x404682
push 2
pop eax
jmp 0x404734
call fcn.00404739
cmp dword [0x4357c0], ebp
jne 0x404709
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.RichEd20
call esi
test eax, eax
jne 0x4046a7
push str.RichEd32
call esi
mov edi, dword [sym.imp.USER32.dll_GetClassInfoW]
mov esi, 0x4346e0
mov ebx, str.RichEdit20A
push esi
push ebx
push ebp
call edi
test eax, eax
jne 0x4046d6
push esi
push 0x4083ac
push ebp
call edi
push esi
mov dword [str.RichEdit20A], ebx
call dword [sym.imp.USER32.dll_RegisterClassW]
mov eax, dword [0x434720]
push ebp
add eax, 0x69
push 0x4047f9
movzx eax, ax
push ebp
push eax
push dword [0x435740]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push 5
mov esi, eax
call fcn.004012fc
push 1
call fcn.00404450
mov eax, esi
jmp 0x404734
push ebp
call fcn.00405e47
test eax, eax
je 0x40472b
cmp dword [0x43470c], ebp
jne 0x40467a
push 2
call fcn.004012fc
jmp 0x40467a
push 1
call fcn.004012fc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x406242
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x431c38], 0x44
push eax
xor eax, eax
push 0x431c38
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40627d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x406307
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004065e6
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x40633b
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x4357a8], eax
jmp 0x4064d8
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x406359
test eax, eax
je 0x406483
test byte [ebp + 0xc], 2
je 0x406483
mov esi, str.C:UsersAdministratorAppDataRoamingPPStream.lnk
push edi
push esi
call fcn.00406aad
test ebx, ebx
je 0x406376
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x40637c
push edi
call fcn.0040652a
cmp word [edi], 0
jne 0x40638c
cmp word [str.C:UsersAdministratorAppDataRoamingPPStream.lnk], 0x5c
jne 0x406397
push 0x40a018
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x406478
lea eax, [ebp - 0x22c]
push 0x3f
push eax
lea esi, [ebp - 0x22c]
call fcn.0040650b
xor ecx, ecx
cmp word [eax], cx
je 0x4063de
cmp word [ebp - 0x24], cx
je 0x4063de
lea esi, [ebp - 0x24]
cmp word [esi], 0x2e
jne 0x4063f9
mov ax, word [esi + 2]
cmp ax, cx
je 0x406457
cmp ax, 0x2e
jne 0x4063f9
cmp word [esi + 4], cx
je 0x406457
push esi
push ebx
call fcn.00406aad
test byte [ebp - 0x258], 0x10
je 0x40641e
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406457
push dword [ebp + 0xc]
push edi
call fcn.00406307
jmp 0x406457
push edi
call fcn.004066da
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40644f
test byte [ebp + 0xc], 4
je 0x406447
push edi
push 0xfffffffffffffff1
call fcn.00405d74
push 0
push edi
call fcn.00406947
jmp 0x406457
inc dword [0x4357a8]
jmp 0x406457
push edi
push 0xfffffffffffffff2
call fcn.00405d74
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4063ba
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x406483
and word [ebx - 2], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4064d8
cmp dword [ebp - 8], esi
jne 0x406498
inc dword [0x4357a8]
jmp 0x4064d8
push edi
call fcn.00406e12
test eax, eax
je 0x4064d8
push edi
call fcn.004064de
push edi
call fcn.004066da
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4064d0
test byte [ebp + 0xc], 4
je 0x406490
push edi
push 0xfffffffffffffff1
call fcn.00405d74
push esi
push edi
call fcn.00406947
jmp 0x4064d8
push edi
push 0xffffffffffffffe5
call fcn.00405d74
pop edi
pop esi
leave
ret 8
Function at 0x4065e6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x431038
push esi
call fcn.00406aad
push esi
call fcn.00406589
mov edi, eax
test edi, edi
jne 0x406607
xor eax, eax
jmp 0x40665f
push edi
call fcn.00406d63
test byte [0x435758], 0x80
je 0x406624
mov ax, word [edi]
test ax, ax
je 0x406603
cmp ax, 0x5c
je 0x406603
sub edi, esi
sar edi, 1
jmp 0x40663e
call fcn.00406e12
test eax, eax
je 0x406638
test byte [eax], 0x10
je 0x406603
push esi
call fcn.0040652a
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x40662a
call fcn.004064de
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4066da
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4066f6
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x4066f9
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x406728
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a51c]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a520]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406778
test edi, edi
jne 0x406735
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x406772
Function at 0x40677c
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, 0x4326d0
push 0x40a530
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
cmp edi, ebp
mov esi, 0x400
je 0x4067ca
push 1
push ebp
push edi
call fcn.004066f9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406941
cmp eax, esi
jg 0x406941
mov edi, 0x432ed0
push esi
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406941
cmp eax, esi
jg 0x406941
push ebp
push ebp
push esi
push 0x4322d0
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x406941
push ebp
push ebp
push esi
mov esi, 0x431838
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x406941
push esi
push 0x4322d0
push str._s_s_r_n
push 0x431ed0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x435750]
add esp, 0x10
push dword [eax + 0x114]
push edi
call fcn.00406ae7
push 4
push 0xc0000000
push edi
call fcn.004066f9
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x406941
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x406937
lea eax, [esp + 0x10]
push ebp
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406937
cmp edi, dword [esp + 0x10]
jne 0x406937
push str._Rename__r_n
push esi
call fcn.00406664
cmp eax, ebp
jne 0x4068ce
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4068ff
add eax, 0xa
push 0x40a524
push eax
call fcn.00406664
mov ebp, eax
test ebp, ebp
je 0x4068fd
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4068f0
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4068ea
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x406901
xor ebp, ebp
mov eax, edi
push ebx
add eax, esi
push 0x431ed0
push eax
call fcn.004066ba
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push ebp
add edi, ebx
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40697a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4069ee
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4069db
cmp dword [ebp + 0x14], 1
je 0x4069de
cmp dword [ebp + 0x14], 2
je 0x4069de
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x402770
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4027d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x415084]
test esi, esi
jle 0x4028f0
mov eax, dword [0x415088]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x402804
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x402887
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4027f0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x402917
mov eax, dword [0x415088]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x415088]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4028f7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x402880
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x402890
add dword [0x415084], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x415088]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x402880
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40280e
mov eax, dword [0x415088]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x402dd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4150a0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x415098]
sub esp, 4
test ebx, ebx
je 0x402e25
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x402e1e
test esi, esi
je 0x402e1e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402e00
mov dword [esp], 0x4150a0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x403150
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x403175
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x403180
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x403175
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x4031c8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4031be
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4031ca
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4031b0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0xd323a42
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x6ea34529
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
popal
nop
nop
nop
nop
nop
jmp 0x401219