joyce8/EMBER2024-capa huggingface dataset:
Function at 0x492275
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x49238d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49238d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004b2aa0
mov esi, eax
test esi, esi
je 0x49238d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x49238d
mov ecx, esi
call fcn.00492200
cmp edi, eax
jge 0x49238d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x492313
mov dword [esp + 0x34], 1
jmp 0x49236e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x49238d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00491770
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4b3443
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b347b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b1430
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b1408
jmp 0x4b3487
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b4b36
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b4b78
call fcn.004ba81a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b4b78
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b4b6f
xor eax, eax
jmp 0x4b4b80
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b4b86
pop edi
pop esi
pop ebx
ret 4
Function at 0x4bad4a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4bad78
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4bad96
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004bacb0
jmp 0x4bad96
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4bad96
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004bacb0
test edi, edi
mov eax, edi
jne 0x4bad80
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5807f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x123000]
push edi
jmp 0x58080a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x580811
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x580800
mov eax, 1
add ebx, ebx
jne 0x580823
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x580834
jne 0x580853
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x580853
dec eax
add ebx, ebx
jne 0x580840
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x580818
add ebx, ebx
jne 0x58084f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5808a5
xor ecx, ecx
sub eax, 3
jb 0x58086b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5808da
sar eax, 1
mov ebp, eax
jmp 0x580876
add ebx, ebx
jne 0x580876
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x580844
inc ecx
add ebx, ebx
jne 0x580884
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x580844
add ebx, ebx
jne 0x580891
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x580886
jne 0x5808a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x580886
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5808c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5808b6
jmp 0x580806
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5808c4
add edi, ecx
jmp 0x580806
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5808e2
cmp byte [edi], 0x11
jne 0x5808e2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5808e7
lea edi, [esi + 0x179000]
mov eax, dword [edi]
or eax, eax
je 0x58095f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x21b8e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x21ba64]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x580914
mov ecx, edi
jns 0x580943
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x21ba68]
or eax, eax
je 0x580959
mov dword [ebx], eax
add ebx, 4
jmp 0x580931
call dword [esi + 0x21ba78]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x580990
cmp al, 0xef
ja 0x580983
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x580965
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x580972
mov ebp, dword [esi + 0x21ba6c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5809c4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x401f7d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x40d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x13
mov ebx, ecx
and dword [ebp - 0x280], 0
pop ecx
push 5
mov esi, str.SOFTWARETencent_bugReportQQExternal
and dword [ebp - 0x288], 0
lea edi, [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, str.QQExternal
lea edi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x27c]
push eax
push 0x20019
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x68]
xor edi, edi
push edi
push eax
push closesocket
mov dword [ebp - 0x27c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4020b0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x284]
mov dword [ebp - 0x284], edi
push eax
lea eax, [ebp - 0x274]
mov dword [ebp - 0x278], 4
push eax
push edi
push str.auto
push dword [ebp - 0x27c]
mov dword [ebp - 0x274], edi
call esi
test eax, eax
jne 0x4020a4
push 4
pop eax
cmp dword [ebp - 0x274], eax
jne 0x4020a4
cmp dword [ebp - 0x284], 1
jne 0x4020a4
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x280]
mov dword [ebp - 0x274], edi
push eax
lea eax, [ebp - 0x274]
push eax
push edi
push str.version
push dword [ebp - 0x27c]
call esi
lea eax, [ebp - 0x278]
mov dword [ebp - 0x278], 4
push eax
lea eax, [ebp - 0x288]
mov dword [ebp - 0x274], edi
push eax
lea eax, [ebp - 0x274]
push eax
push edi
push 0x409c80
push dword [ebp - 0x27c]
call esi
push dword [ebp - 0x27c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x208
lea eax, [ebp - 0x270]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x270]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.Common.dll_unsigned_long_int___cdecl_TXLog::GetSession_void_]
mov esi, eax
call dword [sym.imp.Common.dll_unsigned_long_int___cdecl_NLS::GetLCID_void_]
push 0xffffffffffffffff
push esi
push eax
push 1
push 1
push dword [ebp - 0x280]
lea eax, [ebp - 0x270]
push edi
push edi
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
push str.QQExternal2
call dword [sym.imp.Common.dll_void___cdecl_TXBugReport::InitBugReport_wchar_t_const___wchar_t_const___wchar_t_const___wchar_t_const___unsigned_short_int__unsigned_short_int__unsigned_long_int__int__int__unsigned_long_int__unsigned_long_int__int____stdcall___struct_TXBugReport::tagBugReportInfo___char_const___char_const___wchar_t_const___wchar_t_const___void____unsigned_long_int___void___]
push 0x13
call dword [sym.imp.Common.dll_int___cdecl_TXBugReport::SetBugReportFlag_unsigned_long_int_]
push edi
push dword [ebp - 0x288]
call dword [sym.imp.Common.dll_void___cdecl_TXBugReport::SetBugReportUin_unsigned_long_int__int_]
add esp, 0x3c
call dword [sym.imp.Common.dll_void___cdecl_TXBugReport::ValidateBugReport_void_]
push dword [ebp - 0x280]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004055d1
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00407c04
leave
ret
Function at 0x404891
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x40d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
lea ecx, [ebp - 0x21c]
mov edi, edx
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__]
cmp dword [ebp + 8], 0
mov ebx, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
je 0x4049b9
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4049f8
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
lea ecx, [ebp - 0x218]
call esi
test edi, edi
jne 0x404919
push 0x40a610
lea ecx, [ebp - 0x218]
call dword [0x4090ac]
lea ecx, [ebp - 0x214]
call esi
mov ebx, dword [sym.imp.Common.dll_public:_void___cdecl_CTXStringW::Format_wchar_t_const__]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push str._s_regsvr32.exe
push eax
call ebx
add esp, 0xc
lea ecx, [ebp - 0x210]
call esi
mov esi, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::GetString_void_const]
lea ecx, [ebp - 0x21c]
call esi
lea ecx, [ebp - 0x218]
mov edi, eax
call esi
push edi
push eax
lea eax, [ebp - 0x210]
push str._s__s___s_
push eax
call ebx
mov esi, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
lea ecx, [ebp - 0x210]
add esp, 0x10
call esi
lea ecx, [ebp - 0x214]
mov edi, eax
call esi
push 5
xor ecx, ecx
push ecx
push edi
push eax
push ecx
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ebx, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x210]
call ebx
lea ecx, [ebp - 0x214]
call ebx
lea ecx, [ebp - 0x218]
call ebx
jmp 0x4049f8
lea ecx, [ebp - 0x21c]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.Common.dll_struct_HINSTANCE______cdecl_Util::Sys::SafeLoadLibrary_wchar_t_const__]
mov esi, eax
pop ecx
cmp esi, 0x20
jb 0x4049f8
test edi, edi
je 0x4049df
push str.DllRegisterServer
jmp 0x4049e4
push str.DllUnregisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4049f1
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x21c]
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407c04
leave
ret
Function at 0x404e15
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
lea eax, [ebp - 4]
push edi
push 1
xor edi, edi
push eax
push edi
mov dword [ebp - 4], edi
call esi
cmp dword [ebp - 4], edi
je 0x404ef2
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x404ef2
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.VCRUNTIME140.dll_memset]
add esp, 0xc
lea eax, [ebp - 4]
push 1
push eax
push ebx
call esi
test eax, eax
je 0x404e92
cmp dword [0x40d49c], 2
jne 0x404e89
push str.GetIpForwardTable_fail_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
pop ecx
push eax
call fcn.00404dbf
pop ecx
pop ecx
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x404f10
mov ecx, edi
mov dword [ebp - 8], ecx
cmp dword [ebx], edi
jbe 0x404ee6
lea eax, [ebx + 4]
mov dword [ebp - 0xc], eax
cmp dword [0x40d49c], 2
jne 0x404ecf
mov esi, dword [eax + 4]
mov edi, dword [eax]
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push esi
push edi
push str.MIB_IPFORWARDROW__lu__lu_n
push eax
call fcn.00404dbf
mov eax, dword [ebp - 0xc]
add esp, 0x14
mov ecx, dword [ebp - 8]
xor edi, edi
cmp dword [eax], edi
jne 0x404ed8
cmp dword [eax + 4], edi
je 0x404e89
inc ecx
add eax, 0x38
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
cmp ecx, dword [ebx]
jb 0x404ea1
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
xor eax, eax
jmp 0x404f14
cmp dword [0x40d49c], 2
jne 0x404f11
push str.size__0__malloc_fail_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
pop ecx
push eax
call fcn.00404dbf
pop ecx
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404f19
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x40d008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x800
xor edi, edi
lea eax, [ebp - 0x804]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push 0xffffffffffffffff
push str.SOFTWARETencent_bugReport_
mov esi, 0x400
lea eax, [ebp - 0x804]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
push 0x40d4a0
lea eax, [ebp - 0x804]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0x28
lea eax, [ebp - 0x808]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x804]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404ff0
push 4
pop esi
lea eax, [ebp - 0x814]
mov dword [ebp - 0x80c], edi
push eax
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x814], esi
push eax
lea eax, [ebp - 0x810]
mov dword [ebp - 0x810], edi
push eax
push edi
push str.lcdbg
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x80c]
xor ecx, ecx
cmp dword [ebp - 0x810], esi
cmovne eax, ecx
jmp 0x404ff2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00407c04
leave
ret

