joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c0a0
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
lea eax, [ebp - 0x34]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
call fcn.1000eab0
test eax, eax
js 0x1000c196
cmp word [ebp - 0x34], 6
je 0x1000c196
lea eax, [ebp - 4]
push eax
push 0x10004090
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000c14d
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x100040ac
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000c144
cmp dword [ebp - 0xc], eax
je 0x1000c144
push 0x100040c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x1000c144
push 0x100040cc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1000c144
push dword [ebp + 8]
mov ecx, esi
call dword [0x100ac510]
call esi
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
cmp esi, 0x78
je 0x1000c165
cmp esi, 0xdc
jb 0x1000c196
cmp esi, 0x140
jae 0x1000c196
push 0x3594
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
je 0x1000c196
mov ecx, eax
mov edx, 0x20
and ecx, 0x1f
sub edx, ecx
push esi
mov dword [eax + edx - 4], edx
lea ecx, [eax + edx]
call fcn.1000ca80
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1009f080
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1009f0be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x1009f0b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x1009f0c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x1009f0a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1009f190
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x1009f1c1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1009f1c1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x1009f1c1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x536901
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
cmp eax, dword [ebp + 0x10]
jge 0x536941
mov cl, byte [ebp + 0x14]
xor byte [edx + eax], cl
mov cl, byte [edx + eax]
and cl, 0xf
xor ebx, ebx
mov bl, byte [edx + eax]
sar ebx, 4
and bl, 0xf
xor bl, cl
shl ebx, 4
or cl, bl
mov byte [edx + eax], cl
mov ecx, esi
add cl, al
xor byte [edx + eax], cl
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x536913
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x536947
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
cmp eax, dword [ebp + 0x10]
jge 0x536984
mov ecx, esi
add cl, al
xor byte [edx + eax], cl
mov cl, byte [edx + eax]
and cl, 0xf
xor ebx, ebx
mov bl, byte [edx + eax]
sar ebx, 4
and bl, 0xf
xor bl, cl
shl ebx, 4
or cl, bl
xor cl, byte [ebp + 0x14]
mov byte [edx + eax], cl
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x536959
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x57f5b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x77000]
push edi
jmp 0x57f5ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x57f5d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f5c0
mov eax, 1
add ebx, ebx
jne 0x57f5e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x57f5f4
jne 0x57f613
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f613
dec eax
add ebx, ebx
jne 0x57f600
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x57f5d8
add ebx, ebx
jne 0x57f60f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x57f665
xor ecx, ecx
sub eax, 3
jb 0x57f62b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x57f69a
sar eax, 1
mov ebp, eax
jmp 0x57f636
add ebx, ebx
jne 0x57f636
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f604
inc ecx
add ebx, ebx
jne 0x57f644
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f604
add ebx, ebx
jne 0x57f651
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x57f646
jne 0x57f662
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x57f646
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x57f684
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x57f676
jmp 0x57f5c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x57f684
add edi, ecx
jmp 0x57f5c6
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x57f6a2
cmp byte [edi], 0x11
jne 0x57f6a2
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 0x57f6a7
lea edi, [esi + 0x172000]
mov eax, dword [edi]
or eax, eax
je 0x57f71f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1805d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x180778]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x57f6d4
mov ecx, edi
jns 0x57f703
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 + 0x180780]
or eax, eax
je 0x57f719
mov dword [ebx], eax
add ebx, 4
jmp 0x57f6f1
call dword [esi + 0x18077c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x57f750
cmp al, 0xef
ja 0x57f743
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x57f725
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x57f732
mov ebp, dword [esi + 0x180784]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x57f784
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x1000fd4f
Capabilities:
Parse pe header

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

Function at 0x100121d0
Capabilities:
Parse pe header

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

Function at 0x100124f0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001dc28
push 0x1001dc20
push str.FlsAlloc
push 0x1f
call fcn.100127d3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012524
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x1001252a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001256e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001dc38
push 0x1001dc30
push str.FlsGetValue
push 0x21
call fcn.100127d3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100125a5
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100125ad
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001dc40
push 0x1001dc38
push str.FlsSetValue
push 0x22
call fcn.100127d3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100125e7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001507d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001511a
push ebx
push esi
call fcn.1001511d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10014f81
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100150c7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10015119
push edi
push eax
call fcn.10015384
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100150e7
call fcn.10013a1e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10015118
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10014f81
add esp, 0x20
test eax, eax
jne 0x10015106
push edi
call fcn.10013a1e
jmp 0x1001510e
push ebx
call fcn.10013a1e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x443769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x447190
cmp edx, dword [eax]
je 0x44378b
add eax, 8
inc ecx
cmp eax, 0x447220
jl 0x44377c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x447190]
jne 0x4438b9
mov eax, dword [0x447bb0]
cmp eax, 1
je 0x443893
test eax, eax
jne 0x4437bc
cmp dword [0x4470e4], 1
je 0x443893
cmp edx, 0xfc
je 0x4438b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4437f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00444670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00444490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x443836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00444490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x44645c
push edi
call fcn.00444f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00444670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00444680
lea eax, [ebp - 0xa0]
push 0x44643c
push eax
call fcn.00444680
push dword [esi + 0x447194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00444680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00444e75
add esp, 0x2c
pop edi
jmp 0x4438b9
lea eax, [ebp + 8]
lea esi, [esi + 0x447194]
push 0
push eax
push dword [esi]
call fcn.00444490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x403700
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x420020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x60
push 0
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x408], 0
call ebx
mov edi, eax
test edi, edi
jne 0x403770
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x403770
call fcn.00402550
mov esi, eax
jmp 0x403829
push dword [ebp - 0x410]
push dword [ebp - 0x40c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x403793
call fcn.00402550
jmp 0x40381c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x4037a8
call fcn.00402550
jmp 0x40381c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x4037c0
mov esi, 0x8007000e
jmp 0x40381e
push eax
lea ecx, [ebp - 0x408]
call fcn.00402150
cmp dword [ebp - 0x408], 0
jne 0x4037dc
mov esi, 0x8007000e
jmp 0x40381e
push esi
push dword [ebp - 0x408]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4037fc
call fcn.00402550
jmp 0x40381c
mov eax, dword [ebp - 0x408]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x418]
push dword [ebp - 0x408]
call fcn.004035a0
mov esi, eax
test edi, edi
je 0x403829
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x403842
lea ecx, [ebp - 0x408]
call fcn.00402ab0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408295
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403ff0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x404009
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404015
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x404010
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x404110
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x404125
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x404130
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404130
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x404950
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404965
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4049a4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4049a0
lea ebx, [ebx]
cmp esi, edx
jae 0x4049a4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x404990
cmp esi, edx
jb 0x4049a9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x404a60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x420020]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
call fcn.00402b10
mov ecx, eax
test ecx, ecx
je 0x404b60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x210], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00408d80
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00409239
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404ae6
sub eax, edx
lea ecx, [ebp - 0x210]
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00404050
push 0xe
push str.jisuoffice.exe
lea ecx, [ebp - 0x210]
call fcn.00402270
push 0xa
push 0
push esi
mov esi, dword [ebp - 0x210]
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404b4d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00408295
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00402590
int3
Function at 0x404ba0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x420020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x15f]
push esi
mov esi, dword [ebp + 8]
push 0x103
push 0
push eax
mov byte [ebp - 0x160], 0
call fcn.00408d80
push esi
xorps xmm0, xmm0
mov dword [ebp - method.MD5_CTX.virtual_0], vtable.MD5_CTX.0
push 0x4187cc
lea eax, [ebp - 0x160]
mov dword [ebp - 0x1e4], 0
push 0x103
movdqu xmmword [ebp - 0x1a0], xmm0
push eax
mov dword [ebp - 0x1e8], 0
mov dword [ebp - 0x1f8], 0x67452301
mov dword [ebp - 0x1f4], 0xefcdab89
mov dword [ebp - 0x1f0], 0x98badcfe
mov dword [ebp - 0x1ec], 0x10325476
movdqu xmmword [ebp - 0x190], xmm0
mov byte [ebp - 0x1a0], 0x80
movdqu xmmword [ebp - 0x180], xmm0
mov byte [ebp - 0x1c], 0
movdqu xmmword [ebp - 0x170], xmm0
mov dword [ebp - 0x13], 0
movq qword [ebp - 0x1b], xmm0
mov word [ebp - 0xf], 0
mov byte [ebp - 0xd], 0
call fcn.00408165
mov ecx, esi
add esp, 0x1c
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404c80
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x1fc]
call fcn.00405590
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x1fc]
call fcn.00404d70
push 0x40
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.00408d80
add esp, 0xc
xor esi, esi
push edi
jmp 0x404cc0
movzx eax, byte [ebp + esi - 0x1c]
xorps xmm0, xmm0
push eax
push str._02x
lea eax, [ebp - 0xc]
movq qword [ebp - 0xc], xmm0
push 7
push eax
call fcn.00408165
lea ecx, [ebp - 0x5c]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404ce7
sub ecx, edx
lea eax, [ebp - 0xc]
mov edx, 0x40
lea edi, [eax + 1]
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404d00
sub eax, edi
cmp edx, eax
cmovl eax, edx
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00409910
inc esi
add esp, 0xc
cmp esi, 0x10
jl 0x404cc0
pop edi
test ebx, ebx
je 0x404d52
mov esi, dword [ebp + 0x10]
push esi
push 0
push ebx
call fcn.00408d80
lea eax, [ebp - 0x5c]
push eax
push 0x4187cc
lea eax, [esi - 1]
push eax
push ebx
call fcn.00408165
push ebx
call fcn.00409872
add esp, 0x20
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408295
mov esp, ebp
pop ebp
ret
Function at 0x404d70
Capabilities:
Encrypt data using rc4 prga
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x420020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor edx, edx
push edi
mov edi, dword [ebp + 8]
lea eax, [esi + 0x16]
lea ecx, [ecx]
movzx ecx, byte [eax - 2]
lea eax, [eax + 4]
mov byte [ebp + edx - 0xc], cl
movzx ecx, byte [eax - 5]
mov byte [ebp + edx - 0xb], cl
movzx ecx, byte [eax - 4]
mov byte [ebp + edx - 0xa], cl
movzx ecx, byte [eax - 3]
mov byte [ebp + edx - 9], cl
add edx, 4
cmp edx, 8
jb 0x404d90
mov eax, dword [esi + 0x14]
mov ecx, 0x38
shr eax, 3
and eax, 0x3f
cmp eax, 0x38
jb 0x404dd3
mov ecx, 0x78
sub ecx, eax
lea ebx, [esi + 0x5c]
push ecx
push ebx
mov ecx, esi
call fcn.00405590
push 8
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.00405590
lea ecx, [edi + 1]
mov edi, 4
lea edx, [esi + 6]
lea esp, [esp]
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
mov byte [ecx - 1], al
lea ecx, [ecx + 4]
movzx eax, byte [edx - 5]
mov byte [ecx - 4], al
movzx eax, byte [edx - 4]
mov byte [ecx - 3], al
movzx eax, byte [edx - 3]
mov byte [ecx - 2], al
dec edi
jne 0x404e00
xor eax, eax
mov edi, esi
xorps xmm0, xmm0
mov ecx, 0x27
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 4]
mov dword [esi + 0x18], eax
xor ecx, ebp
mov dword [esi + 0x14], eax
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
movdqu xmmword [ebx], xmm0
pop edi
movdqu xmmword [ebx + 0x10], xmm0
pop esi
movdqu xmmword [ebx + 0x20], xmm0
movdqu xmmword [ebx + 0x30], xmm0
mov byte [ebx], 0x80
pop ebx
call fcn.00408295
mov esp, ebp
pop ebp
ret 4
Function at 0x405cc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x420020]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x120]
push 0x11c
push 0
push eax
call fcn.00408d80
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x405d34
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x405d34
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408295
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp - 0x11c]
cmp eax, 4
jne 0x405d6e
mov eax, dword [ebp - 0x110]
dec eax
je 0x405d61
dec eax
jne case.default.0x405dbc
push dword [ebp + 0xc]
push str.WindowsNT
jmp 0x405e27
push dword [ebp + 0xc]
push str.Windows98
jmp 0x405e27
cmp eax, 5
jne 0x405dac
mov eax, dword [ebp - 0x118]
sub eax, 0
je 0x405da2
dec eax
je 0x405d95
dec eax
jne case.default.0x405dbc
push dword [ebp + 0xc]
push str.Windows2003
jmp 0x405e27
push dword [ebp + 0xc]
push str.WindowsXP
jmp 0x405e27
push dword [ebp + 0xc]
push str.Windows2000
jmp 0x405e27
cmp eax, 6
jne 0x405e0b
mov eax, dword [ebp - 0x118]
cmp eax, 3
ja case.default.0x405dbc
jmp dword [eax*4 + 0x405e50]
push dword [ebp + 0xc]
push str.Vista
jmp 0x405e27
cmp byte [ebp - 6], 1
push dword [ebp + 0xc]
jne 0x405ddd
push str.Windows7
jmp 0x405e27
push str.Windows2008
jmp 0x405e27
cmp byte [ebp - 6], 1
push dword [ebp + 0xc]
jne 0x405df4
push str.Windows8
jmp 0x405e27
push str.Windows_Server_2012
jmp 0x405e27
cmp byte [ebp - 6], 1
push dword [ebp + 0xc]
je 0x405ded
push str.Windows_Server_2012_R2
jmp 0x405e27
cmp eax, 0xa
jne case.default.0x405dbc
cmp dword [ebp - 0x118], 0
jne case.default.0x405dbc
cmp byte [ebp - 6], 1
jne case.default.0x405dbc
push dword [ebp + 0xc]
push str.Windows10
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
test eax, eax
pop esi
setg cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408295
mov esp, ebp
pop ebp
ret 8