joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448b00
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x448b33
push esi
call fcn.0044bbf0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x448b2c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x448bb9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x448ba2
mov eax, dword [esi + 8]
test eax, eax
je 0x448b57
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x448b9e
cmp eax, 2
je 0x448ba2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x448b4a
cmp eax, 3
je 0x448b7d
cmp eax, 1
jne 0x448b4a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x448b4a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x448b4a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00448be0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x448bc8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00448be0
add esp, 4
pop esi
ret

Function at 0x458437
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49c2d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x14]
call fcn.00489a77
mov eax, dword [0x5388f0]
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x48], eax
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp ebx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x51a1f4
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
je 0x458494
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.0048ab95
add esp, 4
mov dword [esi + 4], eax
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x10]
or eax, 0xffffffff
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x4c], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4637a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0x78], ebp
je 0x46395d
push ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov eax, dword [esi + 0x90]
cmp eax, ebp
je 0x4638d6
mov ecx, dword [esi + 0x94]
sub ecx, eax
mov eax, dword [esp + 0x14]
sar ecx, 4
cmp eax, ecx
jae 0x4638d6
xor ebx, ebx
mov edx, dword [esi + 0x90]
mov eax, dword [esp + 0x10]
add eax, edx
mov ecx, dword [eax + 4]
cmp ecx, ebp
je 0x4638bd
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jae 0x4638bd
mov eax, ecx
mov ecx, esi
mov edi, dword [eax + ebx*4]
push edi
call fcn.00464a10
mov ebp, eax
test ebp, ebp
je 0x4638b5
push ebp
mov ecx, esi
call fcn.00465e00
test eax, eax
je 0x4638b5
mov edx, dword [esi + 0x74]
cmp edi, edx
je 0x4638b5
mov eax, dword [esp + 0x10]
xor ecx, ecx
test ebx, ebx
sete cl
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x90]
add eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x463876
xor eax, eax
jmp 0x46387e
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
dec eax
xor ecx, ecx
cmp ebx, eax
lea eax, [edi + 1]
sete cl
mov dword [esp + 0x28], ecx
xor ecx, ecx
cmp eax, edx
sete cl
dec edi
mov dword [esp + 0x30], ecx
xor eax, eax
cmp edi, edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
sete al
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x3c], eax
call fcn.004667a0
inc ebx
xor ebp, ebp
jmp 0x463807
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc ecx
add eax, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp 0x4637e0
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
call fcn.00464d20
test eax, eax
pop ebx
je 0x46395d
mov ecx, dword [esi + 0x74]
push ecx
mov ecx, esi
call fcn.00464a10
mov edi, eax
cmp edi, ebp
je 0x46395d
push edi
mov ecx, esi
call fcn.00465e00
test eax, eax
je 0x46395d
mov eax, 1
lea edx, [esi + 0x1f8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], edx
call fcn.00464f60
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x20], eax
push ecx
mov ecx, esi
call fcn.00464fd0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push eax
call fcn.004667a0
pop edi
pop esi
pop ebp
add esp, 0x28
ret 4
Function at 0x46c290
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49d3b1
push eax
mov dword fs:[0], esp
sub esp, 0xec
push edi
mov edi, ecx
mov eax, dword [edi + 0x5c]
test eax, eax
jne 0x46c2cd
xor eax, eax
pop edi
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
add esp, 0xf8
ret
push esi
push 0x400
lea ecx, [esp + 0xc]
call fcn.00492d6d
push 0
push 0x1000
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x10c], 0
call fcn.004920b5
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 1
push ecx
mov ecx, dword [edi + 0x5c]
call fcn.00465290
lea ecx, [esp + 8]
call fcn.00493018
lea ecx, [esp + 0x30]
call fcn.00492219
mov edx, dword [esp + 8]
push 0
push 0
lea ecx, [esp + 0x10]
call dword [edx + 0x28]
push 0
push 0x1000
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x84]
call fcn.004920b5
lea ecx, [esp + 0x74]
lea esi, [edi + 0x60]
push ecx
mov ecx, esi
mov byte [esp + 0x100], 2
call fcn.00465700
lea ecx, [esp + 0x74]
call fcn.00492219
lea ecx, [esp + 8]
call fcn.00493019
mov eax, dword [edi + 0x5c]
lea edx, [esp + 0xb8]
push edx
push 0x3c
mov eax, dword [eax + 0xc8]
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea ecx, [esp + 0xb8]
push ecx
mov ecx, esi
call fcn.00462f20
mov edx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [edx + 0xdc]
mov dword [esi + 0xdc], eax
call fcn.00465230
mov ecx, esi
call fcn.00465d40
mov eax, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [eax + 0xe0]
mov dword [esi + 0xe0], eax
call fcn.00465230
mov ecx, esi
call fcn.00465d40
mov ecx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov eax, dword [ecx + 0xe4]
mov ecx, esi
mov dword [esi + 0xe4], eax
call fcn.00465230
mov ecx, esi
call fcn.00465d40
mov ecx, dword [edi + 0x5c]
call fcn.004626f0
push eax
mov ecx, esi
call fcn.00462700
mov ecx, dword [edi + 0x5c]
call fcn.00462cc0
push eax
mov ecx, esi
call fcn.00462c60
mov ecx, dword [edi + 0x5c]
call fcn.00462de0
push eax
mov ecx, esi
call fcn.00462d90
mov ecx, dword [edi + 0x5c]
push 0
call fcn.00461fd0
push eax
mov ecx, esi
call fcn.00461fe0
mov edx, dword [edi + 0x7c]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x74]
mov byte [esp + 0xfc], 1
call fcn.00492191
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 0
call fcn.00492191
lea ecx, [esp + 8]
mov dword [esp + 0xfc], 0xffffffff
call fcn.00492e32
mov ecx, dword [esp + 0xf4]
pop esi
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0xf8
ret
Function at 0x46db30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x49d5d7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CMenu.virtual_0
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.00488e89
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.00488e89
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], method.CMenu.virtual_0
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.0046e650
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x46e6a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49d6b0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00494eb8
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x46e6d3
xor al, al
jmp 0x46e7ff
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x46e6f5
xor al, al
jmp 0x46e7ff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x46e708
xor al, al
jmp 0x46e7ff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x46e71c
xor al, al
jmp 0x46e7ff
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.00488f39
test eax, eax
jne 0x46e750
xor al, al
jmp 0x46e7ff
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x51b234
mov dword [esp + 0x20], ebp
call fcn.00494eb8
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.00491d6a
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.00491dc1
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x46e7e4
mov ax, word [ebx]
test ax, ax
je 0x46e7d6
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.0046e820
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x46e7ba
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.00491dc1
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x46ed60
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.00493456
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x46eda6
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.0047a4f8
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x538874
push ecx
call fcn.0047bc0e
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x46f800
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x46f8a3
test eax, eax
jbe 0x46f8a3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x46f8a3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x46f84e
xor esi, esi
jmp 0x46f854
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46f87f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00407520
add esi, eax
push esi
mov ebx, esi
call fcn.00407520
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x46f860
pop ebp
test edi, edi
pop edi
jne 0x46f8a3
test ebx, ebx
je 0x46f8a3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0047b000
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x46f9e5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46fafd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46fafd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0048c8b2
mov esi, eax
test esi, esi
je 0x46fafd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46fafd
mov ecx, esi
call fcn.0046f950
cmp edi, eax
jge 0x46fafd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x46fa83
mov dword [esp + 0x34], 1
jmp 0x46fade
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46fafd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0046ef40
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x48d256
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48d28e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048b2fb
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048b2d3
jmp 0x48d29a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48ea54
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48ea96
call fcn.00494eb8
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48ea96
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48ea8d
xor eax, eax
jmp 0x48ea9e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048eaa4
pop edi
pop esi
pop ebx
ret 4

Function at 0x4953e8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x495416
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x495434
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049534e
jmp 0x495434
mov eax, dword [esi + 0x14]
test eax, eax
je 0x495434
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049534e
test edi, edi
mov eax, edi
jne 0x49541e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x41105a
Capabilities:
Terminate process

Disassembly:
jmp 0x4186f0
jmp fcn.00419990
cmp ecx, dword [0x4220ec]
jne 0x4186fa
repz ret
jmp 0x4111cc
Function at 0x401000
Capabilities:
Check os version

Disassembly:
mov eax, 0x13008
call fcn.00403d00
push ebx
push ebp
push esi
push edi
mov ecx, 0x4bff
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x1301c]
stosw word es:[edi], ax
mov ebx, dword [ebp + 0xc]
stosb byte es:[edi], al
mov eax, dword [ebp]
test ebx, ebx
mov dword [esp + 0x14], eax
jle 0x40104f
mov ecx, ebx
lea esi, [ebp + 0x14]
mov edx, ecx
lea edi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffdcd8
cmp eax, 0xa
ja case.default.0x40105d
jmp dword [eax*4 + 0x401180]
push 0
call fcn.00401880
mov edx, eax
jmp 0x401146
call fcn.00401890
mov edx, eax
jmp 0x401146
call fcn.004018c0
mov edx, eax
jmp 0x401146
lea eax, [esp + 0x18]
push eax
call fcn.004018a0
mov edx, eax
jmp 0x401146
lea ecx, [esp + 0x18]
push ecx
call fcn.004018e0
mov edx, eax
mov ebx, 0x13000
jmp 0x401148
mov eax, dword [esp + 0x18]
mov bl, byte [esp + 0x19]
and eax, 0xff
cmp bl, 1
sete dl
mov byte [esp + 0x10], dl
mov ecx, dword [esp + 0x10]
push ecx
push eax
call fcn.00401920
mov edx, eax
jmp 0x401146
lea edx, [esp + 0x18]
push ebx
push edx
call fcn.00401980
mov edx, eax
jmp 0x401146
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00401950
mov ebx, dword [esp + 0x10]
mov edx, eax
jmp 0x401148
lea edx, [esp + 0x18]
push edx
call fcn.004018f0
mov edx, eax
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
jmp 0x401148
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x18]
push ebx
push eax
push ecx
call fcn.00401a40
mov edx, eax
jmp 0x401146
mov eax, dword [ebp + 0x10]
lea edx, [esp + 0x18]
push ebx
push edx
push eax
call fcn.004019b0
mov edx, eax
jmp 0x401148
mov edx, 0xffffff9c
xor ebx, ebx
mov ecx, dword [esp + 0x14]
mov dword [ebp + 4], edx
test ebx, ebx
mov dword [ebp], ecx
mov dword [ebp + 0xc], ebx
jle 0x401170
mov ecx, ebx
lea esi, [esp + 0x18]
mov edx, ecx
lea edi, [ebp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x13008
ret
Function at 0x401460
Capabilities:
Create directory

Disassembly:
sub esp, 0x22c
push esi
mov esi, dword [sym.imp.msvcrt.dll_sprintf]
lea eax, [esp + 0x30]
push str.c:_tmp
push eax
call esi
add esp, 8
lea ecx, [esp + 0x30]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0x10]
push edx
call fcn.00401410
lea eax, [esp + 0x14]
push 8
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.msvcrt.dll_strncpy]
add esp, 0x10
lea edx, [esp + 4]
lea eax, [esp + 0x30]
lea ecx, [esp + 0x130]
push edx
push eax
push str._sMIAXIS_USB_log__s.log
push ecx
mov byte [esp + 0x1c], 0
call esi
lea edx, [esp + 0x140]
push 0x4070b4
push edx
call dword [sym.imp.msvcrt.dll_fopen]
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4014ed
or eax, 0xffffffff
pop esi
add esp, 0x22c
ret
mov eax, dword [esp + 0x234]
lea ecx, [esp + 0x10]
push eax
push ecx
push str._n__s_:__s
push esi
call dword [sym.imp.msvcrt.dll_fprintf]
push esi
call dword [sym.imp.msvcrt.dll_fflush]
push esi
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 0x18
xor eax, eax
pop esi
add esp, 0x22c
ret

Function at 0x401ae0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push esi
cmp ebx, 1
push edi
mov dword [esp + 0xc], str.MIAXISUSBOpticService
mov dword [esp + 0x10], 0x401c00
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
jle 0x401b88
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 4]
mov cl, byte [eax]
cmp cl, 0x2d
je 0x401b22
cmp cl, 0x2f
jne 0x401b88
mov edi, dword [sym.imp.msvcrt.dll__stricmp]
inc eax
push eax
push str.install
call edi
add esp, 8
test eax, eax
jne 0x401b3f
call fcn.00401dd0
jmp 0x401b80
mov eax, dword [esi + 4]
inc eax
push eax
push str.remove
call edi
add esp, 8
test eax, eax
jne 0x401b59
call fcn.00401ef0
jmp 0x401b80
mov ecx, dword [esi + 4]
inc ecx
push ecx
push str.debug
call edi
add esp, 8
test eax, eax
jne 0x401b88
push esi
push ebx
mov dword [0x42f220], 1
call fcn.00402070
add esp, 8
push 0
call dword [sym.imp.msvcrt.dll_exit]
mov esi, dword [sym.imp.msvcrt.dll_printf]
push str.USBOpticServer
push str._s__install__________to_install_the_service_n
call esi
add esp, 8
push str.USBOpticServer
push str._s__remove___________to_remove_the_service_n
call esi
add esp, 8
push str.USBOpticServer
push str._s__debug__params____to_run_as_a_console_app_for_debugging_n
call esi
add esp, 8
push str._nStartServiceCtrlDispatcher_being_called._n
call esi
add esp, 4
push str.This_may_take_several_seconds.__Please_wait._n
call esi
add esp, 4
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x401beb
push str.StartServiceCtrlDispatcher_failed.
call fcn.00401d40
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x10
ret