joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406383
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x44b5cc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x4063c3
push 0x43ca08
push 4
push eax
call fcn.00424d56
push eax
call fcn.00401fe0
add esp, 0x10
jmp 0x4063d5
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x406443
push edi
call fcn.00424e86
mov edi, dword [eax]
call fcn.00424e86
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00423013
add esp, 0x18
mov ebx, eax
call fcn.00424e86
cmp dword [eax], 0
je 0x406423
call fcn.00424e86
push dword [eax]
call fcn.004062fe
pop ecx
jmp 0x40642a
call fcn.00424e86
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x406443
cmp ebx, esi
jae 0x406443
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x406445
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00422bdb
leave
ret
Function at 0x408db4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x43978c
call fcn.00424668
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00410ffd
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x408dff
call fcn.00410ffd
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x408e10
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x408e1d
or eax, 0xffffffff
jmp 0x408f79
mov ecx, esi
call fcn.00408906
mov dword [ebp - 0x14], eax
call fcn.0040ca55
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x408e9b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x408e9b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x408e9b
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0040634e
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x408e9b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x408e9b
mov ecx, ebx
call fcn.0040f7cb
test eax, eax
je 0x408e9b
push 0
mov ecx, ebx
call fcn.0040f7e6
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0040e435
push dword [ebp - 0x14]
call fcn.0040c9ad
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00408bbc
xor edi, edi
cmp eax, edi
je 0x408ef8
test byte [esi + 0x3c], 0x10
je 0x408ee2
push 4
pop edi
mov ecx, esi
call fcn.0040f6b2
test ax, 0x100
je 0x408ed8
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040c575
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x408ef8
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0040f9b9
or dword [ebp - 4], 0xffffffff
jmp 0x408f23
cmp dword [ebp - 0x28], edi
je 0x408f31
push 1
mov ecx, ebx
call fcn.0040f7e6
cmp dword [ebp - 0x2c], edi
je 0x408f41
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x408f5a
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x408f5a
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00408940
cmp dword [esi + 0x58], edi
je 0x408f76
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0042470d
ret
Function at 0x409a80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x409ac6
call fcn.00410ffd
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x409ac6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x409b09
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x409af2
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x409af2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x409b06
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40f552
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40f595
call fcn.00410ffd
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40f595
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40f5b0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040f109
test ebx, ebx
mov esi, eax
je 0x40f5ae
test edi, edi
je 0x40f5ae
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x422bdb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44b5cc]
jne 0x422be5
repz ret
jmp fcn.004298ac
Function at 0x42db2c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x44c1a0]
je 0x42db47
inc edi
cmp edi, 0x17
jb 0x42db38
cmp edi, 0x17
jae 0x42dcc7
push ebp
push 3
call fcn.00433dd6
cmp eax, 1
pop ecx
je 0x42dc93
push 3
call fcn.00433dd6
test eax, eax
pop ecx
jne 0x42db7b
cmp dword [0x44b5e0], 1
je 0x42dc93
cmp ebx, 0xfc
je 0x42dcc6
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x94f7b8
push ebp
call fcn.00424d56
add esp, 0xc
test eax, eax
je 0x42dbb1
push esi
push esi
push esi
push esi
push esi
call fcn.00428223
add esp, 0x14
push 0x104
mov esi, 0x94f7d1
push esi
push 0
mov byte [0x94f8d5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42dbf5
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00424d56
add esp, 0xc
test eax, eax
je 0x42dbf5
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00428223
add esp, 0x14
push esi
call fcn.00424dc0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42dc3a
push esi
call fcn.00424dc0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x94facc
push 0x43fe54
sub ecx, eax
push ecx
push eax
call fcn.00426837
add esp, 0x14
test eax, eax
je 0x42dc3a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00428223
add esp, 0x14
jmp 0x42dc3c
xor esi, esi
push 0x43fe50
push ebx
push ebp
call fcn.00424eca
add esp, 0xc
test eax, eax
je 0x42dc5c
push esi
push esi
push esi
push esi
push esi
call fcn.00428223
add esp, 0x14
push dword [edi*8 + 0x44c1a4]
push ebx
push ebp
call fcn.00424eca
add esp, 0xc
test eax, eax
je 0x42dc7e
push esi
push esi
push esi
push esi
push esi
call fcn.00428223
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00433c19
add esp, 0xc
jmp 0x42dcc6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42dcc6
cmp ebp, 0xffffffff
je 0x42dcc6
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44c1a4]
push dword [esi]
call fcn.00424dc0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x433c19
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00429248
xor ebx, ebx
cmp dword [0x94fd08], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x433cef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x433dcf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44107c
push edi
call esi
cmp eax, ebx
je 0x433dcf
push eax
call fcn.004291da
mov dword [esp], 0x44106c
push edi
mov dword [0x94fd08], eax
call esi
push eax
call fcn.004291da
mov dword [esp], 0x441058
push edi
mov dword [0x94fd0c], eax
call esi
push eax
call fcn.004291da
mov dword [0x94fd10], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004247e8
test eax, eax
pop ecx
pop ecx
je 0x433cbd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00428223
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x433cef
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004291da
cmp eax, ebx
pop ecx
mov dword [0x94fd18], eax
je 0x433cef
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004291da
pop ecx
mov dword [0x94fd14], eax
mov eax, dword [0x94fd14]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x433d74
cmp dword [0x94fd18], ecx
je 0x433d74
push eax
call fcn.00429251
push dword [0x94fd18]
mov esi, eax
call fcn.00429251
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x433d74
cmp edi, ebx
je 0x433d74
call esi
cmp eax, ebx
je 0x433d41
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x433d41
test byte [ebp - 0x18], 1
jne 0x433d74
lea eax, [ebp - 0x10]
push eax
call fcn.0042481f
test eax, eax
pop ecx
je 0x433d5c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00428223
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x433d6b
or dword [ebp + 0x10], 0x200000
jmp 0x433daf
or dword [ebp + 0x10], 0x40000
jmp 0x433daf
mov eax, dword [0x94fd0c]
cmp eax, dword [ebp - 8]
je 0x433daf
push eax
call fcn.00429251
cmp eax, ebx
pop ecx
je 0x433daf
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x433daf
mov eax, dword [0x94fd10]
cmp eax, dword [ebp - 8]
je 0x433daf
push eax
call fcn.00429251
cmp eax, ebx
pop ecx
je 0x433daf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x94fd08]
call fcn.00429251
cmp eax, ebx
pop ecx
je 0x433dcf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x433dd1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x438af6
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44b5cc]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00438a8b
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00424050
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x438b45
cmp dword [ebp - 0x1c], 5
jb 0x438b5d
jmp 0x438b59
cmp dword [ebp - 0x10], 1
jne 0x438b5d
cmp dword [ebp - 0x1c], 4
ja 0x438b59
jne 0x438b5d
cmp dword [ebp - 0x18], 0
jbe 0x438b5d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x441900
call fcn.0043895f
test eax, eax
jge 0x438b7e
mov byte [0x44ca68], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00422bdb
add ebp, 0x78
leave
ret
Function at 0x401154
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
xor esi, esi
call edi
sub byte [esi + 0x4228d0], 0x49
call edi
add byte [esi + 0x4228d0], 0x83
call edi
xor byte [esi + 0x4228d0], 0xc
call edi
add byte [esi + 0x4228d0], 0x87
call edi
add byte [esi + 0x4228d0], 0xa3
call edi
add byte [esi + 0x4228d0], 0x8a
call edi
add byte [esi + 0x4228d0], 0x1c
call edi
xor byte [esi + 0x4228d0], 0xc3
call edi
add byte [esi + 0x4228d0], 0xb6
call edi
add byte [esi + 0x4228d0], 0x46
call edi
xor byte [esi + 0x4228d0], 0x94
call edi
add byte [esi + 0x4228d0], 0x3c
call edi
add byte [esi + 0x4228d0], 0xe2
call edi
add byte [esi + 0x4228d0], 0xa4
call edi
add byte [esi + 0x4228d0], 0x49
call edi
add byte [esi + 0x4228d0], 0xb8
call edi
xor byte [esi + 0x4228d0], 0x42
call edi
add byte [esi + 0x4228d0], 0xf1
call edi
add byte [esi + 0x4228d0], 0x29
call edi
add byte [esi + 0x4228d0], 0x98
call edi
add byte [esi + 0x4228d0], 0xf9
call edi
add byte [esi + 0x4228d0], 0x83
call edi
add byte [esi + 0x4228d0], 0x36
call edi
add byte [esi + 0x4228d0], 0xd2
call edi
add byte [esi + 0x4228d0], 0xfe
call edi
xor byte [esi + 0x4228d0], 0x1e
call edi
add byte [esi + 0x4228d0], 0xe8
call edi
add byte [esi + 0x4228d0], 0x22
call edi
add byte [esi + 0x4228d0], 0xa1
call edi
add byte [esi + 0x4228d0], 0x6d
call edi
add byte [esi + 0x4228d0], 0xb5
call edi
xor byte [esi + 0x4228d0], 0xab
call edi
xor byte [esi + 0x4228d0], 0xe6
call edi
xor byte [esi + 0x4228d0], 0xb9
call edi
add byte [esi + 0x4228d0], 0x65
call edi
add byte [esi + 0x4228d0], 0xb5
call edi
xor byte [esi + 0x4228d0], 0xf
call edi
add byte [esi + 0x4228d0], 0x91
call edi
add byte [esi + 0x4228d0], 0xbf
call edi
xor byte [esi + 0x4228d0], 0x5c
call edi
add byte [esi + 0x4228d0], 0x2f
call edi
xor byte [esi + 0x4228d0], 8
call edi
add byte [esi + 0x4228d0], 0xc3
call edi
xor byte [esi + 0x4228d0], 0x43
call edi
add byte [esi + 0x4228d0], 0x71
call edi
xor byte [esi + 0x4228d0], 0xd6
call edi
add byte [esi + 0x4228d0], 0xab
call edi
add byte [esi + 0x4228d0], 0xbc
call edi
add byte [esi + 0x4228d0], 0x81
inc esi
cmp esi, 0x23000
jb 0x40115e
pop edi
pop esi
ret
Function at 0x401330
Capabilities:
Start service

