joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c30
Capabilities:
Allocate thread local storage
Get thread local storage value
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x494b04]
mov ecx, dword [0x494594]
shr eax, 3
sub esp, 0x808
test eax, eax
jbe 0x404cef
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetMessageWaitingIndicator]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
lea ebx, [ebx]
cmp dword [0x494b04], 0x959
jne 0x404cd9
push 0
push 0
call esi
push 0
push 0
call edi
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404a60
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404c70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408410
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48c568]
jne 0x40841a
repz ret
jmp fcn.0040d18a

Function at 0x40ce45
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004093a4
and dword [ebp - 4], 0
cmp dword [0x492584], 0
mov ebx, eax
jne 0x40cef6
push 0x402530
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40cfa7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402524
push edi
call esi
test eax, eax
je 0x40cfa7
push eax
call fcn.00409332
mov dword [esp], 0x402514
push edi
mov dword [0x492584], eax
call esi
push eax
call fcn.00409332
mov dword [esp], 0x402500
push edi
mov dword [0x492588], eax
call esi
push eax
call fcn.00409332
mov dword [esp], 0x4024e4
push edi
mov dword [0x49258c], eax
call esi
push eax
call fcn.00409332
pop ecx
mov dword [0x492594], eax
test eax, eax
je 0x40cef6
push 0x4024cc
push edi
call esi
push eax
call fcn.00409332
pop ecx
mov dword [0x492590], eax
mov eax, dword [0x492590]
cmp eax, ebx
je 0x40cf4e
cmp dword [0x492594], ebx
je 0x40cf4e
push eax
call fcn.004093ad
push dword [0x492594]
mov esi, eax
call fcn.004093ad
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40cf4e
test edi, edi
je 0x40cf4e
call esi
test eax, eax
je 0x40cf45
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40cf45
test byte [ebp - 0xc], 1
jne 0x40cf4e
or dword [ebp + 0x10], 0x200000
jmp 0x40cf87
mov eax, dword [0x492588]
cmp eax, ebx
je 0x40cf87
push eax
call fcn.004093ad
pop ecx
test eax, eax
je 0x40cf87
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40cf87
mov eax, dword [0x49258c]
cmp eax, ebx
je 0x40cf87
push eax
call fcn.004093ad
pop ecx
test eax, eax
je 0x40cf87
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x492584]
call fcn.004093ad
pop ecx
test eax, eax
je 0x40cfa7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40cfa9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
jmp 0x44637c
call fcn.0044af8c
jmp 0x446386
push 0x14
push 0x46a538
call fcn.0044a010
call fcn.00449ca7
movzx esi, ax
push 2
call fcn.0044af3f
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x4463b4
xor ebx, ebx
jmp 0x4463e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4463b0
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4463b0
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x4463e7
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.00449330
test eax, eax
jne 0x4463fb
push 0x1c
call fcn.004464d6
pop ecx
call fcn.00448346
test eax, eax
jne 0x44640c
push 0x10
call fcn.004464d6
pop ecx
call fcn.0044b028
and dword [ebp - 4], 0
call fcn.0044a97b
test eax, eax
jns 0x446426
push 0x1b
call fcn.004464d6
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x472068], eax
call fcn.0044b068
mov dword [0x46de08], eax
call fcn.0044ac2f
test eax, eax
jns 0x44644c
push 8
call fcn.00449473
pop ecx
call fcn.0044ae5e
test eax, eax
jns 0x44645d
push 9
call fcn.00449473
pop ecx
push 1
call fcn.004494ad
pop ecx
test eax, eax
je 0x446470
push eax
call fcn.00449473
pop ecx
call fcn.0044b0f5
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x446492
push esi
call fcn.00449716
call fcn.0044949e
jmp 0x4464c7
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.0044a055
ret
Function at 0x402050
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
shr ebx, 2
push esi
mov esi, ecx
mov dword [ebp - 4], 1
mov eax, ebx
xor ecx, ecx
shr eax, 1
add eax, 3
mov dword [esi], eax
add esi, 0x10
push edi
test ebx, ebx
je 0x402085
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, ebx
jb 0x402078
mov eax, dword [esi + ebx*4 - 4]
lea ecx, [ebx + 0xe]
lea ecx, [ebx + ecx*2]
lea edi, [esi + ecx*4]
mov dword [ebp + 8], edi
xor edi, edi
mov ecx, dword [ebp + 8]
lea ebx, [ebx]
test edi, edi
jne 0x402106
movzx ecx, al
mov edi, ebx
movzx edx, byte [ecx + str.cw]
mov ecx, eax
shr ecx, 0x18
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
shr eax, 8
and eax, 0xff
shl edx, 8
movzx ecx, byte [ecx + str.cw]
movzx eax, byte [eax + str.cw]
or edx, ecx
mov ecx, dword [ebp - 4]
xor eax, ecx
shl edx, 8
add ecx, ecx
or eax, edx
test ecx, 0x100
mov edx, 0x1b
cmovne ecx, edx
mov dword [ebp - 4], ecx
jmp 0x402159
cmp edi, 4
jne 0x40215c
cmp ebx, 6
jbe 0x40215c
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
mov ecx, eax
shr ecx, 0x18
movzx ecx, byte [ecx + str.cw]
shl ecx, 8
or edx, ecx
mov ecx, eax
shr ecx, 8
and ecx, 0xff
shl edx, 8
movzx eax, al
movzx ecx, byte [ecx + str.cw]
movzx eax, byte [eax + str.cw]
or edx, ecx
shl edx, 8
or eax, edx
mov ecx, dword [ebp + 8]
xor eax, dword [esi]
dec edi
mov dword [esi + ebx*4], eax
add esi, 4
cmp esi, ecx
jne 0x4020a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x402180
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call fcn.00402050
lea ebx, [esi + 0x14]
xor esi, esi
test ebx, ebx
je 0x402201
lea ebx, [ebx]
mov edx, dword [edi + esi*4 + 0x20]
mov eax, edx
shr eax, 0x10
and eax, 0xff
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 8
and eax, 0xff
mov ecx, dword [ecx*4 + 0x46f680]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*4 + 0x46f280]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*4 + 0x46fa80]
movzx eax, dl
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*4 + 0x46ee80]
mov dword [edi + esi*4 + 0x20], ecx
inc esi
cmp esi, ebx
jb 0x4021a0
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4030f0
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x46c2f0]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x403139
push str.SetDefaultDllDirectories
push 0x4661a0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403139
push 0xc00
call eax
test eax, eax
jne 0x4031d7
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4031d7
cmp eax, 0x104
ja 0x4031d7
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x403177
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x4031d6
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov al, byte [esi]
mov ecx, edi
inc esi
test al, al
je 0x4031b0
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x4031a0
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
cmp byte [esi], 0
jne 0x403197
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444258
mov esp, ebp
pop ebp
ret
Function at 0x408340
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [0x465bbc]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret

Function at 0x408820
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x408867
cmp edx, 0x40
je 0x408859
mov ecx, 0x40
lea edi, [esi + 0x40]
sub ecx, edx
add edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
lea edx, [esi + 0x40]
push 1
lea ecx, [esi + 0x20]
call eax
xor edx, edx
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.0044dc50
mov ecx, dword [esi + 8]
lea edx, [esi + 0x40]
mov eax, dword [esi + 0xc]
add esp, 0xc
shld eax, ecx, 3
shl ecx, 3
bswap eax
bswap ecx
mov dword [esi + 0x78], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
lea ecx, [esi + 0x20]
push 1
call eax
lea edx, [esi + 0x20]
mov edi, 4
lea ebx, [ebx]
mov ecx, dword [edx + 4]
lea ebx, [ebx + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [ebx - 8], eax
bswap ecx
mov dword [ebx - 4], ecx
dec edi
jne 0x4088b0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
pop edi
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebx
ret

Function at 0x40ba50
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x46ec01], 0
push esi
mov esi, edx
jne 0x40ba8d
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.00409a80
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004453be
add esp, 4
test esi, esi
je 0x40baa0
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40baa0
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40bab0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x46ec01], 0
jne 0x40baea
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00409a80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004453be
add esp, 4
test esi, esi
pop esi
je 0x40bafb
mov al, 1
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40bafb
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x40bb10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c4d8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x46c2f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [0x46ec01], 0
jne 0x40bb7c
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.00409a80
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.004453be
add esp, 4
test esi, esi
je 0x40bb9d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40bb9d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40bbbe
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x50]
call fcn.0040bc10
push 0
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.0040d120
test al, al
jne 0x40bbe0
xor bl, bl
jmp 0x40bbe9
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.004453be
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bf40
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x46ec01], 0
push ebx
push esi
mov esi, ecx
jne 0x40bf74
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.00409a80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov ebx, eax
call fcn.004453be
add esp, 4
jmp 0x40bf82
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40bfa1
cmp ebx, 0xffffffff
je 0x40bfa1
test bl, 0x10
jne 0x40bfa1
test bl, 1
je 0x40bfa1
and ebx, 0xfffffffe
mov ecx, esi
mov edx, ebx
call fcn.0040ba50
test al, al
je 0x40bfe8
cmp byte [0x46ec01], 0
jne 0x40bfd5
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.00409a80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004453be
add esp, 4
test esi, esi
je 0x40bfe8
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40bfe8
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c390
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x46ec01], 0
jne 0x40c3c9
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00409a80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004453be
add esp, 4
test esi, esi
setne al
pop esi
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret
Function at 0x40c3e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c5b6
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x46c2f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 4], 0
mov word [eax], cx
cmp byte [0x46ec01], cl
jne 0x40c48a
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], cl
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40c53d
cmp eax, 0x114
jae 0x40c53d
lea edx, [ebp - 0x128]
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x360]
call fcn.00409b40
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00409620
push dword [ebp - 0x360]
call fcn.004453be
add esp, 4
mov al, 1
jmp 0x40c53f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call ebx
mov esi, eax
test esi, esi
je 0x40c53d
cmp esi, 0x114
jae 0x40c4d4
xor eax, eax
mov ecx, edi
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
call fcn.004095a0
mov al, 1
jmp 0x40c53f
lea ecx, [ebp - 0x360]
call fcn.00409440
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x358]
jbe 0x40c4fa
push esi
lea ecx, [ebp - 0x360]
call fcn.00409240
push dword [ebp - 0x360]
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40c52f
push esi
lea ecx, [ebp - 0x360]
call fcn.0040b970
cmp dword [ebp - 0x35c], ebx
jne 0x40c52f
lea eax, [esi - 1]
cmp eax, ebx
jne 0x40c52f
lea eax, [ebp - 0x360]
jmp 0x40c46d
push dword [ebp - 0x360]
call fcn.004453be
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00444258
mov esp, ebp
pop ebp
ret
Function at 0x40c5e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c5eb
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x46c2f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [0x46ec01], 0
jne 0x40c66a
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], 0
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x128]
mov edi, eax
lea ecx, [ebp - 0x360]
call fcn.00409b40
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00409620
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x360]
call fcn.004453be
add esp, 4
jmp 0x40c695
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
mov ecx, esi
lea eax, [ebp - 0x354]
push eax
call fcn.004095a0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40c6d1
mov eax, dword [esi]
movzx eax, word [eax + ecx*2 - 2]
cmp eax, 0x5c
je 0x40c6d1
cmp eax, 0x2f
je 0x40c6d1
cmp dword [esi + 8], ecx
jne 0x40c6b9
mov ecx, esi
call fcn.004092b0
mov ecx, dword [esi + 4]
mov edx, 0x5c
mov eax, dword [esi]
mov word [eax + ecx*2], dx
inc ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [esi + 4], ecx
test edi, edi
je 0x40c6e1
cmp edi, 0x114
jae 0x40c6e1
mov al, 1
jmp 0x40c6e3
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00444258
mov esp, ebp
pop ebp
ret
Function at 0x40d0d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x46ec01], 0
jne 0x40d106
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00409a80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004453be
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x40db10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, 0x400000
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebx], 0
mov edi, edi
push 0
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x40db78
test ecx, ecx
je 0x40db6d
add edi, ecx
mov edx, 0x400000
sub esi, ecx
mov ecx, dword [ebp - 4]
jne 0x40db30
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40db90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, 0x400000
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebx], 0
mov edi, edi
cmp esi, 0x400000
mov dword [ebp + 0x10], 0
push 0
mov eax, esi
cmova eax, edx
lea edx, [ebp + 0x10]
push edx
push eax
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x40dbf8
test ecx, ecx
je 0x40dbed
add edi, ecx
mov edx, 0x400000
sub esi, ecx
mov ecx, dword [ebp - 4]
jne 0x40dbb0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41a580
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.00445059
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x41a5ae
xor eax, eax
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x420360
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d627
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x46c2f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x10], 0
mov dword [esi], 0x466894
mov dword [esi + 4], 0x466860
mov dword [esi + 8], 0x466874
mov dword [esi + 0xc], 0x46684c
mov byte [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
push 8
mov dword [esi + 0x44], 0
call fcn.00445286
xor ecx, ecx
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 3
mov word [eax], cx
mov byte [ebp - 4], 3
push 8
mov dword [esi + 0x50], ecx
call fcn.00445286
xor ecx, ecx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], 0
add esp, 8
mov dword [esi + 0x58], 3
mov word [eax], cx
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 4
call fcn.0040bc10
mov dword [esi + 0x98], 0
mov eax, esi
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0xffffffff
mov dword [esi + 0xa8], 0xffffffff
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0x54fffc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x422880
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d9ae
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x46c2f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 2
push dword [esi + 0xcc]
call fcn.004453be
push dword [esi + 0xc0]
call fcn.004453be
push dword [esi + 0x9c]
call fcn.004453be
push dword [esi + 0x90]
call fcn.004453be
push dword [esi + 0x30]
call fcn.004453be
push dword [esi + 0x24]
call fcn.004453be
push dword [esi + 0x18]
call fcn.004453be
mov ecx, dword [esi + 0xc]
add esp, 0x1c
test ecx, ecx
je 0x422904
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 1
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x422915
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov byte [ebp - 4], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x422926
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [esi]
test ecx, ecx
je 0x422939
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret