joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40661e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x78f638
push esi
call fcn.00406a77
mov edi, esi
call fcn.004065d2
mov edi, eax
test edi, edi
jne 0x406640
xor eax, eax
jmp 0x406696
push edi
call fcn.00406d14
test byte [0x792fc0], 0x80
je 0x406659
mov al, byte [edi]
test al, al
je 0x40663c
cmp al, 0x5c
je 0x40663c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x406678
push esi
call fcn.00406f52
test eax, eax
je 0x406673
test byte [eax], 0x10
je 0x40669b
call fcn.00406590
push esi
call ebx
cmp eax, edi
jg 0x406664
call fcn.00406553
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x406695

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406731
and eax, 0xfffffffe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x406737
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x406766
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x64
pop esi
dec esi
mov dword [ebp - 4], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push edi
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
add byte [ebp - 2], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4067a6
test esi, esi
jne 0x40676e
mov byte [edi], 0
pop esi
leave
ret 4
mov eax, edi
jmp 0x4067a1
Function at 0x4067aa
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push 0x409e14
mov edi, 0x78fa38
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ebx, 0x400
test esi, esi
je 0x4067f8
push 1
push 0
push esi
call fcn.00406737
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x406930
cmp eax, ebx
jg 0x406930
push ebx
mov esi, 0x790778
push esi
push dword [esp + 0x24]
call ebp
test eax, eax
je 0x406930
cmp eax, ebx
jg 0x406930
push esi
push edi
push str._s_s_r_n
push 0x78ff78
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x792b4c]
push dword [eax + 0x128]
push esi
call fcn.00406a8d
push 4
push 0xc0000000
push esi
call fcn.00406737
mov ebp, eax
mov dword [esp + 0x10], ebp
cmp ebp, 0xffffffff
je 0x406930
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406929
push 0
lea eax, [esp + 0x18]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406929
cmp edi, dword [esp + 0x14]
jne 0x406929
push str._Rename__r_n
mov eax, esi
call fcn.0040669f
test eax, eax
jne 0x4068c1
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4068f5
push 0x409e20
add eax, 0xa
call fcn.0040669f
mov ebp, eax
test ebp, ebp
je 0x4068f1
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4068e2
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4068dc
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x10]
jmp 0x4068f7
mov ebp, dword [esp + 0x10]
mov eax, edi
push ebx
add eax, esi
mov ecx, 0x78ff78
call fcn.004066f4
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x18]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x40696a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
neg eax
sbb eax, eax
lea ecx, [ebp + 8]
push ecx
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4069d5
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 4], 0x400
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4069c4
cmp dword [ebp + 0xc], 1
je 0x4069c6
cmp dword [ebp + 0xc], 2
je 0x4069c6
mov byte [esi], bl
push dword [ebp + 8]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 0xc
Function at 0x406db1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406dd6
mov eax, dword [0x40b028]
cmp eax, 0xffffffff
je 0x406dcd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40b028], 0xffffffff
jmp 0x406e4b
cmp dword [0x790ee8], ebx
je 0x406e4b
cmp byte [0x791f00], bl
je 0x406e15
cmp dword [0x40b028], 0xffffffff
jne 0x406e1e
push 4
push 0x40000000
push 0x791f00
call fcn.00406737
mov dword [0x40b028], eax
cmp eax, 0xffffffff
je 0x406e4b
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40b028], 0xffffffff
je 0x406e4b
push esi
push 0x409e8c
mov esi, 0x790f00
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push dword [0x40b028]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4083bc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b0a0]
jne 0x4083c6
repz ret
jmp fcn.0040866d
Function at 0x40b15a
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [pe_dos_header]
mov eax, dword ds:[eax + 0x34]
mov ebp, dword ds:[eax + 0xb8]
jmp 0x40b168
push eax
push ecx
push esi
push ebp
mov eax, dword fs:[0x30]
test eax, eax
js 0x40b14a
mov eax, dword ds:[eax + 0xc]
mov esi, dword ds:[eax + 0x1c]
lodsd eax, dword [esi]
mov ebp, dword ds:[eax + 8]
mov dword [ebx + 0x60], ebp
mov eax, ebp
cmp word [eax], 0x5a4d
jne 0x40b145
add eax, 0x3c
mov ecx, dword [eax]
add ecx, dword [ebx + 0x60]
cmp word [ecx], 0x4550
jne 0x40b145
add ecx, 0x78
mov esi, dword [ecx]
add esi, dword [ebx + 0x60]
add esi, 0x18
lodsd eax, dword [esi]
mov dword [ebx + 0x64], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x68], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x6c], eax
lodsd eax, dword [esi]
add eax, dword [ebx + 0x60]
mov dword [ebx + 0x70], eax
pop ebp
pop esi
pop ecx
pop eax
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x401010
Capabilities:
Set registry value

Disassembly:
mov eax, dword [eax]
test eax, eax
jne 0x40101b
xor al, al
ret 4
cmp dword [ecx + 0x18], 0x10
jb 0x401026
mov ecx, dword [ecx + 4]
jmp 0x401029
add ecx, 4
push 4
lea edx, [esp + 8]
push edx
push 4
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete al
ret 4

Function at 0x401070
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [eax]
sub esp, 8
test eax, eax
je 0x4010b9
cmp dword [ecx + 0x18], 0x10
mov dword [esp], 4
jb 0x40108b
mov ecx, dword [ecx + 4]
jmp 0x40108e
add ecx, 4
lea edx, [esp]
push edx
push esi
lea edx, [esp + 0xc]
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4010b3
cmp dword [esp + 4], 4
jne 0x4010b3
mov al, 1
add esp, 8
ret
mov dword [esi], 0
xor al, al
add esp, 8
ret

Function at 0x4010c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x4362ac]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x114]
push esi
mov esi, dword [eax]
push edi
mov edi, ecx
test esi, esi
je 0x40115a
push 0x103
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.0041a930
add esp, 0xc
cmp dword [edi + 0x18], 0x10
mov dword [esp + 0xc], 0x104
jb 0x401111
mov edi, dword [edi + 4]
jmp 0x401114
add edi, 4
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40115a
cmp dword [esp + 8], 1
jne 0x40115a
lea eax, [esp + 0x10]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401140
sub eax, edx
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.00405320
mov al, 1
jmp 0x40115c
xor al, al
mov ecx, dword [esp + 0x114]
pop edi
pop esi
xor ecx, esp
call fcn.00416933
add esp, 0x110
ret 4
Function at 0x402990
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 4]
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ed
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call ebx
mov ecx, dword [esi + 4]
push 0x3ee
push ecx
call edi
push 0
push eax
call ebx
mov edx, dword [esi + 4]
push 0x3e9
push edx
call edi
push 0
push eax
call ebx
mov eax, dword [esi + 4]
push 0x3024
push eax
call edi
push 0
push eax
call ebx
mov ecx, dword [esi + 4]
push 2
push ecx
call edi
push 0
push eax
call ebx
mov edx, dword [esi + 4]
push 1
push edx
call edi
push 5
push eax
call ebx
pop edi
pop ebx
ret
Function at 0x404060
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x428bf8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4362ac]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4362ac]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
push 0xffffffffffffffff
xor edi, edi
mov esi, ecx
push edi
push esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], edi
mov byte [esp + 0x40], 0
call fcn.004056c0
push 1
push 0x42c734
lea eax, [esp + 0x38]
push eax
xor eax, eax
mov dword [esp + 0x64], edi
call fcn.00404190
mov ebp, 0x10
mov edi, eax
cmp dword [esi + 0x18], ebp
jb 0x4040dc
mov esi, dword [esi + 4]
jmp 0x4040df
add esi, 4
cmp byte [esi + edi - 1], 0x3a
jne 0x4040fc
push 1
push 0x42c734
lea ecx, [esp + 0x38]
lea eax, [edi + 1]
push ecx
call fcn.00404190
mov edi, eax
cmp edi, 0xffffffff
je 0x404157
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
xor ecx, ecx
lea esi, [esp + 0x18]
lea edx, [esp + 0x34]
call fcn.00403cc0
cmp dword [eax + 0x18], ebp
jb 0x404121
mov eax, dword [eax + 4]
jmp 0x404124
add eax, 4
push 0
push eax
call ebx
cmp dword [esp + 0x2c], ebp
jb 0x40413c
mov edx, dword [esp + 0x18]
push edx
call fcn.00416928
add esp, 4
push 1
push 0x42c734
lea ecx, [esp + 0x38]
lea eax, [edi + 1]
push ecx
call fcn.00404190
mov edi, eax
cmp edi, 0xffffffff
jne 0x404107
cmp dword [esp + 0x48], ebp
jb 0x40416a
mov edx, dword [esp + 0x34]
push edx
call fcn.00416928
add esp, 4
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00416933
add esp, 0x48
ret

Function at 0x404ab0
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push esi
push edi
lea esi, [ebx + 0x30]
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x404aef
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x404aef
cmp dword [esp + 0xc], 0x103
jne 0x404aef
push 0x433050
lea edx, [esp + 0xf]
xor al, al
push edx
mov byte [esp + 0x13], al
call fcn.0041899b
lea eax, [esp + 0x10]
push eax
push 0
push edi
push 0x40a640
push 0
push 0
mov dword [edi + 4], ebx
call fcn.004173df
lea ecx, [esp + 0x24]
add esp, 0x18
mov edi, eax
cmp esi, ecx
je 0x404b30
mov eax, dword [esi]
test eax, eax
je 0x404b28
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov dword [esi], edi
pop edi
pop esi
add esp, 0xc
ret
test edi, edi
je 0x404b3b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0xc
ret
Function at 0x405800
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x4290a0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4362ac]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x42ca48
push eax
call fcn.004175fa
xor ebx, ebx
add esp, 8
cmp eax, ebx
jne 0x405857
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
xor esi, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
push 0x42c5ec
push eax
mov dword [esp + 0x58], ebx
call fcn.00416e0f
add esp, 8
lea ebp, [esi + 0x10]
test eax, eax
je 0x4058e8
lea edi, [esi + 0xf]
push 0x42ca50
push ebx
call fcn.00416e0f
add esp, 8
cmp eax, ebx
je 0x4058e4
mov ecx, eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x4058a4
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.00405320
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x54], 1
call fcn.00406390
mov byte [esp + 0x50], bl
cmp dword [esp + 0x44], ebp
jb 0x405881
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00416928
add esp, 4
jmp 0x405881
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, 1
je 0x405971
sub eax, 1
je 0x405951
sub eax, 1
jne 0x40598c
cmp dword [esi + 0x50], ebp
jb 0x40591a
mov eax, dword [esi + 0x3c]
jmp 0x40591d
lea eax, [esi + 0x3c]
cmp dword [esi + 0x34], ebp
jb 0x405927
mov edi, dword [esi + 0x20]
jmp 0x40592a
lea edi, [esi + 0x20]
cmp dword [esi + 0x18], ebp
jb 0x405940
mov ebp, dword [esi + 4]
push eax
call fcn.00417627
add esp, 4
push eax
push edi
push ebp
jmp 0x405985
push eax
lea ebp, [esi + 4]
call fcn.00417627
add esp, 4
push eax
push edi
push ebp
jmp 0x405985
cmp dword [esi + 0x34], ebp
jb 0x40595b
mov ecx, dword [esi + 0x20]
jmp 0x40595e
lea ecx, [esi + 0x20]
cmp dword [esi + 0x18], ebp
jb 0x40596a
mov eax, dword [esi + 4]
push ebx
push ecx
jmp 0x405984
push ebx
lea eax, [esi + 4]
push ecx
jmp 0x405984
cmp dword [esi + 0x18], ebp
jb 0x40597b
mov eax, dword [esi + 4]
jmp 0x40597e
lea eax, [esi + 4]
push ebx
push 0x42c4b4
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, ebx
je 0x4059ac
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
push edx
mov eax, esi
call fcn.00406aa0
add esp, 4
push esi
call fcn.00416928
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x408870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x408880
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x408890
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x409040
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x128
mov eax, dword [0x4362ac]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
mov ebp, dword [esp + 0x134]
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea edx, [esp + 0x20]
push edx
xor edi, edi
or eax, 0x2001f
push eax
push edi
push ebp
push ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, edi
jne 0x4090b5
xor eax, eax
cmp ecx, edi
je 0x4090a3
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], edi
mov esi, eax
mov dword [esp + 0x14], ecx
cmp eax, edi
je 0x4090c3
cmp ecx, edi
je 0x409160
push ecx
jmp 0x40915a
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x28]
push eax
push edi
push edi
push edi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push edi
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x40912e
jmp 0x4090f0
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call fcn.00409040
mov ebp, eax
cmp ebp, edi
jne 0x40917d
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x18]
push edi
push edi
push edi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x44]
push ecx
push edi
push edx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x4090f0
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x409141
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], edi
mov eax, dword [ebx]
push ebp
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x409160
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00416933
add esp, 0x128
ret 4
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40918c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
jmp 0x409162
Function at 0x40a580
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x428f48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4362ac]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 0x1d
push str.call_to_empty_boost::function
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
call fcn.00405320
lea eax, [esp + 4]
push eax
push esi
mov dword [esp + 0x30], 0
call fcn.0040a440
cmp dword [esp + 0x1c], 0x10
jb 0x40a5ef
mov ecx, dword [esp + 8]
push ecx
call fcn.00416928
add esp, 4
mov eax, esi
mov dword [esi], vtable.boost::bad_function_call.0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
add esp, 0x28
ret

Function at 0x40a960
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x428ed8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4362ac]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.0040a500
mov dword [esi], vtable.boost::bad_function_call.0
mov dword [esp + 0x18], 0
test edi, edi
je 0x40a9aa
add edi, 0x28
jmp 0x40a9ac
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x40a9c4
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::bad_function_call_.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_class_boost::bad_function_call_.1.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x40b370
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x428ea8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
mov eax, dword [0x4362ac]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
push 0x2d
xor ebx, ebx
push str.BCServer_8d46e846_1edc_451f_8eeb_eec3659856d8
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.00405320
lea eax, [esp + 0xc]
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], ebx
call fcn.0040b350
cmp dword [eax + 0x18], 0x10
jb 0x40b3d3
mov eax, dword [eax + 4]
jmp 0x40b3d6
add eax, 4
push eax
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
cmp dword [esp + 0x40], 0x10
mov esi, eax
jb 0x40b3f9
mov eax, dword [esp + 0x2c]
push eax
call fcn.00416928
add esp, 4
cmp dword [esp + 0x24], 0x10
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
jb 0x40b41d
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00416928
add esp, 4
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
cmp esi, ebx
je 0x40b44c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x44
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
sete al
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x44
ret