joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c5b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x40c5f7
cmp byte [esi + 1], 0
je 0x40c5ff
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x40c611
cmp byte [esi + 1], 0
je 0x40c605
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x40c619
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
jmp 0x40c5d1
xor eax, eax
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x40c619
mov eax, dword [esi + 0x18]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x40c62b
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.00514111
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x40c645
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0
cmp edi, eax
jbe 0x40c759
jmp 0x40c669
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x40c678
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x40c68f
mov ebx, 0x404
cmp byte [esi], 0
je 0x40c6b4
cmp byte [esi + 1], 0
je 0x40c759
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40c6b7
mov dword [esi + 0x18], eax
cmp byte [esi], 0
mov edi, ebx
je 0x40c6e0
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c6db
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x40c709
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x40c6f1
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.005186a0
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x40c759
lea eax, [ebx - 3]
test eax, eax
jle 0x40c74d
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x40c73f
cmp byte [eax + ecx + 1], 0x4b
jne 0x40c73f
cmp byte [eax + ecx + 2], 5
jne 0x40c73f
cmp byte [eax + ecx + 3], 6
je 0x40c745
test eax, eax
jg 0x40c720
jmp 0x40c74d
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jne 0x40c759
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x40c660
mov eax, dword [ebp - 0x10]
push eax
call fcn.00513741
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40da90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x58bcc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x40db7c
movzx eax, word [edi]
test ax, ax
je 0x40db7c
push esi
mov esi, edi
mov ecx, edi
cmp ax, 0x2f
je 0x40dad0
cmp ax, 0x5c
jne 0x40dad2
mov esi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x40dac4
cmp esi, edi
je 0x40db0e
sub esi, edi
sar esi, 1
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.005141a5
lea edx, [ebp - 0x20c]
push edx
xor ecx, ecx
push ebx
mov word [ebp + esi*2 - 0x20c], cx
call fcn.0040da90
add esp, 0x14
lea edx, [ebp - 0x414]
mov eax, ebx
sub edx, ebx
jmp 0x40db20
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40db20
mov eax, edi
mov edx, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40db33
lea edi, [ebp - 0x414]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40db50
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [ebp - 0x414]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.005132f8
mov esp, ebp
pop ebp
ret
Function at 0x40de80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x340
call fcn.00413451
add esp, 4
or ecx, 0xffffffff
test eax, eax
je 0x40dead
mov dword [eax], 0
mov dword [eax + 4], ecx
mov dword [eax + 0x134], ecx
mov esi, eax
jmp 0x40deaf
xor esi, esi
cmp dword [esi], 0
jne 0x40df05
cmp dword [esi + 4], ecx
jne 0x40df05
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40ded0
mov eax, dword [0x566d38]
mov dword [edi], eax
mov eax, dword [ebp + 8]
lea edi, [ebp - 4]
call fcn.0040c390
test eax, eax
jne 0x40def7
mov eax, dword [ebp - 4]
jmp 0x40df0a
call fcn.0040c770
mov dword [esi], eax
mov eax, dword [0x593b04]
jmp 0x40df0a
mov eax, 0x1000000
mov dword [0x593b08], eax
test eax, eax
je 0x40df24
push esi
call fcn.00413480
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 8
call fcn.00413451
add esp, 4
pop edi
mov dword [eax + 4], esi
mov dword [eax], 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40f2d0
Capabilities:
Delete file
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x58bcc0]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x838], 0
push edi
jne 0x40f312
call fcn.00424c25
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.005132f8
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x834]
mov ecx, dword [eax + 0x2c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push str.files.lst
lea edi, [esi + 0x83c]
lea edx, [esp + 0x10]
push edi
push edx
call fcn.00403900
mov ebx, dword [eax]
push 0x250
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00516800
add esp, 0x18
lea ecx, [esp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40f365
xor bl, bl
jmp 0x40f36e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f38e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40f3ce
push str.files.lst
lea ecx, [esp + 0x10]
push edi
push ecx
call fcn.00403900
mov edx, dword [eax]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f3ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x20]
push 0
push 0x20002
push 0x111
push ecx
mov byte [esi + 0x838], 0
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005132f8
mov esp, ebp
pop ebp
ret
Function at 0x41dc39
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41dc80
call fcn.0041f7a2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41dc80
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41dc9c
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041d739
mov esi, eax
test edi, edi
je 0x41dc9a
test ebx, ebx
je 0x41dc9a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41e453
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5342f8
call fcn.00514b5c
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x41e478
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41e4ca
call fcn.004134f2
push eax
lea ecx, [ebp - 0x10]
call fcn.004026e0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00514cc9
push eax
call fcn.00401fb0
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402710
mov eax, esi
call fcn.00514c34
ret 8

Function at 0x42225c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x58bcc0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x4222a1
push 0x53fcc0
push 4
push eax
call fcn.00514c66
push eax
call fcn.00401fb0
add esp, 0x10
jmp 0x4222b7
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x422337
push edi
call fcn.00514e63
mov edi, dword [eax]
call fcn.00514e63
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00514e00
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00514e63
cmp dword [eax], 0
je 0x42230b
call fcn.00514e63
push dword [eax]
call fcn.00413bdf
pop ecx
jmp 0x422312
call fcn.00514e63
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x422337
cmp dword [ebp - 0x234], esi
jae 0x422337
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x422339
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005132f8
leave
ret
Function at 0x4227d8
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x58bcc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.00419185
pop ecx
cmp eax, esi
je 0x4228c2
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x4228c2
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.00516800
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x4228c2
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x4228c2
cmp esi, 0x14
jge 0x4228c2
push 0x10
push 0
push edi
call fcn.0051818f
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4228b1
call fcn.00514e63
cmp dword [eax], 0x22
je 0x4228b1
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.0051461d
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x422887
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x58f200], 0
jne 0x42294d
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x422976
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0042225c
pop ecx
pop ecx
test eax, eax
jne 0x422978
inc edi
cmp edi, esi
jl 0x422953
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005132f8
leave
ret 8
Function at 0x4275c3
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0041dd45
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x427600
call fcn.0042720c
mov dword [esi + 0xc], 1
jmp 0x427605
call fcn.0042720c
cmp dword [esi], 0
je 0x42764e
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x427626
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004143ae
jmp 0x427638
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00402530
push pe_nt_image_headers32
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405c30
jmp 0x427672
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x427672
push dword [esi]
push dword [ebp + 8]
call fcn.0042bf2e
pop esi
pop ebp
ret 0xc

