joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429238
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x254
mov eax, dword [0x480600]
xor eax, esp
mov dword [esp + 0x250], eax
and dword [esp + 4], 0
lea eax, [esp + 4]
and dword [esp + 8], 0
push ebx
push ebp
mov ebp, dword [esp + 0x260]
push esi
push edi
push eax
call fcn.00401789
mov esi, dword [esp + 0x274]
xor ebx, ebx
pop ecx
mov dword [esp + 0x14], eax
push str.JAHNsiu
push 0x4823e0
call fcn.0040146b
push eax
call fcn.004027a6
mov eax, ebx
mov byte [esp + ebx + 0x6c], bl
cdq
add esp, 0xc
idiv dword [esp + 0x274]
mov al, byte [edx + esi]
mov byte [esp + ebx + 0x160], al
inc ebx
cmp ebx, 0x100
jl 0x429279
xor esi, esi
xor edi, edi
mov dl, byte [esp + esi + 0x60]
movzx eax, byte [esp + esi + 0x160]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x4292d9
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x60]
mov byte [esp + esi + 0x60], al
inc esi
mov byte [esp + edi + 0x60], dl
cmp esi, 0x100
jl 0x4292b6
xor ebx, ebx
xor esi, esi
xor edi, edi
mov dword [esp + 0x10], esi
cmp dword [esp + 0x26c], ebx
jle 0x429444
inc ebx
and ebx, 0x800000ff
jns 0x429316
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, byte [esp + ebx + 0x60]
movzx edx, cl
add edi, edx
mov dword [esp + 0x1c], ebx
and edi, 0x800000ff
jns 0x429333
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x60]
mov byte [esp + ebx + 0x60], al
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov byte [esp + edi + 0x60], cl
lea ecx, [esp + 0x60]
movzx eax, byte [esp + ebx + 0x60]
xor ebx, ebx
add eax, edx
mov dword [esp + 0x20], edi
movzx eax, al
add eax, ecx
lea ecx, [esp + 0x3c]
push eax
push ebx
call fcn.00401a9b
lea eax, [esp + 0x10]
mov dword [esp + 0x30], ebx
push eax
push ebx
lea ecx, [esp + 0x38]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.00401b63
push 0x42a5a0
lea ecx, [esp + 0x4c]
call fcn.00402c81
cmp dword [esp + 0x5c], 0xf
lea eax, [esp + 0x48]
cmova eax, dword [esp + 0x48]
push eax
call fcn.00410dee
pop ecx
push ebx
push ebx
mov edi, eax
mov dword [esp + 0x2c], ebx
push ebx
mov ecx, 0x4824a0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.004037b5
mov ecx, eax
call fcn.004037b5
mov ecx, eax
call fcn.004037b5
push 0xa
pop ebx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
call fcn.00401a6f
sub ebx, 1
jne 0x4293dc
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + edi*4]
mov eax, dword [esp + 0x3c]
mov al, byte [ecx + eax]
lea ecx, [esp + 0x24]
xor byte [edx + ebp], al
call fcn.004058b0
lea ecx, [esp + 0x48]
call fcn.004058fc
lea ecx, [esp + 0x30]
call fcn.004058b0
lea ecx, [esp + 0x3c]
call fcn.0040588d
mov ebx, dword [esp + 0x1c]
inc esi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], esi
cmp esi, dword [esp + 0x26c]
jl 0x429305
lea eax, [esp + 0x14]
push eax
mov ecx, eax
call fcn.00401ce9
mov ecx, dword [esp + 0x260]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b778
add esp, 0x254
ret
Function at 0x429564
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0xc
sub eax, dword [esp + 0x10]
sar eax, 2
push edi
mov edi, dword [esp + 0x20]
test eax, eax
je 0x42963c
push ebx
xor ebx, ebx
push esi
mov esi, ebx
cmp dword [esp + 0x2c], ebx
jbe 0x42963a
push ebp
mov dword [esp + 0x10], ebx
mov ebp, 0x4823e0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebp
mov byte [edi + esi], al
call fcn.0040146b
push eax
call fcn.004027a6
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebp
mov byte [edi + esi], al
call fcn.0040146b
push eax
call fcn.004027a6
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x42a594
mov byte [edi + esi], al
call fcn.00410dee
add esp, 0x1c
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x10]
push eax
push ebx
call fcn.00401b63
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
xor byte [edi + esi], al
mov eax, dword [esp + 0x18]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.00401a43
inc esi
mov dword [esp + 0x18], ebx
pop ecx
pop ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
cmp esi, dword [esp + 0x30]
jb 0x4295a1
pop ebp
pop esi
pop ebx
lea ecx, [esp + 0x14]
call fcn.004058b0
pop edi
add esp, 0xc
ret 0x14