Function at 0x4055d1
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x40d008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x40d540], 0
push esi
push edi
jne 0x4056a0
mov byte [0x40d540], 1
test ecx, ecx
je 0x4056a0
xor edi, edi
cmp word [ecx], di
je 0x4056a0
push 0xffffffffffffffff
push ecx
push 0x21
mov esi, 0x40d4a0
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
push 0x64
lea eax, [ebp - 0x68]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x1c
lea eax, [ebp - 0x68]
push edi
push edi
push 0x63
push eax
push 0xffffffffffffffff
push esi
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0xffffffffffffffff
lea eax, [ebp - 0x68]
push eax
push 0x21
push 0x40d4e4
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
add esp, 0x10
cmp byte [0x40d4e4], 0
je 0x4056a0
mov eax, dword [ebp + 0xc]
mov dword [0x40d508], eax
lea eax, [ebp - 0x6c]
push eax
push 4
push edi
push 0x405000
push edi
push edi
mov dword [ebp - 0x6c], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x4056a0
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4056a3
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00407c04
leave
ret
Function at 0x4057ec
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x40d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push esi
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4058c1
push 0xc
push esi
mov esi, dword [sym.imp.VCRUNTIME140.dll_memset]
lea eax, [ebp - 0x410]
push eax
call esi
xor eax, eax
push 0x400
push eax
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x404]
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x414]
push 0
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push 0xc
lea eax, [ebp - 0x410]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4058ba
lea esi, [ebp - 0x404]
add esi, dword [ebp - 0x3f4]
movsx eax, byte [esi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
pop ecx
test eax, eax
je 0x4058ba
push esi
mov ecx, ebx
call fcn.00405c66
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x4058c3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407c04
leave
ret 4

Function at 0x40629a
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
xor edi, edi
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0
push 2
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov dword [ebp - 8], eax
cmp eax, 0x6f
jne 0x4062ee
test esi, esi
je 0x4062d0
push esi
call fcn.00408317
pop ecx
mov eax, dword [ebp - 4]
add eax, 0x120
push eax
call fcn.0040831c
mov esi, eax
pop ecx
test esi, esi
je 0x406327
inc edi
cmp edi, 5
jl 0x4062ac
mov eax, dword [ebp - 8]
test esi, esi
je 0x406327
push esi
test eax, eax
jne 0x406321
mov ecx, ebx
call fcn.00406330
mov edi, eax
test edi, edi
je 0x406316
mov ecx, ebx
call fcn.00406747
push ecx
mov ecx, ebx
call fcn.004069bb
xor edi, edi
inc edi
push esi
call fcn.00408317
pop ecx
mov eax, edi
jmp 0x406329
call fcn.00408317
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4070b8
Capabilities:
Hash data with md5

Disassembly:
push esi
push edi
push 0x5c
xor edi, edi
mov esi, ecx
push edi
push esi
call dword [sym.imp.VCRUNTIME140.dll_memset]
add esp, 0xc
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x58], edi
mov dword [esi], 0x67452301
pop edi
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
ret
Function at 0x402614
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4026ac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40268c
xor eax, eax
push ebp
push 0x402685
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4026c8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40268c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x403104
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4032bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403165
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4032d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4031d2
xor eax, eax
push ebp
push 0x4031cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4031b4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4032f8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4031d2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4032b3
cmp byte [ebp - 0xd], 0
jne 0x403214
cmp byte [ebp - 0x12], 0
je 0x4032b3
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40322d
dec ebx
cmp byte [ebx], 0x2e
je 0x40323c
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40322c
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4032b3
inc ebx
cmp byte [ebp - 0x12], 0
je 0x403269
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4032b3
cmp byte [ebp - 0xd], 0
je 0x4032b3
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4032b3
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret