joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b71cb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x6e89f0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5b720b
cmp byte [ebx], 0xa
jne 0x5b720b
or byte [eax + edi + 0x28], 4
jmp 0x5b7210
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x5b730e
mov al, byte [edx]
cmp al, 0x1a
je 0x5b72f0
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x5b723f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x5b7264
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x5b726e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x5b7221
jmp 0x5b730e
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5b72eb
cmp dword [ebp - 0xc], 0
je 0x5b72eb
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x6e89f0]
test byte [eax + edi + 0x28], 0x48
je 0x5b72c5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5b72b0
mov byte [esi], dl
jmp 0x5b72c1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6e89f0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5b730e
cmp byte [ebp - 1], 0xa
jne 0x5b72d4
cmp esi, ebx
jne 0x5b72d4
mov byte [esi], 0xa
jmp 0x5b730d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005b7d4b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5b730e
mov byte [esi], 0xd
jmp 0x5b730d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x6e89f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5b730a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5b730e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5b7317
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x6e89f0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5b735a
cmp word [esi], dx
jne 0x5b735a
or byte [edi + eax + 0x28], 4
jmp 0x5b735f
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x5b74b2
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x5b7492
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x5b73a1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5b73d7
cmp eax, edx
jae 0x5b73e3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x5b7379
jmp 0x5b74b2
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5b748e
cmp dword [ebp - 0x14], 0
je 0x5b748e
mov eax, dword [ebx*4 + 0x6e89f0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x5b7466
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x5b742f
mov word [esi], cx
jmp 0x5b7462
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x6e89f0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x6e89f0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x6e89f0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x5b74b2
pop ebx
cmp word [ebp - 4], bx
jne 0x5b7477
cmp esi, dword [ebp + 0xc]
jne 0x5b7477
mov word [esi], bx
jmp 0x5b74af
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005b7d4b
add esp, 0x10
cmp word [ebp - 4], bx
je 0x5b74b2
push 0xd
jmp 0x5b74ab
mov ecx, dword [ebx*4 + 0x6e89f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5b74a9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5b74b2
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5b870a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5b871b
pop esi
ret
push ebx
push edi
push esi
call fcn.005b86d3
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.005b2f99
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5b8743
push ebx
push esi
push edi
call fcn.00599ef0
add esp, 0xc
push 0
call fcn.005b2f5f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5b8b07
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005b8758

Function at 0x5b97f4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x689140]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x5b983f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.005b9993
test al, al
jne 0x5b9839
sub edx, 2
cmp edx, edi
jne 0x5b981f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5b9861
lea eax, [edi + 2]
cmp edx, eax
je 0x5b9861
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005b9740
add esp, 0x10
jmp 0x5b995b
push esi
lea ecx, [ebp - 0x255]
call fcn.005b9993
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5b98a4
push dword [ebp - 0x25c]
jmp 0x5b9851
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x5b98e1
cmp word [ebp - 0x226], 0
je 0x5b9902
cmp word [ebp - 0x226], ax
jne 0x5b98e1
cmp word [ebp - 0x224], 0
je 0x5b9902
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.005b9740
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5b994e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5b98bb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5b9936
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x5b995b
push 0x5b9570
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.005bedb0
add esp, 0x10
jmp 0x5b992b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059860b
leave
ret
Function at 0x5c0f90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ef9fc
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x689140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
je 0x5c1004
mov dword [ebx], 0x61e6e8
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x50], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
lea esi, [ebx + 4]
mov ecx, ebx
push 0
push esi
mov dword [ebp + 8], esi
call fcn.00597837
mov eax, dword [ebx]
push 8
mov dword [ebp - 4], 1
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + ebx - 4], eax
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.005988b3
mov esi, eax
add esp, 4
test esi, esi
je 0x5c105e
push 1
mov byte [ebp - 4], 2
call fcn.00596424
add esp, 4
mov dword [esi + 4], eax
jmp 0x5c1060
xor esi, esi
lea eax, [ebx + 4]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
lea edi, [eax + 0x14]
mov dword [eax + 0x1c], edi
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea edx, [eax + 0x24]
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x10]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 4
mov eax, dword [ebp - 0x14]
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 0x5c9e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
and edi, 0x1f
mov dword [ebp + 0x14], edi
cmp edi, 8
jb 0x5c9ec9
mov eax, edi
shr eax, 3
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
nop dword [eax]
cmp ecx, 1
jne 0x5c9e70
push esi
call fcn.005ca050
add esp, 4
jmp 0x5c9e75
mov eax, dword [esi]
mov edx, dword [esi + 4]
push edx
push eax
push 0
push 0
add esi, 8
call fcn.005c9fe0
add esp, 0x10
mov ecx, eax
xor ecx, dword [ebp - 4]
xor edx, ebx
mov eax, ecx
shld eax, edx, 0x1b
push 0x9e3779b1
shld edx, ecx, 0x1b
push 0x85ebca87
push edx
push eax
call fcn.00599340
mov ecx, dword [ebp + 0x18]
add eax, 0xc2b2ae63
mov ebx, edx
mov dword [ebp - 4], eax
adc ebx, 0x85ebca77
sub edi, 8
sub dword [ebp + 0x14], 1
jne 0x5c9e60
mov dword [ebp + 0x14], edi
jmp 0x5c9ecf
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp edi, 4
jb 0x5c9f35
cmp ecx, 1
jne 0x5c9ee6
push esi
call fcn.005ca030
add esp, 4
mov ecx, eax
jmp 0x5c9ee8
mov ecx, dword [esi]
mov eax, 0x9e3779b1
add esi, 4
mul ecx
push 0xc2b2ae3d
mov edi, eax
mov eax, 0x85ebca87
mul ecx
push 0x27d4eb4f
mov ecx, eax
add edi, edx
xor ecx, dword [ebp - 4]
xor edi, ebx
mov eax, ecx
shld eax, edi, 0x17
shld edi, ecx, 0x17
push edi
push eax
call fcn.00599340
mov edi, dword [ebp + 0x14]
add eax, 0x9e3779f9
mov ebx, edx
mov dword [ebp - 4], eax
adc ebx, 0x165667b1
sub edi, 4
test edi, edi
je 0x5c9f84
nop dword [eax]
movzx eax, byte [esi]
push 0x27d4eb2f
cdq
push 0x165667c5
push edx
push eax
call fcn.00599340
mov ecx, dword [ebp - 4]
lea esi, [esi + 1]
xor ecx, eax
xor ebx, edx
mov eax, ecx
push 0x9e3779b1
shld eax, ebx, 0xb
shld ebx, ecx, 0xb
push 0x85ebca87
push ebx
push eax
call fcn.00599340
mov dword [ebp - 4], eax
mov ebx, edx
sub edi, 1
jne 0x5c9f40
push ebx
push eax
call fcn.005c9de0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5ca560
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5ca58d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5ca58d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1002643
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x878
mov eax, dword [0x1019084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x86c], eax
xor eax, eax
lea ecx, [ebp - 0x878]
push ecx
push eax
push eax
push eax
mov dword [ebp - 0x860], eax
mov dword [ebx], eax
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x868], 0x200
push esi
call dword [sym.imp.KERNEL32.dll_RegEnumKeyExW]
test eax, eax
jne 0x100f3de
lea eax, [ebp - 0x860]
push eax
push edi
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov dword [ebp - 0x85c], eax
test eax, eax
jl 0x10026dc
push dword [ebp - 0x860]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1002708
cmp dword [ebp - 0x860], 0
pop edi
pop esi
pop ebx
je 0x10026f4
push dword [ebp - 0x860]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x85c]
xor ecx, ebp
call fcn.01001c90
leave
ret 0x14
lea eax, [ebp - 0x864]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100f3f8
lea eax, [ebp - 0x858]
push eax
push edi
push dword [ebp - 0x864]
call fcn.0100280d
mov dword [ebp - 0x85c], eax
test eax, eax
jl 0x10027d8
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x870]
push eax
push 0
push 0x10027ec
push dword [ebp - 0x864]
mov dword [ebp - 0x428], 1
mov dword [ebp - 0x868], 0x400
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0x100f40f
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov dword [ebp - 0x85c], eax
test eax, eax
jl 0x10027d8
lea esi, [ebp - 0x414]
lea edi, [ebp - 0x424]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x86c]
mov ecx, 0x111
lea esi, [ebp - 0x858]
rep movsd dword es:[edi], dword [esi]
mov dword [ebx], 1
push dword [ebp - 0x864]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
jmp 0x10026dc
cmp eax, 0xea
je 0x10026ab
mov dword [ebp - 0x85c], 0x887c003a
jmp 0x10026dc
jle 0x100f404
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x85c], eax
jmp 0x10026dc
jle 0x100f41b
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x85c], eax
jmp 0x10027d8

Function at 0x1008489
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.010084c2
mov edi, eax
xor eax, eax
cmp edi, eax
jl 0x10084b5
push eax
push eax
push esi
push 0x10080db
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x100acc3
Capabilities:
Terminate process

Disassembly:
call fcn.0100ab4c
push 0x5c
push 0x100adf8
call fcn.010060c8
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x101912c
push ebx
push esi
push edi
call dword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedCompareExchange]
cmp eax, ebx
jne 0x100c5a6
xor esi, esi
inc esi
mov eax, dword [0x10190a0]
cmp eax, esi
je 0x100c5c5
mov eax, dword [0x10190a0]
test eax, eax
jne 0x100ae2f
mov dword [0x10190a0], esi
push 0x100adf0
push 0x100ade4
call fcn.0100ac9a
pop ecx
pop ecx
test eax, eax
jne 0x100c674
mov eax, dword [0x10190a0]
cmp eax, esi
jne 0x100ad76
push 0x100ade0
push 0x100adb8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10190a0], 2
cmp dword [ebp - 0x20], ebx
jne 0x100ad83
push ebx
push edi
call dword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedExchange]
cmp dword [0x1019628], ebx
jne 0x100c5d2
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100c674
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
jbe 0x100ae20
cmp cx, 0x22
je 0x100c611
inc eax
inc eax
jmp 0x100ad9e
cmp cx, bx
je 0x100ae3a
cmp dword [ebp - 0x1c], ebx
je 0x100ae3a
jmp 0x100adaa
mov dword [0x1019654], esi
jmp 0x100ad52
movzx ecx, word [eax]
cmp cx, bx
je 0x100ae4f
cmp cx, 0x20
ja 0x100ae4f
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x100ae3a
test byte [ebp - 0x40], 1
jne 0x100c5f4
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.0100ae73
jmp 0x100c5fd
cmp eax, esi
jne 0x100c5b5
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100ad19
push 0x3e8
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x100ad05
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100ad52
push 0x1019628
call fcn.0100fff9
pop ecx
test eax, eax
je 0x100ad8f
push ebx
push 2
push ebx
call dword [0x1019628]
jmp 0x100ad8f
movzx ecx, word [ebp - 0x3c]
jmp 0x100ae5c
mov dword [0x1019650], eax
cmp dword [0x1019094], ebx
jne 0x100c651
push eax
call dword [sym.imp.msvcrt.dll_exit]
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x100adb4
cmp dword [0x1019654], ebx
jne 0x100c65f
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1019650]
jmp 0x100c680
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0100626c
ret
Function at 0x100b95a
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1019084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0100ba2d
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.API_MS_Win_Core_SysInfo_L1_1_0.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x100b9fc
cmp dword [ebp - 0x94], 5
jb 0x100b9cf
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x100ba18
call fcn.01006223
test eax, eax
jl 0x100f3bb
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01001c90
leave
ret
cmp dword [ebp - 0x88], 1
je 0x100f3a3
jmp 0x100b9cf
cmp dword [ebp - 0x90], 0
jbe 0x100b9cf
jmp 0x100b9cb
cmp dword [ebp - 0x94], 4
ja 0x100b9cb
je 0x100ba0b
jmp 0x100b9cf
mov byte [0x1019614], 1
jmp 0x100b9ed

Function at 0x1012d1a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1012d73
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1012d65
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x1012d61
cmp esi, eax
jae 0x1012d65
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1012d53
cmp esi, eax
jb 0x1012d69
xor eax, eax
jmp 0x1012d72
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x13123ec
Capabilities:
Encode data using xor

Disassembly:
jmp 0x13123f6
pushal
call 0x13123fc
pop ebp
sub ebp, 0x10
sub ebp, 0xf123ec
jmp 0x1312412
mov eax, 0xf123ec
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c0
mov edx, 0xfd75a715
xor byte [eax], dl
inc eax
dec ecx
jne 0x1312429
jmp 0x131243c
sahf
fcomp dword [esi + 0x1515299c]
adc eax, 0x15edd494
adc eax, 0xadd81615
adc byte [0x3daf1515], dl
adc eax, 0xf7e21515
push ss
fstp qword [esi + 0x15151994]
adc eax, 0x7198d016
xor ecx, ebp
pushfd
adc dword [ecx], esi
cwde
jno 0x131249d
jmp 0x7e62360d
sbb dword [0x989e1515], edx
adc eax, 0x989e1515
add eax, 0xd4151515
cld
pop ss
and al, 0x17
xchg esi, eax
xlatb
adc dword [edx + ebx - 0x70], ebx
loope 0x131249e
ljmp 0x7198:0x31399eea

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x6f1815f1
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6f989014]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x6f181657
mov eax, dword [0x6f989014]
mov dword [0x6f98900c], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [0x6f989008], eax
mov eax, dword [0x6f989008]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x10], eax
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call eax
sub esp, 0x10
mov dword [0x6f989004], eax
nop
leave
ret

Function at 0x6f18169e
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6f989008]
movzx eax, word [eax + 0x14]
movzx eax, ax
mov edx, dword [0x6f989008]
add eax, edx
add eax, 0x18
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x10], 0
jmp 0x6f181722
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [0x6f989004]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov edx, dword [0x6f98900c]
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
add dword [ebp - 0xc], 0x28
add dword [ebp - 0x10], 1
mov eax, dword [0x6f989008]
movzx eax, word [eax + 6]
movzx eax, ax
cmp eax, dword [ebp - 0x10]
ja 0x6f1816dc
nop
leave
ret

Function at 0x6f181e10
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], 0x6f988040
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.6f181e70