joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a048
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x40a050
xor eax, eax
push ebp
push 0x40a1a0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, 0x40a1b4
call fcn.004080d0
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.004040bc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00408228
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.00403b0c
lea eax, [ebp - 0x18]
call fcn.00407f14
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
mov ecx, 0x40a1c4
call fcn.00404148
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00407cdc
test al, al
je 0x40a118
lea eax, [ebp - 0x20]
call fcn.00408760
lea eax, [ebp - 0x20]
mov edx, 0x40a1f0
call fcn.00403b28
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
call fcn.004040bc
mov eax, dword [ebp - 0x1c]
call fcn.00407cac
test al, al
je 0x40a100
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 4]
mov edx, 0x40a200
call fcn.00404148
mov eax, dword [ebp - 0x24]
call fcn.00407b70
jmp 0x40a118
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 4]
mov edx, 0x40a224
call fcn.00404148
mov eax, dword [ebp - 0x28]
call fcn.00407b70
push 0x32
call sub.KERNEL32.DLL_Sleep
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 4]
call fcn.00403b0c
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.004046ec
mov eax, dword [ebp - 0x2c]
call fcn.004040cc
push eax
call sub.KERNEL32.DLL_DeleteFileW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a1a7
lea eax, [ebp - 0x30]
call fcn.004038b0
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00403efc
lea eax, [ebp - 0x20]
call fcn.004038b0
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00403efc
lea eax, [ebp - 0x14]
call fcn.004038b0
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00403efc
lea eax, [ebp - 8]
call fcn.004038b0
lea eax, [ebp - 4]
call fcn.00403ee4
ret
Function at 0x40a304
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x40a409
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x42a948]
call fcn.00407cac
test al, al
je 0x40a3d3
push 0x80
mov eax, dword [0x42a948]
call fcn.004040cc
push eax
call sub.KERNEL32.DLL_SetFileAttributesW
lea eax, [ebp - 4]
mov ecx, 0x40a418
mov edx, dword [0x42a948]
call fcn.00404148
mov eax, dword [ebp - 4]
call fcn.00407cac
test al, al
je 0x40a39e
lea eax, [ebp - 0xc]
mov ecx, 0x40a418
mov edx, dword [0x42a948]
call fcn.00404148
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00408bc4
mov eax, dword [ebp - 8]
push eax
lea edx, [ebp - 0x10]
mov eax, dword [0x42a948]
call fcn.00408bc4
mov eax, dword [ebp - 0x10]
pop edx
call fcn.00408efc
test al, al
jne 0x40a3d3
push 0
lea eax, [ebp - 0x14]
mov ecx, 0x40a418
mov edx, dword [0x42a948]
call fcn.00404148
mov eax, dword [ebp - 0x14]
call fcn.004040cc
push eax
mov eax, dword [0x42a948]
call fcn.004040cc
push eax
call sub.KERNEL32.DLL_CopyFileW
push 0x63
call sub.KERNEL32.DLL_Sleep
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a410
lea eax, [ebp - 0x14]
call fcn.00403ee4
lea eax, [ebp - 0x10]
call fcn.004038b0
lea eax, [ebp - 0xc]
call fcn.00403ee4
lea eax, [ebp - 8]
call fcn.004038b0
lea eax, [ebp - 4]
call fcn.00403ee4
ret

Function at 0x40a7e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x40a7e8
push ecx
xor eax, eax
push ebp
push 0x40a912
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00407f14
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x40a924
call fcn.00404148
lea eax, [ebp - 0x10]
mov edx, dword [0x42a950]
call fcn.004040bc
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x1c]
mov eax, 0x40a944
call fcn.004080d0
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
call fcn.004040bc
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00408228
mov edx, dword [ebp - 0x14]
pop eax
call fcn.004040e8
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.00403b0c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00407cdc
test al, al
je 0x40a8c0
push 0
push 0x40a950
push dword [ebp - 4]
push 0x40a970
lea edx, [ebp - 0x2c]
xor eax, eax
call fcn.00402b74
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
call fcn.004040bc
push dword [ebp - 0x28]
push 0x40a990
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.004041b0
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00407b24
mov eax, dword [ebp - 0x20]
call fcn.00403d20
push eax
call sub.KERNEL32.DLL_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a919
lea eax, [ebp - 0x2c]
call fcn.004038b0
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00403efc
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004038d4
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00403efc
lea eax, [ebp - 0xc]
call fcn.004038b0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403efc
ret
Function at 0x40ad60
Capabilities:
Print debug messages

Disassembly:
push ebx
push ecx
mov eax, 0x40aedc
call fcn.0040840c
test al, al
je 0x40ad7f
call fcn.0040a048
push 0x40aee8
call sub.KERNEL32.DLL_OutputDebugStringA
mov eax, 0x40af04
call fcn.0040840c
test al, al
je 0x40adbb
push 0
push 0
lea eax, [esp + 8]
push eax
mov ecx, fcn.004099bc
xor edx, edx
xor eax, eax
call fcn.0040386c
push eax
call sub.KERNEL32.DLL_CloseHandle
push 0x1f4
call sub.KERNEL32.DLL_Sleep
push 0
call sub.KERNEL32.DLL_ExitProcess_1
mov eax, 0x40af1c
call fcn.0040840c
test al, al
je 0x40add0
mov byte [0x40d0a8], 1
mov eax, 0x40af30
call fcn.0040840c
test al, al
je 0x40ade5
mov byte [0x40d0ac], 0
call fcn.0040a994
mov eax, 0x40af44
call fcn.0040840c
test al, al
je 0x40ae24
push 0
push 0
lea eax, [esp + 8]
push eax
mov ecx, 0x40a244
xor edx, edx
xor eax, eax
call fcn.0040386c
push eax
call sub.KERNEL32.DLL_CloseHandle
push 0x40af50
call sub.KERNEL32.DLL_OutputDebugStringA
jmp 0x40aebe
mov eax, 0x40af6c
call fcn.0040840c
test al, al
je 0x40ae4f
push 0
push 0
lea eax, [esp + 8]
push eax
mov ecx, fcn.0040a508
xor edx, edx
xor eax, eax
call fcn.0040386c
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, 0x40af80
call fcn.0040840c
test al, al
jne 0x40ae62
call fcn.0040a304
mov eax, 0x40af90
call fcn.0040840c
test al, al
jne 0x40ae75
call fcn.00409dec
mov edx, 1
xor eax, eax
call fcn.004093f0
mov ebx, eax
mov edx, 2
xor eax, eax
call fcn.004093f0
or ebx, eax
mov eax, ebx
cmp eax, 1
jne 0x40aea4
push 0x40af98
call sub.KERNEL32.DLL_OutputDebugStringA
jmp 0x40aebe
test eax, eax
jne 0x40aeb4
push 0x40afa8
call sub.KERNEL32.DLL_OutputDebugStringA
jmp 0x40aebe
push 0x40afbc
call sub.KERNEL32.DLL_OutputDebugStringA
mov eax, 0x40afd8
call fcn.0040840c
test al, al
je 0x40aed1
call fcn.0040a7e0
pop edx
pop ebx
ret
Function at 0x4122a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
jmp 0x4122ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4122c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4122b0
mov eax, 1
add ebx, ebx
jne 0x4122d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4122c8
jne 0x4122e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4122c8
xor ecx, ecx
sub eax, 3
jb 0x4122f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41236a
mov ebp, eax
add ebx, ebx
jne 0x412303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x412310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x412334
inc ecx
add ebx, ebx
jne 0x412320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x412315
jne 0x412331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x412354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x412345
jmp 0x4122b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x412354
add edi, ecx
jmp 0x4122b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x412372
cmp byte [edi], 2
jne 0x412372
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x412377
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x4123e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1203c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4123a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12044]
or eax, eax
je 0x4123e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4123c1
call dword [esi + 0x12040]
mov ebp, dword [esi + 0x12048]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x12441]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x412432
sub esp, 0xffffff80
jmp 0x4012e0
Function at 0x401fde
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
shr edi, 2
xor ebx, ebx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
mov ecx, ebx
add eax, 3
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x402015
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x402008
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jne 0x402083
movzx eax, dl
mov ebx, dword [ebp - 4]
push 0x1b
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
xor edx, ebx
add ebx, ebx
or edx, ecx
test ebx, 0x100
pop eax
cmovne ebx, eax
mov dword [ebp - 4], ebx
mov ebx, edi
jmp 0x4020d0
cmp ebx, 4
jne 0x4020d3
cmp edi, 6
jbe 0x4020d3
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
or edx, ecx
mov eax, dword [ebp + 8]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x402024
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402db5
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x451094]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402dfe
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402dfe
push 0xc00
call eax
test eax, eax
jne 0x402e9a
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402e9a
cmp eax, 0x104
ja 0x402e9a
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x402e35
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
mov cl, byte [str.userenv]
push esi
mov esi, str.userenv
test cl, cl
je 0x402e99
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov edx, edi
inc esi
movzx eax, cl
mov cl, byte [esi]
inc esi
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x402e56
push 0x2e
pop eax
push 0x64
mov word [edx], ax
pop eax
mov word [edx + 2], ax
xor eax, eax
push 8
push eax
mov word [edx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [edx + 4], bx
mov word [edx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov cl, byte [esi]
test cl, cl
jne 0x402e53
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00433e1a
leave
ret
Function at 0x407b9d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.00438ef7
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x407bc9
call fcn.00407aaf
mov esi, eax
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x409dd6
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x442890
call fcn.004340ea
cmp byte [0x457a10], 0
mov edi, dword [ebp + 8]
jne 0x409e12
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00408d21
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.004340a5
pop ecx
test esi, esi
jmp 0x409e1e
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x409e24
mov al, 1
jmp 0x409e6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x409e35
xor al, al
jmp 0x409e6a
lea ecx, [ebp - 0x50]
call fcn.0040a658
lea ecx, [ebp - 0x28]
call fcn.00408099
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040a872
test al, al
je 0x409e5f
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.004340a5
pop ecx
mov al, bl
call fcn.004340b8
ret 4

Function at 0x409e72
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x457a10], 0
jne 0x409ea8
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408d21
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004340a5
pop ecx
test esi, esi
pop esi
jmp 0x409eb5
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x409ebb
mov al, 1
jmp 0x409ebd
xor al, al
leave
ret 4

Function at 0x40a035
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040aea4
cmp eax, 0xffffffff
je 0x40a062
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x40a062
and eax, 0xfffffffe
push eax
push esi
call fcn.0040a5ca
test al, al
je 0x40a09a
cmp byte [0x457a10], 0
push esi
jne 0x40a08c
lea eax, [ebp - 0xc]
push eax
call fcn.00408d21
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004340a5
pop ecx
test esi, esi
jmp 0x40a094
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40a09a
mov al, 1
jmp 0x40a09c
xor al, al
pop esi
leave
ret 4

Function at 0x40a315
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x457a10], 0
jne 0x40a349
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408d21
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004340a5
pop ecx
test esi, esi
pop esi
jmp 0x40a354
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40a35a
mov al, 1
jmp 0x40a35c
xor al, al
leave
ret 4
Function at 0x40a524
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x457a10], 0
jne 0x40a558
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408d21
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004340a5
pop ecx
test esi, esi
pop esi
jmp 0x40a563
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
leave
ret 4

Function at 0x40a5ca
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x457a10], 0
jne 0x40a601
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408d21
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004340a5
pop ecx
test esi, esi
pop esi
jmp 0x40a60f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40a615
mov al, 1
jmp 0x40a617
xor al, al
leave
ret 8

Function at 0x40aea4
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x457a10], 0
jne 0x40aed8
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408d21
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004340a5
pop ecx
mov eax, esi
pop esi
jmp 0x40aeeb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
leave
ret 4

Function at 0x40b0cc
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b0f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40b0f6
xor al, al
jmp 0x40b10a
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x418a6f
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4436b4
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x451094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0xa8]
call fcn.00418b21
lea ecx, [esi + 0x78]
call fcn.00418b21
push dword [esi + 0x30]
call fcn.004340a5
push dword [esi + 0x24]
call fcn.004340a5
push dword [esi + 0x18]
call fcn.004340a5
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x418ad3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 8]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x418ae7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 4]
mov dword [ebp - 4], 2
test ecx, ecx
je 0x418afb
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x418b0e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret
Function at 0x41b3b1
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442ffe
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x451094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0041a4d7
lea ecx, [esi + 0x30]
call fcn.00418b21
push dword [esi + 0x24]
call fcn.004340a5
pop ecx
lea ecx, [esi + 0xc]
call fcn.00407bf2
mov ecx, esi
call fcn.0041b377
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret

Function at 0x41ba5a
Capabilities:
Hide graphical window

Disassembly:
push 0xc
mov eax, 0x4425be
call fcn.004340ea
mov esi, ecx
push 0
push dword [ebp + 0xc]
lea ecx, [esi + 0x68]
push dword [ebp + 8]
call fcn.0041b5b3
push 0xce4
lea eax, [ebp - 0x18]
push eax
call fcn.0040bdf3
push dword [ebp - 0x18]
and dword [ebp - 4], 0
push dword [esi + 0x6c]
call fcn.0040c10e
push dword [ebp - 0x18]
call fcn.004340a5
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
call fcn.004340b8
ret 8
Function at 0x433064
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x451094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push 0x208
push esi
push eax
call fcn.00435640
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x433100
push edi
push esi
call fcn.00433285
push dword [edi]
and dword [ebp - 0x210], 0
call fcn.0043409c
pop ecx
push 0
lea ecx, [ebp - 0x210]
mov dword [ebx], eax
push ecx
push dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00433e1a
leave
ret 8

Function at 0x433285
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4332b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4332b0
xor al, al
jmp 0x4332c4
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 8
Function at 0x43977e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4397bd
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4397bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4397bd
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4397bd
cmp dword [ecx + 0x74], 0xe
jbe 0x4397bd
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x43d537
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x43d5d4
push ebx
push esi
call fcn.0043d500
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0043bbfd
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43d581
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43d5d3
push edi
push eax
call fcn.0043b7f0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43d5a1
call fcn.0043b7a0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43d5d2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0043bbfd
add esp, 0x20
test eax, eax
jne 0x43d5c0
push edi
call fcn.0043b7a0
jmp 0x43d5c8
push ebx
call fcn.0043b7a0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret