joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007790
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
test eax, eax
je 0x10007840
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ebx, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x10], edx
call edx
mov edi, eax
sub esp, 0x18
lea ecx, [edi + edi]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
mov dword [esp + 0x14], edi
mov dword [esp + 8], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
mov edx, dword [ebp - 0x10]
call edx
mov eax, esi
sub esp, 0x18
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x10007850
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
test eax, eax
je 0x10007920
mov edx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ebx, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x10], edx
call edx
sub esp, 0x20
mov edi, eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
mov dword [esp + 0x14], edi
mov dword [esp + 8], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
mov edx, dword [ebp - 0x10]
call edx
mov eax, esi
sub esp, 0x20
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x10007930
Capabilities:
Get process heap flags

Disassembly:
test eax, eax
je 0x100079a8
push ebp
mov ebp, esp
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0xc
test edx, edx
je 0x10007978
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 8]
call fcn.10007850
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
call fcn.10007850
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 8], 0x18
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
jmp 0x10007944
xor eax, eax
ret
Function at 0x10009c40
Capabilities:
Get process heap flags
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x10]
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x34
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], 0
mov dword [esp], esi
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], edx
call esi
sub esp, 0x18
test eax, eax
jne 0x10009c99
mov eax, dword [ebp - 0x14]
sub eax, 1
cmp eax, 1
jbe 0x10009ca8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10009c99
mov edx, dword fs:[0x18]
mov dword [ebp - 0x24], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x28], eax
call eax
sub esp, 0xc
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10009c99
mov dword [esp + 0x14], edi
mov edi, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call esi
sub esp, 0x18
mov dword [esp + 4], 0x10010538
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
je 0x10009d4a
cmp dword [ebp - 0x14], 2
je 0x10009db2
test byte [0x1000d060], 8
jne 0x10009d80
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, dword [ebp - 0x1c]
sub esp, 4
mov dword [ebx], eax
mov ebx, dword [ebp - 0x20]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ebx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x10009c99
mov eax, dword [ebp - 0x20]
call fcn.10009910
mov dword [esp + 0xc], str.loading__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.load_mapi_provider
mov dword [esp + 4], 0x1000d060
mov dword [esp], 3
call fcn.10009bf0
jmp 0x10009d36
mov dword [esp + 8], 0
mov esi, dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call esi
sub esp, 0xc
mov edi, eax
lea eax, [eax + eax + 1]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
call ecx
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x10009d2d
add edi, 1
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov edi, dword [ebp - 0x20]
mov dword [esp], edi
call esi
sub esp, 0xc
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x20], ebx
sub esp, 0xc
jmp 0x10009d2d
Function at 0x10009f20
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test byte [0x1000d060], 8
jne 0x10009fb0
mov eax, dword [0x1001c070]
test eax, eax
je 0x10009f50
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp eax
test esi, esi
je 0x1000a019
add ebx, 4
mov dword [esp + 4], 0
mov dword [esp + 8], ebx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x1000a023
lea edi, [eax + 4]
test byte [0x1000d060], 8
jne 0x10009fe8
mov dword [ebx], 0
xor eax, eax
mov dword [esi], edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__ld__p__n
mov dword [esp + 8], str.MAPIAllocateBuffer
mov dword [esp + 4], 0x1000d060
mov dword [esp], 3
call fcn.10009bf0
jmp 0x10009f38
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.initial_allocation:_p__returning__p_n
mov dword [esp + 8], str.MAPIAllocateBuffer
mov dword [esp + 4], 0x1000d060
mov dword [esp], 3
call fcn.10009bf0
jmp 0x10009f95
mov eax, 0x80070057
jmp 0x10009f9f
mov eax, 0x8007000e
jmp 0x10009f9f
Function at 0x1000ae20
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x40
mov ebx, dword [ebp + 0xc]
test byte [0x1000d060], 8
jne 0x1000ae70
mov eax, dword [0x1001c068]
test eax, eax
je 0x1000aebd
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x10], ecx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
mov esi, dword [ebp + 0x10]
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov edx, dword [ebp + 8]
mov dword [esp], edx
call eax
sub esp, 0x14
mov edi, eax
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str._s__s__p__lu__d_n
mov dword [esp + 8], str.FGetComponentPath
mov dword [esp + 4], 0x1000d060
mov dword [esp + 0x10], eax
mov dword [esp], 3
call fcn.10009bf0
mov eax, dword [0x1001c068]
test eax, eax
jne 0x1000ae3e
mov eax, dword [ebp + 0x10]
xor edi, edi
mov byte [eax], 0
mov dword [esp], str.msi.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
sub esp, 4
mov esi, eax
test eax, eax
je 0x1000ae64
mov dword [esp + 4], str.MsiProvideQualifiedComponentA
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 8
test eax, eax
je 0x1000af3d
mov dword [ebp - 0x24], esi
lea edi, [ebp - 0x20]
xor edx, edx
mov esi, eax
mov eax, ebx
mov ebx, edx
cmp dword [ebp + 0x18], 1
sbb ecx, ecx
cmp eax, edi
je 0x1000af58
test eax, eax
je 0x1000af58
lea edi, [ebp + 0x14]
mov ebx, eax
mov eax, esi
mov esi, dword [ebp - 0x24]
mov dword [esp + 0x10], edi
mov edx, dword [ebp + 0x10]
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call eax
sub esp, 0x14
test eax, eax
je 0x1000afb9
xor edi, edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov eax, edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov dword [ebp - 0x28], ecx
call dword [sym.imp.kernel32.dll_GetUserDefaultUILanguage]
mov dword [esp], edi
movzx eax, ax
mov dword [esp + 8], eax
mov eax, dword [ebx*4 + 0x100109f8]
mov dword [esp + 4], eax
call fcn.10009b40
lea eax, [ebp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call esi
sub esp, 0x14
test eax, eax
je 0x1000afb6
add ebx, 1
mov eax, edi
cmp ebx, 3
jne 0x1000af01
mov esi, dword [ebp - 0x24]
jmp 0x1000af3b
mov esi, dword [ebp - 0x24]
mov edi, 1
jmp 0x1000af3d
Function at 0x42211b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42215a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42215a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42215a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42215a
cmp dword [ecx + 0x74], 0xe
jbe 0x42215a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4347a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4347cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4347cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40f080
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f0a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f0a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f098
mov eax, 1
add ebx, ebx
jne 0x40f0bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f0b0
jne 0x40f0cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0b0
xor ecx, ecx
sub eax, 3
jb 0x40f0e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f152
mov ebp, eax
add ebx, ebx
jne 0x40f0eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f0f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f11c
inc ecx
add ebx, ebx
jne 0x40f108
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f0fd
jne 0x40f119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f13c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f12d
jmp 0x40f09e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f13c
add edi, ecx
jmp 0x40f09e
pop esi
mov edi, esi
mov ecx, 0x265
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f15a
cmp byte [edi], 2
jne 0x40f15a
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 eax, ebx
loop 0x40f15f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f1ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f18c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf068]
or eax, eax
je 0x40f1c8
mov dword [ebx], eax
add ebx, 4
jmp 0x40f1a9
call dword [esi + 0xf06c]
popal
jmp 0x40354a

