joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44aaf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x58
push esi
mov esi, ecx
cmp eax, 0xffffffff
jne 0x44ab03
xor eax, eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x44ab37
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.00459e65
test al, al
jne 0x44ab66
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x58]
call fcn.0043737d
push 0x4caebc
lea eax, [ebp - 0x58]
push eax
call fcn.004647da
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44ab66
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x54]
call fcn.00437292
push 0x4caeac
lea eax, [ebp - 0x54]
jmp 0x44ab31
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x44cef2
Capabilities:
Check if file exists

Disassembly:
push 0xd4
mov eax, 0x4a85ac
call fcn.00464739
and dword [ebp - 4], 0
mov bl, 0x10
test byte [ebp + 0x3c], bl
je 0x44cf4a
lea ecx, [ebp + 8]
call fcn.0043d230
test al, al
je 0x44cf4a
push dword [ebp + 0x3c]
lea eax, [ebp + 8]
sub esp, 0x34
mov ecx, esp
mov dword [ebp - 0xa8], esp
push 1
push eax
call fcn.004091ca
call fcn.0044b65a
add esp, 0x38
mov bl, al
lea ecx, [ebp + 8]
call fcn.004016f0
mov al, bl
jmp 0x44d0ac
sub esp, 0x34
mov ecx, esp
mov dword [ebp - 0xa8], esp
push 1
lea eax, [ebp + 8]
push eax
call fcn.004091ca
call fcn.00447c1c
add esp, 0x34
cmp eax, 0xffffffff
je 0x44cf89
test byte [ebp + 0x3c], 4
je 0x44cf77
test bl, al
je 0x44cf81
test byte [ebp + 0x3c], 8
je 0x44cf85
test bl, al
je 0x44cf85
mov bl, 1
jmp 0x44cf3b
xor bl, bl
jmp 0x44cf3b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, eax
cmp edi, 2
je 0x44d0a2
cmp edi, 3
je 0x44d0a2
cmp edi, 5
jne 0x44d063
lea ecx, [ebp - 0xa4]
call fcn.004474c8
or dword [ebp - 0xa8], 0xffffffff
lea eax, [ebp - 0xa4]
push eax
sub esp, 0x34
mov ecx, esp
mov dword [ebp - 0xac], esp
push 1
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.004091ca
call fcn.0044c7ad
add esp, 0x38
push eax
lea ecx, [ebp - 0xa8]
call fcn.00420548
cmp dword [ebp - 0xa8], 0xffffffff
je 0x44d040
test byte [ebp + 0x3c], 4
je 0x44d00c
test byte [ebp - 0xa4], bl
je 0x44d01a
test byte [ebp + 0x3c], 8
je 0x44d01e
test byte [ebp - 0xa4], bl
je 0x44d01e
mov bl, 1
jmp 0x44d020
xor bl, bl
lea ecx, [ebp - 0xa8]
call fcn.0041fd86
lea ecx, [ebp - 0x44]
call fcn.004016f0
lea ecx, [ebp - 0x78]
call fcn.004016f0
jmp 0x44cf3b
call esi
lea ecx, [ebp - 0xa8]
mov edi, eax
call fcn.0041fd86
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.004016f0
lea ecx, [ebp - 0x78]
call fcn.004016f0
test byte [ebp + 0x3c], 0x20
je 0x44cf85
push 1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xe0]
call fcn.00437244
push 1
push edi
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.0043731f
push 0x4caeac
lea eax, [ebp - 0x64]
push eax
call fcn.004647da
lea ecx, [ebp + 8]
call fcn.004016f0
xor al, al
call fcn.004647bc
ret
Function at 0x451e42
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x1c], 8
jb 0x451e4d
mov ecx, dword [ecx + 8]
jmp 0x451e50
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x4523da
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x4523f0
mov dword [ebp + 0xc], 4
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x452425
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x54]
call fcn.00437292
push 0x4caeac
lea eax, [ebp - 0x54]
push eax
call fcn.004647da
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8

Function at 0x45242d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x452443
mov dword [ebp + 0xc], 1
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x452478
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x54]
call fcn.00437292
push 0x4caeac
lea eax, [ebp - 0x54]
push eax
call fcn.004647da
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8

Function at 0x452480
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x58
push esi
mov esi, ecx
cmp eax, 0xffffffff
jne 0x452494
push 4
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4524c8
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.00459e65
test al, al
jne 0x4524f7
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x58]
call fcn.0043737d
push 0x4caebc
lea eax, [ebp - 0x58]
push eax
call fcn.004647da
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4524f7
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x54]
call fcn.00437292
push 0x4caeac
lea eax, [ebp - 0x54]
jmp 0x4524c2
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x452693
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x138
lea ebp, [esp - 4]
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x138], eax
push 0xc
mov eax, 0x4a9531
call fcn.004646d0
mov esi, dword [ebp + 0x144]
xor ebx, ebx
push 0x103
lea eax, [ebp + 0x35]
push ebx
mov dword [ebp - 0x18], ebx
push eax
mov byte [ebp + 0x34], bl
call fcn.00465a60
add esp, 0xc
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x452762
cmp dword [ebp + 0x148], 1
mov dword [ebp - 0x18], 0x104
mov eax, str.CommonFilesDir
je 0x45270f
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp + 0x34]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp]
mov dword [ebp], 0x4b114c
mov dword [ebp + 0x2c], 0x4b1144
call fcn.0041c8cd
push 0x4ae4fc
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.004480f2
lea ecx, [ebp]
call fcn.004525ab
push 1
lea eax, [ebp]
jmp 0x452794
push ebx
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp]
mov dword [ebp], 0x4b114c
mov dword [ebp + 0x2c], 0x4b1144
call fcn.0041c8cd
push 1
push 0x4ae4fc
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.004480f2
push eax
mov ecx, esi
call fcn.00437208
lea ecx, [ebp]
call fcn.004016f0
lea ecx, [ebp - 0x14]
call fcn.00445d45
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x138]
xor ecx, ebp
call fcn.004646c1
add ebp, 0x13c
leave
ret
Function at 0x458dd0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push 8
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x458e4d
call esi
cmp eax, 0x3f0
jne 0x458e33
lea eax, [ebp - 0x10]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x458e46
push 1
push dword [ebp - 0x10]
call fcn.00458daf
pop ecx
pop ecx
jmp 0x458e78
cmp eax, ebx
jne 0x458e4d
push ebx
jmp 0x458e3a
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x458e6c
call esi
cmp eax, 0x7a
je 0x458e86
push ebx
push dword [ebp - 0x10]
call fcn.00458daf
pop ecx
pop ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004646c1
leave
ret
push dword [ebp - 0x18]
call fcn.00465977
pop ecx
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x458ebc
push ebx
push dword [ebp - 0x10]
call fcn.00458daf
pop ecx
pop ecx
push esi
mov bl, al
call fcn.00463f2b
pop ecx
mov al, bl
jmp 0x458e77
lea eax, [ebp - 0x20]
push eax
xor eax, eax
cmp byte [ebp + 8], bl
push ebx
push ebx
sete al
push ebx
push ebx
push ebx
push ebx
dec eax
and eax, 0xfffffffd
add eax, 0x223
push eax
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x458ea4
xor edi, edi
mov byte [ebp - 0x1c], bl
cmp dword [esi], ebx
jbe 0x458f29
lea eax, [esi + 4]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x458f16
add dword [ebp - 0x14], 8
inc edi
cmp edi, dword [esi]
jb 0x458ef9
jmp 0x458f29
cmp byte [ebp + 0xc], bl
je 0x458f25
test byte [esi + edi*8 + 8], 0x10
mov byte [ebp - 0x1c], bl
jne 0x458f29
mov byte [ebp - 0x1c], 1
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x1c]
jmp 0x458ea5
Function at 0x459024
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0x74]
cmp eax, 0x7530
jbe 0x45905c
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x5c], eax
xor eax, eax
mov dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x6c]
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x74], eax
mov ecx, dword [esi + 0x64]
test ecx, ecx
jne 0x459068
mov eax, dword [esi + 0x5c]
jmp 0x4590af
push ebx
push ebp
push 0xa
xor eax, eax
pop edi
xor ebp, ebp
test eax, eax
jne 0x4590ad
or eax, 0xffffffff
xor edx, edx
div edi
mov ebx, dword [esi + 0x5c]
cmp ebx, eax
jbe 0x45908d
shr ebx, 1
shr ecx, 1
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], ecx
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
imul eax, edi
xor edx, edx
div ecx
xor edx, edx
imul eax, eax, 0x3e8
div edi
imul edi, edi, 0xa
inc ebp
cmp ebp, 3
jb 0x459071
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x45a0e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7b8]
sub esp, 0x838
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x7b4], eax
mov eax, dword [ebp + 0x7cc]
push ebx
mov ebx, dword [ebp + 0x7c8]
push esi
push edi
mov edi, dword [ebp + 0x7c0]
mov esi, ecx
mov dword [ebp - 0x80], eax
call fcn.004140e4
cmp eax, 1
jne 0x45a19d
and dword [ebp - 0x74], 0
lea eax, [ebp - 0x74]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x45a195
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0
push str.ProxyEnable
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45a16c
and dword [ebp - 0x7c], 0
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push 0
push 0
push str.AutoConfigURL
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x824
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45a195
mov byte [ebp - 0x70], 0
lea ecx, [ebp - 0x74]
call fcn.00445d45
push dword [ebp + 0x7d0]
push dword [ebp - 0x80]
push ebx
push dword [ebp + 0x7c4]
push edi
call fcn.0045919b
add esp, 0x14
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 4], eax
mov al, cl
mov ecx, dword [ebp + 0x7b4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004646c1
add ebp, 0x7b8
leave
ret 0x14

Function at 0x45be26
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
je 0x45be47
push 1
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi], eax
lea edi, [esi + 0x70]
push edi
push ebx
push ebx
push ebx
push 2
push dword [esi + 0x10]
call fcn.0045b02c
add esp, 0x18
test eax, eax
jne 0x45be6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x78], eax
xor al, al
jmp 0x45bf00
push dword [edi]
call fcn.00465977
pop ecx
lea ecx, [esi + 0x6c]
push eax
call fcn.00445bed
push ebx
call fcn.00463f2b
mov eax, dword [esi + 0x6c]
push edi
push eax
push ebx
push ebx
push 2
push dword [esi + 0x10]
call fcn.0045b02c
add esp, 0x1c
test eax, eax
je 0x45be5f
push ebx
lea eax, [ebp - 4]
push eax
push 4
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push edi
push dword [edi]
push dword [esi + 0x6c]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [ebp + 0x10], 1
jne 0x45bee6
mov eax, dword [esi + 0xc]
push ebx
push dword [ebp + 8]
push 1
push 1
push 0x10001
push eax
call fcn.0045b27c
add esp, 0x18
test eax, eax
je 0x45be5f
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x45befe
push 1
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi]
mov dword [esi], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x45d1e8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov ebx, ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
test eax, eax
jne 0x45d20b
xor al, al
jmp 0x45d2a7
push eax
call fcn.004447d5
pop ecx
push eax
push dword [ebp - 4]
mov dword [ebx + 0x40], eax
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x45d204
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4ae4fc
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45d204
push esi
mov esi, dword [ebp - 0xc]
push edi
push 0xd
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea edi, [ebx + 4]
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45d2a3
mov esi, dword [ebp - 4]
shr esi, 2
xor ecx, ecx
push 4
pop edx
mov eax, esi
mul edx
seto cl
mov dword [ebx + 0x3c], esi
neg ecx
or ecx, eax
push ecx
call fcn.004447d5
mov dword [ebx + 0x38], eax
xor eax, eax
pop ecx
cmp dword [ebx + 0x3c], eax
jbe 0x45d2a3
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx + 0x38]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x45d291
pop edi
mov al, 1
pop esi
pop ebx
leave
ret 4

