joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401700
Capabilities:
Get common file path

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push esi
xor esi, esi
push eax
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x401766
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401766
mov edx, dword [esp + 0xc]
push edx
push eax
call dword [0x41d11c]
test eax, eax
je 0x401736
mov esi, 1
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x401766
mov eax, dword [esp + 4]
test eax, eax
je 0x401766
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x401760
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop esi
pop ecx
ret

Function at 0x401eb0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401ede
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 2
pop esi
ret
mov eax, dword [esp + 0x10]
sub eax, esi
pop esi
neg eax
sbb eax, eax
and eax, 3
ret
Function at 0x40b050
Capabilities:
Identify system language via api

Disassembly:
sub esp, 8
push ebp
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xor ebp, ebp
and eax, 0xffff
cmp word [0x4210a0], bp
mov dword [esp + 8], eax
jbe 0x40b1bc
push ebx
push esi
push edi
mov eax, dword [ebp*4 + 0x420f58]
mov ebx, dword [eax + 0xe]
test ebx, ebx
je 0x40b19b
push str.Lang
call fcn.00411d78
mov esi, eax
push esi
push str.Lang
push ebx
call fcn.00412121
add esp, 0x10
test eax, eax
jne 0x40b19b
cmp dword [esp + 0x10], 0xffffffff
jne 0x40b17c
mov ax, word [ebx + esi*2]
lea esi, [ebx + esi*2]
cmp ax, 0x23
je 0x40b17c
test ax, ax
je 0x40b17c
xor edi, edi
cmp ax, 0x30
jne 0x40b17c
cmp word [esi + 2], 0x78
jne 0x40b17c
add esi, 4
mov ax, word [esi]
cmp ax, 0x30
jb 0x40b100
cmp ax, 0x39
jbe 0x40b118
cmp ax, 0x41
jb 0x40b10c
cmp ax, 0x46
jbe 0x40b118
cmp ax, 0x61
jb 0x40b151
cmp ax, 0x66
ja 0x40b151
cmp ax, 0x30
jb 0x40b136
cmp ax, 0x39
ja 0x40b136
and eax, 0xffff
sub eax, 0x30
shl edi, 4
add edi, eax
add esi, 2
jmp 0x40b0f1
and eax, 0xffff
push eax
call fcn.0041263a
sub eax, 0x37
add esp, 4
shl edi, 4
add edi, eax
add esi, 2
jmp 0x40b0f1
mov ax, word [esi]
cmp ax, 0x2c
je 0x40b160
cmp ax, 0x3b
jne 0x40b165
add esi, 2
jmp 0x40b151
cmp edi, dword [esp + 0x14]
jne 0x40b16f
mov dword [esp + 0x10], ebp
mov ax, word [esi]
cmp ax, 0x23
jne 0x40b0ce
add ebx, 2
push 0x23
push ebx
call fcn.00411d0f
add esp, 8
test eax, eax
je 0x40b19b
mov ecx, dword [ebp*4 + 0x420f58]
add eax, 2
mov dword [ecx + 0xe], eax
mov edx, dword [0x4210a0]
inc ebp
and edx, 0xffff
cmp ebp, edx
jl 0x40b07d
mov eax, dword [esp + 0x10]
pop edi
pop esi
cmp eax, 0xffffffff
pop ebx
jne 0x40b1be
xor eax, eax
pop ebp
add esp, 8
ret
Function at 0x40b4d0
Capabilities:
Move file

