joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429767
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x46636f
call fcn.00449aae
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.004351a6
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x4297b2
call fcn.004351a6
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x4297c3
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x4297d0
or eax, 0xffffffff
jmp 0x42992c
mov ecx, esi
call fcn.004292b9
mov dword [ebp - 0x14], eax
call fcn.0042dfc4
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x42984e
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x42984e
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42984e
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00429148
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x42984e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x42984e
mov ecx, ebx
call fcn.00429c68
test eax, eax
je 0x42984e
push 0
mov ecx, ebx
call fcn.00429c83
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0042fa75
push dword [ebp - 0x14]
call fcn.0042df1c
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0042956f
xor edi, edi
cmp eax, edi
je 0x4298ab
test byte [esi + 0x3c], 0x10
je 0x429895
push 4
pop edi
mov ecx, esi
call fcn.00429b25
test ax, 0x100
je 0x42988b
push 5
pop edi
push edi
mov ecx, esi
call fcn.0042da8d
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x4298ab
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00429e6f
or dword [ebp - 4], 0xffffffff
jmp 0x4298d6
cmp dword [ebp - 0x28], edi
je 0x4298e4
push 1
mov ecx, ebx
call fcn.00429c83
cmp dword [ebp - 0x2c], edi
je 0x4298f4
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x42990d
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x42990d
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.004292f3
cmp dword [esi + 0x58], edi
je 0x429929
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00449b53
ret
Function at 0x42f045
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42f07e
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042f008
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042de15
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x430aa2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x430ae5
call fcn.004351a6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x430ae5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x430b00
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00430659
test ebx, ebx
mov esi, eax
je 0x430afe
test edi, edi
je 0x430afe
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x432038
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x486904]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x432078
push 0x46e750
push 4
push eax
call fcn.00446925
push eax
call fcn.00412e70
add esp, 0x10
jmp 0x43208a
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4320f8
push edi
call fcn.00449d1e
mov edi, dword [eax]
call fcn.00449d1e
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004471cf
add esp, 0x18
mov ebx, eax
call fcn.00449d1e
cmp dword [eax], 0
je 0x4320d8
call fcn.00449d1e
push dword [eax]
call fcn.0042a8f4
pop ecx
jmp 0x4320df
call fcn.00449d1e
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x4320f8
cmp ebx, esi
jae 0x4320f8
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x4320fa
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00445fb9
leave
ret
Function at 0x433f91
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x433fd7
call fcn.004351a6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x433fd7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x43401a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x434003
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x434003
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x434017
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4391b2
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 0x4391e0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4391fe
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043911c
jmp 0x4391fe
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4391fe
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0043911c
test edi, edi
mov eax, edi
jne 0x4391e8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4953a8]
test ecx, ecx
je 0x4392c1
jmp 0x4391b1
ret 8

Function at 0x445fb9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x486904]
jne 0x445fc3
repz ret
jmp fcn.0044e17c
Function at 0x449067
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4490a4
cmp dword [ebp + 0x14], edi
je 0x4490a4
cmp ecx, edi
jne 0x4490ab
call fcn.00449d1e
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0044e386
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4490bf
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4490e0
cmp ebx, 0xffffffff
je 0x4490cf
push ebx
push edi
push ecx
call fcn.00446ce0
add esp, 0xc
cmp esi, edi
je 0x44908c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x44908c
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4490fc
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x449103
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4491f4
test word [esi + 0xc], 0x10c
je 0x449157
mov eax, dword [esi + 4]
test eax, eax
je 0x449157
jl 0x449255
cmp ebx, eax
mov edi, ebx
jb 0x449128
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4491fc
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00446771
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4491ec
cmp ebx, dword [ebp - 0xc]
jb 0x4491c4
cmp dword [ebp - 0xc], 0
je 0x449181
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x449176
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x44917d
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x44918c
mov eax, SysReAllocString
cmp ebx, eax
ja 0x44918c
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x449228
push eax
push dword [ebp - 8]
push esi
call fcn.0045332e
pop ecx
push eax
call fcn.00455e3b
add esp, 0xc
test eax, eax
je 0x449267
cmp eax, 0xffffffff
je 0x449255
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4491ec
push esi
call fcn.004536af
cmp eax, 0xffffffff
pop ecx
je 0x449259
cmp dword [ebp - 4], 0
je 0x449228
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x44910b
mov eax, dword [ebp + 0x14]
jmp 0x4490a6
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x449213
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00446ce0
add esp, 0xc
call fcn.00449d1e
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x44909c
cmp dword [ebp + 0xc], 0xffffffff
je 0x44923e
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00446ce0
add esp, 0xc
call fcn.00449d1e
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x44909c
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4490a6
or dword [esi + 0xc], 0x10
jmp 0x449259
Function at 0x452d64
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x487288]
je 0x452d7f
inc edi
cmp edi, 0x17
jb 0x452d70
cmp edi, 0x17
jae 0x452eff
push ebp
push 3
call fcn.0045b97e
cmp eax, 1
pop ecx
je 0x452ecb
push 3
call fcn.0045b97e
test eax, eax
pop ecx
jne 0x452db3
cmp dword [0x486940], 1
je 0x452ecb
cmp ebx, 0xfc
je 0x452efe
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x495b98
push ebp
call fcn.00446925
add esp, 0xc
test eax, eax
je 0x452de9
push esi
push esi
push esi
push esi
push esi
call fcn.0044e28a
add esp, 0x14
push 0x104
mov esi, 0x495bb1
push esi
push 0
mov byte [0x495cb5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x452e2d
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00446925
add esp, 0xc
test eax, eax
je 0x452e2d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0044e28a
add esp, 0x14
push esi
call fcn.00449c00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x452e72
push esi
call fcn.00449c00
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x495eac
push 0x470864
sub ecx, eax
push ecx
push eax
call fcn.00449d6d
add esp, 0x14
test eax, eax
je 0x452e72
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0044e28a
add esp, 0x14
jmp 0x452e74
xor esi, esi
push 0x470860
push ebx
push ebp
call fcn.0044698a
add esp, 0xc
test eax, eax
je 0x452e94
push esi
push esi
push esi
push esi
push esi
call fcn.0044e28a
add esp, 0x14
push dword [edi*8 + 0x48728c]
push ebx
push ebp
call fcn.0044698a
add esp, 0xc
test eax, eax
je 0x452eb6
push esi
push esi
push esi
push esi
push esi
call fcn.0044e28a
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0045b7c1
add esp, 0xc
jmp 0x452efe
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x452efe
cmp ebp, 0xffffffff
je 0x452efe
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x48728c]
push dword [esi]
call fcn.00449c00
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x45b7c1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0044dbb6
xor ebx, ebx
cmp dword [0x496104], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x45b897
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45b977
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x475390
push edi
call esi
cmp eax, ebx
je 0x45b977
push eax
call fcn.0044db48
mov dword [esp], 0x475380
push edi
mov dword [0x496104], eax
call esi
push eax
call fcn.0044db48
mov dword [esp], 0x47536c
push edi
mov dword [0x496108], eax
call esi
push eax
call fcn.0044db48
mov dword [0x49610c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0044b699
test eax, eax
pop ecx
pop ecx
je 0x45b865
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044e28a
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x45b897
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0044db48
cmp eax, ebx
pop ecx
mov dword [0x496114], eax
je 0x45b897
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044db48
pop ecx
mov dword [0x496110], eax
mov eax, dword [0x496110]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x45b91c
cmp dword [0x496114], ecx
je 0x45b91c
push eax
call fcn.0044dbbf
push dword [0x496114]
mov esi, eax
call fcn.0044dbbf
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x45b91c
cmp edi, ebx
je 0x45b91c
call esi
cmp eax, ebx
je 0x45b8e9
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45b8e9
test byte [ebp - 0x18], 1
jne 0x45b91c
lea eax, [ebp - 0x10]
push eax
call fcn.0044b6d0
test eax, eax
pop ecx
je 0x45b904
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044e28a
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x45b913
or dword [ebp + 0x10], 0x200000
jmp 0x45b957
or dword [ebp + 0x10], 0x40000
jmp 0x45b957
mov eax, dword [0x496108]
cmp eax, dword [ebp - 8]
je 0x45b957
push eax
call fcn.0044dbbf
cmp eax, ebx
pop ecx
je 0x45b957
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x45b957
mov eax, dword [0x49610c]
cmp eax, dword [ebp - 8]
je 0x45b957
push eax
call fcn.0044dbbf
cmp eax, ebx
pop ecx
je 0x45b957
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x496104]
call fcn.0044dbbf
cmp eax, ebx
pop ecx
je 0x45b977
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45b979
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45f9ea
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x486904]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0045f97f
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00446ce0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x45fa39
cmp dword [ebp - 0x1c], 5
jb 0x45fa51
jmp 0x45fa4d
cmp dword [ebp - 0x10], 1
jne 0x45fa51
cmp dword [ebp - 0x1c], 4
ja 0x45fa4d
jne 0x45fa51
cmp dword [ebp - 0x18], 0
jbe 0x45fa51
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x475d5c
call fcn.0045f870
test eax, eax
jge 0x45fa72
mov byte [0x49381c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00445fb9
add ebp, 0x78
leave
ret
Function at 0x10007d70
Capabilities:
Query environment variable

Disassembly:
push ecx
push esi
push dword [esp + 0xc]
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov esi, eax
add esp, 4
test esi, esi
jne 0x10007d8c
mov eax, dword [esp + 0x10]
pop esi
pop ecx
ret
push edi
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call edi
push 0xa
mov dword [eax], 0
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
add esp, 0xc
mov esi, eax
call edi
cmp dword [eax], 0
jne 0x10007dc8
mov ecx, dword [esp + 8]
cmp byte [ecx], 0
jne 0x10007dc8
pop edi
mov eax, esi
pop esi
pop ecx
ret
call edi
pop edi
pop esi
mov dword [eax], 0
mov eax, dword [esp + 0xc]
pop ecx
ret

Function at 0x1000a4b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
cmp dword [esp + 0x1c], 0
jle 0x1000a5a3
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
mov ecx, dword [eax + 8]
mov ebx, ecx
add ebx, dword [eax]
mov edx, dword [eax + 0xc]
mov esi, edx
mov edi, dword [eax + 4]
adc edi, edx
mov dword [esp + 0x18], ebx
shld edx, ecx, 0xd
shr esi, 0x13
xor ebp, ebp
shl ecx, 0xd
or ebp, edx
mov edx, dword [eax + 0x1c]
or esi, ecx
mov ecx, dword [eax + 0x18]
xor esi, ebx
xor ebp, edi
mov dword [esp + 0x14], esi
mov esi, ecx
mov dword [esp + 0x20], ebp
add esi, dword [eax + 0x10]
mov ebp, edx
mov ebx, edx
mov dword [esp + 0x10], edi
adc ebp, dword [eax + 0x14]
xor edi, edi
shld edx, ecx, 0x10
shr ebx, 0x10
shl ecx, 0x10
or edi, edx
or ebx, ecx
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x10]
xor ebx, esi
xor edi, ebp
xor esi, esi
or esi, dword [esp + 0x18]
mov edx, edi
add ecx, ebx
mov dword [esp + 0x10], ecx
adc esi, edi
mov dword [eax], ecx
shld edi, ebx, 0x15
xor ecx, ecx
shr edx, 0xb
or ecx, edi
shl ebx, 0x15
mov edi, dword [esp + 0x14]
or edx, ebx
xor edx, dword [esp + 0x10]
xor ecx, esi
add edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov dword [eax + 4], esi
mov esi, ebx
adc esi, ebp
mov dword [eax + 0x18], edx
mov ebp, dword [esp + 0x14]
mov edx, ebx
mov dword [eax + 0x1c], ecx
xor ecx, ecx
shld ebx, ebp, 0x11
shr edx, 0xf
or ecx, ebx
shl ebp, 0x11
xor ecx, esi
mov dword [eax + 0x10], esi
mov dword [eax + 0xc], ecx
or edx, ebp
xor ecx, ecx
xor edx, edi
or ecx, edi
mov dword [eax + 8], edx
sub dword [esp + 0x2c], 1
mov dword [eax + 0x14], ecx
jne 0x1000a4c6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x1001592
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x1c
push 0x1002ad0
call fcn.0100199c
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
call fcn.010021bd
call fcn.01002236
test eax, eax
jne 0x10015cb
mov dword [ebp - 0x1c], 5
jmp 0x100166f
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, esi
jne 0x10015e1
mov dword [ebp - 0x1c], 0x57
jmp 0x100166f
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
cmp dword [ebp - 0x20], 2
jl 0x10015d5
mov dword [ebp - 4], esi
cmp dword [ebp - 0x20], 3
jge 0x1001606
mov dword [ebp - 0x1c], 0x57
jmp 0x1001668
lea eax, [ebp - 0x28]
push eax
mov edi, 0x100116c
push edi
push dword [ebx + 4]
mov esi, dword [sym.imp.msvcrt.dll_swscanf]
call esi
add esp, 0xc
cmp eax, 1
jne 0x10015fd
cmp dword [ebp - 0x20], 4
jl 0x100163b
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebx + 0xc]
call esi
add esp, 0xc
cmp eax, 1
jne 0x10015fd
push dword [ebp - 0x24]
push dword [ebx + 8]
push dword [ebp - 0x28]
call fcn.01001535
jmp 0x1001665
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.01001ebe
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1002236
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x10022a0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1002297
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.01001cfc
leave
ret
Function at 0x1002675
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100400c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x210]
push ecx
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, esi
jae 0x1002855
test eax, eax
jne 0x10026c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1002858
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x1002855
lea ecx, [ebp - 0x210]
cmp eax, ecx
je 0x1002855
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x210]
cmp ax, 0x41
jb 0x10026f5
cmp ax, 0x5a
jbe 0x10026fe
lea ecx, [eax - 0x61]
cmp cx, 0x19
ja 0x1002722
cmp word [ebp - 0x20e], 0x3a
jne 0x1002722
cmp word [ebp - 0x20c], 0x5c
jne 0x1002855
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x214], ecx
push 0x5c
pop edi
cmp ax, di
jne 0x1002764
cmp word [ebp - 0x20e], di
jne 0x1002764
lea eax, [ebp - 0x20c]
push edi
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
test eax, eax
je 0x1002855
add eax, 2
push edi
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
mov dword [ebp - 0x214], eax
test eax, eax
je 0x1002855
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100278e
and al, 0x10
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xfffffef5
add eax, 0x10b
jmp 0x1002858
mov esi, dword [ebp - 0x218]
lea eax, [ebp - 0x210]
cmp esi, eax
jne 0x10027a2
mov esi, eax
jmp 0x10027a5
add esi, 0xfffffffe
cmp esi, dword [ebp - 0x214]
je 0x1002855
cmp word [esi], di
jne 0x1002855
cmp esi, dword [ebp - 0x214]
jbe 0x1002855
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x210]
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1002855
movzx ebx, word [edi + 2]
xor eax, eax
mov word [edi + 2], ax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov word [edi + 2], bx
cmp eax, 0xffffffff
jne 0x100281d
mov esi, edi
cmp edi, dword [ebp - 0x214]
ja 0x10027c6
cmp esi, dword [ebp - 0x214]
jbe 0x1002855
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ebx, ebx
jmp 0x100283e
test al, 0x10
jne 0x100280b
mov eax, 0x10b
jmp 0x1002858
cmp word [esi + 2], bx
je 0x1002851
push 0x5c
pop eax
push esi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
push ebx
lea eax, [ebp - 0x210]
push eax
call edi
test eax, eax
jne 0x1002828
jmp 0x10026b7
xor eax, eax
jmp 0x1002858
push 0x7b
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001cfc
leave
ret 4