Function at 0x42964c
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x429668
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret
Function at 0x407fea
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4016b8
call fcn.004082b0
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x40803d
mov eax, dword [0x40003c]
lea eax, [eax + 0x400000]
cmp dword [eax], 0x4550
jne 0x40803d
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x408055
cmp ecx, 0x20b
je 0x408042
mov dword [ebp - 0x60], ebx
jmp 0x408069
cmp dword [eax + 0x84], 0xe
jbe 0x40803d
xor ecx, ecx
cmp dword [eax + 0xf8], ebx
jmp 0x408063
cmp dword [eax + 0x74], 0xe
jbe 0x40803d
xor ecx, ecx
cmp dword [eax + 0xe8], ebx
setne cl
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x40aa94], edi
mov dword [0x40aa98], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x40aa88]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x40aa84]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40aa90], eax
call fcn.004082ac
cmp dword [0x40a040], ebx
jne 0x4080c6
push fcn.004082ac
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040829a
push 0x40a018
push 0x40a014
call sub.msvcrt.dll__initterm
mov eax, dword [0x40aa80]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push dword [0x40aa7c]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x74], eax
push 0x40a010
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
cmp byte [eax], 0x22
jne 0x408151
inc eax
mov dword [ebp - 0x78], eax
mov cl, byte [eax]
cmp cl, bl
je 0x408131
cmp cl, 0x22
jne 0x408122
cmp byte [eax], 0x22
jne 0x40813a
inc eax
mov dword [ebp - 0x78], eax
mov cl, byte [eax]
cmp cl, bl
je 0x408145
cmp cl, 0x20
jbe 0x408136
test byte [ebp - 0x30], 1
je 0x40815c
movzx ecx, word [ebp - 0x2c]
jmp 0x40815f
cmp byte [eax], 0x20
jbe 0x40813a
inc eax
mov dword [ebp - 0x78], eax
jmp 0x408151
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.00407a92
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x60], ebx
jne 0x40817d
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x4081b9
mov eax, esi
jmp 0x4081cd
call fcn.004082eb
ret

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

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x41cbea
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041428e
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x41cc22
xor eax, eax
jmp 0x41cc4e
cmp esi, dword [ebp - 4]
je 0x41cc4b
cmp dword [ebp + 0xc], 0
je 0x41cc4b
push dword [edi + 0x9c]
call fcn.0041c7f8
push dword [edi + 0x9c]
mov esi, eax
call fcn.0040ef84
pop ecx
pop ecx
cmp esi, eax
je 0x41cc1e
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..pdata
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x4a4919fa
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
mov eax, section..pdata_1
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x27de130c
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4192ee
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov edi, ecx
mov dword [ebp - 4], esi
jne 0x419311
mov eax, 0x8876086c
jmp 0x419426
cmp dword [ebp + 0xc], esi
push ebx
je 0x4193a9
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
je 0x419389
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push 0xfde9
call ebx
push eax
mov dword [ebp + 0xc], eax
call fcn.0049de73
cmp eax, esi
pop ecx
mov dword [ebp - 4], eax
jne 0x41936d
mov eax, 0x8007000e
jmp 0x419425
push esi
push esi
push dword [ebp + 0xc]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push 0xfde9
call ebx
mov eax, dword [ebp - 4]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], esi
cmp dword [ebp + 0xc], esi
je 0x4193a9
push esi
push 0x10000000
push 3
push esi
push 1
push bind
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x4193c2
push esi
push 0x10000000
push 3
push esi
push 1
push bind
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push dword [ebp - 4]
mov dword [edi], eax
call fcn.0049e10e
mov eax, dword [edi]
cmp eax, 0xffffffff
pop ecx
je 0x419413
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x419413
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
je 0x419413
cmp eax, esi
je 0x419420
push esi
push esi
push esi
push 4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
jne 0x419423
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x419425
mov dword [edi + 8], esi
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x41e970
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x14], 0xcc
je 0x41e993
mov eax, dword [esi + 0x1a8]
push esi
call dword [eax]
mov dword [esi + 0x8c], 0
mov dword [esi + 0x14], 0xcc
mov ecx, dword [esi + 0x1a8]
mov eax, dword [ecx + 8]
test eax, eax
je 0x41e9b9
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x30
call dword [eax]
mov edx, dword [esi + 0x1a8]
mov eax, dword [edx + 8]
test eax, eax
jne 0x41e9a0
mov edx, dword [esi + 0x44]
xor eax, eax
test edx, edx
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov eax, 1
ret