Disassembly:
sub esp, 0x724
push esi
mov esi, dword [esp + 0x72c]
test esi, esi
je 0x40b4ed
push 6
push esi
call fcn.004012b0
add esp, 8
mov al, byte [0x42104a]
test al, al
je 0x40b538
test esi, esi
jne 0x40b519
mov eax, dword [esp + 0x730]
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x724
ret
mov ecx, dword [esp + 0x730]
push 5
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x724
ret
mov eax, dword [esp + 0x730]
lea edx, [esp + 0x318]
push 0x104
push edx
push eax
call dword [0x421128]
test esi, esi
je 0x40b56b
lea ecx, [esp + 0x520]
push 0x104
push ecx
push esi
call dword [0x421128]
push ebp
lea edx, [esp + 0x10]
push 0x104
push edx
call dword [0x421134]
lea eax, [esp + 0x10]
push str.WININIT.INI
push eax
call fcn.00411cc0
add esp, 8
test esi, esi
je 0x40b5d1
lea ecx, [esp + 0x10]
lea edx, [esp + 0x31c]
push ecx
lea eax, [esp + 0x528]
push edx
push eax
push str.Rename
call dword [0x4210f0]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
call dword [0x4210f0]
pop ebp
mov eax, 1
pop esi
add esp, 0x724
ret
lea edx, [esp + 0x10]
lea eax, [esp + 0x31c]
push edx
push eax
push 0x41cfec
push str.Rename
call dword [0x4210f0]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
call dword [0x4210f0]
lea edx, [esp + 0x10]
push 0xc0000000
push edx
call fcn.00401e20
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x40b723
lea eax, [esp + 0x31c]
push ebx
push eax
call fcn.00411d78
add esp, 4
lea ecx, [esp + 0x21c]
lea edx, [esp + 0x320]
push 0
push 0
push eax
push ecx
push eax
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
call fcn.00401fb0
mov ebx, eax
lea eax, [esp + 0x10]
push eax
lea ecx, [ebx + 0x200]
push ecx
call fcn.00402de0
add esp, 0xc
test eax, eax
je 0x40b719
mov esi, dword [esp + 0xc]
push edi
push ebx
push esi
push ebp
call fcn.00401e70
add esp, 0xc
test eax, eax
jne 0x40b70b
lea eax, [ebx - 4]
mov edx, esi
test eax, eax
jbe 0x40b70b
mov ecx, 0xfffffffe
sub ecx, esi
mov dword [esp + 0x14], ecx
cmp byte [edx], 0x78
jne 0x40b6d9
cmp byte [edx + 1], 0x79
jne 0x40b6d9
cmp byte [edx + 2], 0x7a
jne 0x40b6d9
cmp byte [edx + 3], 0x3d
jne 0x40b6d9
lea edi, [esp + 0x220]
or ecx, 0xffffffff
xor eax, eax
lea esi, [edx + 4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x220]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40b6e7
mov ecx, dword [esp + 0x14]
inc edx
lea eax, [ebx - 4]
lea esi, [ecx + edx + 2]
cmp esi, eax
jb 0x40b69d
jmp 0x40b70b
push 0
push 0
push ebp
mov byte [edx], 0x4e
mov byte [edx + 1], 0x55
mov byte [edx + 2], 0x4c
call fcn.00401f20
mov ecx, dword [esp + 0x1c]
push ebx
push ecx
push ebp
call fcn.00401eb0
add esp, 0x18
lea edx, [esp + 0x10]
push edx
call fcn.00402e60
add esp, 4
pop edi
push ebp
call fcn.004020b0
add esp, 4
pop ebx
pop ebp
mov eax, 1
pop esi
add esp, 0x724
ret
Function at 0x415a75
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x420880
cmp edx, dword [eax]
je 0x415a97
add eax, 8
inc ecx
cmp eax, 0x420910
jl 0x415a88
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x420880]
jne 0x415bc5
mov eax, dword [0x4211ec]
cmp eax, 1
je 0x415b9f
test eax, eax
jne 0x415ac8
cmp dword [0x41e584], 1
je 0x415b9f
cmp edx, 0xfc
je 0x415bc5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x415aff
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00417260
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004168e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x415b42
lea eax, [ebp - 0x1a4]
push eax
call fcn.004168e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x419b7c
push edi
call fcn.00417710
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00417260
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00417270
lea eax, [ebp - 0xa0]
push 0x419b5c
push eax
call fcn.00417270
push dword [esi + 0x420884]
lea eax, [ebp - 0xa0]
push eax
call fcn.00417270
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00417685
add esp, 0x2c
pop edi
jmp 0x415bc5
lea eax, [ebp + 8]
lea esi, [esi + 0x420884]
push 0
push eax
push dword [esi]
call fcn.004168e0
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 0x4064f9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40654f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40654f
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x406541
cmp esi, ecx
jae 0x40654f
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x40652f
cmp esi, ecx
jae 0x40654f
cmp word [esi], 0
je 0x40654f
mov eax, esi
jmp 0x406551
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x406841
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
lea ecx, [ebp - 4]
call fcn.00406d91
lea eax, [ebp - 4]
mov ebx, 0x104
or edi, 0xffffffff
mov dword [ebp - 0x1c], eax
push ebx
mov ecx, eax
mov dword [ebp - 0x14], edi
call fcn.00406db8
push ebx
push eax
xor ebx, ebx
mov dword [ebp - 0x18], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.00406cd0
test esi, esi
je 0x40698e
cmp esi, 0x104
ja 0x40698e
mov esi, dword [ebp - 4]
call fcn.0040660f
mov ecx, eax
test ecx, ecx
je 0x40699d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
test esi, esi
je 0x4068d7
test esi, 0xffff0000
jne 0x4068ce
movzx eax, si
lea ecx, [ebp - 0xc]
push eax
call fcn.00406f37
jmp 0x4068e3
push esi
call fcn.0040b2f2
pop ecx
jmp 0x4068d9
mov eax, ebx
push eax
push esi
lea ecx, [ebp - 0xc]
call fcn.00406e65
lea ecx, [ebp - 0xc]
call fcn.00406c80
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.00406fb4
add eax, 0x10
lea ecx, [ebp - 4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00406d30
lea ecx, [ebp - 0x10]
call fcn.00406f1c
lea ecx, [ebp - 8]
call fcn.00406d91
lea eax, [ebp - 8]
mov dword [ebp - 0x14], edi
push 0x104
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.00406db8
push eax
push ebx
push ebx
push 0x26
push ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.00406cd0
test esi, esi
js 0x40697e
lea ecx, [ebp - 8]
call fcn.00406cf6
lea ecx, [ebp - 4]
call fcn.00406cf6
mov edx, dword [ebp - 8]
test edx, edx
je 0x406979
mov ecx, dword [ebp - 4]
cmp dword [ecx - 0xc], ebx
jl 0x406979
call fcn.004071fe
test eax, eax
je 0x406979
mov edi, eax
sub edi, dword [ebp - 4]
sar edi, 1
test edi, edi
sete bl
lea ecx, [ebp - 8]
call fcn.00406f1c
lea ecx, [ebp - 0xc]
call fcn.00406f1c
lea ecx, [ebp - 4]
call fcn.00406f1c
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
push 0x80004005
call fcn.00406475
int3
Function at 0x4069a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x20019
push edi
movzx eax, cl
mov esi, edx
push 0x405d28
sub eax, 0x7fffffff
mov dword [ebp - 4], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4069e5
jle 0x406a42
movzx eax, ax
or eax, 0x80070000
jmp 0x406a42
or dword [ebp - 0x10], 0xffffffff
mov ecx, esi
push 0x32
pop eax
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], esi
call fcn.00406db8
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x14], eax
push ecx
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x405d10
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.00406cd0
test esi, esi
je 0x406a35
jle 0x406a31
movzx esi, si
or esi, 0x80070000
mov eax, esi
jmp 0x406a42
mov eax, dword [ebp - 8]
dec eax
neg eax
sbb eax, eax
and eax, 0x8000ffff
pop edi
pop esi
leave
ret
Function at 0x40d963
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x41500c]
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 0x40d9ae
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040db85
test al, al
jne 0x40d9a8
sub edx, 2
cmp edx, edi
jne 0x40d98e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40d9d0
lea eax, [edi + 2]
cmp edx, eax
je 0x40d9d0
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040d8af
add esp, 0x10
jmp 0x40daca
push esi
lea ecx, [ebp - 0x255]
call fcn.0040db85
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 0x40da13
push dword [ebp - 0x25c]
jmp 0x40d9c0
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 0x40da50
cmp word [ebp - 0x226], 0
je 0x40da71
cmp word [ebp - 0x226], ax
jne 0x40da50
cmp word [ebp - 0x224], 0
je 0x40da71
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040d8af
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40dabd
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40da2a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40daa5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40daca
push 0x40d6df
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00410640
add esp, 0x10
jmp 0x40da9a
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.004073a8
leave
ret

Function at 0x40e835
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x402914
push 0x40290c
push 0x401bd0
push 0x1e
call fcn.0040e772
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e869
push dword [ebp + 8]
mov ecx, esi
call dword [0x41715c]
call esi
jmp 0x40e86f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40e8b3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x402924
push 0x40291c
push 0x401bf4
push 0x20
call fcn.0040e772
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e8ea
push dword [ebp + 8]
mov ecx, esi
call dword [0x41715c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41298f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
wait
xor eax, 0x349c45c6
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004125c7
push eax
push esi
push dword [ebp + 8]
call fcn.0041257c
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
inc ebp
fisttp dword [edi - 0x3a]
inc ebp
fsub qword [edi - 0x3a]
inc ebp
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x412a52
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004125c7
push eax
push esi
push dword [ebp + 8]
call fcn.0041257c
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004125b7
loope 0x4129f1
invalid
jbe 0x412a50
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
invalid
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.004125b7
add byte [ecx - 0x3c], al
jne 0x412a2d
test dword [edi + edi*8 - 1], edi
call dword [eax - 0x18]
sbb al, 0xfb
invalid
Function at 0x100aad70
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10610294], 0
je 0x100aad89
mov eax, dword [0x10610294]
jmp 0x100aae29
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x100aad9b
xor eax, eax
jmp 0x100aae29
push 8
call fcn.100ab7f6
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100aadf1
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x100aadda
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10610294], eax
mov dword [0x10610298], 0
mov eax, dword [ebp - 8]
jmp 0x100aae29
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100aae0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x100aadbb
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1061029c]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1061029c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x100ab6d6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100bc018]
jne 0x100ab6e0
repz ret
jmp fcn.100abce5

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1ec9c58
Capabilities:
Encode data using xor

Disassembly:
sbb ch, bl
or byte [eax], al
mov dh, 0x10
add byte [eax], al
add byte [eax], al
add byte [eax - 0x18], ah
add byte [eax], al
add byte [eax], al
jmp 0x1ec9c62
pushal
call 0x1ec9c68
pop ebp
sub ebp, 0x10
sub ebp, 0x1ac9c58
jmp 0x1ec9c7e
mov eax, 0x1ac9c58
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c9
mov edx, 0x184a5091
xor byte [eax], dl
inc eax
dec ecx
adc byte [eax + 0x49], al
jne 0x1ec9c95
jmp 0x1ec9ca8
sbb bl, byte [edx + ebx + 0x18]
lodsd eax, dword [esi]
xchg ecx, eax
xchg ecx, eax
xchg ecx, eax
adc byte [eax + 0x69], dl
xchg ecx, eax
xchg ecx, eax
xchg ecx, eax
xchg edx, eax
pop esp
sub dword [ecx + edx*4 - 0x46d46e6f], edx
xchg ecx, eax
xchg ecx, eax
xchg ecx, eax
jae 0x1ec9c57
sbb byte [ebp + 0x10919191], ch
push eax
imul edx, dword [ecx + 0x5c929191], 0x91919429
xchg ecx, eax
sub edi, dword [ecx + 0x66919191]
jae 0x1ec9c57
pop ecx
sbb dl, byte [eax]
popfd
xchg ecx, eax
xchg ecx, eax
xchg ecx, eax
xchg edx, eax
push esp
sbb al, 0xf5
mov ch, 0x6d
sbb byte [ebp - 0x4a0ae34b], dl
insd dword es:[edi], dx
sbb byte [ebp + 0x46e9f9b5], dl
mov ss, word [ecx + 0x1d5571f9]
nop
nop
mov ebp, 0x93d0f9b5
add dword [ebx - 0x6e6e6b87], ecx
xchg ecx, eax
js 0x1ec9c96
xchg ecx, eax
xchg ecx, eax
xchg ecx, eax
sbb al, 0xf5
mov ch, 0x6d
sbb byte [ebp - 0x4a02e34b], bh
xchg ecx, eax
sbb dl, byte [ecx + ebx*4]
xchg ecx, eax
xchg ecx, eax
xchg ecx, eax
sbb al, byte [ebx*4 + 0x1a919191]
sbb al, 0x81
xchg ecx, eax
xchg ecx, eax
xchg ecx, eax
push eax
js 0x1ec9cab
mov al, byte [0x95531293]
fcomp dword [esi + 0x6e6e6514]
outsb dx, byte [esi]
int3
Function at 0x4014eb
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push esi
push edi
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x28], 1
push eax
push 0x104
mov word [ebp - 0x24], 5
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x25c]
push eax
call esi
xor edi, edi
cmp word [ebp + eax*2 - 0x25e], 0x5c
jne 0x40155a
lea eax, [ebp - 0x25c]
push eax
call esi
mov word [ebp + eax*2 - 0x25e], di
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x25c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 5
pop edi
neg eax
sbb eax, eax
pop esi
inc eax
leave
ret

Function at 0x401588
Capabilities:
Read file on windows

Disassembly:
push esi
push 0x403040
push dword [esp + 0xc]
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x4015a2
pop esi
ret
push edi
push 2
push 0xffffffffffffffd0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov edi, dword [esp + 0x1c]
push 0xc
pop ecx
xor eax, eax
push esi
push 0x30
rep stosd dword es:[edi], eax
push 1
pop edi
push edi
push dword [esp + 0x28]
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
cmp eax, 0x30
je 0x4015d4
xor edi, edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov eax, edi
pop edi
pop esi
ret

Function at 0x4015e1
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
push dword [esp + 0x1c]
shr ecx, 2
push dword [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0x10
cmp eax, 0xffffffff
je 0x401632
push dword [esp + 0x10]
push esi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, esi
je 0x40163e
push ebx
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
jmp 0x401640
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402253
Capabilities:
Persist via appinit_dlls registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x44
lea eax, [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
mov dword [esp], 0x80000002
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
call eax
sub esp, 0xc
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4022a0
call fcn.00402770
mov dword [esp + 4], eax
mov dword [esp], str.ERROR:_Reading_from_registry_failed:__s_n
call sub.msvcrt.dll_printf
mov eax, 1
jmp 0x402342
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str.INFO:_Registering__s_as_AppInit_DLL_n
call sub.msvcrt.dll_printf
mov dword [ebp - 0x10], str.AppInit_DLLs
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 0xffffffff
mov edx, eax
mov eax, 0
mov ecx, dword [ebp - 0x1c]
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea edx, [eax - 1]
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call eax
sub esp, 0x18
test eax, eax
setne al
test al, al
je 0x40233d
call fcn.00402770
mov dword [esp + 4], eax
mov dword [esp], str.ERROR:_Writing_to_registry_failed:__s_n
call sub.msvcrt.dll_printf
mov eax, 1
jmp 0x402342
mov eax, 0
mov edi, dword [ebp - 4]
leave
ret