joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10097290
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 0x1009732d
push ebx
push esi
call fcn.10097259
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.10083a40
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100972da
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1009732c
push edi
push eax
call fcn.1007bea6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100972fa
call fcn.1007be6c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1009732b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10083a40
add esp, 0x20
test eax, eax
jne 0x10097319
push edi
call fcn.1007be6c
jmp 0x10097321
push ebx
call fcn.1007be6c
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 0x10097d80
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1008c520
mov eax, dword [0x100af3bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1007d078
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10097dc2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10097f1e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1008bf40
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100af6d8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100878bb
mov ecx, dword [esi*4 + 0x100af6d8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10097f17
cmp eax, dword [ecx + edi + 0x24]
jne 0x10097f17
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10097f17
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100878bb
add esp, 0x14
test edx, edx
jl 0x10097f17
jg 0x10097e8d
test eax, eax
jb 0x10097f17
mov ebx, dword [ebp - 0x1018]
Function at 0x100987b0
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 0x100987ee
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x100987e6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x100987f0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x100987d6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100988c0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100988ef
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100988ef
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4575f2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x457601
pop dword [ebp - 0x44]
mov eax, 0x457601
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x348eef97
add dword [ebp - 0x54], 0x19c355b4
mov dword [ebp - 0x50], 0xaf46b5db
add dword [ebp - 0x50], 0x82ec966a
mov dword [ebp - 0x4c], 0x66d34bea
add dword [ebp - 0x4c], 0xe578f844
mov dword [ebp - 0x48], 0x8f67b291
sub dword [ebp - 0x48], 0x8f67b291
lea eax, [ebp - 0x54]
push eax
mov eax, 0x542a291b
add eax, 0xac1b8749
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x469c9e58
add dword [ebp - 0x54], 0x2dd5cafe
mov dword [ebp - 0x50], 0xec0134ee
add dword [ebp - 0x50], 0x556b2c87
mov dword [ebp - 0x4c], 0xbfcda27c
add dword [ebp - 0x4c], 0xa3a1c9f0
mov dword [ebp - 0x48], 0x2e685cca
sub dword [ebp - 0x48], 0x2e685cca
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x4cb85
push 0
call eax
mov ecx, 0xb40cb329
sub ecx, 0xb40c72c1
mov esi, eax
mov edx, 0x476000
add edx, dword [ebp - 0x44]
mov ebx, 0x3d98bea4
sub ebx, 0xf1b12d01
xor dword [ebp - 0x3c], ebx
mov edi, dword [edx]
sub dword [ebp - 0x18], edx
sub edi, ebx
add dword [ebp - 0x3c], esi
mov dword [esi], edi
add esi, 0xbb0d6232
add esi, 0x44f29dd2
add edx, 0xae921251
add edx, 0x516dedb3
loop 0x457713
add eax, 0xaaaaad9a
add eax, 0x555646d9
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x2ffd0c3e
add ecx, 0xd042f3c2
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x406ff0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x455e18
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
mov eax, dword [0x464380]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
lea ecx, [esp + 0x18]
call fcn.0040a470
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], 0
call fcn.0040a440
test eax, eax
je 0x4070be
lea eax, [esp + 8]
push eax
push 0xf013f
push 0
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407140
mov edx, dword [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
push eax
push 0xf013f
push eax
push eax
push eax
push 0x457420
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40708d
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407140
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
push 0x104
push ecx
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 8]
jmp 0x40713d
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407140
mov edx, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
push 0x457420
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40710e
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407140
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
push 0x104
push ecx
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], 0xffffffff
call fcn.0040a380
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x40
ret 8
Function at 0x407500
Capabilities:
Get common file path
Set registry value

Disassembly:
sub esp, 0x620
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x61c], eax
push ebp
push esi
push edi
push 0x206
lea eax, [esp + 0x16]
push 0
push eax
mov ebp, ecx
mov word [esp + 0x1c], 0
call fcn.00413220
push 0x206
lea ecx, [esp + 0x22a]
push 0
push ecx
mov word [esp + 0x230], 0
call fcn.00413220
add esp, 0x18
push 0
push 0x2b
lea edx, [esp + 0x18]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp dword [ebp + 0x94], 8
jb 0x407574
mov ecx, dword [ebp + 0x80]
jmp 0x40757a
lea ecx, [ebp + 0x80]
lea edx, [esp + 0x218]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x407581
lea edi, [esp + 0x10]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4075a0
mov edx, dword [0x4574ac]
mov dword [edi], edx
lea edi, [esp + 0x10]
add edi, 0xfffffffe
jmp 0x4075c0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4075c0
mov ecx, 7
mov esi, 0x457420
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x10]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4075e0
lea eax, [esp + 0x10]
push eax
mov dword [edi], edx
call fcn.0040aec0
lea eax, [esp + 0x14]
add esp, 4
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x407602
mov ecx, dword [str.DongFang]
mov edx, dword [0x45749c]
mov dword [eax], ecx
mov ecx, dword [0x4574a0]
mov dword [eax + 4], edx
mov edx, dword [0x4574a4]
mov dword [eax + 8], ecx
mov cx, word [0x4574a8]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
lea eax, [esp + 0x10]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x407643
mov edx, dword [str..ini]
mov ecx, dword [0x457490]
mov dword [eax], edx
mov dx, word [0x457494]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x21c]
push ecx
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea edx, [esp + 0x218]
push edx
push str.InstallPath
mov ecx, ebp
call fcn.00406ff0
push 0x206
lea eax, [esp + 0x426]
push 0
push eax
mov word [esp + 0x42c], 0
call fcn.00413220
add esp, 0xc
xor eax, eax
nop
movzx ecx, word [eax + str.SOFTWARE_]
mov word [esp + eax + 0x420], cx
add eax, 2
test cx, cx
jne 0x4076c0
lea edi, [esp + 0x420]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4076e1
push 0
mov ecx, 7
mov esi, 0x457420
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [esp + 0x43c]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
pop edi
pop esi
pop ebp
jne 0x407747
mov ecx, dword [esp]
push 0x104
lea eax, [esp + 0x210]
push eax
push 1
push 0
push str.InstallPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x61c]
xor ecx, esp
call fcn.00413205
add esp, 0x620
ret
Function at 0x4090c0
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
sub esp, 0x66c
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
mov esi, dword [esp + 0x678]
push esi
lea eax, [esp + 0x46c]
push str._s.
push eax
mov dword [esp + 0x18], ecx
call fcn.00413d0d
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x46c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], 0
je 0x4091e9
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4091e8
cmp word [esp + 0x40], 0x2e
je 0x409124
mov ax, word [esp + 0x42]
test ax, ax
je 0x409124
cmp ax, 0x2e
jne 0x409158
cmp word [esp + 0x44], 0
je 0x409124
test byte [esp + 0x14], 0x10
je 0x409124
push 0x206
lea ecx, [esp + 0x26a]
push 0
push ecx
mov word [esp + 0x270], 0
call fcn.00413220
push str.DongFangInfo.ini
lea edx, [esp + 0x50]
push edx
push esi
lea eax, [esp + 0x27c]
push 0x457508
push eax
call fcn.00413d0d
add esp, 0x20
lea ecx, [esp + 0x264]
push ecx
call edi
test eax, eax
je 0x409124
lea eax, [esp + 0x264]
mov dword [esp + 0xc], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4091c1
mov ecx, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x268]
push edx
add ecx, 0xd0
call fcn.004082f0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x670]
mov eax, dword [esp + 8]
pop esi
pop ebx
xor ecx, esp
call fcn.00413205
add esp, 0x66c
ret 4
Function at 0x409400
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x455f5b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push esi
push edi
mov eax, dword [0x464380]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
push 0xffffffffffffffff
push edi
lea eax, [esi + 0x44]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
call fcn.00407ff0
mov eax, dword [esp + 0x14]
mov ebx, 8
cmp dword [esp + 0x28], ebx
mov dword [esp + 0x240], edi
jae 0x409479
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.004090c0
test eax, eax
jne 0x409499
cmp dword [esp + 0x28], ebx
jb 0x409523
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x40951b
push 0x206
lea edx, [esp + 0x32]
push edi
push edx
mov word [esp + 0x38], di
call fcn.00413220
add esp, 0xc
cmp dword [esi + 0xe8], ebx
jb 0x4094c1
mov eax, dword [esi + 0xd4]
jmp 0x4094c7
lea eax, [esi + 0xd4]
push eax
push 0x104
lea eax, [esp + 0x34]
push eax
push 0x457504
push str.Spreader
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4094f0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esi + 0x98]
call fcn.004082f0
cmp dword [esp + 0x28], ebx
jb 0x409523
mov edx, dword [esp + 0x14]
push edx
call fcn.004136fe
add esp, 4
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00413205
add esp, 0x234
ret
Function at 0x409550
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x455f9b
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x464380]
xor eax, esp
push eax
lea eax, [esp + 0x444]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea eax, [esi + 0x60]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
call fcn.00407ff0
mov eax, dword [esp + 0x18]
mov ebp, 8
cmp dword [esp + 0x2c], ebp
mov dword [esp + 0x44c], ebx
jae 0x4095ca
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.004090c0
test eax, eax
jne 0x4095ea
cmp dword [esp + 0x2c], ebp
jb 0x4096f6
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x4096ee
push 0x206
lea edx, [esp + 0x36]
push ebx
push edx
mov word [esp + 0x3c], bx
call fcn.00413220
push 0x206
lea eax, [esp + 0x24a]
push ebx
push eax
mov word [esp + 0x250], bx
call fcn.00413220
add esp, 0x18
cmp dword [esi + 0xe8], ebp
jb 0x40962d
mov eax, dword [esi + 0xd4]
jmp 0x409633
lea eax, [esi + 0xd4]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push 0x104
lea ecx, [esp + 0x38]
push ecx
push 0x457504
push 0x457590
push str.AppUpdate
call edi
cmp dword [esi + 0xe8], ebp
jb 0x409665
mov eax, dword [esi + 0xd4]
jmp 0x40966b
lea eax, [esi + 0xd4]
push eax
push 0x104
lea edx, [esp + 0x240]
push edx
push 0x457504
push str.MinVer
push str.AppUpdate
call edi
lea eax, [esp + 0x30]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409691
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esi + 0xec]
call fcn.004082f0
lea eax, [esp + 0x238]
lea edx, [eax + 2]
jmp 0x4096c0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4096c0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x23c]
push ecx
lea ecx, [esi + 0x108]
call fcn.004082f0
cmp dword [esp + 0x2c], ebp
jb 0x4096f6
mov edx, dword [esp + 0x18]
push edx
call fcn.004136fe
add esp, 4
mov ecx, dword [esp + 0x444]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.00413205
add esp, 0x43c
ret
Function at 0x40a3a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push 0x4576f8
mov esi, ecx
call ebx
test eax, eax
mov dword [esi], eax
jne 0x40a3ba
pop esi
pop ebx
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi]
push str.IsWow64Process
push eax
call edi
mov ecx, dword [esi]
push str.Wow64DisableWow64FsRedirection
push ecx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [esi]
push str.Wow64RevertWow64FsRedirection
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi]
push str.GetSystemWow64DirectoryW
push eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
test eax, eax
mov dword [esi + 4], eax
jne 0x40a412
pop edi
pop esi
pop ebx
ret
push str.Wow64RevertWow64FsRedirection
push eax
call edi
mov ecx, dword [esi + 4]
push str.Wow64RevertWow64FsRedirection
push ecx
mov dword [esi + 0x20], eax
call edi
pop edi
mov dword [esi + 0x1c], eax
pop esi
mov eax, 1
pop ebx
ret
Function at 0x40aec0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40aed0
sub eax, edx
sar eax, 1
mov ebp, eax
xor ecx, ecx
lea eax, [ebp + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412224
mov esi, eax
mov edx, esi
add esp, 4
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40af05
xor edi, edi
test ebp, ebp
mov byte [esp + 0x10], 1
jl 0x40af6c
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp word [esi + edi*2], 0x5c
jne 0x40af4c
push esi
mov word [esi + edi*2], 0
call ebx
test eax, eax
jne 0x40af46
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40af66
mov word [esi + edi*2], 0x5c
add edi, 1
cmp edi, ebp
jle 0x40af26
pop ebx
push esi
call fcn.00413db9
movzx eax, byte [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
ret
mov byte [esp + 0x14], 0
pop ebx
push esi
call fcn.00413db9
movzx eax, byte [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
ret

Function at 0x40b040
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x828
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x824], eax
push esi
mov esi, dword [esp + 0x830]
push 0x44
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00413220
xor eax, eax
push esi
lea ecx, [esp + 0x68]
push 0x4578a0
push ecx
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.00413d0d
add esp, 0x18
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [esp + 0x78]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40b0d2
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov ecx, dword [esp + 0x828]
pop esi
xor ecx, esp
call fcn.00413205
add esp, 0x828
ret
Function at 0x40b2c0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x208], eax
push edi
mov edi, dword [esp + 0x214]
push str..del
push edi
call fcn.00413476
add esp, 8
test eax, eax
je 0x40b30f
push 5
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00413205
add esp, 0x20c
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
xor esi, esi
lea esp, [esp]
push 0x206
lea eax, [esp + 0x12]
push 0
push eax
mov word [esp + 0x18], 0
call fcn.00413220
add esp, 0xc
test esi, esi
jne 0x40b354
push edi
lea ecx, [esp + 0x10]
push str._s.del
push ecx
call fcn.00413d0d
add esp, 0xc
jmp 0x40b368
push esi
push edi
lea edx, [esp + 0x14]
push str._s.del_d
push edx
call fcn.00413d0d
add esp, 0x10
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b38c
lea ecx, [esp + 0xc]
push ecx
call ebx
test eax, eax
jne 0x40b38c
cmp esi, 0xa
jge 0x40b3a9
add esi, 1
jmp 0x40b320
lea edx, [esp + 0xc]
push edx
push edi
call fcn.00414372
add esp, 8
push 5
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [esp + 0x214]
pop esi
pop ebx
pop edi
xor ecx, esp
call fcn.00413205
add esp, 0x20c
ret

Function at 0x40b3d0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
sub esp, 0x61c
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x618], eax
push ebx
mov ebx, dword [esp + 0x624]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b504
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call ebp
test eax, eax
jne 0x40b503
push esi
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x21e]
push edi
push eax
mov word [esp + 0x224], di
call fcn.00413220
push 0x206
lea ecx, [esp + 0x432]
push edi
push ecx
mov word [esp + 0x438], di
call fcn.00413220
add esp, 0x18
lea edx, [esp + 0x420]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x218]
push eax
push ebx
call fcn.0040b0f0
add esp, 8
xor esi, esi
push 0x206
lea ecx, [esp + 0x16]
push edi
push ecx
mov word [esp + 0x1c], di
call fcn.00413220
add esp, 0xc
cmp esi, edi
lea edx, [esp + 0x218]
lea eax, [esp + 0x420]
lea ecx, [esp + 0x10]
jne 0x40b4b0
push edx
push eax
push str._s_s.del
push ecx
call fcn.00413d0d
add esp, 0x10
jmp 0x40b4c1
push esi
push edx
push eax
push str._s_s.del_d
push ecx
call fcn.00413d0d
add esp, 0x14
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b4e5
lea eax, [esp + 0x10]
push eax
call ebp
cmp eax, edi
jne 0x40b4e5
cmp esi, 0xa
jge 0x40b501
add esi, 1
jmp 0x40b470
lea ecx, [esp + 0x10]
push ecx
push ebx
call fcn.00414372
add esp, 8
push 5
push edi
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x61c]
pop ebx
xor ecx, esp
call fcn.00413205
add esp, 0x61c
ret
Function at 0x40b5a0
Capabilities:
Create process on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
lea edx, [eax + 2]
jmp 0x40b5b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b5b0
sub eax, edx
sar eax, 1
je 0x40b5e3
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x40b5e3
push esi
call fcn.0040b040
add esp, 4
pop esi
pop ecx
ret

Function at 0x40b9d0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 1
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, esi
mov dword [esi + 4], ecx
pop esi
ret 4

Function at 0x40c830
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4562cb
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x464380]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
push 0x54
call fcn.00413c59
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x1c], 0
je 0x40c879
mov ecx, eax
call fcn.0040c460
jmp 0x40c87b
xor eax, eax
mov edi, dword [esp + 0x24]
mov ecx, edi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esi + 0x78], eax
lea ebp, [ecx + 1]
nop
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x40c890
sub ecx, ebp
push ecx
push edi
lea ecx, [eax + 8]
call fcn.00407f20
mov eax, dword [esi + 0x78]
mov dword [eax + 4], 0
mov ecx, dword [esi + 0x78]
push 9
push str.GET_test1
add ecx, 0x34
call fcn.00407f20
lea ecx, [esi + 0x14]
push ecx
push 0
push esi
push 0x40c810
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x18], eax
je 0x40c8ec
cmp eax, 0xffffffff
je 0x40c8ec
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4

Function at 0x413205
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x464380]
jne 0x41320f
repz ret
jmp fcn.0041b28f