joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a553
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 0x40a5f0
push ebx
push esi
call fcn.0040a51c
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.0040a4b0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40a59d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40a5ef
push edi
push eax
call fcn.0040b170
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40a5bd
call fcn.00409011
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40a5ee
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040a4b0
add esp, 0x20
test eax, eax
jne 0x40a5dc
push edi
call fcn.00409011
jmp 0x40a5e4
push ebx
call fcn.00409011
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 0x40b8ed
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46ac68
push 0x46ac60
push str.FlsAlloc
push 0x1f
call fcn.0040b7ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b921
push dword [ebp + 8]
mov ecx, esi
call dword [0x41412c]
call esi
jmp 0x40b927
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40b96b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46ac78
push 0x46ac70
push str.FlsGetValue
push 0x21
call fcn.0040b7ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b9a2
push dword [ebp + 8]
mov ecx, esi
call dword [0x41412c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40b9aa
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46ac80
push 0x46ac78
push str.FlsSetValue
push 0x22
call fcn.0040b7ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b9e4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41412c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x410e40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x410e6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x410e6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
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 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 0x403089
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x89], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x403d35
Capabilities:
Read .ini file

Disassembly:
push 0x82c
mov eax, 0x429f9b
call fcn.0040e152
mov edi, ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x830], eax
mov eax, dword [ebp + 0x10]
push 0x800
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x810]
push ecx
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x834], ecx
call fcn.00412a00
lea eax, [edi + 0x8c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x403d92
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
push dword [ebp - 0x82c]
push dword [ebp - 0x830]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.004014a4
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x834], 1
jb 0x403dd8
mov eax, dword [esi]
jmp 0x403dda
mov eax, esi
push ebx
push eax
call fcn.00418260
pop ecx
pop ecx
test eax, eax
jne 0x403e26
cmp byte [edi + 5], 0
lea eax, [ebp - 0x828]
push ebx
push dword [ebp - 0x82c]
mov ecx, edi
push dword [ebp - 0x830]
push eax
je 0x403e0a
call fcn.00403c51
jmp 0x403e0f
call fcn.00403d0b
push eax
mov ecx, esi
call fcn.0040155c
push 0
push 1
lea ecx, [ebp - 0x828]
call fcn.004020f2
mov eax, esi
call fcn.0040e10d
ret 0x10
Function at 0x4049d8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa44
mov eax, dword [0x43c0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
mov edi, ecx
call fcn.00412a00
lea eax, [edi + 0x2c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x404a11
mov eax, dword [eax]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push 0x42b5e0
push eax
call fcn.0040568b
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404a49
lea eax, [ebp - 0x20c]
push eax
call fcn.00405c52
pop ecx
push 0x208
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00412a00
push str.UseVestige.ini
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str._s_s
push eax
call fcn.0040568b
add esp, 0x1c
cmp word [ebp - 0x414], si
jne 0x404a88
mov eax, esi
jmp 0x404a95
lea eax, [ebp - 0x414]
push eax
call fcn.004156a2
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
lea ecx, [edi + 0x8c]
call fcn.0040223c
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.00412a00
push str.Cache.ini
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push str._s_s
push eax
call fcn.0040568b
add esp, 0x1c
cmp word [ebp - 0x61c], si
jne 0x404ae7
mov eax, esi
jmp 0x404af4
lea eax, [ebp - 0x61c]
push eax
call fcn.004156a2
pop ecx
push eax
lea eax, [ebp - 0x61c]
push eax
lea ecx, [edi + 0xa4]
call fcn.0040223c
push 0x208
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.00412a00
lea eax, [ebp - 0xa44]
push str.ShxlPath
push eax
call fcn.00406d2f
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x404b35
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x824]
push 0x42b634
push eax
call fcn.0040568b
add esp, 0xc
lea ecx, [ebp - 0xa44]
push esi
push 1
call fcn.004020f2
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404b76
lea eax, [ebp - 0x824]
push eax
call fcn.00405c52
pop ecx
push 0x208
lea eax, [ebp - 0xa2c]
push esi
push eax
call fcn.00412a00
push str.Cache.ini
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0xa2c]
push str._s_s
push eax
call fcn.0040568b
add esp, 0x1c
cmp word [ebp - 0xa2c], si
je 0x404bc0
lea eax, [ebp - 0xa2c]
push eax
call fcn.004156a2
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0xa2c]
push eax
lea ecx, [edi + 0xbc]
call fcn.0040223c
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040e0e7
mov esp, ebp
pop ebp
ret
Function at 0x4050c4
Capabilities:
Read .ini file

Disassembly:
push 0x23c
mov eax, 0x42a06b
call fcn.0040e152
mov ebx, ecx
lea eax, [ebx + 0x74]
cmp dword [eax + 0x14], 8
jb 0x4050e0
mov eax, dword [eax]
lea edi, [ebx + 0xd4]
push eax
mov ecx, edi
call fcn.00402215
mov esi, str.WanNengWBInfo.ini
push esi
call fcn.004156a2
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00405561
push str.guanf
push str.Spreader
push str.AppInfo
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.00403ce1
and dword [ebp - 4], 0
lea esi, [ebx + 0xec]
lea eax, [ebp - 0x248]
cmp esi, eax
je 0x405140
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00402180
push str.guanf
mov ecx, esi
call fcn.00405655
test eax, eax
jne 0x4051bc
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00412a00
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40516d
mov edi, dword [edi]
push edi
push 0x104
lea eax, [ebp - 0x218]
mov edi, str.guanf
push eax
push edi
push str.Spreader
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x40519e
xor eax, eax
jmp 0x4051ab
lea eax, [ebp - 0x218]
push eax
call fcn.004156a2
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0040223c
jmp 0x4051c1
mov edi, str.guanf
push edi
mov ecx, esi
call fcn.00405655
test eax, eax
jne 0x405284
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00412a00
add esp, 0xc
lea eax, [ebx + 0x5c]
lea ecx, [ebp - 0x230]
push eax
call fcn.00401451
push str.WanNengWBInfo.ini
mov byte [ebp - 4], 1
call fcn.004156a2
pop ecx
push eax
push str.WanNengWBInfo.ini
lea ecx, [ebp - 0x230]
call fcn.00405561
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
push str.Spreader
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x405255
xor eax, eax
jmp 0x405262
lea eax, [ebp - 0x218]
push eax
call fcn.004156a2
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0040223c
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.004020f2
push edi
mov ecx, esi
call fcn.00405655
test eax, eax
jne 0x4052c0
push edi
push str.Spreader
push str.AppInfo
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.00403d35
push eax
mov ecx, esi
call fcn.0040155c
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.004020f2
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.004020f2
call fcn.0040e10d
ret
Function at 0x405c52
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.004156a2
mov dword [ebp - 8], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040e6bd
push dword [ebp + 8]
mov edi, eax
push edi
mov dword [ebp - 4], edi
call fcn.004182a0
add esp, 0x10
call fcn.0040d8d0
test al, al
je 0x405ca5
push edx
push ebp
pop esp
pop edx
push esi
pop esi
pop edx
push eax
pop edx
pop ebx
pop ebx
pop esp
pop edx
push edi
push esp
push edi
mov eax, dword [ebp - 8]
xor esi, esi
xor ebx, ebx
inc esi
mov dword [ebp - 0xc], ebx
test eax, eax
js 0x405d6f
cmp word [edi + ebx*2], 0x5c
jne 0x405d60
call fcn.0040d6a8
test al, al
je 0x405ce0
push ebp
pop ebp
push eax
push esp
pop ebp
push ebx
pop ebp
push esi
pop ebx
push edi
pop eax
pop esp
push esi
push eax
push ebp
pop eax
pop esi
push ecx
push ebx
push edx
call fcn.0040d4c5
test al, al
je 0x405d0a
push ebp
push ecx
push edi
push edx
push ebx
push ecx
pop esp
pop ebx
pop ebp
pop edx
pop ecx
pop edi
pop ebx
push esp
push eax
push edi
pop ebx
push edi
pop ebx
push eax
pop edx
push ebp
pop ecx
pop eax
pop eax
pop ebx
push ebx
pop ebx
push esp
push ebp
mov edi, dword [ebp - 4]
call fcn.0040d594
test al, al
je 0x405d35
push esi
push esp
push esp
push eax
pop ebx
pop esi
push ebp
push ecx
push eax
push esp
push esp
push edi
pop ebp
pop ebx
push edi
pop ecx
pop esi
push edi
push ecx
push esp
pop ebp
pop ecx
pop ebp
push eax
pop ebp
pop edi
push ecx
pop ebp
pop eax
pop ecx
push ecx
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
xor eax, eax
push edi
movzx esi, word [edi + ebx*2]
mov word [edi + ebx*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405d59
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405d7f
mov eax, dword [ebp - 8]
mov word [edi + ebx*2], si
inc ebx
mov dword [ebp - 0xc], ebx
cmp ebx, eax
jle 0x405cb8
xor esi, esi
inc esi
push edi
call fcn.0040e1c0
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x405d6f
Function at 0x405d83
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x43c0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x218], eax
xor eax, eax
push eax
push 0x1a
push ecx
push eax
mov dword [ebp - 0x210], ebx
call fcn.00407183
lea eax, [ebp - 0x20c]
push eax
call fcn.004156a2
add esp, 0x14
mov dword [ebp - 0x214], eax
call fcn.0040d43b
test al, al
je 0x405dfa
pop esp
push ecx
pop ebx
push ecx
pop ecx
pop edi
pop ecx
pop esi
push ebx
pop esp
pop ecx
push esi
push edx
push edx
push ebx
push edi
push ebx
push esi
pop esp
pop edx
push ebp
pop eax
push ebx
push edx
push ebp
mov ebx, dword [ebp - 0x210]
cmp dword [ebp - 0x214], 0
je 0x405f06
mov esi, 0x42b54c
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0041822f
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0041822f
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0041822f
add esp, 0x18
call fcn.0040d95a
test al, al
je 0x405e5a
pop ebx
pop ecx
push ecx
push edx
pop ebp
push edx
pop esp
push ecx
pop ecx
push esp
push ecx
push esp
pop esi
pop eax
push esp
push ebp
push edi
pop ecx
pop ebx
push ebp
pop edi
push ebx
push esi
push ebx
push ebx
pop ebp
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405e78
lea eax, [ebp - 0x20c]
push eax
call fcn.00405c52
pop ecx
call fcn.0040d50a
test al, al
je 0x405e95
push ebp
push eax
pop ecx
push edx
pop ecx
pop ebx
pop ecx
pop ebp
push esp
push edi
pop ebx
pop esi
pop ebp
pop edx
push esp
push ebp
push edx
pop edi
pop eax
push esi
call fcn.0040d732
test al, al
je 0x405eba
pop edi
push edi
pop esp
pop edi
push ebp
push edi
push ebx
pop esi
pop esi
pop edi
pop ebp
push ecx
push edx
pop ebx
pop ebx
pop eax
push ebp
pop esi
push edx
pop esi
pop edi
push esi
push ebp
pop ebp
push eax
pop edi
pop edx
push edi
call fcn.0040d95a
test al, al
je 0x405ed8
push esp
pop edx
push edi
pop ebp
pop eax
push ebp
push ecx
pop esi
push esp
pop edi
pop ecx
pop edx
push edx
pop ecx
push esp
push ebx
pop edx
pop edi
push edx
push edi
push ebp
cmp word [ebp - 0x20c], 0
jne 0x405ee6
xor eax, eax
jmp 0x405ef3
lea eax, [ebp - 0x20c]
push eax
call fcn.004156a2
pop ecx
mov ecx, dword [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040223c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e0e7
mov esp, ebp
pop ebp
ret
Function at 0x406acb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43c0c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x43ce1c], 0
push ebx
push esi
push edi
je 0x406b53
call fcn.0040d50a
test al, al
je 0x406b07
push ebp
push eax
pop ecx
push edx
pop ecx
pop ebx
pop ecx
pop ebp
push esp
push edi
pop ebx
pop esi
pop ebp
pop edx
push esp
push ebp
push edx
pop edi
pop eax
push esi
call fcn.0040d732
test al, al
je 0x406b2c
pop edi
push edi
pop esp
pop edi
push ebp
push edi
push ebx
pop esi
pop esi
pop edi
pop ebp
push ecx
push edx
pop ebx
pop ebx
pop eax
push ebp
pop esi
push edx
pop esi
pop edi
push esi
push ebp
pop ebp
push eax
pop edi
pop edx
push edi
call fcn.0040d95a
test al, al
je 0x406c4a
push esp
pop edx
push edi
pop ebp
pop eax
push ebp
push ecx
pop esi
push esp
pop edi
pop ecx
pop edx
push edx
pop ecx
push esp
push ebx
pop edx
pop edi
push edx
push edi
push ebp
jmp 0x406c4a
call fcn.0040d95a
test al, al
je 0x406b77
pop edx
push ecx
pop edi
push esi
pop ebp
push ebp
push esp
pop ebp
push ebx
push ecx
push ecx
pop esi
push ebp
push ebp
pop esp
push eax
pop edi
push esp
push ebx
push ebp
push eax
pop ecx
pop ebx
pop edi
pop esp
pop esi
pop ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00412a00
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x406be7
lea eax, [ebp - 0x20c]
push eax
call fcn.0041926a
lea eax, [ebp - 0x20c]
mov dword [esp], 0x42d434
push eax
call fcn.004143fd
pop ecx
pop ecx
test eax, eax
jne 0x406be0
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.004143fd
pop ecx
pop ecx
test eax, eax
je 0x406be7
mov byte [0x43ce1c], 1
call fcn.0040d7bc
test al, al
je 0x406c02
pop ecx
push ecx
push esi
push edx
push eax
pop esi
push eax
push ebx
pop ebx
push esi
push eax
push eax
push edi
push ebp
pop esi
push esp
pop eax
push esp
call fcn.0040d50a
test al, al
je 0x406c26
push edx
push esi
push esi
push edi
push esi
push edi
pop edi
push esi
push ecx
push esp
push esp
push edx
push ecx
pop esp
push esp
push ebx
pop edi
pop edx
pop ebp
pop ebx
pop esi
push esp
pop ebx
pop edx
pop eax
pop esi
push ebx
call fcn.0040d50a
test al, al
je 0x406c4a
push ebx
pop ebp
pop edi
push esi
pop esp
pop ecx
pop ebx
pop edi
pop eax
pop edi
pop edi
push edx
pop eax
pop ecx
push eax
push edi
push ecx
pop edi
pop esi
push ebp
push esp
push esi
push edx
push edi
push esi
push edx
push ebp
mov ecx, dword [ebp - 4]
mov al, byte [0x43ce1c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040e0e7
mov esp, ebp
pop ebp
ret
Function at 0x406c60
Capabilities:
Get common file path

Disassembly:
push 0x138
mov eax, 0x42a15f
call fcn.0040e152
mov al, byte [0x43ce1d]
test al, al
jne 0x406d29
push 0x104
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.00412a00
add esp, 0xc
lea eax, [ebp - 0x114]
xor edi, edi
inc edi
push edi
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x406d24
push str.config_systemprofile
lea ecx, [ebp - 0x12c]
call fcn.0040289e
lea eax, [ebp - 0x114]
mov dword [ebp - 4], esi
push eax
lea ecx, [ebp - 0x144]
call fcn.0040289e
push dword [ebp - 0x11c]
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
push esi
cmovae eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x144]
push eax
call fcn.004072fb
movzx ecx, byte [0x43ce1d]
cmp eax, 0xffffffff
push esi
cmovne ecx, edi
mov byte [0x43ce1d], cl
lea ecx, [ebp - 0x144]
push edi
call fcn.00402bef
push esi
push edi
lea ecx, [ebp - 0x12c]
call fcn.00402bef
mov al, byte [0x43ce1d]
call fcn.0040e10d
ret
Function at 0x408997
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x43c0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x82c]
push 0x44
xor ebx, ebx
push ebx
push eax
call fcn.00412a00
push 0x10
lea eax, [ebp - 0x7e4]
mov dword [ebp - 0x82c], 0x44
push ebx
push eax
call fcn.00412a00
push esi
lea eax, [ebp - 0x7d4]
push 0x42b634
push eax
call fcn.00408690
add esp, 0x24
lea eax, [ebp - 0x7e4]
push eax
lea eax, [ebp - 0x82c]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x7d4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x408a4c
push 0xffffffffffffffff
push dword [ebp - 0x7e4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x7e8]
push eax
push dword [ebp - 0x7e4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x7e4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x7e0]
call esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e0e7
mov esp, ebp
pop ebp
ret

Function at 0x408bc5
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov ecx, dword [edi + 4]
xor ecx, dword [edi]
and ecx, 0x7fffffff
xor ecx, dword [edi]
lea edi, [edi + 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebx, 1
jne 0x408bd5
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov ecx, dword [edi + 4]
xor ecx, dword [edi]
and ecx, 0x7fffffff
xor ecx, dword [edi]
lea edi, [edi + 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebx, 1
jne 0x408c15
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], ebx
pop esi
pop ebx
ret

Function at 0x408c85
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea edx, [ecx + 8]
mov esi, 0x270
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x408c8e
pop esi
ret

Function at 0x408cc6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul edx, dword [ebp + 0xc]
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x408cdd
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8
Function at 0x409516
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x43c0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], eax
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov esi, eax
test esi, esi
je 0x40959a
push edi
shl eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x40955f
push edi
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov esi, eax
test esi, esi
jne 0x409563
xor eax, eax
jmp 0x409599
push 0x28
dec esi
lea eax, [ebp - 0x2c]
push eax
push dword [edi + esi*4]
call sub.IMM32.dll_ImmGetIMEFileNameW
test eax, eax
je 0x409587
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40958d
test esi, esi
jne 0x409563
jmp 0x409590
mov ebx, dword [edi + esi*4]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e0e7
mov esp, ebp
pop ebp
ret 4