joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434ff0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.00402500
test eax, eax
jne 0x435048
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x4350b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push str.B32CB6D5_61BD_49c8_AA8A_8B790D3B9008
push 0
push 0
push 0
mov dword [0x46af7c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x435050
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.00402500
test eax, eax
jne 0x4350a8
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x435100
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push str.B32CB6D5_61BD_49c8_AA8A_8B790D3B9008
push 0
push 0
push 0
mov dword [0x46af7c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4377d1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x468738]
jne 0x4377db
repz ret
jmp fcn.0043ed61

Function at 0x449217
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x468738]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004400db
and dword [ebp - 0x14], 0
cmp dword [0x46ad24], 0
mov dword [ebp - 0x18], eax
jne 0x4492ca
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x449372
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x455bf0
push ebx
call edi
test eax, eax
je 0x449372
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46ad24], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46ad28], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46ad2c], eax
call edi
push eax
call esi
mov dword [0x46ad34], eax
test eax, eax
je 0x4492ca
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46ad30], eax
mov eax, dword [0x46ad30]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x449323
cmp dword [0x46ad34], ecx
je 0x449323
push eax
call esi
push dword [0x46ad34]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x449323
test ebx, ebx
je 0x449323
call edi
test eax, eax
je 0x44931a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x44931a
test byte [ebp - 8], 1
jne 0x449323
or dword [ebp + 0x10], 0x200000
jmp 0x449356
mov eax, dword [0x46ad28]
cmp eax, dword [ebp - 0x18]
je 0x449356
push eax
call esi
test eax, eax
je 0x449356
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x449356
mov eax, dword [0x46ad2c]
cmp eax, dword [ebp - 0x18]
je 0x449356
push eax
call esi
test eax, eax
je 0x449356
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46ad24]
call esi
test eax, eax
je 0x449372
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x449374
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004377d1
leave
ret
Function at 0x401a10
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x10c], 0
lea ecx, [ebp - 0x11c]
lea edx, [ebp - 0x134]
mov eax, 1
call fcn.00408050
call fcn.004096a0
push eax
test eax, eax
jne 0x401af3
mov dword [ebp - 0x108], 0x100
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x401a89
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
mov cl, 1
mov edx, 0xff
call fcn.00405920
jmp 0x401a9f
mov ebx, str.unknown
lea eax, [ebp - 0x10c]
call fcn.00402c90
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x401ab3
mov eax, dword [eax - 4]
mov dword [ebp - 0x110], 1
cmp eax, dword [ebp - 0x110]
jl 0x401af3
dec dword [ebp - 0x110]
nop
inc dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x110]
movzx ecx, byte [edx + ecx - 1]
mov edx, dword [ebp - 4]
add ecx, edx
mov dword [ebp - 4], ecx
cmp eax, dword [ebp - 0x110]
jg 0x401acc
call fcn.00408320
lea eax, [ebp - 0x10c]
call fcn.00402c90
mov dword [ebp - 0x10c], 0
pop eax
test eax, eax
je 0x401b17
call fcn.00408490
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0x13c]
leave
ret

Function at 0x407740
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xc]
movzx eax, byte [edx]
test eax, eax
jle 0x4077ef
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 4], eax
jmp 0x4077e7
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
test eax, eax
je 0x4077dc
mov eax, dword [esp]
lea edx, [eax + 6]
mov ebx, edx
mov eax, dword [esp]
movzx edx, word [eax]
dec edx
mov edi, edx
mov dword [esp + 8], 0
cmp edi, dword [esp + 8]
jl 0x4077dc
dec dword [esp + 8]
lea esi, [esi]
inc dword [esp + 8]
lea eax, [ebx + 6]
mov edx, dword [esp + 0xc]
call fcn.00404ff0
test eax, eax
jne 0x4077ca
mov eax, dword [ebx]
add eax, dword [esp + 0x10]
mov esi, eax
jmp 0x4077f4
lea edx, [ebx + 6]
inc edx
movzx eax, byte [ebx + 6]
add edx, eax
mov ebx, edx
cmp edi, dword [esp + 8]
jg 0x4077ac
mov eax, dword [esp + 4]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
jne 0x407778
mov esi, 0
mov eax, esi
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add esp, 0x20
ret

