joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f9c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402fb9
mov dword [ebp - 8], reloc.GDI32.dll_GetDeviceCaps
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402fc8
mov ebx, 0x40e8c0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402fdd
mov ecx, dword [0x423778]
add ecx, eax
push ecx
call fcn.0040318e
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403178
test eax, eax
je 0x40312f
test byte [ebp + 0x17], 0x80
je 0x403118
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40a830
mov dword [ebp - 0xc], eax
call fcn.00406427
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40316e
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x40302d
mov esi, dword [ebp + 0x14]
mov edi, 0x40a8c0
push esi
push edi
call fcn.00403178
test eax, eax
je 0x40312f
sub dword [ebp + 0x14], esi
mov dword [0x40a848], edi
mov dword [0x40a84c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40a830
mov dword [0x40a850], ebx
mov dword [0x40a854], eax
call fcn.00406447
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x403110
mov esi, dword [0x40a850]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x4237d4], 1
mov edi, eax
je 0x4030cf
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x40309c
cmp dword [ebp + 0x14], 0
jne 0x4030cf
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x50]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
push 0
call fcn.00405091
mov dword [ebp - 0xc], edi
test esi, esi
je 0x403104
cmp dword [ebp + 0x10], 0
jne 0x4030ec
push esi
push ebx
push dword [ebp + 0xc]
call fcn.00405baa
test eax, eax
je 0x403114
add dword [ebp - 4], esi
jmp 0x4030f8
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40a850]
cmp dword [ebp - 0x10], 1
jne 0x403050
jmp 0x40316e
cmp dword [ebp + 0x14], 0
jg 0x403020
jmp 0x40316e
push 0xfffffffffffffffc
jmp 0x403131
push 0xfffffffffffffffe
jmp 0x403131
test edi, edi
je 0x403163
cmp dword [ebp + 0x14], esi
jge 0x403124
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403178
test eax, eax
jne 0x40316b
push 0xfffffffffffffffd
pop eax
jmp 0x403171
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40313f
mov esi, dword [ebp + 0x14]
mov edi, 0x40a8c0
push esi
push edi
call fcn.00403178
test eax, eax
je 0x40312f
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405baa
test eax, eax
je 0x403114
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403134
jmp 0x40316e
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405557
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x40737c
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x40736c
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4055a8
xor eax, eax
jmp 0x4055cf
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4055cf
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x4055a4
call esi
pop esi
leave
ret 4

Function at 0x405609
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x421510], 0x44
push eax
xor eax, eax
push 0x421510
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405648
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40564c
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

Function at 0x4056ea
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405ade
mov edi, eax
cmp edi, 0xffffffff
je 0x40572b
test byte [esp + 0x10], 1
push esi
je 0x40570d
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405713
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40571c
xor eax, eax
inc eax
jmp 0x40572d
test byte [esp + 0x10], 4
jne 0x40572b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405732
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.004059f0
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405771
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4237a8], eax
jmp 0x4058fb
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40578b
test eax, eax
je 0x4058a9
test bl, 2
je 0x4058a9
mov esi, 0x420d10
push edi
push esi
call fcn.00405f6a
cmp dword [ebp + 8], 0
je 0x4057aa
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4057b0
push edi
call fcn.00405949
cmp byte [edi], 0
jne 0x4057be
cmp byte [0x420d10], 0x5c
jne 0x4057c9
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40589f
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.0040592d
cmp byte [eax], 0
je 0x40580f
cmp byte [ebp - 0x1c], 0
je 0x40580f
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405825
mov al, byte [esi + 1]
test al, al
je 0x40587e
cmp al, 0x2e
jne 0x405825
cmp byte [esi + 2], 0
je 0x40587e
push esi
push ebx
call fcn.00405f6a
test byte [ebp - 0x14c], 0x10
je 0x40584a
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40587e
push dword [ebp + 0xc]
push edi
call fcn.00405732
jmp 0x40587e
push dword [ebp - 4]
push edi
call fcn.004056ea
test eax, eax
jne 0x405876
cmp dword [ebp - 4], eax
je 0x40586e
push edi
push 0xfffffffffffffff1
call fcn.00405091
push 0
push edi
call fcn.00405d49
jmp 0x40587e
inc dword [0x4237a8]
jmp 0x40587e
push edi
push 0xfffffffffffffff2
call fcn.00405091
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4057ed
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4058a9
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4058fb
cmp dword [ebp - 0xc], esi
jne 0x4058bd
inc dword [0x4237a8]
jmp 0x4058fb
push edi
call fcn.0040626d
test eax, eax
je 0x4058fb
push edi
call fcn.00405902
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004056ea
test eax, eax
jne 0x4058f3
cmp dword [ebp - 4], esi
je 0x4058b5
push edi
push 0xfffffffffffffff1
call fcn.00405091
push esi
push edi
call fcn.00405d49
jmp 0x4058fb
push edi
push 0xffffffffffffffe5
call fcn.00405091
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4059f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421110
push esi
call fcn.00405f6a
push esi
call fcn.0040599b
mov edi, eax
test edi, edi
jne 0x405a11
xor eax, eax
jmp 0x405a63
push edi
call fcn.004061d4
test byte [0x42371c], 0x80
je 0x405a2a
mov al, byte [edi]
test al, al
je 0x405a0d
cmp al, 0x5c
je 0x405a0d
sub edi, esi
jmp 0x405a42
call fcn.0040626d
test eax, eax
je 0x405a3c
test byte [eax], 0x10
je 0x405a0d
push esi
call fcn.00405949
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405a2e
call fcn.00405902
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405ade
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 0x405afd
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405b03
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
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 0x405b32
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4093b4]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405b77
test edi, edi
jne 0x405b3d
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405b71
Function at 0x405bd9
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x421a98], 0x4c554e
mov edi, 0x400
mov ebp, 0x421a98
je 0x405c25
push 1
push 0
push esi
call fcn.00405b03
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405d44
cmp eax, edi
jg 0x405d44
mov esi, 0x421e98
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405d44
cmp eax, edi
jg 0x405d44
push esi
push ebp
push str._s_s_r_n
push 0x421698
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423714]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405f8c
push 4
push 0xc0000000
push esi
call fcn.00405b03
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405d44
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 0x405d3d
push edi
push esi
push ebp
call fcn.00405b7b
test eax, eax
je 0x405d3d
push str._Rename__r_n
push esi
call fcn.00405a68
test eax, eax
jne 0x405cdb
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405d10
add eax, 0xa
push 0x4093b8
push eax
call fcn.00405a68
mov ebp, eax
test ebp, ebp
je 0x405d0c
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405cfd
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405cf7
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405d12
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x421698
push eax
call fcn.00405abe
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405baa
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
ret

