joyce8/EMBER2024-capa huggingface dataset:
Function at 0x675e50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6bf428
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00675a30
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.00675aa0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00675d80
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.00675a50
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10

Function at 0x675e68
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6bf428
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00675a30
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.00675aa0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00675d80
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.00675a50
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x6787a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x6787ab
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x6788ae
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x868894]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x868894]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x868894]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x868894]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x868894]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x868894]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x868894]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x868894]
xor eax, edx
inc ecx
dec edi
jne 0x6787c6
pop edi
test esi, esi
je 0x6788d0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x868894]
xor eax, edx
inc ecx
dec esi
jne 0x6788b2
pop esi
pop ebx
not eax
ret

Function at 0x679250
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x679291
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x679286
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x6792a4
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x67e6c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x913ac4]
xor edx, edx
cmp eax, edx
jne 0x67e6e6
xor eax, eax
mov byte [eax + 0x9139c4], al
inc eax
cmp eax, 0x100
jl 0x67e6ce
mov dword [0x913ac4], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x9139c4
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x67e777
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x67e74a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x67e718
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x67e7f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x67e843
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x67e82a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x6851c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6bf6ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00685ae0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x868ee4
call fcn.006a6900
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x685253
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006a6900
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x68524c
push 0
mov ecx, eax
call fcn.0067c330
mov dword [esi + 0xc], eax
jmp 0x685255
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x685255
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x696449
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x696469
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00694d8a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x69648c
test byte [esp + 8], 2
je 0x69648c
call fcn.00694dfd
mov dword [eax], 0xd
call fcn.00694e06
mov dword [eax], 5
jmp 0x696465
xor eax, eax
ret

Function at 0x6a9033
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x6a906b
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.006a701a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.006a6ff2
jmp 0x6a9077
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x6aa9b1
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 0x6aa9f3
call fcn.006b169d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x6aa9f3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x6aa9ea
xor eax, eax
jmp 0x6aa9fb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.006aaa01
pop edi
pop esi
pop ebx
ret 4
Function at 0x6b453a
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x6b4562
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x6b4573
push 2
call edi
test ax, ax
jge 0x6b4573
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.006a8668
cmp dword [esi + 0x30], ebx
jne 0x6b464d
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.006a8668
cmp eax, dword [esp + 0x34]
jne 0x6b464d
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x6b45e9
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x6b462e
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x6b464d
cmp eax, 0x205
je 0x6b464d
cmp eax, 0x201
je 0x6b464d
cmp eax, 0x204
je 0x6b464d
cmp eax, ebx
jne 0x6b4614
cmp dword [esp + 0x1c], 0x1b
je 0x6b464d
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x9255e0]
jbe 0x6b4643
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x6b45a6
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x1002a4e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
call fcn.01002209
test byte [ebp + 8], 1
je 0x1002a4c
push esi
call fcn.01002c69
pop ecx
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10049ce
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov esi, ecx
push dword [esi + 0x14]
lea ecx, [ebp - 0x20]
push dword [esi + 0x10]
xor ebx, ebx
xor edi, edi
call fcn.010035e3
lea ecx, [ebp - 0x20]
call fcn.010038ea
lea ecx, [ebp - 0x20]
call fcn.0100390c
mov dword [ebp - 0xc], eax
movzx eax, ax
cmp eax, dword [esi + 0x14]
jbe 0x1004921
mov edi, 0x800700ea
jmp 0x10049ee
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 3
mov ax, word [ebp - 0xc]
cmp word [ebp - 8], ax
jae 0x10049ee
lea ecx, [ebp - 0x20]
call fcn.010038ea
movzx esi, al
mov edi, esi
and edi, 0xc0
mov eax, edi
sub eax, ebx
je 0x1004973
sub eax, 0x40
je 0x1004973
sub eax, 0x40
je 0x100496a
sub eax, 0x40
jne 0x100497e
mov dword [ebp - 4], 5
jmp 0x100497e
mov dword [ebp - 4], 2
jmp 0x100497e
lea ecx, [ebp - 0x20]
call fcn.0100390c
mov dword [ebp - 4], eax
dec esi
je 0x1004a40
sub esi, 0x41
je 0x1004a12
sub esi, 0x81
je 0x10049ff
mov eax, edi
sub eax, ebx
je 0x10049bf
sub eax, 0x40
je 0x10049bf
sub eax, 0x40
je 0x10049b5
sub eax, 0x40
jne 0x10049d0
lea ecx, [ebp - 0x20]
call fcn.01003947
jmp 0x10049d0
lea ecx, [ebp - 0x20]
call fcn.010038ea
jmp 0x10049d0
movzx eax, word [ebp - 4]
sub eax, 3
push eax
push ebx
lea ecx, [ebp - 0x20]
call fcn.01003a3f
push ebx
push ebx
lea ecx, [ebp - 0x20]
call fcn.01003993
mov edi, eax
cmp edi, ebx
jl 0x10049ee
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
cmp edi, ebx
jge 0x100492b
lea ecx, [ebp - 0x20]
call fcn.01003609
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
lea ecx, [ebp - 0x20]
call fcn.01003947
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x10049d0
mov dword [ecx], eax
jmp 0x10049d0
movzx esi, word [ebp - 4]
mov edi, dword [ebp + 0xc]
sub esi, 3
cmp edi, ebx
push esi
push ebx
je 0x10049c8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [edi], eax
je 0x1004a39
push esi
push eax
jmp 0x10049c8
mov edi, 0x8007000e
jmp 0x10049e0
movzx esi, word [ebp - 4]
mov edi, dword [ebp + 8]
sub esi, 3
cmp edi, ebx
push esi
je 0x10049c7
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [edi], eax
je 0x1004a39
push esi
push eax
lea ecx, [ebp - 0x20]
call fcn.01003a99
jmp 0x10049d0
Function at 0x1005201
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 0x2afc
push dword [ebp + 8]
mov dword [ebp - 4], ecx
call esi
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push eax
call ebx
push 0
push 0
neg eax
push 0xf0
sbb eax, eax
push 0x2b08
push dword [ebp + 8]
neg eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov edi, eax
dec edi
neg edi
push 0x2afe
push dword [ebp + 8]
sbb edi, edi
inc edi
call esi
push eax
call ebx
mov ebx, eax
mov eax, dword [ebp - 4]
neg ebx
sbb ebx, ebx
neg ebx
cmp dword [eax + 0x21c], 0
je 0x10052a4
push 0
push 0x2afe
push dword [ebp + 8]
call esi
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call edi
xor ebx, ebx
push ebx
push 0x2aff
push dword [ebp + 8]
call esi
push eax
call edi
push ebx
push 0x2b08
push dword [ebp + 8]
call esi
push eax
call edi
xor edi, edi
jmp 0x10052db
push 1
push 0x2b08
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
push 0x2afe
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
push 0x2aff
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
cmp dword [ebp - 8], eax
je 0x10052ee
cmp edi, eax
je 0x10052ea
cmp ebx, eax
je 0x10052ee
push 3
jmp 0x10052f0
push 1
push eax
push 0x470
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1005ed4
Capabilities:
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
xor eax, eax
cmp dword [ebp + 8], edi
push edi
setne al
push edi
mov esi, ecx
inc eax
push eax
push edi
push 5
push 0x40000000
lea eax, [esi + 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1005ef4
push edi
lea eax, [ebp + 8]
push eax
push dword [esi + 0x664]
push dword [esi + 0x660]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1005eeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1005ee9
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1005f0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1005f08
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x10062f7
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x100e094]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], eax
mov edi, reloc.irprops.cpl_BluetoothGetDeviceInfo
push edi
lea eax, [ebp - 0x204]
push eax
xor eax, eax
mov esi, ecx
cmp dword [esi + 4], eax
mov dword [esi + 0x66c], ebx
setne al
lea eax, [eax*4 + 0x911]
push eax
call fcn.010030a7
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [esi + 0x65c]
inc ecx
xor edx, edx
mov eax, ebx
div ecx
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push edi
push eax
call fcn.010031cf
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
push 0
push 0x408
push dword [esi + 0x678]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.010079ac
leave
ret 4

Function at 0x10071af
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc34
mov eax, dword [0x100e094]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
push 0x200
lea eax, [ebp - 0x404]
push eax
push 0x913
mov esi, ecx
call fcn.010030a7
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x404]
push eax
push 0
push 0x408
push dword [esi + 0x678]
call ebx
lea eax, [ebp - 0xc0c]
push eax
lea eax, [ebp - 0xc10]
push eax
mov ecx, esi
call fcn.01005cf4
test eax, eax
mov dword [ebp - 0xc08], eax
jl 0x10072ef
push dword [esi + 0x674]
lea ecx, [ebp - 0xc34]
call fcn.01004df9
mov eax, dword [ebp - 0xc0c]
mov dword [esi + 0x65c], eax
push 0x200
lea eax, [ebp - 0x404]
push eax
push 0x910
call fcn.010030a7
push eax
call edi
lea eax, [ebp - 0x404]
push eax
push 0
push 0x408
push dword [esi + 0x678]
call ebx
push 0x10020f4
push dword [esi + 0x214]
lea ecx, [ebp - 0xc34]
push dword [esi + 0x210]
call fcn.01004e29
test eax, eax
jge 0x100721f
push 0x10020e4
push dword [esi + 0x214]
lea ecx, [ebp - 0xc34]
push dword [esi + 0x210]
call fcn.01004e29
test eax, eax
mov dword [ebp - 0xc08], eax
jl 0x10072d8
push 0x400
lea eax, [ebp - 0xc04]
push eax
push 0x911
call fcn.010030a7
push eax
call edi
push 0
lea eax, [ebp - 0xc04]
push eax
lea eax, [ebp - 0x404]
push 0x200
push eax
call fcn.010031cf
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
push 0
push 0x408
push dword [esi + 0x678]
call ebx
push esi
push 0x10070db
push dword [ebp - 0xc0c]
lea eax, [esi + 0x248]
push dword [ebp - 0xc10]
lea ecx, [ebp - 0xc34]
push 0
push eax
push 0
call fcn.01004e54
test eax, eax
mov dword [ebp - 0xc08], eax
jl 0x10072d8
mov eax, dword [ebp - 0xc0c]
mov dword [esi + 0x66c], eax
push 0x200
lea eax, [ebp - 0x404]
push eax
push 0x912
call fcn.010030a7
push eax
call edi
lea eax, [ebp - 0x404]
push eax
push 0
push 0x408
push dword [esi + 0x678]
call ebx
push dword [ebp - 0xc10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0xc34]
call fcn.01004e1f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc08]
pop edi
pop esi
pop ebx
call fcn.010079ac
leave
ret
Function at 0x1007b7a
Capabilities:
Write file on windows

Disassembly:
push 0x60
push 0x10017d0
call fcn.01008f2c
mov edi, 0x94
mov eax, edi
call fcn.010080f0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x100e724], ecx
mov eax, dword [esi + 4]
mov dword [0x100e730], eax
mov edx, dword [esi + 8]
mov dword [0x100e734], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x100e728], esi
cmp ecx, 2
je 0x1007b53
or esi, 0x8000
mov dword [0x100e728], esi
shl eax, 8
add eax, edx
mov dword [0x100e72c], eax
cmp word [0x1000000], 0x5a4d
jne 0x1007b8f
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x1007b8f
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1007ba8
cmp ecx, 0x20b
je 0x1007b95
and dword [ebp - 0x1c], 0
jmp 0x1007bbc
cmp dword [eax + 0x84], 0xe
jbe 0x1007b8f
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x1007bb6
cmp dword [eax + 0x74], 0xe
jbe 0x1007b8f
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.01008ecf
pop ecx
test eax, eax
jne 0x1007be9
cmp dword [0x100e714], 1
jne 0x1007bd6
call fcn.010086ab
push 0x1c
call fcn.010084be
push BluetoothGetDeviceInfo
call fcn.0100831d
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.01008cff
test eax, eax
jge 0x1007bfe
push 0x1b
call fcn.01007ac4
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100fcd4], eax
call fcn.01008bd2
mov dword [0x100e70c], eax
call fcn.01008b29
test eax, eax
jge 0x1007c24
push 8
call fcn.01007ac4
pop ecx
call fcn.010088cf
test eax, eax
jge 0x1007c35
push 9
call fcn.01007ac4
pop ecx
call fcn.01008377
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1007c48
push eax
call fcn.01007ac4
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.01008861
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1007c6a
movzx eax, word [ebp - 0x40]
jmp 0x1007c6d
push reloc.KERNEL32.dll_GetSystemInfo
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.01003b64
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1007c8e
push esi
call fcn.01008457
call fcn.0100848f
jmp 0x1007cc0
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.01008f67
ret
Function at 0x100828e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov si, word [ebx]
lea edi, [ebx + 2]
jmp 0x1008154
xor esi, esi
mov si, word [edi]
inc edi
inc edi
push 8
push esi
call fcn.01009e08
test eax, eax
pop ecx
pop ecx
jne 0x100814d
cmp si, 0x2d
jne 0x100816e
or dword [ebp + 0x14], 2
jmp 0x1008174
cmp si, 0x2b
jne 0x1008179
mov si, word [edi]
inc edi
inc edi
mov eax, dword [ebp + 0x10]
test eax, eax
jl 0x10082e9
cmp eax, 1
je 0x10082e9
cmp eax, 0x24
jg 0x10082e9
test eax, eax
push 0x10
pop ebx
jne 0x10081cc
push esi
call fcn.01009c86
test eax, eax
pop ecx
je 0x10081b1
mov dword [ebp + 0x10], 0xa
jmp 0x10081f4
mov ax, word [edi]
cmp ax, 0x78
je 0x10081c9
cmp ax, 0x58
je 0x10081c9
mov dword [ebp + 0x10], 8
jmp 0x10081f4
mov dword [ebp + 0x10], ebx
cmp dword [ebp + 0x10], ebx
jne 0x10081f4
push esi
call fcn.01009c86
test eax, eax
pop ecx
jne 0x10081f4
mov ax, word [edi]
cmp ax, 0x78
je 0x10081eb
cmp ax, 0x58
jne 0x10081f4
inc edi
inc edi
xor esi, esi
mov si, word [edi]
inc edi
inc edi
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
mov dword [ebp - 8], edx
mov ebx, eax
push esi
call fcn.01009c86
cmp eax, 0xffffffff
pop ecx
jne 0x100823f
cmp si, 0x41
jb 0x1008219
cmp si, 0x5a
jbe 0x1008225
cmp si, 0x61
jb 0x100826d
cmp si, 0x7a
ja 0x100826d
cmp si, 0x61
jb 0x1008239
cmp si, 0x7a
ja 0x1008239
movzx eax, si
sub eax, 0x20
jmp 0x100823c
movzx eax, si
add eax, 0xffffffc9
cmp eax, dword [ebp + 0x10]
jae 0x100826d
or dword [ebp + 0x14], 8
cmp dword [ebp - 4], ebx
jb 0x100825a
jne 0x1008254
cmp eax, dword [ebp - 8]
jbe 0x100825a
or dword [ebp + 0x14], 4
jmp 0x1008266
mov ecx, dword [ebp - 4]
imul ecx, dword [ebp + 0x10]
add ecx, eax
mov dword [ebp - 4], ecx
mov si, word [edi]
inc edi
inc edi
jmp 0x1008201
mov edx, dword [ebp + 0x14]
dec edi
dec edi
test dl, 8
jne 0x1008286
cmp dword [ebp + 0xc], 0
je 0x1008280
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
jmp 0x10082d3
test dl, 4
mov eax, 0x7fffffff
jne 0x10082ae
test dl, 1
jne 0x10082d3
mov ecx, edx
and ecx, 2
je 0x10082a5
cmp dword [ebp - 4], 0x80000000
ja 0x10082ae
test ecx, ecx
jne 0x10082d3
cmp dword [ebp - 4], eax
jbe 0x10082d3
test dl, 1
mov dword [0x100e718], 0x22
je 0x10082c3
or dword [ebp - 4], 0xffffffff
jmp 0x10082d3
mov cl, dl
and cl, 2
neg cl
sbb ecx, ecx
neg ecx
add ecx, eax
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10082dc
mov dword [eax], edi
test dl, 2
je 0x10082e4
neg dword [ebp - 4]
mov eax, dword [ebp - 4]
jmp 0x10082f4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10082f2
mov dword [eax], ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100a602
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0x140
push 0
push dword [0x100fba0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [0x100f94c], eax
jne 0x100a5db
pop ebp
ret
mov ecx, dword [ebp + 8]
and dword [0x100f944], 0
and dword [0x100f948], 0
mov dword [0x100f954], eax
xor eax, eax
mov dword [0x100f950], ecx
mov dword [0x100f958], 0x10
inc eax
pop ebp
ret