joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100209f0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101c6080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 0x1a
lea eax, [ebp - 0x20c]
mov ebx, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10020a22
sub ecx, edx
sar ecx, 1
je 0x10020aff
push esi
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10020a42
mov eax, dword [0x1016f2a8]
mov dword [edi], eax
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov edi, edi
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10020a60
mov ecx, 8
mov esi, str.WnPicView.users
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x10020a81
mov dword [edi], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10020aaf
lea eax, [ebp - 0x20c]
push eax
call fcn.10022c50
add esp, 4
cmp word [ebp - 0x20c], 0
jne 0x10020abd
xor ecx, ecx
jmp 0x10020ad5
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10020ac6
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
lea esi, [ebx + 0x1c]
push eax
mov ecx, esi
call fcn.10022a80
cmp dword [esi + 0x14], 8
jb 0x10020aef
mov esi, dword [esi]
push esi
push str.get_user_path__:_s
call fcn.10022d10
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1013ef23
mov esp, ebp
pop ebp
ret

Function at 0x10020bb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101c6080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x48], 8
lea eax, [esi + 0x34]
jb 0x10020bd1
mov eax, dword [eax]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.10022c30
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10020c0b
lea eax, [ebp - 0x20c]
push eax
call fcn.10022c50
add esp, 4
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10020c14
mov eax, dword [str.Related.ini]
mov dword [ecx], eax
mov eax, dword [0x1016f4e0]
mov dword [ecx + 4], eax
mov eax, dword [0x1016f4e4]
mov dword [ecx + 8], eax
mov eax, dword [0x1016f4e8]
mov dword [ecx + 0xc], eax
mov eax, dword [0x1016f4ec]
mov dword [ecx + 0x10], eax
mov eax, dword [0x1016f4f0]
mov dword [ecx + 0x14], eax
cmp word [ebp - 0x20c], 0
jne 0x10020c5d
xor ecx, ecx
jmp 0x10020c75
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10020c66
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0xac]
call fcn.10022a80
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1013ef23
mov esp, ebp
pop ebp
ret
Function at 0x10021340
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101c6080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x48], 8
lea eax, [esi + 0x34]
jb 0x10021361
mov eax, dword [eax]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.10022c30
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002139b
lea eax, [ebp - 0x20c]
push eax
call fcn.10022c50
add esp, 4
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x100213a4
mov eax, dword [str.Config.ini]
mov dword [ecx], eax
mov eax, dword [0x1016f4c8]
mov dword [ecx + 4], eax
mov eax, dword [0x1016f4cc]
mov dword [ecx + 8], eax
mov eax, dword [0x1016f4d0]
mov dword [ecx + 0xc], eax
mov eax, dword [0x1016f4d4]
mov dword [ecx + 0x10], eax
mov ax, word [0x1016f4d8]
mov word [ecx + 0x14], ax
cmp word [ebp - 0x20c], 0
jne 0x100213ef
xor ecx, ecx
jmp 0x1002140f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
jmp 0x10021400
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10021400
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x4c]
call fcn.10022a80
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1013ef23
mov esp, ebp
pop ebp
ret
Function at 0x10021d80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x101c6080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov ebx, ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.1013f3c0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x228
mov edi, eax
mov dword [ebp - 0x438], 0
lea eax, [ebp - 0x434]
push 0
push eax
call fcn.1013f3c0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x10021e8c
lea eax, [ebp - 0x438]
mov dword [ebp - 0x438], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10021e48
lea ecx, [ecx]
cmp dword [ebp - 0x430], edi
je 0x10021e2b
lea eax, [ebp - 0x438]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10021e10
jmp 0x10021e48
xor ecx, ecx
lea ecx, [ecx]
movzx eax, word [ebp + ecx - 0x414]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x10021e30
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call fcn.10140b2d
mov edx, eax
add esp, 4
cmp word [edx], 0
jne 0x10021e6a
xor ecx, ecx
jmp 0x10021e7f
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10021e70
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x10c]
call fcn.10022a80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1013ef23
mov esp, ebp
pop ebp
ret
Function at 0x10022540
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101c6080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x48], 8
lea eax, [esi + 0x34]
jb 0x10022561
mov eax, dword [eax]
push str.UseData
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.10022c30
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002259b
lea eax, [ebp - 0x20c]
push eax
call fcn.10022c50
add esp, 4
cmp word [ebp - 0x20c], 0
jne 0x100225a9
xor ecx, ecx
jmp 0x100225c1
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100225b2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0xf4]
call fcn.10022a80
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1013ef23
mov esp, ebp
pop ebp
ret

Function at 0x100225f0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x101c6080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0
lea eax, [ebp - 0x14]
mov ebx, ecx
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
mov dword [ebx], ecx
mov ecx, dword [ebp - 4]
mov dword [ebx + 8], eax
xor ecx, ebp
mov eax, dword [ebp - 8]
sub eax, edx
mov dword [ebx + 4], edx
pop edi
mov dword [ebx + 0xc], eax
pop ebx
call fcn.1013ef23
mov esp, ebp
pop ebp
ret
Function at 0x10022c50
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, esi
lea ecx, [edi + 2]
mov edi, edi
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10022c60
sub edi, ecx
mov edx, 2
sar edi, 1
xor ecx, ecx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10023784
add esp, 4
mov ebx, eax
sub eax, esi
nop
movzx ecx, word [esi]
lea esi, [esi + 2]
mov word [eax + esi - 2], cx
test cx, cx
jne 0x10022c90
xor esi, esi
mov byte [ebp + 0xb], 1
test edi, edi
js 0x10022cf8
lea ebx, [ebx]
cmp word [ebx + esi*2], 0x5c
jne 0x10022cdd
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10022cd4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10022cf4
mov eax, 0x5c
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jle 0x10022cb0
push ebx
call fcn.1002378d
movzx eax, byte [ebp + 0xb]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
mov byte [ebp + 0xb], 0
push ebx
call fcn.1002378d
movzx eax, byte [ebp + 0xb]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10022d10
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc14
mov eax, dword [0x101c6080]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.1013f3c0
add esp, 0xc
xor ecx, ecx
movzx eax, word [ecx + 0x1016f84c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x416], ax
test ax, ax
jne 0x10022d43
push esi
xor eax, eax
push 0x3e6
push eax
mov word [ebp - 0xc0c], ax
lea eax, [ebp - 0xc0a]
push eax
call fcn.1013f3c0
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push str._sgswb.log
push eax
call fcn.10022c30
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.1013f3c0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.1013f3c0
add esp, 0x30
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.1014090b
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 8
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x61c]
push eax
call esi
test eax, eax
je 0x10022f45
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10022e11
sub ecx, edx
lea edx, [ebp - 0x20a]
sar ecx, 1
lea ecx, [edx + ecx*2]
lea edx, [ebp - 0x824]
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x10022e31
push edi
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push str._s_s.txt
push eax
call fcn.10022c30
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc0c]
push 0x1f3
push eax
call fcn.10141253
xor eax, eax
add esp, 0x20
mov word [ebp - 0x826], ax
xor edi, edi
lea eax, [ebp - 0x61c]
push eax
call esi
test eax, eax
mov ecx, 1
lea eax, [ebp - 0x61c]
push 0x1016f888
push eax
cmovne edi, ecx
call fcn.10141343
mov esi, eax
add esp, 8
test esi, esi
je 0x10022f44
test edi, edi
jne 0x10022eda
push esi
push 2
lea eax, [ebp - 0xc14]
mov dword [ebp - 0xc14], 0xfeff
push 1
push eax
call fcn.10141874
add esp, 0x10
lea ecx, [ebp - 0xc0c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10022ee3
sub ecx, edx
sar ecx, 1
push esi
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0xc0c]
push 1
push eax
call fcn.10141874
push esi
push 2
lea eax, [ebp - 0xc10]
mov dword [ebp - 0xc10], 0xd
push 1
push eax
call fcn.10141874
push esi
push 2
lea eax, [ebp - 0xc10]
mov dword [ebp - 0xc10], 0xa
push 1
push eax
call fcn.10141874
push esi
call fcn.101416a4
add esp, 0x34
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1013ef23
mov esp, ebp
pop ebp
ret