Function at 0x405d49
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405d6c
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405bd9
pop ecx
pop ecx
inc dword [0x4237b0]
ret 8

Function at 0x405e51
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405df0
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x405ec0
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x3ff], 0
test edi, edi
pop edi
jne 0x405ec0
cmp dword [ebp + 0xc], 1
je 0x405ec3
cmp dword [ebp + 0xc], 2
je 0x405ec3
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x406294
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4062b8
xor eax, eax
test eax, eax
je 0x4062ca
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4062ca
xor ecx, ecx
jmp 0x4062cd
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4063b9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42229c], 0
push esi
jne 0x4063f0
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4063ca
mov dword [ecx*4 + 0x422298], eax
inc ecx
cmp ecx, 0x100
jl 0x4063c5
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406421
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422298]
xor eax, esi
inc ecx
dec edx
jne 0x406403
pop edi
not eax
pop esi
ret 0xc

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x7b2c16be
nop
nop
nop
test eax, eax
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..reloc
mov ebx, 0x42f3f8
nop
mov ecx, 0x3a406fe
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x402230
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi + 4], 0
jne 0x4022f2
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 4], eax
je 0x4022ef
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenA
push eax
call edi
mov ecx, dword [esi + 4]
push str.CloseA
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 4]
push str.TraceWriteA
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
push str.DumpWriteA
push eax
call edi
mov ecx, dword [esi + 4]
push str.OpenW
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 4]
push str.CloseW
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 4]
push str.TraceWriteW
push eax
call edi
mov ecx, dword [esi + 4]
push str.DumpWriteW
push ecx
mov dword [esi + 0x20], eax
call edi
cmp dword [esi + 8], 0
mov dword [esi + 0x24], eax
pop edi
je 0x4022ef
cmp dword [esi + 0xc], 0
je 0x4022ef
cmp dword [esi + 0x10], 0
je 0x4022ef
cmp dword [esi + 0x14], 0
je 0x4022ef
cmp dword [esi + 0x18], 0
je 0x4022ef
cmp dword [esi + 0x1c], 0
je 0x4022ef
cmp dword [esi + 0x20], 0
je 0x4022ef
test eax, eax
jne 0x4022f2
xor eax, eax
ret
mov eax, 1
ret
Function at 0x403040
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, dword [esp + 0x1c]
cmp edi, 1
mov dword [esp + 8], str.Brother_Wireless_Info.
mov dword [esp + 0xc], 0x4031b0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
jle 0x40313e
mov esi, dword [esp + 0x20]
mov ecx, dword [esi + 4]
mov al, byte [ecx]
cmp al, 0x2d
je 0x403087
cmp al, 0x2f
jne 0x40313e
add ecx, 1
push ecx
push str.install
call fcn.004044d8
add esp, 8
test eax, eax
jne 0x4030a6
call fcn.00403480
jmp 0x403137
mov eax, dword [esi + 4]
add eax, 1
push eax
push str.remove
call fcn.004044d8
add esp, 8
test eax, eax
jne 0x4030c5
call fcn.004035c0
jmp 0x403137
mov ecx, dword [esi + 4]
add ecx, 1
push ecx
push str.debug
call fcn.004044d8
add esp, 8
test eax, eax
jne 0x403112
push str.Brother_WirelessInfo_Service
push str.Debugging__s._n
mov dword [0x417f08], 1
call fcn.00404544
add esp, 8
push 1
push 0x403720
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push esi
push edi
call fcn.004037f0
add esp, 8
jmp 0x403137
mov edx, dword [esi + 4]
add edx, 1
push edx
push 0x413ebc
call fcn.004044d8
add esp, 8
test eax, eax
jne 0x40313e
push str.1.02
call fcn.00404544
add esp, 4
push 0
call fcn.00404899
push str.brwlankey
push str._s__install__________to_install_the_service_n
call fcn.00404544
push str.brwlankey
push str._s__remove___________to_remove_the_service_n
call fcn.00404544
push str.brwlankey
push str._s__debug__params____to_run_as_a_console_app_for_debugging_n
call fcn.00404544
push str._nStartServiceCtrlDispatcher_being_called._n
call fcn.00404544
push str.This_may_take_several_seconds.__Please_wait._n
call fcn.00404544
add esp, 0x20
lea eax, [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x40319b
mov edi, str.StartServiceCtrlDispatcher_failed.
call fcn.004033e0
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret

Function at 0x4033e0
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x88
mov eax, dword [0x416060]
xor eax, esp
mov dword [esp + 0x84], eax
cmp dword [0x417f08], 0
jne 0x403469
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Brother_Wireless_Info.
push 0
mov dword [0x417f04], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
mov eax, dword [0x417f04]
push eax
push str.Brother_Wireless_Info.
push str._s_error:__d
lea ecx, [esp + 0x18]
push 0x7b
push ecx
call fcn.00404528
add esp, 0x14
test esi, esi
lea edx, [esp + 0xc]
mov dword [esp + 4], edx
mov dword [esp + 8], edi
je 0x403468
push 0
lea eax, [esp + 8]
push eax
push 0
push 2
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00403e28
add esp, 0x88
ret
Function at 0x403480
Capabilities:
Create service

Disassembly:
sub esp, 0x204
mov eax, dword [0x416060]
xor eax, esp
mov dword [esp + 0x200], eax
push 0x200
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4034d7
call fcn.00403760
push eax
push str.Brother_WirelessInfo_Service
push str.Unable_to_install__s____s_n
call fcn.00404544
add esp, 0xc
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.00403e28
add esp, 0x204
ret
push edi
push 3
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x403588
push ebx
push esi
push 0
push 0
push 0x41404b
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push 1
push 3
push 0x10
push 0xf01ff
push str.Brother_WirelessInfo_Service
push str.Brother_Wireless_Info.
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x40355a
push str.Brother_WirelessInfo_Service
push str._s_installed._n
call fcn.00404544
add esp, 8
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.00403e28
add esp, 0x204
ret
call fcn.00403760
push eax
push str.CreateService_failed____s_n
call fcn.00404544
add esp, 8
push edi
call ebx
pop esi
pop ebx
pop edi
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.00403e28
add esp, 0x204
ret
call fcn.00403760
push eax
push str.OpenSCManager_failed____s_n
call fcn.00404544
mov ecx, dword [esp + 0x20c]
add esp, 8
pop edi
xor ecx, esp
call fcn.00403e28
add esp, 0x204
ret
Function at 0x4035c0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x4036fc
push esi
push 0x10024
push str.Brother_Wireless_Info.
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x4036df
push 0x417ee4
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40368d
push ebx
push edi
push str.Brother_WirelessInfo_Service
push str.Stopping__s.
call fcn.00404544
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x417ee4
push esi
call ebx
test eax, eax
je 0x403669
lea esp, [esp]
cmp dword [0x417ee8], 3
jne 0x403669
push 0x414094
call fcn.00404544
add esp, 4
push 0x3e8
call edi
push 0x417ee4
push esi
call ebx
test eax, eax
jne 0x403640
cmp dword [0x417ee8], 1
pop edi
pop ebx
push str.Brother_WirelessInfo_Service
jne 0x403680
push str._n_s_stopped._n
jmp 0x403685
push str._n_s_failed_to_stop._n
call fcn.00404544
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x4036bb
push str.Brother_WirelessInfo_Service
push str._s_removed._n
call fcn.00404544
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
ret
call fcn.00403760
push eax
push str.DeleteService_failed____s_n
call fcn.00404544
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
ret
call fcn.00403760
push eax
push str.OpenService_failed____s_n
call fcn.00404544
add esp, 8
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
ret
call fcn.00403760
push eax
push str.OpenSCManager_failed____s_n
call fcn.00404544
add esp, 8
pop ebp
ret