joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40526c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42bfe8], 0x44
push eax
xor eax, eax
push 0x42bfe8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x4052a7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405331
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004055e0
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405365
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42ebe8], eax
jmp 0x4054f9
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405383
test eax, eax
je 0x4054a4
test byte [ebp + 0xc], 2
je 0x4054a4
mov esi, 0x42afe8
push edi
push esi
call fcn.00405a0c
test ebx, ebx
je 0x4053a0
push str..
push esi
call sub.KERNEL32.DLL_lstrcatA
jmp 0x4053a6
push edi
call fcn.00405546
cmp byte [edi], 0
jne 0x4053b4
cmp byte [0x42afe8], 0x5c
jne 0x4053bf
push 0x409010
push edi
call sub.KERNEL32.DLL_lstrcatA
push edi
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40549a
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.0040552a
cmp byte [eax], 0
je 0x405405
cmp byte [ebp - 0x18], 0
je 0x405405
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x40541b
mov al, byte [esi + 1]
test al, al
je 0x405479
cmp al, 0x2e
jne 0x40541b
cmp byte [esi + 2], 0
je 0x405479
push esi
push ebx
call fcn.00405a0c
test byte [ebp - 0x148], 0x10
je 0x405440
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405479
push dword [ebp + 0xc]
push edi
call fcn.00405331
jmp 0x405479
push edi
call fcn.004056c4
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x405471
test byte [ebp + 0xc], 4
je 0x405469
push edi
push 0xfffffffffffffff1
call fcn.00404daa
push 0
push edi
call fcn.0040575a
jmp 0x405479
inc dword [0x42ebe8]
jmp 0x405479
push edi
push 0xfffffffffffffff2
call fcn.00404daa
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4053e3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp dword [ebp - 4], 0
je 0x4054a4
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4054f9
cmp dword [ebp - 8], esi
jne 0x4054b9
inc dword [0x42ebe8]
jmp 0x4054f9
push edi
call fcn.00405d07
test eax, eax
je 0x4054f9
push edi
call fcn.004054ff
push edi
call fcn.004056c4
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
jne 0x4054f1
test byte [ebp + 0xc], 4
je 0x4054b1
push edi
push 0xfffffffffffffff1
call fcn.00404daa
push esi
push edi
call fcn.0040575a
jmp 0x4054f9
push edi
push 0xffffffffffffffe5
call fcn.00404daa
pop edi
pop esi
leave
ret 8
Function at 0x4055e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b3e8
push esi
call fcn.00405a0c
push esi
call fcn.00405593
mov edi, eax
test edi, edi
jne 0x405601
xor eax, eax
jmp 0x405653
push edi
call fcn.00405c6e
test byte [0x42eb78], 0x80
je 0x40561a
mov al, byte [edi]
test al, al
je 0x4055fd
cmp al, 0x5c
je 0x4055fd
sub edi, esi
jmp 0x405632
call fcn.00405d07
test eax, eax
je 0x40562c
test byte [eax], 0x10
je 0x4055fd
push esi
call fcn.00405546
push esi
call sub.KERNEL32.DLL_lstrlenA
cmp eax, edi
push esi
jg 0x40561e
call fcn.004054ff
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4056c4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4056e0
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
ret 4

Function at 0x4056e3
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
ret 0xc

Function at 0x405712
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
test eax, eax
jne 0x405756
test edi, edi
jne 0x40571d
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405750
Function at 0x40575a
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405d2e
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40577e
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x4058b7
mov ebx, dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
mov dword [0x42c170], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42c170
je 0x4057c2
push 1
push 0
push esi
call fcn.004056e3
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4058bd
cmp eax, edi
jg 0x4058bd
mov esi, 0x42bbe8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4058bd
cmp eax, edi
jg 0x4058bd
push esi
push ebp
push str._s_s_r_n
push 0x42b7e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42eb70]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405a2e
push 4
push 0xc0000000
push esi
call fcn.004056e3
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x4058b7
push 0
push ebp
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4058b0
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4058b0
cmp edi, dword [esp + 0x18]
jne 0x4058b0
push str._Rename__r_n
push esi
call fcn.00405658
test eax, eax
jne 0x4058c4
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405a0c
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42b7e8
push eax
call fcn.004056a4
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
inc dword [0x42ebf0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409330
push eax
call fcn.00405658
test eax, eax
je 0x40587b
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4058eb
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4058e0
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x40587d
Function at 0x10908d70
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1092bb49
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov esi, dword [ebp + 8]
mov ecx, esi
call dword [sym.imp.Core.dll_public:_void___thiscall_FArchive::constructor_void_]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [esi], 0x10933dcc
mov byte [ebp - 4], 1
mov ecx, 1
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x44], eax
mov byte [esi + 0x48], 0xac
mov eax, dword [sym.imp.Core.dll_class_FMalloc__GMalloc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push 0x10932074
push 0x458
mov eax, dword [edx]
call eax
mov edi, eax
test edi, edi
je 0x10908df9
push 0
push ebx
call dword [sym.imp.kernel32.dll_GetFileSize]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push ebx
push edi
call fcn.109088d0
jmp 0x10908dfb
xor eax, eax
mov dword [esi + 0x3c], eax
test eax, eax
jne 0x10908e0a
mov byte [ebp - 4], al
jmp 0x10908ec8
mov ebx, 1
cmp dword [ebp + 0x10], 0x18
jbe 0x10908eb5
xor edi, edi
mov dword [ebp - 0x14], edi
cmp edi, 0xb
jae 0x10908e44
mov ecx, dword [esi + 0x3c]
push 2
lea edx, [ebp + 0xc]
push edx
call dword [sym.imp.Core.dll_public:_class_FArchive____thiscall_FArchive::ByteOrderSerialize_void___int_]
mov ax, word [ebp + 0xc]
cmp ax, word [edi*2 + 0x10940190]
jne 0x10908eb5
add edi, ebx
jmp 0x10908e1b
test ebx, ebx
je 0x10908eb5
mov ecx, dword [esi + 0x3c]
push 2
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.Core.dll_public:_class_FArchive____thiscall_FArchive::ByteOrderSerialize_void___int_]
mov ecx, dword [esi + 0x3c]
push 2
lea eax, [ebp - 0x22]
push eax
call dword [sym.imp.Core.dll_public:_class_FArchive____thiscall_FArchive::ByteOrderSerialize_void___int_]
mov ecx, dword [esi + 0x3c]
push 2
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.Core.dll_public:_class_FArchive____thiscall_FArchive::ByteOrderSerialize_void___int_]
mov word [ebp - 0x1e], 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.Core.dll_int___cdecl_appAtoi_unsigned_short_int_const__]
add esp, 4
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], 0x1c
cmp eax, 0x6f
jne 0x10908e9d
mov byte [esi + 0x48], 0xac
jmp 0x10908ec1
cmp eax, 0x79
jne 0x10908eaf
mov ebx, dword [ebp + 0x14]
call fcn.10924520
mov byte [esi + 0x48], al
jmp 0x10908ec1
mov byte [esi + 0x48], 0
jmp 0x10908ec1
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
push 0
mov eax, dword [edx + 0x3c]
call eax
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10914320
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x10914348
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esi + ecx*4]
sub edx, esi
mov esi, dword [edx + eax - 4]
xor dword [eax - 4], esi
sub eax, 4
sub ecx, 1
test ecx, ecx
jne 0x10914336
pop esi
ret

Function at 0x10917c9a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1093eaf0]
jne 0x10917ca4
repz ret
jmp fcn.1091cc40

Function at 0x1091b169
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 + 0x1093ef28]
je 0x1091b184
inc edi
cmp edi, 0x17
jb 0x1091b175
cmp edi, 0x17
jae 0x1091b304
push ebp
push 3
call fcn.1092134f
cmp eax, 1
pop ecx
je 0x1091b2d0
push 3
call fcn.1092134f
test eax, eax
pop ecx
jne 0x1091b1b8
cmp dword [0x1093eaec], 1
je 0x1091b2d0
cmp ebx, 0xfc
je 0x1091b303
push 0x1092eed0
mov ebx, 0x314
push ebx
mov ebp, 0x109631a0
push ebp
call fcn.109205f4
add esp, 0xc
test eax, eax
je 0x1091b1ee
push esi
push esi
push esi
push esi
push esi
call fcn.10918e49
add esp, 0x14
push 0x104
mov esi, 0x109631b9
push esi
push 0
mov byte [0x109632bd], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1091b232
push 0x1092eeb8
push 0x2fb
push esi
call fcn.109205f4
add esp, 0xc
test eax, eax
je 0x1091b232
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10918e49
add esp, 0x14
push esi
call fcn.10919f60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1091b277
push esi
call fcn.10919f60
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x109634b4
push 0x1092eeb4
sub ecx, eax
push ecx
push eax
call fcn.1092129c
add esp, 0x14
test eax, eax
je 0x1091b277
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10918e49
add esp, 0x14
jmp 0x1091b279
xor esi, esi
push 0x1092eeb0
push ebx
push ebp
call fcn.10920cc4
add esp, 0xc
test eax, eax
je 0x1091b299
push esi
push esi
push esi
push esi
push esi
call fcn.10918e49
add esp, 0x14
push dword [edi*8 + 0x1093ef2c]
push ebx
push ebp
call fcn.10920cc4
add esp, 0xc
test eax, eax
je 0x1091b2bb
push esi
push esi
push esi
push esi
push esi
call fcn.10918e49
add esp, 0x14
push 0x12010
push 0x1092ee88
push ebp
call fcn.109210df
add esp, 0xc
jmp 0x1091b303
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1091b303
cmp ebp, 0xffffffff
je 0x1091b303
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1093ef2c]
push dword [esi]
call fcn.10919f60
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 0x10920c3d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x10920c6a
call fcn.10918fb7
mov dword [eax], esi
call fcn.10918fa4
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.10918f45
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x10920c46
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10920c99
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.10918fca
pop ecx
call fcn.10918fa4
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x10920cc0
test al, 1
je 0x10920cc0
test byte [esp + 0xc], 2
je 0x10920cc0
call fcn.10918fb7
mov dword [eax], 5
call fcn.10918fa4
mov dword [eax], 0xd
jmp 0x10920c90
xor eax, eax
pop esi
ret
Function at 0x109210df
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1091b41c
xor ebx, ebx
cmp dword [0x10963b58], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x109211b5
push 0x1092f820
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10921295
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x1092f814
push edi
call esi
cmp eax, ebx
je 0x10921295
push eax
call fcn.1091b3ae
mov dword [esp], 0x1092f804
push edi
mov dword [0x10963b58], eax
call esi
push eax
call fcn.1091b3ae
mov dword [esp], 0x1092f7f0
push edi
mov dword [0x10963b5c], eax
call esi
push eax
call fcn.1091b3ae
mov dword [0x10963b60], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1091bd31
test eax, eax
pop ecx
pop ecx
je 0x10921183
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10918e49
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x109211b5
push 0x1092f7d4
push edi
call esi
push eax
call fcn.1091b3ae
cmp eax, ebx
pop ecx
mov dword [0x10963b68], eax
je 0x109211b5
push 0x1092f7bc
push edi
call esi
push eax
call fcn.1091b3ae
pop ecx
mov dword [0x10963b64], eax
mov eax, dword [0x10963b64]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1092123a
cmp dword [0x10963b68], ecx
je 0x1092123a
push eax
call fcn.1091b425
push dword [0x10963b68]
mov esi, eax
call fcn.1091b425
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1092123a
cmp edi, ebx
je 0x1092123a
call esi
cmp eax, ebx
je 0x10921207
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10921207
test byte [ebp - 0x18], 1
jne 0x1092123a
lea eax, [ebp - 0x10]
push eax
call fcn.1091bd68
test eax, eax
pop ecx
je 0x10921222
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10918e49
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10921231
or dword [ebp + 0x10], 0x200000
jmp 0x10921275
or dword [ebp + 0x10], 0x40000
jmp 0x10921275
mov eax, dword [0x10963b5c]
cmp eax, dword [ebp - 8]
je 0x10921275
push eax
call fcn.1091b425
cmp eax, ebx
pop ecx
je 0x10921275
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10921275
mov eax, dword [0x10963b60]
cmp eax, dword [ebp - 8]
je 0x10921275
push eax
call fcn.1091b425
cmp eax, ebx
pop ecx
je 0x10921275
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10963b58]
call fcn.1091b425
cmp eax, ebx
pop ecx
je 0x10921295
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10921297
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10924580
Capabilities:
Get common file path

Disassembly:
mov eax, dword [sym.imp.Core.dll_int_GUnicodeOS]
sub esp, 0x300
cmp dword [eax], 0
push esi
mov esi, dword [sym.imp.Core.dll_unsigned_short_int____cdecl_appStrcpy_unsigned_short_int___unsigned_short_int_const__]
push edi
jne 0x10924669
push 0xff
lea ecx, [esp + 0x10d]
push 0
push ecx
mov byte [esp + 0x114], 0
call fcn.10917c20
push 0xff
lea edx, [esp + 0x19]
push 0
push edx
mov byte [esp + 0x20], 0
call fcn.10917c20
push 0xff
lea eax, [esp + 0x225]
push 0
push eax
mov byte [esp + 0x22c], 0
call fcn.10917c20
add esp, 0x24
push 0x100
lea ecx, [esp + 0x10c]
push ecx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
push 0x100
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
push 0x100
lea eax, [esp + 0x20c]
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.Core.dll_unsigned_short_int_const____cdecl_appFromAnsi_char_const___unsigned_short_int__]
lea ecx, [esp + 0x108]
push 0
push ecx
call edi
push eax
push 0x10963c58
call esi
lea edx, [esp + 0x18]
push 0
push edx
call edi
push eax
push 0x10963e58
call esi
lea eax, [esp + 0x228]
push 0
push eax
call edi
push eax
push 0x10964058
call esi
add esp, 0x30
jmp 0x1092469b
push 0x100
push 0x10963c58
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
push 0x100
push 0x10963e58
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
push 0x100
push 0x10964058
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.Core.dll_int___cdecl_appStrlen_unsigned_short_int_const__]
push 0x10930544
push 0x10964058
call edi
lea ecx, [eax*2 + 0x10964050]
add esp, 4
push ecx
call dword [sym.imp.Core.dll_int___cdecl_appStricmp_unsigned_short_int_const___unsigned_short_int_const__]
add esp, 8
test eax, eax
jne 0x109246e1
push 0x10930550
push 0x10964058
call edi
lea edx, [eax*2 + 0x10964050]
add esp, 4
push edx
call esi
add esp, 8
pop edi
pop esi
add esp, 0x300
ret
Function at 0x4018db
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x518
mov eax, dword [0x416004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [section..data]
test eax, 0xc000000
jne 0x4092f8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004018c9
leave
ret
test dword [ebp + 8], eax
je 0x401900
push esi
xor eax, eax
mov word [ebp - 0x504], ax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
xor esi, esi
push esi
push esi
lea eax, [ebp - 0x518]
push eax
push 0x200
lea eax, [ebp - 0x504]
push eax
call fcn.00412920
test eax, eax
jl 0x409419
test dword [section..data], 0x8000000
push edi
mov edi, 0x409468
je 0x4093fa
cmp dword [0x4167a4], esi
je 0x4093fa
lea eax, [ebp - 0x514]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x506]
push eax
movzx eax, word [ebp - 0x508]
push eax
movzx eax, word [ebp - 0x50a]
push eax
movzx eax, word [ebp - 0x50c]
push eax
movzx eax, word [ebp - 0x50e]
push eax
movzx eax, word [ebp - 0x512]
push eax
movzx eax, word [ebp - 0x514]
push eax
push 0x409420
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.004128e4
add esp, 0x28
test eax, eax
jl 0x4093ce
push dword [0x4167a4]
lea eax, [ebp - 0x104]
push eax
call sub.msvcrt.dll_fputws
pop ecx
pop ecx
push dword [0x4167a4]
lea eax, [ebp - 0x504]
push eax
call sub.msvcrt.dll_fputws
push dword [0x4167a4]
push edi
call sub.msvcrt.dll_fputws
push dword [0x4167a4]
call sub.msvcrt.dll_fflush
add esp, 0x14
test dword [section..data], 0x4000000
je 0x409418
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x504]
push eax
call esi
push edi
call esi
pop edi
pop esi
jmp 0x401900

Function at 0x40405f
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
mov esi, ecx
push edi
mov dword [esi + 0x478], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
lea ebx, [esi + 0x474]
push eax
mov ecx, ebx
call fcn.00403773
cmp dword [ebx], edi
je 0x407a16
lea eax, [esi + 0x478]
push eax
push edi
push esi
push 0x402f3d
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x407a33
push 0xffffffffffffffff
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [esi + 0x47c]
cmp dword [ebp - 4], edi
je 0x4040d7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call fcn.0040375e
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x4040e0
and eax, 0xffff
or eax, 0x80070000
jmp 0x4040e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, edi
jle 0x4040d7
and esi, 0xffff
or esi, 0x80070000
jmp 0x4040c9
Function at 0x404651
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp ebx, esi
je 0x407363
cmp dword [ebp + 8], esi
je 0x40736d
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
mov dword [ebx], esi
push esi
mov dword [ebp + 0xc], esi
mov dword [ebp - 4], esi
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40738e
mov eax, dword [ebp + 0xc]
push 2
xor ecx, ecx
pop edx
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call fcn.004021ef
pop ecx
mov dword [ebp - 8], eax
cmp eax, esi
je 0x40470b
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebx], eax
cmp eax, esi
je 0x404704
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 8]
push esi
call edi
test eax, eax
je 0x407377
xor edi, edi
push dword [ebp - 8]
call fcn.0040220d
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
mov edi, 0x8007000e
jmp 0x4046f2
mov edi, 0x8007000e
jmp 0x4046fb
mov eax, 0x80004003
jmp 0x4046fe
mov eax, 0x80070057
jmp 0x4046fe
call fcn.0040a703
push dword [ebx]
mov edi, eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [ebx], esi
jmp 0x4046f2
push eax
call fcn.0040a71d
mov edi, eax
jmp 0x4046fb