Function at 0x412792
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00412608
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x18d62fde
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x431060
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x35cf3263
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x66402447
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
mov eax, section._RDATA
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x69e018e9
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x40124c
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x414460
call fcn.00401460
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x401287
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401287
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40129f
cmp eax, 0x20b
je 0x40128c
mov dword [ebp - 0x1c], edi
jmp 0x4012b3
cmp dword [ecx + 0x84], 0xe
jbe 0x401287
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4012ad
cmp dword [ecx + 0x74], 0xe
jbe 0x401287
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x419bc4], 0xffffffff
or dword [0x419bc8], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41834c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x418348]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x419bc0], eax
call fcn.0040145a
cmp dword [section..data], edi
jne 0x401310
push fcn.0040145a
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00401448
push 0x414434
push 0x414430
call sub.msvcrt.dll__initterm
mov eax, dword [0x418344]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x418340]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x41442c
push 0x4143fc
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x401376
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x401430
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x4013c4
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x401392
cmp ax, 0x22
jne 0x40137f
cmp word [esi], 0x22
jne 0x40139d
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x4013ab
cmp ax, 0x20
jbe 0x401398
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x4013d1
movzx eax, word [ebp - 0x48]
jmp 0x4013d4
cmp word [esi], 0x20
jbe 0x40139d
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x4013c4
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], edi
jne 0x4013f5
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x40142a
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00401499
ret

Function at 0x401e77
Capabilities:
Encode data using xor

Disassembly:
push edi
mov eax, esi
mov edi, esi
imul eax, esi
xor edx, edx
shr edi, 2
je 0x401ea5
push ebx
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + edx*4]
mov ebx, ecx
imul ebx, edx
imul ebx, esi
imul ebx, ebx, 0x11
add ecx, eax
xor ebx, ecx
inc edx
cmp edx, edi
mov eax, ebx
jb 0x401e87
pop ebx
pop edi
ret
Function at 0x401f59
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [esi], 0
jne 0x401fd7
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, eax
xor eax, eax
test ecx, ecx
mov dword [esi], ecx
je 0x401fda
push edi
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
push ecx
mov byte [ebp - 0x14], 0x4e
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x61
mov byte [ebp - 0xe], 0x74
mov byte [ebp - 0xd], 0x65
mov byte [ebp - 0x12], 0x43
mov byte [ebp - 0xa], 0x72
mov byte [ebp - 7], 0x64
mov byte [ebp - 0x11], 0x72
mov byte [ebp - 6], 0x45
mov byte [ebp - 5], 0x78
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x61
mov byte [ebp - 0xc], 0x54
mov byte [ebp - 0xb], 0x68
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 4], eax
pop edi
xor eax, eax
inc eax
leave
ret

Function at 0x401fdc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x110], 6
sbb eax, eax
inc eax
leave
ret

Function at 0x402015
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, eax
call fcn.00401fdc
test eax, eax
je 0x4020a6
call fcn.00401f59
mov ebx, dword [esi + 4]
xor edx, edx
xor eax, eax
cmp ebx, edx
je 0x4020be
push edi
push 8
pop esi
mov ecx, esi
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], edx
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
push edx
push edx
push edx
push 1
push dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push dword [ebp + 0xc]
mov dword [ebp - 0x30], 0x24
push dword [ebp + 8]
mov dword [ebp - 0x2c], 0x10003
push edx
push 0x1fffff
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], 0x10004
mov dword [ebp - 0x18], 4
mov dword [ebp + 0x14], edx
call ebx
neg eax
sbb eax, eax
not eax
and eax, dword [ebp + 0x14]
pop edi
jmp 0x4020be
push dword [ebp + 0x14]
xor edx, edx
push 4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
push edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
pop esi
pop ebx
leave
ret 0x10