Function at 0x42cbc7
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x58bcc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x42cbfc
xor eax, eax
jmp 0x42cc4f
lea eax, [ebp - 0x210]
push eax
call fcn.0051461d
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x42cc2d
push 0x566d38
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00518494
add esp, 0xc
test eax, eax
jne 0x42cbf8
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00518494
add esp, 0xc
test eax, eax
jne 0x42cbf8
lea eax, [ebp - 0x210]
push eax
call fcn.00419185
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005132f8
leave
ret
Function at 0x4694a4
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004edaf8
call fcn.0041f1bf
cmp dword [eax + 0x14], 0
jne 0x4694c1
mov ecx, esi
pop esi
jmp fcn.00468fa9
pop esi
ret

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

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004f8eea
call fcn.0041f1bf
cmp dword [eax + 0x14], 0
jne 0x46ca6b
mov ecx, esi
pop esi
jmp fcn.0046c421
pop esi
ret

Function at 0x4833bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4833d9
call fcn.0041f7a2
mov esi, dword [eax + 0xc]
push dword [0x591068]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4833f7
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4833ef
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x483424
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4833f1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004832ed
mov esi, eax
jmp 0x483416

Function at 0x4fa075
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4fa08d
mov edi, dword [esi + 0xc]
jmp 0x4fa0cd
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4fa0a6
call fcn.00416118
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4fa0bb
call fcn.00416118
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4fa0cd
call fcn.00416118
call fcn.0041f7a2
cmp dword [eax + 0x3c], 0
je 0x4fa0e2
push edi
mov ecx, ebx
call fcn.004f8ea6
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004f9f8f
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4fa100
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4fa10c
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x5132f8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x58bcc0]
jne 0x513302
repz ret
jmp fcn.0051b423
Function at 0x5262e8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58bcc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0051ae4b
and dword [ebp - 0x14], 0
cmp dword [0x593a24], 0
mov dword [ebp - 0x18], eax
jne 0x52639b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x526443
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5650b8
push ebx
call edi
test eax, eax
je 0x526443
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5650a8
push ebx
mov dword [0x593a24], eax
call edi
push eax
call esi
push 0x565094
push ebx
mov dword [0x593a28], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x593a2c], eax
call edi
push eax
call esi
mov dword [0x593a34], eax
test eax, eax
je 0x52639b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x593a30], eax
mov eax, dword [0x593a30]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5263f4
cmp dword [0x593a34], ecx
je 0x5263f4
push eax
call esi
push dword [0x593a34]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5263f4
test ebx, ebx
je 0x5263f4
call edi
test eax, eax
je 0x5263eb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5263eb
test byte [ebp - 8], 1
jne 0x5263f4
or dword [ebp + 0x10], 0x200000
jmp 0x526427
mov eax, dword [0x593a28]
cmp eax, dword [ebp - 0x18]
je 0x526427
push eax
call esi
test eax, eax
je 0x526427
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x526427
mov eax, dword [0x593a2c]
cmp eax, dword [ebp - 0x18]
je 0x526427
push eax
call esi
test eax, eax
je 0x526427
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x593a24]
call esi
test eax, eax
je 0x526443
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x526445
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005132f8
leave
ret
Function at 0x100372d5
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x100cfa9c]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
mov edx, 0x104
push ebx
push esi
push edi
push ecx
push ecx
xor edi, edi
mov dword [esp + 0x1c], eax
push ecx
lea ecx, [esp + 0x24]
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.1004ad2e
push 0x1000cca8
lea ecx, [esp + 0x1c]
call fcn.1004acdf
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x10037357
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10037381
mov ecx, dword [ebp + 4]
mov edx, 0xc9
push 0x10015820
call fcn.1004ac9b
mov edi, eax
jmp 0x10037381
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.100371ba
mov ebx, eax
test ebx, ebx
jns 0x10037387
mov ecx, dword [ebp + 4]
mov edx, 0xcf
push ebx
push 0x10015820
call fcn.1004afd8
mov edi, ebx
test esi, esi
je 0x1003739b
jmp 0x10037395
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
push esi
call fcn.1004aec6
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100a6b85
mov esp, ebp
pop ebp
ret 8
Function at 0x1003d8d8
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b6c23
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x100cfa9c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x50], eax
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.1003abdf
cmp byte [ebp - 0x60], 0
je 0x1003d9e5
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100479d7
lea ecx, [ebp - 0x2c]
push ecx
lea eax, [ebp - 0x14]
push eax
push ecx
lea ecx, [ebp - 0x5c]
call fcn.10047751
push 0
push 0
push dword [ebx + 0x3c]
lea eax, [ebp - 0x5c]
mov ecx, edi
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push eax
push dword [ebp - 0x38]
call fcn.1003dc33
lea ecx, [ebp - 0x5c]
mov esi, eax
call fcn.10047d6e
push 0x10037060
push 1
push 0x18
lea eax, [ebp - 0x2c]
push eax
call fcn.100a6dd7
cmp byte [ebp - 0x60], 0
je 0x1003d9e1
lea ecx, [ebp - 0x78]
call fcn.10037030
mov eax, esi
jmp 0x1003da1d
call fcn.1007b17a
mov edi, 0x80070057
mov ecx, dword [eax]
cmp dword [ecx], 2
jbe 0x1003da1b
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], esi
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x1000f8e0
push eax
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], edi
push edx
push ecx
push ecx
mov edx, 0x1002be07
call fcn.100300a3
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100a6b85
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x38