Disassembly:
push esi
push edi
push 0x80000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40134a
pop edi
pop esi
ret
mov eax, dword [esp + 0xc]
push 0x10
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401370
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jne 0x401390
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
ret
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
ret

Function at 0x4013a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x114
xor ecx, ecx
push ebx
mov dword [esp + 8], ecx
push esi
mov dword [esp + 0x10], ecx
push edi
xor eax, eax
mov dword [esp + 0x18], ecx
mov ecx, 0x40
lea edi, [esp + 0x1d]
mov dword [esp + 0xc], eax
mov byte [esp + 0x1c], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x1c]
push 0x104
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x4091bc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x124]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push str._service
push ecx
call fcn.00401010
add esp, 0xc
cmp eax, 0xffffffff
pop edi
pop esi
pop ebx
jne 0x401470
push str.RunClient:SCCreateProcess___Error_n
call fcn.00401000
add esp, 4
xor eax, eax
add esp, 0x114
ret
mov edx, dword [esp]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
add esp, 0x114
ret
Function at 0x401490
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x108
lea eax, [esp]
push edi
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4014c9
xor eax, eax
pop edi
add esp, 0x108
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 8]
push 0x104
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x401507
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
add esp, 0x108
ret
mov edi, 0x4091bc
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0x10]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.BBClient.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push 1
push 0
push str.BBRunClient
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
pop ebp
test eax, eax
je 0x4015a3
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
add esp, 0x108
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
add esp, 0x108
ret
Function at 0x404eb5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x409388
cmp edx, dword [eax]
je 0x404ed7
add eax, 8
inc ecx
cmp eax, 0x409418
jl 0x404ec8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x409388]
jne 0x405005
mov eax, dword [0x40bb6c]
cmp eax, 1
je 0x404fdf
test eax, eax
jne 0x404f08
cmp dword [0x4092a4], 1
je 0x404fdf
cmp edx, 0xfc
je 0x405005
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404f3f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406220
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004025e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404f82
lea eax, [ebp - 0x1a4]
push eax
call fcn.004025e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4085b0
push edi
call fcn.004071a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406220
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406230
lea eax, [ebp - 0xa0]
push 0x408590
push eax
call fcn.00406230
push dword [esi + 0x40938c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406230
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407108
add esp, 0x2c
pop edi
jmp 0x405005
lea eax, [ebp + 8]
lea esi, [esi + 0x40938c]
push 0
push eax
push dword [esi]
call fcn.004025e0
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 0x4015d8
Capabilities:
Get file version info

Disassembly:
mov eax, 0x409831
call fcn.004093e0
sub esp, 0x21c
mov eax, dword [0x40d238]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
xor eax, ebp
push edi
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x10], eax
call fcn.00401536
xor edx, edx
xor eax, eax
cmp esi, edx
mov word [ebp - 0x218], dx
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
mov dword [ebp - 4], edx
stosw word es:[edi], ax
jne 0x401640
push 0x103
lea eax, [ebp - 0x218]
push eax
push edx
call dword [0x40a154]
lea esi, [ebp - 0x218]
lea eax, [ebp - 0x228]
push eax
push esi
call fcn.00409820
test eax, eax
mov dword [ebp - 0x21c], eax
je 0x4016b7
push eax
call fcn.0040921b
pop ecx
mov edi, eax
push edi
push dword [ebp - 0x21c]
push dword [ebp - 0x228]
push esi
call fcn.0040981a
test eax, eax
je 0x4016b0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push eax
push 0x40a470
push edi
call fcn.00409814
test eax, eax
je 0x4016b0
push 0x34
push dword [ebp - 0x220]
push ebx
call fcn.004093ca
push edi
call fcn.00409400
xor esi, esi
add esp, 0x10
inc esi
jmp 0x4016b9
push edi
call fcn.00409400
pop ecx
xor esi, esi
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.00401365
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004093bb
leave
ret

Function at 0x40234f
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
mov eax, 0x40987b
call fcn.004093e0
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [esi], edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
je 0x402387
mov dword [ebp - 0x20], 1
push 0x40af68
lea eax, [ebp - 0x20]
jmp 0x4023f2
lea eax, [ebp - 0x18]
push eax
push 0x40a544
push 1
push edi
push 0x40a534
call dword [0x40a330]
cmp eax, edi
jge 0x4023b3
mov dword [ebp - 0x24], 2
push 0x40af68
lea eax, [ebp - 0x24]
jmp 0x4023f2
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x1c]
cmp eax, edi
jge 0x4023d5
mov dword [ebp - 0x28], 3
push 0x40af68
lea eax, [ebp - 0x28]
jmp 0x4023f2
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x1c]
cmp eax, edi
jge 0x402406
mov dword [ebp - 0x2c], 4
push 0x40af68
lea eax, [ebp - 0x2c]
push eax
call fcn.00409378
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
mov eax, 0x402404
ret
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
cmp eax, edi
je 0x402417
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x402424
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret