joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491710
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
push esi
mov esi, dword [esp + 0x120]
push 0x51f8e4
call fcn.00404690
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
jne 0x491799
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x51f8c8
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
pop esi
pop ebp
mov eax, 0xb4
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004b6da3
add esp, 0x110
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push 1
push ebp
call esi
push 2
mov edi, eax
push ebp
mov dword [esp + 0x1c], edi
call esi
mov dword [esp + 0x10], eax
test edi, edi
jne 0x4917e1
push 0x51f8a0
call fcn.00404690
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0xb4
jmp 0x491907
push 0x51f890
call fcn.00404690
push eax
push 0x527e20
call fcn.00401350
push 0x103
lea eax, [esp + 0x29]
push 0
push eax
mov byte [esp + 0x30], 0
call fcn.004b6dc0
add esp, 0x18
lea ecx, [esp + 0x18]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x51f874
call fcn.00404690
add esp, 4
mov esi, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x491830
lea edi, [esp + 0x18]
sub eax, esi
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x491840
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x18]
and ecx, 3
push 0
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.004ba516
add esp, 8
cmp eax, 0xffffffff
jne 0x491871
mov byte [0x549074], 1
xor eax, eax
cmp dword [ebx + 0x31c], eax
je 0x491880
mov eax, 2
cmp byte [0x548f23], 0
je 0x49188c
or eax, 1
cmp byte [0x548f57], 0
je 0x491898
or eax, 4
push 1
push eax
lea eax, [ebx + 0x218]
push eax
lea ecx, [ebx + 0x1d8]
push ecx
lea edx, [ebx + 0xd4]
push edx
lea eax, [ebx + 0x94]
push eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [esp + 0x38]
mov esi, eax
mov eax, dword [esp + 0x34]
add esp, 0x24
test eax, eax
je 0x4918e2
push 0x53d088
push esi
call eax
add esp, 8
mov dword [0x54906c], eax
push esi
push 0x51f85c
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b6da3
add esp, 0x110
ret
Function at 0x492220
Capabilities:
Resume thread

Disassembly:
cmp byte [0x54a134], 0
je 0x49225c
mov eax, dword [0x548d4c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, eax
push esi
push 0x51fbf0
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
test esi, esi
pop esi
jge 0x49225c
xor al, al
ret
mov al, 1
ret

Function at 0x492260
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4fefab
mov eax, dword fs:[0]
push eax
sub esp, 0x8fc
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x8f8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52e144]
xor eax, esp
push eax
lea eax, [esp + 0x910]
mov dword fs:[0], eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x8005
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [esp + 0x23c]
call fcn.00409050
mov ecx, dword [0x53cedc]
lea eax, [esp + 0x808]
push eax
push ecx
lea ecx, [esp + 0x244]
mov dword [esp + 0x920], esi
call fcn.00408840
call fcn.00491fb0
test al, al
jne 0x492304
lea ecx, [esp + 0x23c]
mov dword [esp + 0x918], 0xffffffff
call fcn.004085c0
xor al, al
jmp 0x492479
push 0x220
lea edx, [esp + 0x20]
push esi
push edx
mov dword [esp + 0x24], esi
call fcn.004b6dc0
mov eax, dword [0x53cedc]
add esp, 0xc
push eax
push 8
call dword [0x548d20]
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, 0xffffffff
je 0x4922e6
lea ecx, [esp + 0x18]
push ecx
push ebx
mov dword [esp + 0x20], 0x224
call dword [0x548d2c]
test eax, eax
je 0x492459
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esp, [esp]
mov dl, byte [esp + 0x808]
cmp dl, byte [esp + 0x138]
je 0x4923fa
lea eax, [esp + 0x138]
push eax
call edi
cmp eax, 0xffffffff
je 0x492388
cmp eax, 1
jne 0x4923fa
call ebp
mov esi, eax
test esi, esi
je 0x4923ac
push esi
push 0x51fc5c
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
cmp dword [esp + 0x2c], 0x10000000
jne 0x4923fa
push 0x51fc48
xor bl, bl
call fcn.00404690
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.004bab59
add esp, 0xc
test eax, eax
jne 0x4923d6
mov bl, 1
push 0x51fc38
call fcn.00404690
push eax
lea edx, [esp + 0x40]
push edx
call fcn.004bab59
add esp, 0xc
test eax, eax
je 0x4923f6
test bl, bl
je 0x492410
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ebx
call dword [0x548d30]
test eax, eax
jne 0x492360
jmp 0x492459
mov edx, dword [0x538370]
lea ecx, [esp + 0x138]
push ecx
push edx
push esi
push 0x51fc00
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
push 1
push 4
push 0x630
push 0x8b1
mov byte [0x53bc84], 0
call fcn.00417130
mov ebx, dword [esp + 0x38]
add esp, 0x24
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x23c]
mov dword [esp + 0x918], 0xffffffff
call fcn.004085c0
mov al, 1
mov ecx, dword [esp + 0x910]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8f8]
xor ecx, esp
call fcn.004b6da3
add esp, 0x908
ret
Function at 0x493720
Capabilities:
Create thread
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ff028
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52e144]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
cmp byte [0x53788f], 0
mov dword [esp + 0x18], 0x538898
sete bl
mov byte [esp + 0x1c], bl
cmp bl, 1
jne 0x493776
cmp dword [0x5388b0], 0
je 0x493776
push 0x538898
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x4c], 0
jmp 0x493790
cmp byte [0x537dfe], 0
je 0x4937b3
push 0x51ffb8
call fcn.00404690
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
jmp 0x493806
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [esp + 0x34]
test esi, esi
jle 0x4937f4
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x493710
push 0
push 0
call ebp
test eax, eax
je 0x4937f4
push 0xf
push eax
call edi
dec esi
test esi, esi
jg 0x4937d2
jmp 0x493806
cmp bl, 1
jne 0x49381f
cmp dword [0x5388b0], 0
je 0x49381f
push 0x538898
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret

Function at 0x493840
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
test esi, esi
je 0x49394c
cmp byte [esi], 0
je 0x49394c
push ebx
push 0x3a
push esi
call fcn.004b9510
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x493875
pop ebx
pop esi
pop ecx
ret
sub eax, esi
cmp eax, 1
jl 0x49387d
dec ebx
push ebp
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x493943
push 0
push 0
push 0
push 2
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x49393c
push edi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x493930
mov ecx, 0x5a4d
cmp word [esi], cx
jne 0x493929
mov eax, dword [esi + 0x3c]
cmp edi, eax
jbe 0x493901
cmp dword [eax + esi], 0x4550
jne 0x493929
mov edx, dword [eax + esi + 8]
mov dword [esp + 0x10], edx
jmp 0x493929
push eax
push esi
push edi
push esi
push ebx
push 0x51ffd0
mov dword [esp + 0x28], 0
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret
Function at 0x493e80
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x10
push 0xf0000000
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x17], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x493f3b
mov edx, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x493f2e
mov edx, dword [esp + 0x14]
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x493ee4
push 0
sub eax, esi
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
pop esi
test eax, eax
je 0x493f23
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 4]
push 0
lea ecx, [esp + 0x10]
push ecx
push edx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x493f23
mov byte [esp + 3], 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [esp + 8]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [esp + 3]
add esp, 0x10
ret
Function at 0x494fe0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4ff09b
mov eax, dword fs:[0]
push eax
sub esp, 0x5d8
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x5d4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52e144]
xor eax, esp
push eax
lea eax, [esp + 0x5ec]
mov dword fs:[0], eax
mov eax, dword [esp + 0x5fc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x495241
cmp byte [eax], 0
je 0x495241
push 0x520680
call fcn.00404690
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x52066c
mov esi, eax
call fcn.00404690
add esp, 4
push eax
push esi
call fcn.0040fed0
mov ebx, eax
test ebx, ebx
je 0x495241
lea ecx, [esp + 0x1c]
call fcn.00409050
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x5f8], 0
call fcn.00409480
test eax, eax
je 0x495229
mov ebp, dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
jmp 0x4950a0
mov eax, dword [esp + 0x128]
test eax, eax
je 0x495218
push eax
call fcn.0043d1a0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4950ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x12c]
push eax
push 0x51f0c4
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x10
jmp 0x495218
cmp dword [0x537f30], 0
je 0x495115
lea ecx, [esp + 0x14]
push ecx
push edi
mov dword [esp + 0x1c], 0
call dword [0x5385f8]
cmp dword [esp + 0x14], 0
je 0x495211
mov edx, dword [esp + 0x128]
push 0
push edx
lea ecx, [esp + 0x24]
call fcn.00409690
test eax, eax
je 0x495211
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x138]
push eax
push ecx
call fcn.004bab59
add esp, 8
test eax, eax
jne 0x4951f8
mov eax, dword [esp + 0x128]
lea edx, [esp + 0x138]
push edx
push eax
push 0x52065c
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
mov ecx, dword [esp + 0x250]
add esp, 0x10
push 0
push 0
push ecx
push ebx
push 0
push 0
push edi
call ebp
mov esi, eax
test esi, esi
je 0x4951ce
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4951c5
mov edx, dword [esp + 0x240]
push edx
push 0x520638
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4951f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x244]
push eax
push 0x52060c
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x10
mov ecx, dword [esp + 0x128]
push ecx
lea ecx, [esp + 0x20]
call fcn.00409840
test eax, eax
jne 0x495130
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x1c]
call fcn.004095f0
test eax, eax
jne 0x4950a0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x5f4], 0xffffffff
call fcn.004085c0
mov al, 1
jmp 0x495243
xor al, al
mov ecx, dword [esp + 0x5ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5d4]
xor ecx, esp
call fcn.004b6da3
add esp, 0x5e4
ret
Function at 0x495cd0
Capabilities:
Resume thread
Suspend thread

Disassembly:
sub esp, 0x2d0
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x2cc], eax
push ebx
push ebp
push esi
push edi
push 0x2cc
lea eax, [esp + 0x14]
push 0
push eax
xor bl, bl
call fcn.004b6dc0
add esp, 0xc
jmp 0x495d10
mov ebp, dword [esp + 0x2e4]
push ebp
push 0
push 0x1fffff
mov dword [esp + 0x1c], 0x10010
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x495db2
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
push esi
test eax, eax
je 0x495da5
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
test ecx, ecx
jne 0x495d78
test edi, edi
jne 0x495d78
test esi, esi
jne 0x495d78
test edx, edx
je 0x495db2
mov eax, dword [esp + 0x28]
test eax, eax
je 0x495db2
push eax
push edx
push esi
push edi
push ecx
push ebp
push 0x52081c
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x20
mov bl, 1
jmp 0x495db2
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x495dc4
mov ecx, dword [esp + 0x2dc]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.004b6da3
add esp, 0x2d0
ret
Function at 0x499e30
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x14
push edi
mov edi, dword [esp + 0x1c]
mov eax, 0x5a4d
mov dword [esp + 4], 1
cmp word [edi], ax
je 0x499e51
xor al, al
pop edi
add esp, 0x14
ret
mov edx, dword [edi + 0x3c]
add edx, edi
cmp dword [edx], 0x4550
jne 0x499e4a
push esi
mov esi, dword [edx + 0xa0]
test esi, esi
je 0x499e9c
lea ecx, [edx + 0xf8]
movzx edx, word [edx + 6]
xor eax, eax
test edx, edx
jbe 0x499e9c
lea esp, [esp]
cmp dword [ecx + 0xc], esi
je 0x499e95
inc eax
add ecx, 0x28
cmp eax, edx
jb 0x499e80
pop esi
xor al, al
pop edi
add esp, 0x14
ret
mov esi, dword [ecx + 0x14]
add esi, edi
jne 0x499ea4
pop esi
xor al, al
pop edi
add esp, 0x14
ret
mov ecx, dword [0x5490ac]
mov eax, dword [0x5490a8]
push ebx
push ebp
mov ebp, ecx
cmp eax, ecx
jbe 0x499ec7
call fcn.004b7c48
mov ecx, dword [0x5490ac]
mov eax, dword [0x5490a8]
mov edi, dword [0x54909c]
mov ebx, eax
cmp eax, ecx
jbe 0x499ed8
call fcn.004b7c48
mov ecx, dword [0x54909c]
push ebp
push edi
push ebx
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, 0x54909c
call fcn.0041f880
mov edi, dword [0x5490ac]
xor ebx, ebx
cmp dword [esp + 0x10], ebx
jne 0x499f07
cmp dword [esi], ebx
je 0x499fc1
mov ecx, dword [esi + 4]
sub ecx, 8
lea eax, [esi + 8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], eax
test ecx, 0xfffffffe
jbe 0x499fb9
mov edx, dword [esp + 0x28]
movzx eax, word [edx]
mov ecx, eax
and ecx, 0xf000
cmp ecx, 0x3000
jne 0x499fa3
mov edx, dword [0x5490a8]
and eax, 0xfff
add eax, dword [esi]
mov dword [esp + 0x14], eax
test edx, edx
jne 0x499f54
xor ecx, ecx
jmp 0x499f5f
mov ecx, dword [0x5490b0]
sub ecx, edx
sar ecx, 2
mov ebp, edi
sub ebp, edx
sar ebp, 2
cmp ebp, ecx
jae 0x499f79
mov ecx, edi
mov dword [edi], eax
lea edi, [ecx + 4]
mov dword [0x5490ac], edi
jmp 0x499fa3
cmp edx, edi
jbe 0x499f82
call fcn.004b7c48
mov eax, dword [0x54909c]
lea edx, [esp + 0x14]
push edx
push edi
push eax
lea eax, [esp + 0x28]
push eax
mov ecx, 0x54909c
call fcn.00407ff0
mov edi, dword [0x5490ac]
mov ecx, dword [esi + 4]
add dword [esp + 0x28], 2
sub ecx, 8
inc ebx
shr ecx, 1
cmp ebx, ecx
jb 0x499f24
add esi, dword [esi + 4]
jmp 0x499ef7
lea edx, [esp + 0x28]
push edx
mov ecx, 0x54909c
mov dword [esp + 0x2c], ebx
call fcn.004080a0
pop ebp
pop ebx
pop esi
mov al, 1
pop edi
add esp, 0x14
ret
Function at 0x4a5790
Capabilities:
Parse pe header

Disassembly:
push ecx
push ebx
push ebp
push esi
mov eax, 1
mov ebx, 2
push edi
mov esi, ecx
mov dword [esp + 0x10], 0
mov edi, closesocket
lea ebp, [ebx + 2]
cmp dword [esp + 0x1c], eax
jne 0x4a57c4
mov ebx, ebp
mov edi, 0xc0000000
lea ebp, [ebx + 2]
mov dword [esi + 0x14], eax
cmp dword [esp + 0x20], eax
jne 0x4a57d2
mov dword [esp + 0x10], 7
call fcn.004a5640
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push 0
push 0x80
push 3
push 0
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4a5810
mov ecx, esi
mov edi, 0xc8
call fcn.004a5640
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
push 0
push 0
push 0
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 4], eax
test eax, eax
jne 0x4a583d
mov ecx, esi
mov edi, 0xc9
call fcn.004a5640
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
push 0
push 0
push 0
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
jne 0x4a5868
mov ecx, esi
mov edi, 0xca
call fcn.004a5640
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov ecx, esi
call fcn.004a56a0
mov edx, 0x5a4d
mov dword [esi + 0x18], eax
cmp word [eax], dx
jne 0x4a58ee
call fcn.004a56b0
mov dword [esi + 0x1c], eax
cmp dword [eax], 0x4550
jne 0x4a58ee
movzx edx, word [eax + 0x18]
lea ecx, [eax + 0x18]
mov edi, 0x10b
cmp dx, di
jne 0x4a58ac
mov dword [esi + 0x24], ecx
mov dword [esi + 0x10], 0
add ecx, 0x60
jmp 0x4a58c3
mov edi, 0x20b
cmp dx, di
jne 0x4a58ee
mov dword [esi + 0x28], ecx
mov dword [esi + 0x10], 1
add ecx, 0x70
mov dword [esi + 0x30], ecx
lea ecx, [eax + 4]
mov dword [esi + 0x20], ecx
movzx ecx, word [ecx + 0x10]
lea edx, [ecx + eax + 0x18]
mov eax, dword [esp + 0x24]
mov dword [esi + 0x2c], edx
test eax, eax
je 0x4a58e4
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0x10
mov ecx, esi
mov edi, 0x64
call fcn.004a5640
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
Function at 0x4aad30
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x34c
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x348], eax
lea eax, [esp + 0x244]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x244]
mov byte [esp + eax + 0x140], cl
inc eax
test cl, cl
jne 0x4aad60
push 0x523100
call fcn.00404690
add esp, 4
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4aad82
push ebx
push esi
push edi
lea edi, [esp + 0x14c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4aad96
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4aae5b
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4aade0
xor eax, eax
jmp 0x4aadf0
mov cl, byte [esp + eax + 0x254]
mov byte [esp + eax + 0x150], cl
inc eax
test cl, cl
jne 0x4aadf0
lea eax, [esp + 0x3c]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4aae10
lea edi, [esp + 0x150]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4aae21
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x150]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
lea ecx, [esp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4aade0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
mov ecx, dword [esp + 0x354]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b6da3
add esp, 0x34c
ret
Function at 0x4aae80
Capabilities:
Copy file
Get common file path
Parse pe header
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x248
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push ebp
mov ebp, dword [esp + 0x254]
mov ebx, ecx
cmp dword [ebx], 0
push esi
push edi
mov dword [esp + 0x14], ebp
je 0x4aaeaf
call fcn.004aacf0
push 0x104
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x150]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4aaed0
mov cx, word [0x50e37c]
mov eax, ebp
mov word [edi], cx
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4aaee6
lea edi, [esp + 0x150]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4aaef7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 4]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
push 0
push 0x52310c
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push esi
lea edx, [esp + 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4ab002
push 0
lea eax, [esp + 0x14]
push eax
push 0x40
lea ecx, [esp + 0x11c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, 0x5a4d
cmp word [esp + 0x110], dx
jne 0x4aaff7
mov eax, dword [esp + 0x14c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push eax
push edi
call ebp
push 0
lea ecx, [esp + 0x14]
push ecx
push 0xf8
lea edx, [esp + 0x24]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], 0x4550
jne 0x4aaff7
cmp dword [esp + 0x4c], 0x80000000
jbe 0x4aaff7
mov eax, dword [esp + 0x14c]
push 0
push 0
push eax
push edi
mov dword [esp + 0x5c], 0x10000000
call ebp
push 0
lea ecx, [esp + 0x14]
push ecx
push 0xf8
lea edx, [esp + 0x24]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
push 8
push 0
push esi
call edi
mov dword [ebx], eax
test eax, eax
je 0x4ab01c
mov eax, 1
jmp 0x4ab031
push 8
push 0
push ebp
mov byte [esi], 0
call edi
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebx], eax
mov eax, ecx
mov ecx, dword [esp + 0x254]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b6da3
add esp, 0x248
ret 4