Function at 0x408c60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x431fa0], eax
mov edx, 1
dec edx
nop
inc edx
mov eax, edx
dec eax
mov ecx, dword [eax*4 + 0x431fa0]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x431fa0], eax
cmp edx, 0x26f
jl 0x408c6c
mov dword [0x4298e0], 0x270
ret
Function at 0x408ca0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub esp, 8
mov dword [esp], ebx
mov dword [esp + 4], esi
mov eax, dword [0x4310a0]
cmp eax, dword [0x429670]
je 0x408cc1
mov dword [0x4298e0], 0x271
mov eax, dword [0x4298e0]
cmp eax, 0x270
jl 0x408de9
mov eax, dword [0x4298e0]
cmp eax, 0x271
jne 0x408cf8
mov eax, dword [0x4310a0]
call fcn.00408c60
mov eax, dword [0x4310a0]
not eax
mov dword [0x4310a0], eax
mov dword [0x429670], eax
mov edx, 0
dec edx
mov esi, esi
inc edx
mov eax, edx
inc eax
mov eax, dword [eax*4 + 0x431fa0]
and eax, 0x7fffffff
mov ebx, dword [edx*4 + 0x431fa0]
and ebx, 0x80000000
or eax, ebx
mov ecx, eax
mov eax, edx
add eax, 0x18d
mov ebx, ecx
shr ebx, 1
mov esi, dword [eax*4 + 0x431fa0]
xor esi, ebx
mov eax, ecx
and eax, 1
mov eax, dword [eax*4 + 0x4298f0]
xor esi, eax
mov dword [edx*4 + 0x431fa0], esi
cmp edx, 0xe2
jl 0x408d00
mov edx, 0xe3
dec edx
inc edx
mov eax, edx
inc eax
mov eax, dword [eax*4 + 0x431fa0]
and eax, 0x7fffffff
mov ebx, dword [edx*4 + 0x431fa0]
and ebx, 0x80000000
or eax, ebx
mov ecx, eax
mov eax, edx
add eax, 0xffffff1d
mov ebx, ecx
shr ebx, 1
mov esi, dword [eax*4 + 0x431fa0]
xor esi, ebx
mov eax, ecx
and eax, 1
mov eax, dword [eax*4 + 0x4298f0]
xor esi, eax
mov dword [edx*4 + 0x431fa0], esi
cmp edx, 0x26e
jl 0x408d58
mov eax, dword [0x43295c]
and eax, 0x80000000
mov edx, dword [0x431fa0]
and edx, 0x7fffffff
or eax, edx
mov ecx, eax
shr eax, 1
mov edx, dword [0x4325d0]
xor eax, edx
and ecx, 1
mov edx, dword [ecx*4 + 0x4298f0]
xor eax, edx
mov dword [0x43295c], eax
mov dword [0x4298e0], 0
mov eax, dword [0x4298e0]
mov edx, dword [eax*4 + 0x431fa0]
inc dword [0x4298e0]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov ebx, dword [esp]
mov esi, dword [esp + 4]
add esp, 8
ret

Function at 0x40af40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ebx
mov dword [ebp - 4], esi
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, dword [0x429990]
cmp eax, 0xffffffff
jne 0x40af66
mov ax, 0xe2
call fcn.00409360
push dword [0x429990]
call sub.kernel32.dll_TlsGetValue
mov esi, eax
test eax, eax
jne 0x40af9f
push dword [0x429980]
push 0x40
call sub.kernel32.dll_LocalAlloc
mov esi, eax
test eax, eax
jne 0x40af93
mov ax, 0xe2
call fcn.00409360
push esi
push dword [0x429990]
call sub.kernel32.dll_TlsSetValue
push ebx
call sub.kernel32.dll_SetLastError
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
leave
ret
Function at 0x40cd50
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 0
mov dword [0x431dc0], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov eax, ebp
mov edx, 0
call fcn.0040cf40
mov ecx, dword [ebp - 0x110]
inc ecx
mov eax, dword [0x431dc0]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.004026f0
call sub.kernel32.dll_GetCommandLineA
mov dword [0x4294b0], eax
mov ebx, dword [0x4294b0]
jmp 0x40cef1
inc ebx
movzx eax, byte [ebx]
dec eax
cmp eax, 0x20
jb 0x40cdec
mov al, byte [ebx]
test al, al
je 0x40cefb
mov byte [ebp - 0x10c], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x40ce5c
mov al, byte [ebx]
cmp al, 1
jb 0x40ce55
sub al, 0x20
jbe 0x40ce28
sub al, 2
je 0x40ce3a
jmp 0x40ce55
mov al, byte [ebp - 0x10c]
test al, al
je 0x40ce62
inc dword [ebp - 0x110]
jmp 0x40ce5b
mov al, byte [ebx + 1]
cmp al, 0x22
je 0x40ce52
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x40ce5b
inc ebx
jmp 0x40ce5b
inc dword [ebp - 0x110]
inc ebx
mov al, byte [ebx]
test al, al
jne 0x40ce18
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x40ceeb
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x114]
mov eax, ebp
call fcn.0040cf40
mov byte [ebp - 0x10c], 0
mov ebx, edi
mov edx, dword [0x431dc0]
mov eax, dword [ebp - 0x114]
mov esi, dword [edx + eax*4]
jmp 0x40cee2
mov al, byte [ebx]
cmp al, 1
jb 0x40cedc
sub al, 0x20
jbe 0x40ceb0
sub al, 2
je 0x40cec1
jmp 0x40cedc
mov al, byte [ebp - 0x10c]
test al, al
je 0x40cee8
mov al, byte [ebx]
mov byte [esi], al
inc esi
jmp 0x40cee1
mov al, byte [ebx + 1]
cmp al, 0x22
je 0x40ced9
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x40cee1
inc ebx
jmp 0x40cee1
mov al, byte [ebx]
mov byte [esi], al
inc esi
inc ebx
mov al, byte [ebx]
test al, al
jne 0x40cea0
mov byte [esi], 0
inc dword [ebp - 0x114]
mov al, byte [ebx]
test al, al
jne 0x40cded
mov ebx, dword [ebp - 0x114]
mov dword [0x431db0], ebx
mov edx, ebx
inc edx
shl edx, 2
mov eax, 0x431dc0
call fcn.0040a840
mov eax, dword [0x431dc0]
mov dword [eax + ebx*4], 0
mov ebx, dword [ebp - 0x120]
mov esi, dword [ebp - 0x11c]
mov edi, dword [ebp - 0x118]
leave
ret

Function at 0x40e6d0
Capabilities:
Hash data with crc32

Disassembly:
sub esp, 4
mov dword [esp], ebx
mov dx, 0
dec dx
inc dx
movsx eax, dx
mov ecx, eax
mov bx, 1
dec bx
lea esi, [esi]
inc bx
mov eax, ecx
and eax, 1
je 0x40e702
mov eax, ecx
shr eax, 1
xor eax, 0xedb88320
mov ecx, eax
jmp 0x40e708
mov eax, ecx
shr eax, 1
mov ecx, eax
cmp bx, 8
jl 0x40e6ec
mov ax, dx
and eax, 0xffff
mov dword [eax*4 + 0x434bc0], ecx
cmp dx, 0xff
jl 0x40e6dc
mov ebx, dword [esp]
add esp, 4
ret
Function at 0x40e730
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov esi, eax
mov edi, edx
mov ebx, ecx
mov eax, dword [0x434bc4]
test eax, eax
jne 0x40e753
call fcn.0040e6d0
mov dword [esp], edi
not esi
mov dword [esp + 4], esi
mov esi, 1
cmp ebx, esi
jl 0x40e795
dec esi
mov esi, esi
inc esi
mov eax, dword [esp + 4]
mov dl, al
mov edi, dword [esp]
mov cl, byte [edi]
xor cl, dl
and ecx, 0xff
mov edx, eax
shr edx, 8
mov eax, dword [ecx*4 + 0x434bc0]
xor eax, edx
mov dword [esp + 4], eax
inc dword [esp]
cmp ebx, esi
jg 0x40e768
mov eax, dword [esp + 4]
not eax
mov ebx, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
add esp, 0x14
ret

Function at 0x424840
Capabilities:
Contain obfuscated stackstrings

Disassembly:
fsub st(0), st(0)
shr ch, 0xff
dec dword [edx]
movsd dword es:[edi], dword [esi]
and byte [ebp - 0x3fc], 0
and byte [ebp - 0x3fb], 0
mov byte [ebp - 0x3fa], 0xb1
and byte [ebp - 0x3f9], 0
mov byte [ebp - 0x3f8], 0xd
mov byte [ebp - 0x3f7], 0x3c
mov byte [ebp - 0x3f6], 0x2b
mov byte [ebp - 0x3f5], 0x2f
mov byte [ebp - 0x3f4], 0x3a
mov byte [ebp - 0x3f3], 0x2b
mov byte [ebp - 0x3f2], 8
mov byte [ebp - 0x3f1], 0x27
mov byte [ebp - 0x3f0], 0x22
mov byte [ebp - 0x3ef], 0x2b
mov byte [ebp - 0x3ee], 0xf
mov byte [ebp - 0x3ed], 0x4e
call fcn.00423628
inc esi
and byte [eax + 0x12], cl
lea eax, [ebp - 0x3fc]
push eax
call fcn.00423638
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004235ed
add esp, 0xc
mov dword [ebp - 0x3c8], eax
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x334]
push eax
call dword [ebp - 0x3c8]
mov dword [ebp - 0x66c], eax
cmp dword [ebp - 0x66c], 0xffffffff
je 0x4257be
push 0
push dword [ebp - 0x66c]
call dword [ebp - 0x33c]
mov dword [ebp - 0x378], eax
push dword [ebp - 0x378]
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 4], eax
and byte [ebp - 0x6dc], 0
and byte [ebp - 0x6db], 0
mov byte [ebp - 0x6da], 0x3b
stc
invalid
invalid
cmp eax, dword [eax - 0x6d85b]
inc dword [eax]
mov byte [ebp - 0x6d8], 0x96
mov byte [ebp - 0x6d7], 0xa1
mov byte [ebp - 0x6d6], 0xa5
mov byte [ebp - 0x6d5], 0xa0
mov byte [ebp - 0x6d4], 0x82
mov byte [ebp - 0x6d3], 0xad
mov byte [ebp - 0x6d2], 0xa8
mov byte [ebp - 0x6d1], 0xa1
mov byte [ebp - 0x6d0], 0xc4
call fcn.00423628
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4257d0
Capabilities:
Access peb ldr_data

Disassembly:
invalid
push esp
call fcn.00423628
pop ebx
adc al, 0x72
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x4257ef
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00423628
ja 0x425819
int1
sbb eax, 0x478bf88b
cmp al, 0x8b
push esp
pop es
js 0x425809
xlatb
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
sbb byte [ebx - 0x20fcdfa6], cl
call fcn.00423628
jge 0x4257a4
std
push esp
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x425818
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x425818
call fcn.00423628
cmc
and al, 0x9a
inc esi
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.00423628
and al, 4
loopne 0x4258b1
push dword [ebp + 8]
push dword [ebp + 4]
push dword [ebp]
call fcn.00423e46
pop ss
mov ecx, dword [str.An_operating_system_call_failed.]
mov edx, 0x42de7c
mov eax, 0
call fcn.00424d30
mov esi, eax
mov dword [esi + 0xc], ebx
mov ecx, ebp
mov edx, 0x425880
mov eax, esi
call fcn.00408280
call fcn.00408320
lea eax, [ebp - 0x3c]
call fcn.00402c90
mov dword [ebp - 0x3c], 0
pop eax
test eax, eax
je 0x4258ac
call fcn.00408490
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x40]
leave
ret
ror cl, 0xc3
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x4c], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x28]
mov eax, 1
call fcn.00408050
call fcn.004096a0
push eax
test eax, eax
jne 0x4259a5
lea eax, [ebp - 0x30]
call fcn.00402c90
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x30]
mov eax, esi
call fcn.00405840
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x425941
mov eax, dword [str.Assertion_failed]
call fcn.00405520
lea eax, [ebp - 4]
call fcn.00402c90
mov eax, dword [str.Assertion_failed]
mov dword [ebp - 4], eax
jmp 0x42594b
lea edx, [ebp - 4]
mov eax, esi
call fcn.00405840
mov eax, ebx
call fcn.00402a80
mov esi, eax
mov eax, ebx
call fcn.00402a70
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 0xb
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], 4
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x48]
push eax
push 2
mov ecx, dword [str._s___s__line__d_]
mov edx, 0x42dd90
mov eax, 0
call fcn.00424e40
mov ecx, esi
mov edx, ebx
call fcn.00408280
call fcn.00408320
lea eax, [ebp - 0x30]
call fcn.00402c90
mov dword [ebp - 0x30], 0
lea eax, [ebp - 4]
call fcn.00402c90
mov dword [ebp - 4], 0
pop eax
test eax, eax
je 0x4259d2
call fcn.00408490
mov ebx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x54]
mov edi, dword [ebp - 0x50]
leave
ret 4
Function at 0x425c00
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov ebx, eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push esi
push edi
mov eax, ebx
mov edx, 0
call fcn.00425ba0
cmp edx, esi
jne 0x425c3a
cmp eax, edi
jne 0x425c3a
push ebx
call sub.kernel32.dll_SetEndOfFile
or eax, eax
setne al
jmp 0x425c3c
mov al, 0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
leave
ret 8

Function at 0x425e70
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
mov eax, 1
call fcn.00408050
call fcn.004096a0
push eax
test eax, eax
jne 0x425f43
mov ebx, 1
dec ebx
nop
inc ebx
lea eax, [ebx*4 + 0x4352ac]
call fcn.00402c90
mov dword [ebx*4 + 0x4352ac], 0
mov dword [ebx*4 + 0x4352cc], 0xffffffff
cmp ebx, 7
jl 0x425ea8
call sub.kernel32.dll_GetThreadLocale
mov ebx, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push ebx
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x425f43
lea eax, [ebp - 0x38]
call fcn.00402c90
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc]
mov cl, 1
mov edx, 0xa
call fcn.00405920
mov eax, dword [ebp - 0x38]
mov edx, 1
call fcn.00421e80
mov esi, eax
sub eax, 3
cmp eax, 3
jae 0x425f43
push 4
push esi
push ebx
mov eax, 0x425cf0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push esi
push ebx
mov eax, 0x425db0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
call fcn.00408320
lea eax, [ebp - 0x38]
call fcn.00402c90
mov dword [ebp - 0x38], 0
pop eax
test eax, eax
je 0x425f61
call fcn.00408490
mov ebx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
leave
ret
Function at 0x426fc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov byte [ebp - 4], al
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
cmp byte [ebp - 4], 0
je 0x426feb
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push 0x80000002
call sub.advapi32.dll_RegOpenKeyA
mov dword [ebp - 0x18], eax
jmp 0x426fff
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push 0x80000001
call sub.advapi32.dll_RegOpenKeyA
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42700f
mov dword [ebp - 0x10], 0
jmp 0x42707f
mov edx, 4
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x20]
mov cl, 0
call fcn.00402750
mov dword [ebp - 0x1c], 4
lea eax, [ebp - 0x24]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x14]
call sub.advapi32.dll_RegQueryValueExA
mov eax, dword [ebp - 0x1c]
cmp eax, 4
je 0x427058
mov dword [ebp - 0x10], 0
push dword [ebp - 0x14]
call sub.advapi32.dll_RegCloseKey
jmp 0x42707f
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x14]
call sub.advapi32.dll_RegQueryValueExA
push dword [ebp - 0x14]
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
leave
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x6b641fb6
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x6df04166
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401400
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
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit

Function at 0x401500
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 0x40155d
cmp byte [esi + ebx - 1], 0xa
je 0x40152f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov edx, 0x404084
lock xchg dword [edx], 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