joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7c03088b
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x7c0308b2
lea eax, [ebp - 0x30]
push eax
call sym.MSVCR70.dll__assert
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
pop ecx
mov dword [ebp - 0x34], eax
lea edi, [ebp - 0x38]
lea eax, [edi + 8]
push eax
call sym.MSVCR70.dll__assert
test eax, eax
pop ecx
jne 0x7c0308d3
call sym.MSVCR70.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x7c0309d4
mov cx, word [eax + 0x14]
add cx, 0x76c
mov word [ebp - 0x28], cx
mov cx, word [eax + 0x10]
inc cx
mov word [ebp - 0x26], cx
mov cx, word [eax + 0xc]
mov word [ebp - 0x22], cx
mov cx, word [eax + 8]
mov word [ebp - 0x20], cx
mov cx, word [eax + 4]
mov word [ebp - 0x1e], cx
mov ax, word [eax]
and word [ebp - 0x1a], 0
push esi
mov esi, dword [sym.imp.kernel32.dll_SystemTimeToFileTime]
mov word [ebp - 0x1c], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x7c0309c5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x7c0309c5
push edi
call sym.MSVCR70.dll__assert
test eax, eax
pop ecx
je 0x7c0309c5
mov cx, word [eax + 0x14]
add cx, 0x76c
mov word [ebp - 0x28], cx
mov cx, word [eax + 0x10]
inc cx
mov word [ebp - 0x26], cx
mov cx, word [eax + 0xc]
mov word [ebp - 0x22], cx
mov cx, word [eax + 8]
mov word [ebp - 0x20], cx
mov cx, word [eax + 4]
mov word [ebp - 0x1e], cx
mov ax, word [eax]
and word [ebp - 0x1a], 0
mov word [ebp - 0x1c], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x7c0309c5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x7c0309c5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 8]
call sym.MSVCR70.dll__get_osfhandle
pop ecx
push eax
call dword [sym.imp.kernel32.dll_SetFileTime]
test eax, eax
je 0x7c0309c5
xor eax, eax
jmp 0x7c0309d3
call sym.MSVCR70.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
pop esi
pop edi
leave
ret
Function at 0x57825c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5c3040]
jne 0x578266
repz ret
jmp fcn.0057850d

Function at 0x5788b0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x24
mov dword [ebp - 8], 0
mov dword [0x5c3014], 0xea1
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov dword [0x5c3014], 0x12cc
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x578953
mov eax, dword [ebp - 0x18]
add esp, 0x24
pop esi
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x18], eax
je 0x5789b1
jmp 0x5788f1
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov dword [0x5c3018], eax
mov dword [0x5c3014], 0x6b6
mov eax, dword [ebp - 0x10]
cmp word [eax + ecx*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
je 0x578994
jmp 0x5788f1
mov eax, 1
mov dword [0x5c3018], 0x369d
mov dword [ebp - 0x18], eax
jmp 0x5788f1
mov eax, dword [ebp - 0x14]
mov ecx, 0x1bd2
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2], 0
mov esi, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ecx
je 0x578914
mov eax, 0x19cd
mov ecx, dword [ebp - 0x28]
add ecx, 1
cmp ecx, 0x104
mov edx, ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], ecx
jl 0x578953
jmp 0x578914
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x18], eax
je 0x5788fa
jmp 0x5788f1
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x18], eax
jne 0x5788f1
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x18], eax
jne 0x5788f1
xor eax, eax
mov dword [0x5c3014], 0xffffe770
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x18], eax
jne 0x5788f1
xor eax, eax
mov dword [0x5c3014], 0x251c
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x18], eax
je 0x57893f
jmp 0x5788f1
Function at 0x578b40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x5c3020], 0
mov byte [0x5c3024], 0
mov dword [0x5c3014], 0x19f5
mov dword [0x5c301c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x578c3c
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, 0x100
mov dword [0x5c3028], 0
add ecx, 0xffffe1b1
add eax, 0xffffe791
mov dword [ebp - 0x2c], eax
mov eax, edx
xor edi, edi
mov dword [ebp - 0x30], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
mov dword [0x5c3018], ecx
mov ecx, dword [0x5c3020]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x30]
movzx edi, byte [ebx + edi]
add edi, ecx
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + edx]
add edi, edx
mov dword [0x5c3028], edi
mov eax, edi
cdq
idiv esi
mov dword [0x5c3020], edx
mov esi, dword [ebp - 0x30]
mov cl, byte [ebx + esi]
mov byte [0x5c3024], cl
mov edi, dword [ebp - 0x2c]
mov dword [0x5c3018], edi
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x5c3024]
mov edx, dword [0x5c3020]
mov byte [ebx + edx], cl
mov edx, dword [0x5c301c]
add edx, 1
mov dword [0x5c301c], edx
cmp edx, 0x100
mov dword [ebp - 0x34], edx
jl 0x578ca4
jmp 0x578cc0
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x5c3014]
add eax, 0x1e60
mov dword [0x5c3018], eax
mov esi, dword [0x5c301c]
add esi, 1
mov dword [0x5c301c], esi
cmp esi, 0x100
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x38], eax
jl 0x578c3c
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov edx, 0x1a82
mov dword [0x5c3014], 0x1a82
mov dword [0x5c301c], 0
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
jmp 0x578b8a
mov eax, dword [0x5c3018]
mov ecx, dword [0x5c3014]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
jmp 0x578b8a
mov dword [0x5c3018], 0x2635
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x579470
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x28]
mov esi, dword [0x5c3014]
mov edi, esi
add edi, 0xffffe61c
mov dword [0x5c3018], edi
mov byte [ebp - 0x28], 0x56
mov byte [ebp - 0x27], 0x69
mov byte [ebp - 0x26], 0x72
mov byte [ebp - 0x25], 0x74
mov byte [ebp - 0x24], 0x75
mov byte [ebp - 0x23], 0x61
mov byte [ebp - 0x22], 0x6c
mov byte [ebp - 0x21], 0x41
mov byte [ebp - 0x20], 0x6c
mov byte [ebp - 0x1f], 0x6c
mov byte [ebp - 0x1e], 0x6f
mov byte [ebp - 0x1d], 0x63
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x1b], 0xb1
add esi, 0xffffecf1
mov dword [0x5c3014], esi
mov dword [esp], edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
call fcn.0057a010
cmp eax, 0
mov dword [ebp - 0x34], eax
je 0x5795c2
mov dword [0x5c3018], 0x12d8
mov eax, dword [ebp - 0x34]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov ecx, dword [0x5c3018]
add ecx, 0x206f
mov dword [0x5c3014], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x38], eax
call fcn.005798e0
xor eax, eax
mov ecx, dword [ebp - 0x38]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x5c3014], 0x22f9
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov dword [0x5c3018], 0x2203
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x50], ecx
mov ecx, dword [ebp - 0x38]
mov dword [edx + 0x5c], ecx
mov esi, dword [0x5c3014]
add esi, 0xffffe791
mov dword [0x5c3014], esi
add ecx, 0x1ae4
mov esi, dword [ebp - 0x38]
cmp esi, 0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
je 0x5795b8
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x48
pop esi
pop edi
pop ebp
ret
xor eax, eax
add esp, 0x48
pop esi
pop edi
pop ebp
ret
Function at 0x57a010
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x80
mov eax, dword [ebp + 8]
mov cl, 0x6b
xor edx, edx
lea esi, [ebp - 0x4c]
lea edi, [ebp - 0x6c]
mov ebx, dword [0x5c3018]
add ebx, 0x24ef
mov dword [0x5c3018], ebx
mov byte [ebp - 0x6c], 0x6b
mov byte [ebp - 0x6b], 0x65
mov byte [ebp - 0x6a], 0x72
mov byte [ebp - 0x69], 0x6e
mov byte [ebp - 0x68], 0x65
mov byte [ebp - 0x67], 0x6c
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x32
mov byte [ebp - 0x64], 0x2e
mov byte [ebp - 0x63], 0x64
mov byte [ebp - 0x62], 0x6c
mov byte [ebp - 0x61], 0x6c
mov byte [ebp - 0x60], 0
mov byte [ebp - 0x5f], 0xb1
mov dword [0x5c3014], 0x1d55
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], esi
mov byte [ebp - 0x75], cl
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x80]
mov cl, byte [ebp - 0x75]
mov edx, eax
inc edx
movsx esi, cl
mov di, si
mov word [ebp + eax*2 - 0x4c], di
mov cl, byte [ebp + eax - 0x6b]
cmp cl, 0
mov byte [ebp - 0x75], cl
mov dword [ebp - 0x80], edx
jne 0x57a08c
xor eax, eax
lea ecx, [ebp - 0x4c]
mov dword [0x5c3014], 0x23d0
mov dword [0x5c3018], 0x25ea
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [ebp - 0x84], eax
call fcn.00579020
mov dword [esp], eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 4], eax
call fcn.00579730
add esp, 0x80
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x57a100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x5c301c], 0
mov dword [0x5c3020], 0
mov dword [0x5c302c], 0
mov dword [0x5c3014], 0x2448
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jne 0x57a158
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 0x2448
xor ecx, ecx
mov edx, ecx
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ecx
jmp 0x57a171
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov edi, 0x100
add esi, 0xffffffa9
mov dword [0x5c3018], 0x264a
add ecx, 1
mov ebx, eax
add ebx, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv edi
mov dword [0x5c301c], edx
mov dword [0x5c3014], esi
mov ecx, dword [ebp - 0x1c]
movzx esi, byte [ecx + edx]
mov ecx, dword [ebp - 0x34]
add esi, ecx
mov eax, esi
mov dword [ebp - 0x38], edx
cdq
idiv edi
mov dword [0x5c3020], edx
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x5c3024], cl
mov dword [0x5c3018], 0x20ef
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x5c3024]
mov edx, dword [0x5c3020]
mov byte [edi + edx], cl
mov edx, dword [0x5c3014]
mov ecx, edx
add ecx, 0xffffe99b
mov dword [0x5c3018], ecx
mov ecx, dword [0x5c301c]
movzx ecx, byte [edi + ecx]
mov esi, dword [0x5c3020]
movzx esi, byte [edi + esi]
add esi, ecx
and esi, 0xff
mov dword [0x5c302c], esi
mov dword [0x5c3018], 0x1562
mov cl, byte [edi + esi]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x30]
mov ch, byte [esi + edi]
add edx, 0x5a6
mov dword [0x5c3018], edx
xor ch, cl
mov byte [0x5c3030], ch
mov dword [0x5c3014], 0x6a8
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], ch
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x3c], ebx
je 0x57a2a1
mov eax, dword [0x5c301c]
mov ecx, dword [0x5c3020]
mov edx, dword [0x5c3014]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], esi
jmp 0x57a171
jmp 0x57a150
Function at 0x57a2b0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov edx, dword [0x5c3014]
add edx, 0xffffef19
mov dword [0x5c3018], edx
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.00579a80
lea ecx, [0x578a30]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x90], edx
mov dword [esp + 0x5c], 0x113200
mov edx, dword [0x5c3000]
mov dword [esp + 0x54], edx
mov edx, dword [0x5c3004]
mov dword [esp + 0x8c], edx
mov edx, dword [0x5c3008]
mov dword [esp + 0x84], edx
mov edx, dword [0x5c300c]
mov dword [esp + 0x7c], edx
mov edx, dword [0x5c3010]
mov dword [esp + 0x64], edx
mov dword [0x5c3018], 0x717
mov dword [0x5c3014], 0x127a
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x57a36b
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
je 0x57a38e
jmp 0x57a37a
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
je 0x57a351
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
jmp 0x57a36b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x78], eax
mov dword [0x5c3014], 0x25db
mov eax, dword [eax + ecx + 0x50]
mov dword [esp + 0x80], eax
call fcn.005788b0
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x57a3f5
lea eax, [esp + 0x38]
mov dword [0x5c3014], 0xf39
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00579470
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x10009900
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x1000990f
pop dword [ebp - 0x30]
mov eax, 0x1000990f
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xaeab4cea
sub dword [ebp - 0x40], 0x6059079f
mov dword [ebp - 0x3c], 0x499bd99a
add dword [ebp - 0x3c], 0xe89772ab
mov dword [ebp - 0x38], 0x87315635
sub dword [ebp - 0x38], 0x3ae51207
mov dword [ebp - 0x34], 0x5549b6bd
sub dword [ebp - 0x34], 0x5549b6bd
lea eax, [ebp - 0x40]
push eax
mov eax, 0x8ca3bc94
sub eax, 0x7ca30c00
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xc4373d1d
sub dword [ebp - 0x40], 0x4fc4d3c7
mov dword [ebp - 0x3c], 0x8e22d1f0
sub dword [ebp - 0x3c], 0x4cb6707b
mov dword [ebp - 0x38], 0xb668e6bd
add dword [ebp - 0x38], 0xad0685af
mov dword [ebp - 0x34], 0xb479eaa1
sub dword [ebp - 0x34], 0xb479eaa1
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x544038ac
add eax, 0xbbc077a0
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x39ac0
push 0
call eax
mov ecx, 0x5098
mov esi, eax
mov edi, 0x98d0c5a5
add edi, 0x77308a5b
add edi, dword [ebp - 0x30]
mov ebx, 0x34d9e76d
add ebx, 0x474a3a65
add dword [ebp - 0x1c], ecx
mov edx, dword [edi]
add dword [ebp - 0x10], edi
sub edx, ebx
add dword [ebp - 0x2c], 0x2e163339
mov dword [esi], edx
xor dword [ebp - 8], ecx
add esi, 0x62dde623
add esi, 0x9d2219e1
add edi, 4
loop 0x10009a26
add eax, 0x13533
mov ebx, eax
add eax, 0xe2415dc9
sub eax, 0xe2415dc4
mov ecx, 0x5bbe4af
sub ecx, 0xf5bbe4af
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x402e41
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004063a9
xor ebx, ebx
cmp eax, ebx
jne 0x402f24
test byte [ebp + 0x10], 2
je 0x402ea2
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x402f09
lea eax, [ebp - 0x214]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402ede
test edi, edi
jne 0x402f09
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.00402e41
test eax, eax
jne 0x402ee7
lea eax, [ebp - 0x214]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402eb7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406931
test eax, eax
jne 0x402f19
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x402f24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402f24
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x403309
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x403334
mov ecx, dword [0x4702d8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x4326f4], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403411
cmp eax, esi
jl 0x40340b
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.004060b5
test eax, eax
je 0x4033fb
push dword [ebp + 8]
add dword [0x4326f4], 4
call fcn.00403411
mov ebx, eax
cmp ebx, esi
jl 0x403409
cmp dword [ebp + 0x10], esi
jne 0x4033d7
cmp dword [ebp + 8], esi
jle 0x403409
mov esi, 0x4266f0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403399
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.004060b5
test eax, eax
je 0x4033fb
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.004060e4
test eax, eax
je 0x4033d3
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x4326f4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x403388
jmp 0x403409
push 0xfffffffffffffffe
jmp 0x4033fd
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4033e2
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403400
push 0xfffffffffffffffd
pop eax
jmp 0x40340b
mov ebx, dword [ebp - 4]
add dword [0x4326f4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x405e3e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x405e40
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
fdiv qword [ebx]
ror dword [ebx - 0x6ff73], 0xff
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x405dea
call fcn.004049ea
mov dh, 0x46
cmc
movsb byte es:[edi], byte [esi]
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
invalid
test esi, edx
clc
invalid
invalid

Function at 0x406579
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x78b], 0
mov byte [ebp - 0x78a], 0xa0
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
mov byte [ebp - 0x786], 0x33
mov byte [ebp - 0x785], 0x3c
mov byte [ebp - 0x784], 0x30
mov byte [ebp - 0x783], 0x3a
mov byte [ebp - 0x782], 0x2d
mov byte [ebp - 0x781], 0x71
mov byte [ebp - 0x780], 0x3b
mov byte [ebp - 0x77f], 0x33
mov byte [ebp - 0x77e], 0x33
mov byte [ebp - 0x77d], 0x5f
push 0xc
lea eax, [ebp - 0x78c]
push eax
call fcn.004049fa
pop ecx
push eax
mov eax, dword [ebp - 0x28]
lea eax, [ebp + eax - 0x12c]
push eax
call fcn.0040495b
add esp, 0xc
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x3a0], eax
jmp 0x406962

Function at 0x4069a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
call fcn.004049fa
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.004049af
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
jne 0x4069cd
jmp fcn.0040638c
cmp dword [ebp - 0x37c], 0
je 0x4069db
jmp fcn.00406a90
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push dword [ebp - 0x3a0]
call dword [ebp - 0x3c8]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0xffffffff
je 0x406a34
push 0
lea eax, [ebp - 0x6c4]
push eax
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x406a39
jmp fcn.0040638c
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x406a80
lea eax, [ebp - 0x714]
push eax
call fcn.004049fa
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.004049af
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x406a8b
jmp fcn.00406a90
invalid
Function at 0x406371
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x238
mov eax, 0x40e86a
call fcn.0040d30f
mov dword [ebp - 0x21c], ecx
movzx eax, word [ebp + 8]
xor edi, edi
mov esi, dword [0x4166e8]
inc edi
push 0xf0
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x4064e2
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x4064e2
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4064e2
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4064e2
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x220], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x40645b
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], eax
call main
push dword [ebp - 0x114]
mov eax, dword [ebp - 0x21c]
and dword [ebp - 4], 0
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
lea eax, [ebp - 0x110]
cmove edi, ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x114], eax
je 0x4064d4
push dword [ebp - 0x114]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x4064d4
mov ecx, 0x1234
cmp cx, ax
jne 0x4064d4
or dword [ebp - 0x240], 0xffffffff
lea eax, [ebp - 0x214]
push 3
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x244], 1
mov dword [ebp - 0x218], eax
call main
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x23c], eax
cmp eax, ecx
je 0x4064ae
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x21c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
add esi, dword [ebp - 0x220]
test edi, edi
jne 0x4063c9
mov eax, edi
call fcn.0040d2ca
ret 4

Function at 0x40ab42
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40ab51
pop dword [ebp - 0x48]
mov eax, 0x272dd39c
sub eax, 0x26ed284b
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x368a9
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x1f99d74a
sub ecx, 0x1f9996bd
mov ebx, eax
mov esi, 0x41aa00
add esi, dword [ebp - 0x48]
mov edi, 0x3c44ff56
mov dword [ebp - 0x38], 0x65f99cd6
mov edx, dword [esi]
xor dword [ebp - 0x1c], esi
add edx, edi
xor dword [ebp - 0x20], eax
mov dword [ebx], edx
mov dword [ebp - 4], 0x17a1239
add ebx, 0x14cd4abe
sub ebx, 0x14cd4aba
add esi, 0xa81b9693
sub esi, 0xa81b968f
loop 0x40ab9f
add eax, 0x350c2ed8
sub eax, 0x350b39d1
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x60e10f83
add ecx, 0x9f5ef07d
add ecx, dword [ebp - 0x48]
call ebx
leave
ret