Function at 0x41ea70
Capabilities:
Check for software breakpoints

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x41eaa7
push esi
call fcn.004263c0
mov eax, dword [esi + 0x40]
test eax, eax
je 0x41eaa0
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
pop ebp
ret 4
mov dword [esi + 0x14], 0xcb
mov ecx, dword [esi + 0x14]
cmp ecx, 0xcb
jne 0x41eb26
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x41eb10
nop
mov eax, dword [esi + 8]
test eax, eax
je 0x41eaca
push esi
call dword [eax]
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
test eax, eax
je 0x41eb09
cmp eax, 2
je 0x41eb10
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x41eac0
cmp eax, 3
je 0x41eaed
cmp eax, 1
jne 0x41eac0
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
cmp eax, dword [ecx + 8]
jl 0x41eac0
mov eax, dword [ecx + 8]
mov edx, dword [esi + 0x144]
add eax, edx
mov dword [ecx + 8], eax
jmp 0x41eac0
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [esi + 0x94]
mov dword [esi + 0x9c], eax
call fcn.0041e970
pop esi
pop ebp
ret 4
cmp ecx, 0xcc
je 0x41eb3d
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
push esi
mov dword [eax + 0x18], ecx
call dword [eax]
call fcn.0041e970
pop esi
pop ebp
ret 4

Function at 0x41efa6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x505b78
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41efff
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x41efff
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x41efff
xor eax, eax
inc eax
jmp 0x41f001
xor eax, eax
leave
ret 0x10
Function at 0x41f02d
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push 0x505b78
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x41f09d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x508c04
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41f094
cmp dword [ebp - 0xc], 4
jne 0x41f094
cmp dword [ebp - 0x10], edi
je 0x41f094
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x52ec58], edi
xor eax, eax
jmp 0x41f0dc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x52ec58], edi
jge 0x41f0d7
lea eax, [ebp - 0x34]
push eax
mov dword [0x52ec58], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x41f0d7
cmp word [ebp - 0x14], 5
jb 0x41f0d7
call fcn.0041f005
test eax, eax
je 0x41f0d7
emms
mov dword [0x52ec58], 1
mov eax, dword [0x52ec58]
pop edi
leave
ret

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

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x427ea5
xor eax, eax
jmp 0x427f88
mov eax, dword [esp + 0xc]
cmp eax, 8
push ebx
push esi
mov esi, dword [esp + 0xc]
not esi
mov ecx, 0xff
jb 0x427f68
push edi
mov edi, eax
shr edi, 3
xor ebx, ebx
mov bl, byte [edx]
sub eax, 8
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x50ab90]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x50ab90]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x50ab90]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x50ab90]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x50ab90]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x50ab90]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x50ab90]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x50ab90]
inc edx
dec edi
jne 0x427ec5
pop edi
test eax, eax
je 0x427f82
xor ebx, ebx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x50ab90]
inc edx
dec eax
jne 0x427f6c
mov eax, esi
pop esi
not eax
pop ebx
ret 0xc
Function at 0x446f20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1bc7
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x52e098]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x524508
mov dword [edi + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.00446480
lea ebx, [edi + 4]
mov dword [esi + 0x3c], 0
push 0x20
mov ecx, esi
mov dword [esi + 0x38], ebx
call fcn.0044aff0
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x446fc4
mov eax, dword [esi + 0xc]
mov ecx, esi
push 0
or eax, 4
push eax
call fcn.00446360
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov dword [ebp - 0x18], ebx
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + edi - 4], eax
mov ecx, ebx
call fcn.0044ad40
lea eax, [ebx + 4]
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [ebx + 0xc], eax
lea ecx, [ebx + 8]
lea eax, [ebx + 0x14]
mov byte [ebx + 0x48], 0
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov byte [ebx + 0x3d], 0
mov dword [ebx + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov dword [ebx + 0x4c], 0
mov eax, dword [0x53fb2c]
mov dword [ebx + 0x40], eax
mov eax, dword [0x53fb30]
mov dword [ebx + 0x44], eax
mov eax, edi
mov dword [ebx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4497e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1e08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x52e098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x449930
cmp byte [edi + 0x3d], 0
je 0x449930
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x449839
xor al, al
jmp 0x449932
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
nop
mov eax, dword [edi + 0x38]
lea ebx, [ebp - 0x28]
cmp ecx, 0x10
lea esi, [ebp - 0x28]
cmovae ebx, edx
cmovae esi, edx
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
cmp eax, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x449895
mov dword [ebp - 0x2c], esi
xor eax, eax
jmp 0x4498b6
mov ecx, dword [edi + 0x38]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, ebx
push eax
push esi
lea eax, [edi + 0x40]
push eax
mov eax, dword [ebp - 0x30]
call dword [eax + 0x20]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub eax, 0
je 0x4498c9
sub eax, 1
je 0x4498cd
sub eax, 2
je 0x44991a
xor bl, bl
jmp 0x44991c
mov byte [edi + 0x3d], 0
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edx
sub esi, eax
je 0x4498fc
push dword [edi + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004be361
mov ecx, dword [ebp - 0x14]
add esp, 0x10
mov edx, dword [ebp - 0x28]
cmp esi, eax
jne 0x4498c5
cmp byte [edi + 0x3d], 0
je 0x44991a
test esi, esi
jne 0x449870
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00449630
jmp 0x449869
mov bl, 1
cmp ecx, 0x10
jb 0x44992c
inc ecx
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00445260
mov al, bl
jmp 0x449932
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049de5d
mov esp, ebp
pop ebp
ret