Function at 0x4608d7
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x460909
xor eax, eax
jmp 0x4609a3
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.004447d5
pop ecx
push 0
mov ebx, eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp edi, dword [ebp - 4]
jne 0x460994
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x3c]
call fcn.0045fe35
lea ecx, [esi + 0x24]
call fcn.0045f2e4
push 0x4bde82
mov ecx, esi
call fcn.0040870d
mov byte [ebx + edi], 0
mov ecx, esi
mov dword [esi + 0x54], ebx
call fcn.0045e0f8
push eax
push 0
mov ecx, esi
call fcn.0045e26c
test eax, eax
je 0x460994
call fcn.0045e0f8
push eax
push 9
mov ecx, esi
call fcn.0045e26c
test eax, eax
je 0x460994
push esi
call fcn.0046085e
test eax, eax
jne 0x460998
xor eax, eax
jmp 0x4609a2
push ebx
call fcn.00464106
xor eax, eax
pop ecx
inc eax
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x462360
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x4aafd8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d6080]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [esp + 0x2c]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
mov dword [esp + 0x40], 2
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x462448
push 0
push 0
push 0
push 2
push 0
push esi
mov dword [esp + 0x44], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x46243c
push 0
push 0
push 0
push 4
push ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x46244c
mov ecx, dword [esp + 0x30]
push ecx
push 0
push esi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push edi
mov ecx, ebp
call fcn.004620f0
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x462414
push edi
call eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x462424
push ebx
call edi
push esi
call edi
mov al, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x462448
push esi
call eax
xor al, al
jmp 0x462426
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x46245c
push ebx
call edi
push esi
call edi
xor al, al
jmp 0x462426

Function at 0x4646c1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d6080]
jne 0x4646cb
repz ret
jmp fcn.0046e9bc
Function at 0x4834c6
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.0046d00b
and dword [ebp - 4], 0
cmp dword [0x4dc4bc], 0
mov ebx, eax
jne 0x483577
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x483628
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x483628
push eax
call fcn.0046cf99
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4dc4bc], eax
call esi
push eax
call fcn.0046cf99
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4dc4c0], eax
call esi
push eax
call fcn.0046cf99
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4dc4c4], eax
call esi
push eax
call fcn.0046cf99
pop ecx
mov dword [0x4dc4cc], eax
test eax, eax
je 0x483577
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046cf99
pop ecx
mov dword [0x4dc4c8], eax
mov eax, dword [0x4dc4c8]
cmp eax, ebx
je 0x4835cf
cmp dword [0x4dc4cc], ebx
je 0x4835cf
push eax
call fcn.0046d014
push dword [0x4dc4cc]
mov esi, eax
call fcn.0046d014
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4835cf
test edi, edi
je 0x4835cf
call esi
test eax, eax
je 0x4835c6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4835c6
test byte [ebp - 0xc], 1
jne 0x4835cf
or dword [ebp + 0x10], 0x200000
jmp 0x483608
mov eax, dword [0x4dc4c0]
cmp eax, ebx
je 0x483608
push eax
call fcn.0046d014
pop ecx
test eax, eax
je 0x483608
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x483608
mov eax, dword [0x4dc4c4]
cmp eax, ebx
je 0x483608
push eax
call fcn.0046d014
pop ecx
test eax, eax
je 0x483608
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4dc4bc]
call fcn.0046d014
pop ecx
test eax, eax
je 0x483628
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x48362a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49b310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab30e
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov byte [ebp - 0x51], al
push 1
lea ecx, [ebp - 0x51]
push ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x48]
call fcn.004018b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x88]
push eax
call fcn.0049b040
mov dword [ebp - 0x8c], eax
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov ecx, dword [ebp - 0x8c]
call fcn.00401910
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x50]
call fcn.00402010
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00401670
push 2
push 0
push 0
lea ecx, [ebp - 0x50]
call fcn.00402050
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x44]
call fcn.004017d0
push eax
lea ecx, [ebp - 0x48]
call fcn.00401930
push eax
lea ecx, [ebp - 0x50]
call fcn.00402050
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00402030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401670
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004646c1
mov esp, ebp
pop ebp
ret 4
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423004]
jne 0x401010
repz ret
jmp fcn.00401562

Function at 0x409246
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.00405eb4
and dword [ebp - 4], 0
cmp dword [0x425da0], 0
mov ebx, eax
jne 0x4092f7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4093a8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4093a8
push eax
call fcn.00405e42
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x425da0], eax
call esi
push eax
call fcn.00405e42
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x425da4], eax
call esi
push eax
call fcn.00405e42
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x425da8], eax
call esi
push eax
call fcn.00405e42
pop ecx
mov dword [0x425db0], eax
test eax, eax
je 0x4092f7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405e42
pop ecx
mov dword [0x425dac], eax
mov eax, dword [0x425dac]
cmp eax, ebx
je 0x40934f
cmp dword [0x425db0], ebx
je 0x40934f
push eax
call fcn.00405ebd
push dword [0x425db0]
mov esi, eax
call fcn.00405ebd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40934f
test edi, edi
je 0x40934f
call esi
test eax, eax
je 0x409346
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409346
test byte [ebp - 0xc], 1
jne 0x40934f
or dword [ebp + 0x10], 0x200000
jmp 0x409388
mov eax, dword [0x425da4]
cmp eax, ebx
je 0x409388
push eax
call fcn.00405ebd
pop ecx
test eax, eax
je 0x409388
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409388
mov eax, dword [0x425da8]
cmp eax, ebx
je 0x409388
push eax
call fcn.00405ebd
pop ecx
test eax, eax
je 0x409388
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x425da0]
call fcn.00405ebd
pop ecx
test eax, eax
je 0x4093a8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4093aa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b780
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x270dedc], 0x930
jne 0x40b79d
push str.dawatuyi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x270dedc], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x270dbf8], eax
jne 0x40b7c3
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
lea ecx, [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov esp, ebp
pop ebp
ret