joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44942c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x449464]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449445
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449454
or bl, 4
test esi, 0x20000000
je 0x44945f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44fb0c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44fb1e
add esp, 0xfffffff0
call fcn.00403420
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004191ac
mov eax, dword [0x456e50]
mov dword [eax + 4], ebx
mov dword [eax], 0x44feb0
mov eax, dword [0x456e5c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44febc
mov eax, ebx
call fcn.0044fec8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411434]
call fcn.004030cc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411434]
call fcn.004030cc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411434]
call fcn.004030cc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411434]
call fcn.004030cc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411434]
call fcn.004030cc
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44c2e4
push eax
push 0
push 0
mov eax, dword [0x456f9c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41abf8]
call fcn.0041c36c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41abf8]
call fcn.0041c36c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41abf8]
call fcn.0041c36c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004502e8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4501c4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4501c4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4501c4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44fc5b
call fcn.00403478
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44ffa8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x450153
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x450134
mov dl, 1
mov eax, dword [0x411850]
call fcn.004030cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e4c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x450123
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043dfb4
test al, al
je 0x450116
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x450164
lea eax, [ebp - 0x254]
call fcn.004088e8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x450116
xor eax, eax
push ebp
push 0x45010f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45019c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4500f8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4500f8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450116
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x450019
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041532c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45015a
lea eax, [ebp - 0x260]
call fcn.00403e4c
ret

Function at 0x450a88
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x458bb0]
cmp byte [eax + 0xa5], 0
jne 0x450af9
cmp dword [0x458bc8], 0
jne 0x450aba
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x450a44
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x458bc8], eax
cmp dword [0x458bc4], 0
jne 0x450ad5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x458bc4], eax
cmp dword [0x458bcc], 0
jne 0x450af9
push esp
push 0
push 0
push 0x4509e8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x458bcc], eax
pop edx
ret
Function at 0x450bf0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x450c07
add esp, 0xfffffff0
call fcn.00403420
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004191ac
mov eax, dword [0x456f88]
cmp word [eax + 2], 0
jne 0x450c2f
mov eax, dword [0x456f88]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004522c8
mov eax, dword [0x457034]
cmp word [eax + 2], 0
jne 0x450c49
mov eax, dword [0x457034]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004524c0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411434]
call fcn.004030cc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411434]
call fcn.004030cc
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b6d8]
call fcn.00422ad0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x450dd0
mov eax, dword [0x456eb0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00422ea0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x452a60
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x456eb0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040bfb0
test eax, eax
je 0x450d3e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004082dc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bfd8
test eax, eax
je 0x450d52
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
mov eax, dword [0x456da8]
cmp byte [eax], 0
jne 0x450d86
mov eax, ebx
call fcn.00450ef8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00452c3c
mov eax, ebx
call fcn.00453600
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450dc6
call fcn.00403478
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451178
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x458bb0]
cmp dword [eax + 0x30], 0
je 0x451222
cmp dword [ebx + 0x94], 0
jne 0x45121c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451108
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45121c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4511e2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45121c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041379c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4511f1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451d84
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x451db9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f3c
jmp 0x451dc6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ea0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452e18
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x452e59
mov eax, esi
call fcn.004395e0
test al, al
je 0x452e59
mov eax, dword [ebx + 0x84]
call fcn.004392dc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452e59
push 0
mov eax, dword [ebx + 0x84]
call fcn.004392dc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x453ad0
Capabilities:
Get keyboard layout

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffea8
mov edi, eax
xor ebp, ebp
lea eax, [esp + 0x108]
push eax
push 0x14
call sub.user32.dll_GetKeyboardLayoutList
mov esi, eax
test esi, esi
jbe 0x453b21
lea ebx, [esp + 0x108]
push 0x104
lea eax, [esp + 4]
push eax
mov eax, dword [ebx]
push eax
call sub.imm32.dll_ImmGetDescriptionA
push esp
push edi
call sub.kernel32.dll_lstrcmpA
test eax, eax
jne 0x453b1b
mov ebp, dword [ebx]
jmp 0x453b21
add ebx, 4
dec esi
jne 0x453afa
mov eax, ebp
add esp, 0x158
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10004af0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x104]
sub esp, 0x104
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10004b04
push esi
call fcn.1003c230
lea eax, [ebp - 0x104]
push 0x10065fa0
push eax
call fcn.10039440
lea ecx, [ebp - 0x104]
push 0x10046760
push ecx
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10004b98
push edi
push esi
xor edi, edi
call dword [sym.imp.MSVCR100.dll_feof]
add esp, 4
test eax, eax
jne 0x10004b7d
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_fread]
push esi
push 4
lea edx, [ebp + 8]
push 1
push edx
call ebx
add esp, 0x10
cmp eax, 4
jne 0x10004b7c
xor edi, dword [ebp + 8]
push esi
call dword [sym.imp.MSVCR100.dll_feof]
add esp, 4
test eax, eax
je 0x10004b58
pop ebx
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
xor eax, eax
cmp edi, dword [0x1005e618]
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10004e50
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x10004ed7
mov eax, dword [esp + 0x10]
mov ecx, 2
sub eax, ecx
je 0x10004e9c
mov word [0x100633d0], cx
call fcn.10008d30
add esp, 0x94
ret
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x10004eba
mov edx, dword [esp + 8]
mov eax, 1
cmp edx, eax
jb 0x10004e89
mov word [0x100633d0], ax
jmp 0x10004ec8
cmp eax, 6
jb 0x10004e89
mov word [0x100633d0], 1
call fcn.10004ba0
call fcn.10004d30
call fcn.10008d30
add esp, 0x94
ret

Function at 0x10006040
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
mov cl, 0x65
mov al, 0x72
push esi
xor esi, esi
mov byte [esp + 4], 0x54
mov byte [esp + 5], cl
mov byte [esp + 6], al
mov byte [esp + 7], 0x6d
mov byte [esp + 8], 0x69
mov byte [esp + 9], 0x6e
mov byte [esp + 0xa], 0x61
mov byte [esp + 0xb], 0x6c
mov byte [esp + 0xc], 0x20
mov byte [esp + 0xd], 0x53
mov byte [esp + 0xe], cl
mov byte [esp + 0xf], al
mov byte [esp + 0x10], 0x76
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], al
mov byte [esp + 0x13], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
jne 0x100060c9
cmp al, 4
jbe 0x100060b7
lea eax, [esp + 4]
push eax
call fcn.100060d0
add esp, 4
pop esi
add esp, 0x10
ret
lea ecx, [esp + 4]
push ecx
call fcn.100060d0
add esp, 4
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x100060d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
xor ebp, ebp
xor ebx, ebx
push str.SystemCurrentControlSetControlProductOptions
push reloc.WS2_32.dll_bind
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100061a5
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push ebp
push edx
push ebp
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x100061a5
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x100061a5
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebp
je 0x100061a5
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edi
push edx
push ebp
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x10006198
cmp dword [esp + 0x18], 7
jne 0x10006198
mov al, byte [edi]
mov esi, edi
test al, al
je 0x10006198
mov ebp, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push ebp
push esi
call ebx
test eax, eax
je 0x10006190
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x10006176
jmp 0x10006198
mov dword [esp + 0x1c], 1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x100061b4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x10006910
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
push esi
push 0x4e8
push 5
push 6
mov dword [esp + 0x10], 0x10
call fcn.10006e40
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x100069a5
mov edx, dword [esp + 4]
push ebx
mov ecx, edx
push edi
mov ebx, ecx
xor eax, eax
lea edi, [esp + 0x10]
push edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
mov word [esp + 0x14], 6
push eax
push esi
call sub.WS2_32.dll_bind
pop edi
cmp eax, 0xffffffff
pop ebx
je 0x100069a5
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push edx
push esi
call sub.WS2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x100069a5
lea eax, [esp + 8]
push eax
call fcn.10006880
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
push esi
call sub.WS2_32.dll_closesocket
xor eax, eax
pop esi
add esp, 0x14
ret
mov edx, dword [esp + 0x1c]
push str.00_00_00_00_FF_FF_FF_FF_FF_FF
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 8
mov eax, 1
pop esi
add esp, 0x14
ret
Function at 0x10006b00
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x10006b56
cmp dword [esp + 4], 6
jne 0x10006b56
mov eax, dword [esp + 8]
test eax, eax
jne 0x10006b56
cmp word [esp + 0x94], 0
jne 0x10006b56
mov cl, byte [esp + 0x9a]
mov eax, 1
cmp cl, al
je 0x10006b58
xor eax, eax
add esp, 0x9c
ret

Function at 0x100075d0
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
call fcn.10005fc0
test eax, eax
jne 0x10007600
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x10007615
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov edx, dword [esp + 0x14]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x10007659
mov edi, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push esi
call ebx
test eax, eax
je 0x10007639
cmp eax, 0x102
jne 0x10007646
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
jg 0x10007650
jmp 0x1000761f
mov eax, dword [esp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0x73
pop ebx
ret
push esi
call fcn.100076d0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x10007670
Capabilities:
Check mutex on windows

Disassembly:
push esi
call fcn.10005fc0
test eax, eax
jne 0x10007688
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push eax
push 0
push ecx
jmp 0x10007691
mov edx, dword [esp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x100076a4
mov eax, 1
pop esi
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100076bb
mov eax, dword [esp + 0x10]
mov dword [eax], esi
xor eax, eax
pop esi
ret
mov eax, 0x73
pop esi
ret
Function at 0x1000a830
Capabilities:
Get session user name

Disassembly:
sub esp, 0x4c8
push esi
lea eax, [esp + 8]
push edi
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x14], 0x40
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp eax, 1
jne 0x1000a8c7
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x94]
push ecx
push edx
call fcn.100192b0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1000a8ba
mov eax, dword [str.NoName]
mov cx, word [0x1005f73c]
mov dl, byte [0x1005f73e]
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
mov byte [esp + 0x16], dl
jmp 0x1000a90e
lea edi, [esp + 0x90]
lea edx, [esp + 0x10]
jmp 0x1000a8f1
mov dx, word [0x1005f73c]
mov ecx, dword [str.NoName]
mov al, byte [0x1005f73e]
mov word [esp + 0x14], dx
mov dword [esp + 0x10], ecx
mov byte [esp + 0x16], al
lea edi, [esp + 0x10]
lea edx, [esp + 0xd0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
push ebp
push ecx
call fcn.10018d10
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x97], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xd8]
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
lea eax, [esp + 0x2d8]
and ecx, 3
push 0x40
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xdc]
push eax
push ecx
call fcn.100192b0
add esp, 0x10
cmp eax, 0xffffffff
pop ebp
jne 0x1000a9a8
mov edx, dword [str.NoShareString]
mov eax, dword [0x1005f788]
mov ecx, dword [0x1005f78c]
mov dword [esp + 0xd0], edx
mov dx, word [0x1005f790]
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], ecx
mov word [esp + 0xdc], dx
jmp 0x1000a9d3
lea edi, [esp + 0x2d0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
lea edi, [esp + 0xd0]
push ecx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 0
push ecx
push edx
call fcn.10018c40
mov ecx, dword [esp + 0x14]
add esp, 0xc
inc eax
neg eax
sbb eax, eax
pop edi
and eax, ecx
pop esi
mov dword [0x100648c4], eax
add esp, 0x4c8
ret
Function at 0x1000b930
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x2e0
push ebx
mov bx, word [esp + 0x2f8]
neg bx
push ebp
mov ebp, dword [esp + 0x2f4]
sbb ebx, ebx
push esi
mov al, byte [ebp]
and ebx, 0xfffffffe
add ebx, 4
push edi
test al, al
je 0x1000b97e
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push str.NSP_CONTACT_NUM_SERVERS
mov byte [esp + 0x5f], 0
mov byte [ebp], 0
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
test eax, eax
je 0x1000b9ab
jbe 0x1000b9ab
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x1000b9b3
mov dword [esp + 0x10], 0xa
mov ecx, dword [esp + 0x2f4]
mov dx, word [ecx + 0x8c]
cmp dx, 4
jne 0x1000b9cc
mov ebx, 2
mov ecx, 0xa5
xor eax, eax
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x300]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, dword [esp + 0x300]
lea eax, [esp + 0x64]
push eax
push ecx
push ebx
push edx
call fcn.10016a40
mov ebx, eax
test bx, bx
jne 0x1000bb10
xor eax, eax
mov ebx, 0x46
cmp word [esp + 0x10], ax
mov dword [esp + 0x18], eax
jbe 0x1000bb1a
lea esi, [esp + 0x5c]
mov dword [esp + 0x14], esi
cmp eax, 0xa
jge 0x1000bb10
cmp word [esi + 0x40], 0
jbe 0x1000baf2
mov edx, dword [esp + 0x2f4]
mov ecx, 0x10
xor eax, eax
mov edi, ebp
push esi
push edx
rep stosd dword es:[edi], eax
call fcn.1000a3c0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push str.RNBO_SPN_ALL_MODES
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCR100.dll__stricmp]
lea ecx, [esp + 0x28]
push ecx
call esi
add esp, 0x10
test eax, eax
je 0x1000ba9b
lea edx, [esp + 0x1c]
push str.RNBO_SPN_BROADCAST
push edx
call esi
add esp, 8
test eax, eax
jne 0x1000baaa
push str.RNBO_SPN_LOCAL
push ebp
call esi
add esp, 8
test eax, eax
je 0x1000baea
mov eax, dword [esp + 0x30c]
mov ecx, dword [esp + 0x308]
mov edx, dword [esp + 0x304]
push eax
mov eax, dword [esp + 0x304]
push ecx
mov ecx, dword [esp + 0x300]
push edx
mov edx, dword [esp + 0x300]
push eax
push ebp
push ecx
push edx
call fcn.1000ad30
mov ebx, eax
add esp, 0x1c
test bx, bx
je 0x1000bb10
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
inc eax
and ecx, 0xffff
add esi, 0x42
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
jl 0x1000ba23
cmp bx, 0x45
mov ax, 3
je 0x1000bb1d
mov ax, bx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2e0
ret