Function at 0x10022fe0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0xb7
setne dl
mov dword [esi + 4], edx
pop esi
pop ebp
ret 4
Function at 0x1002655f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x100265a4
call fcn.10023cb4
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100265a4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x100265c0
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1003987a
mov ebx, eax
test edi, edi
je 0x100265be
test esi, esi
je 0x100265be
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1003ce03
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.10023cb4
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1003ce3a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.1003ce5b
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1003d7db
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.1002d5f3
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x1003d817
call fcn.1003d9fa
mov dword [esi + 0xc], 1
jmp 0x1003d81c
call fcn.1003d9fa
cmp dword [esi], 0
je 0x1003d865
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x1003d83f
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.10026617
jmp 0x1003d850
push 0xff
mov ecx, esi
call fcn.1001efe0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10028998
jmp 0x1003d889
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x1003d889
push dword [esi]
push dword [ebp - 4]
call fcn.100383fa
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003d94f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.1003d9fa
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x1003d997
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10026617
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10028998
jmp 0x1003d9a2
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.100383fa
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10057eb9
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.1008a387
call fcn.10023d08
cmp dword [eax + 0x14], 0
jne 0x10057ed4
mov ecx, esi
pop esi
jmp fcn.100572bf
pop esi
ret

Function at 0x10058bd0
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call sym.WnPicPlugin.dll_CleanUpPluginSystemManager
call fcn.10023d08
cmp dword [eax + 0x14], 0
jne 0x10058beb
mov ecx, esi
pop esi
jmp fcn.100584b9
pop esi
ret
Function at 0x10158223
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x101c6080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10154025
mov dword [ebp - 0x14], eax
cmp dword [0x101d3978], esi
jne 0x10158316
push 0x800
push esi
push 0x1019f674
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x101582a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x101583f6
push esi
push esi
push 0x1019f674
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x101583f6
push 0x1019f68c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x101583f6
push eax
call ebx
push 0x1019f698
push edi
mov dword [0x101d3978], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x1019f6a8
push edi
mov dword [0x101d397c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x101d3980], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x101d3988], eax
test eax, eax
je 0x10158313
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x101d3984], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1015833b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1015832e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10158350
push 4
pop eax
jmp 0x101583f8
cmp dword [ebp - 0x14], esi
je 0x10158350
push dword [0x101d3978]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10158335
mov eax, dword [0x101d3984]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x101583ae
cmp dword [0x101d3988], edi
je 0x101583ae
push eax
call ebx
push dword [0x101d3988]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x101583ae
test eax, eax
je 0x101583ae
call ecx
test eax, eax
je 0x101583a3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x101583a3
test byte [ebp - 8], 1
jne 0x101583ae
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x101583de
mov eax, dword [0x101d397c]
cmp eax, edi
je 0x101583db
push eax
call ebx
test eax, eax
je 0x101583db
call eax
mov esi, eax
test esi, esi
je 0x101583db
mov eax, dword [0x101d3980]
cmp eax, edi
je 0x101583db
push eax
call ebx
test eax, eax
je 0x101583db
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x101d3978]
call ebx
test eax, eax
je 0x101583f6
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x101583f8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1013ef23
mov esp, ebp
pop ebp
ret
Function at 0x10005ae0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x10005b29
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0x100055a0
push 0
push 0
mov dword [0x1003cec0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push 0
push 0
push 0
push 0x10005aa0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10006050
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1000607b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10006880
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x1000609d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x1000609f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x10006123
jg 0x100060b4
test esi, esi
je 0x10006123
test ecx, ecx
jl 0x100060fd
jg 0x100060be
test eax, eax
je 0x100060fd
cmp edi, ecx
jg 0x100060d2
jl 0x100060c8
cmp esi, eax
jae 0x100060d2
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.10013130
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x10006100
mov edx, dword [ebp + 8]
test edi, edi
jl 0x10006123
jg 0x1000610a
test esi, esi
je 0x10006123
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10006123
push eax
push esi
push 1
push edx
call fcn.1001733f
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10006140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x1000616b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10006960
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x1000618d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x1000618f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x1000622e
jg 0x100061ac
test esi, esi
je 0x1000622e
test ecx, ecx
jl 0x100061f9
jg 0x100061b6
test eax, eax
je 0x100061f9
cmp ebx, ecx
jg 0x100061ca
jl 0x100061c0
cmp esi, eax
jae 0x100061ca
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.10013130
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x10006200
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x1000622e
jg 0x1000620a
test esi, esi
je 0x1000622e
cmp dword [edi + 0x4c], 0
je 0x1000622e
mov ecx, edi
call fcn.100074e0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.10017944
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc