joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ec00
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 0x410
mov eax, dword [0x444380]
xor eax, esp
mov dword [esp + 0x40c], eax
mov eax, dword [esp + 0x418]
push ebx
push esi
push edi
mov edi, dword [esp + 0x420]
push 2
push eax
mov ebx, ecx
xor ecx, ecx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
call fcn.00410090
mov esi, eax
add esp, 0xc
cmp esi, 1
jne 0x40ecc8
push ebp
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [esp + 0x10]
push ecx
push 0x400
lea edx, [esp + 0x24]
push edx
push edi
call ebp
test eax, eax
je 0x40ecc7
lea esp, [esp]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40ecc7
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.0040fd90
mov esi, eax
add esp, 0x10
cmp esi, 1
jne 0x40ecc7
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.0040e300
mov esi, eax
cmp esi, 1
jne 0x40ecc2
lea edx, [esp + 0x10]
push edx
push 0x400
lea eax, [esp + 0x24]
push eax
push edi
call ebp
test eax, eax
jne 0x40ec70
jmp 0x40ecc7
mov esi, 0x12
pop ebp
lea ecx, [esp + 0x10]
push ecx
call fcn.0040fbd0
mov ecx, dword [esp + 0x41c]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004148bb
add esp, 0x410
ret 8

Function at 0x40f030
Capabilities:
Send data
Send http request

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
push edi
lea eax, [esp + 0x10]
mov edi, ecx
push eax
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x14], 0x7530
mov dword [esp + 0x10], 0
call fcn.0040e250
add esp, 0xc
cmp eax, 1
jne 0x40f126
mov eax, dword [esp + 4]
mov ecx, dword [edi + 0x10c]
push esi
push 0
push 0x4480000
push 0
push 0
push 0
push eax
push 0x43cecc
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
jne 0x40f0a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x110], eax
lea eax, [esi + 0xf]
pop esi
pop edi
add esp, 8
ret 0xc
push ebx
push 4
lea edx, [esp + 0x14]
push edx
push 6
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40f0ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [edi + 0x110], eax
mov ebx, 0xf
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebx
pop ebx
pop esi
pop edi
add esp, 8
ret 0xc
push esi
mov ecx, edi
call fcn.0040e6b0
mov ebx, eax
cmp ebx, 1
jne 0x40f11b
cmp dword [esp + 0x20], 0
jne 0x40f10c
mov eax, dword [esp + 0x1c]
push eax
jmp 0x40f111
mov ecx, dword [esp + 0x1c]
push ecx
push esi
mov ecx, edi
call fcn.0040ec00
mov ebx, eax
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebx
pop ebx
pop esi
pop edi
add esp, 8
ret 0xc
Function at 0x40f200
Capabilities:
Send data
Send http request

Disassembly:
sub esp, 0x11c
mov eax, dword [0x444380]
xor eax, esp
mov dword [esp + 0x118], eax
mov edx, dword [esp + 0x128]
mov eax, dword [esp + 0x120]
push ebp
mov ebp, ecx
mov ecx, dword [esp + 0x128]
mov dword [esp + 8], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edx
push ecx
lea edx, [esp + 8]
push edx
push eax
mov dword [esp + 0x18], 0x7530
mov dword [esp + 0x10], 0
call fcn.0040e250
add esp, 0xc
cmp eax, 1
jne 0x40f3a5
mov eax, dword [esp + 4]
mov ecx, dword [ebp + 0x10c]
push edi
push 0
push 0x4480000
push 0
push 0
push 0
push eax
push 0x43cecc
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
jne 0x40f29f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x110], eax
lea eax, [edi + 0xf]
jmp 0x40f3a4
mov ecx, dword [esp + 0x134]
test ecx, ecx
mov eax, dword [esp + 0x138]
jne 0x40f329
test eax, eax
je 0x40f2f2
push eax
push ecx
push str.Range:_bytes_d__d
lea eax, [esp + 0x28]
push 0x104
push eax
call fcn.00414a51
add esp, 0x14
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40f2d5
push 0xa0000000
sub eax, edx
push eax
lea ecx, [esp + 0x24]
push ecx
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push esi
push 4
lea edx, [esp + 0x18]
push edx
push 6
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40f347
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x110], eax
mov esi, 0xf
jmp 0x40f39a
test eax, eax
jne 0x40f2b5
push ecx
push str.Range:_bytes_d_
lea edx, [esp + 0x24]
push 0x104
push edx
call fcn.00414a51
add esp, 0x10
jmp 0x40f2ce
push edi
mov ecx, ebp
call fcn.0040e6b0
mov esi, eax
cmp esi, 1
jne 0x40f39a
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push ecx
push edi
mov ecx, ebp
mov dword [esp + 0x18], 0
call fcn.0040e840
mov esi, eax
cmp esi, 1
je 0x40f390
mov edx, dword [esp + 0xc]
push edx
call fcn.004149b7
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [eax], 0
jmp 0x40f39a
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [edx], ecx
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
pop esi
pop edi
mov ecx, dword [esp + 0x11c]
pop ebp
xor ecx, esp
call fcn.004148bb
add esp, 0x11c
ret 0x14
Function at 0x40f3c0
Capabilities:
Send data
Send http request

Disassembly:
sub esp, 0x220
mov eax, dword [0x444380]
xor eax, esp
mov dword [esp + 0x21c], eax
mov edx, dword [esp + 0x234]
mov eax, dword [esp + 0x224]
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x22c]
push ebp
mov ebp, dword [esp + 0x238]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], edx
push ecx
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x20], 0x7530
mov dword [esp + 0x14], 0
call fcn.0040e250
add esp, 0xc
cmp eax, 1
jne 0x40f57d
mov eax, dword [esp + 8]
mov ecx, dword [ebx + 0x10c]
push edi
push 0
push 0x4480000
push 0
push 0
push 0
push eax
push 0x43cecc
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
jne 0x40f467
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x110], eax
lea eax, [edi + 0xf]
jmp 0x40f57c
mov ecx, dword [esp + 0x244]
test ecx, ecx
mov eax, dword [esp + 0x248]
jne 0x40f4f4
test eax, eax
je 0x40f4bd
push eax
push ecx
push str.Range:_bytes_d__d
lea eax, [esp + 0x2c]
push 0x104
push eax
call fcn.00414a51
add esp, 0x14
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40f4a0
push 0xa0000000
sub eax, edx
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push esi
push 4
lea edx, [esp + 0x20]
push edx
push 6
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40f512
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x110], eax
mov esi, 0xf
jmp 0x40f572
test eax, eax
jne 0x40f47d
push ecx
push str.Range:_bytes_d_
lea edx, [esp + 0x28]
push 0x104
push edx
call fcn.00414a51
add esp, 0x10
jmp 0x40f496
push edi
mov ecx, ebx
call fcn.0040e6b0
mov esi, eax
cmp esi, 1
jne 0x40f572
mov esi, dword [esp + 0x18]
cmp dword [esi], 0
jne 0x40f55a
lea eax, [esp + 0x128]
push eax
push 5
push edi
mov ecx, ebx
call fcn.0040e330
test eax, eax
jne 0x40f545
lea esi, [eax + 0x10]
jmp 0x40f572
lea ecx, [esp + 0x128]
push ecx
call fcn.0041546b
mov dword [esi], eax
add esp, 4
mov dword [ebp], eax
mov edx, dword [esp + 0x23c]
mov eax, dword [esp + 0x14]
push edx
push ebp
push eax
push edi
mov ecx, ebx
call fcn.0040e9b0
mov esi, eax
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
pop esi
pop edi
mov ecx, dword [esp + 0x224]
pop ebp
pop ebx
xor ecx, esp
call fcn.004148bb
add esp, 0x220
ret 0x1c

Function at 0x40fc00
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, 1
mov dword [esi], 0
jne 0x40fc21
pop edi
mov eax, 2
pop esi
ret
cmp eax, 0xffffffff
jne 0x40fc2e
pop edi
mov eax, 5
pop esi
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x40fc42
mov edi, 7
mov eax, edi
pop edi
pop esi
ret
Function at 0x40fc50
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
push esi
mov esi, 1
jne 0x40fc65
mov eax, 2
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40fc80
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40fc80
mov esi, 2
mov eax, esi
pop esi
ret

Function at 0x40fd40
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
push esi
mov esi, 1
jne 0x40fd55
mov eax, 2
pop esi
ret
mov edx, dword [esp + 0xc]
test edx, edx
je 0x40fd4e
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40fd4e
cmp eax, 0xffffffff
jne 0x40fd71
mov eax, 7
pop esi
ret
push edi
mov edi, dword [esp + 0x18]
push 0
push edi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
pop edi
jne 0x40fd8c
mov esi, 2
mov eax, esi
pop esi
ret

Function at 0x40fd90
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
push esi
mov esi, 1
jne 0x40fda5
mov eax, 2
pop esi
ret
mov edx, dword [esp + 0xc]
test edx, edx
je 0x40fd9e
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40fd9e
cmp eax, 0xffffffff
jne 0x40fdc1
mov eax, 7
pop esi
ret
push edi
mov edi, dword [esp + 0x18]
push 0
push edi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop edi
jne 0x40fddc
mov esi, 2
mov eax, esi
pop esi
ret
Function at 0x40fe20
Capabilities:
Get file version info
Identify system language via api

Disassembly:
sub esp, 0x218
mov eax, dword [0x444380]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x220]
push ebx
push ebp
mov ebp, dword [esp + 0x224]
xor ebx, ebx
push 0x1ff
lea ecx, [esp + 0x21]
push ebx
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x28], bl
call fcn.00415190
add esp, 0xc
cmp ebp, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
jne 0x40fe93
pop ebp
lea eax, [ebx + 2]
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004148bb
add esp, 0x218
ret
push esi
lea edx, [esp + 0x18]
push edx
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
jne 0x40fec2
pop esi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004148bb
add esp, 0x218
ret
push edi
push esi
call fcn.00414c61
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x40fedf
mov dword [esp + 0x10], 2
jmp 0x40ffb8
push esi
push ebx
push edi
call fcn.00415190
mov eax, dword [esp + 0x28]
add esp, 0xc
push edi
push esi
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40ff08
mov dword [esp + 0x10], 2
jmp 0x40ffb8
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40ff61
cmp dword [esp + 0x18], 4
jne 0x40ff61
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
push ecx
mov edx, eax
shr edx, 0x18
push edx
movzx ecx, al
push ecx
movzx edx, ah
push edx
push str.StringFileInfo_02X_02X_02X_02XFileVersion
lea eax, [esp + 0x38]
push 0x200
push eax
call fcn.00414a51
add esp, 0x1c
jmp 0x40ff82
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx ecx, ax
push ecx
push str.StringFileInfo_04X04B0FileVersion
lea edx, [esp + 0x2c]
push 0x200
push edx
call fcn.00414a51
add esp, 0x10
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40ffa5
mov dword [esp + 0x10], 2
jmp 0x40ffb8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push eax
push esi
push ecx
call fcn.00414ccb
add esp, 0xc
cmp edi, ebx
je 0x40ffc5
push edi
call fcn.004149b2
add esp, 4
mov ecx, dword [esp + 0x224]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004148bb
add esp, 0x218
ret
Function at 0x410090
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push edi
mov edi, dword [esp + 0x14]
test edi, edi
mov dword [esp + 8], 0
mov ebx, 1
jne 0x4100af
pop edi
lea eax, [ebx + 1]
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [esp + 0x1c]
mov eax, ebp
sub eax, 1
je 0x4100e2
sub eax, 1
je 0x4100d6
sub eax, 1
je 0x4100cf
pop ebp
pop edi
mov eax, 5
pop ebx
pop ecx
ret
mov eax, 0x40000000
jmp 0x4100e7
mov eax, 0x40000000
mov ecx, 2
jmp 0x4100ec
mov eax, 0x80000000
mov ecx, 3
push esi
push 0
push 0x80
push ecx
push 0
push 3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, dword [esp + 0x18]
mov dword [esi], eax
jne 0x41011f
push 2
push edi
push esi
call fcn.0040fb70
mov ebx, eax
add esp, 0xc
cmp ebx, 1
jne 0x410162
cmp ebp, 3
jne 0x410162
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x41014a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
lea eax, [ebp + 4]
pop ebp
pop edi
pop ebx
pop ecx
ret
mov edx, dword [esi]
push 0
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x410162
mov ebx, 7
pop esi
pop ebp
pop edi
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x412340
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00412020
push 0
push 0
push 3
push 0
push 0
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x41237a
xor eax, eax
jmp 0x412497
push 2
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 8], eax
push 0
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 8]
add eax, 4
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x320], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x320], 0
jne 0x4123c8
xor eax, eax
jmp 0x412497
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x320]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x324], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x324], 0
jne 0x4123fc
mov ecx, dword [ebp - 0x10]
call fcn.00412020
xor eax, eax
jmp 0x412497
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x324]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x32c], 4
mov edx, dword [ebp - 8]
add edx, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x328], edx
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x328]
sub eax, 4
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x324]
add edx, 4
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
call fcn.00412b80
test eax, eax
jne 0x412482
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0x10]
call fcn.00412020
xor eax, eax
jmp 0x412497
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x320]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x4148bb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444380]
jne 0x4148c5
repz ret
jmp fcn.00419ea6
Function at 0x41e970
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x444c40]
je 0x41e98b
inc edi
cmp edi, 0x17
jb 0x41e97c
cmp edi, 0x17
jae 0x41eb0b
push ebp
push 3
call fcn.00432064
cmp eax, 1
pop ecx
je 0x41ead7
push 3
call fcn.00432064
test eax, eax
pop ecx
jne 0x41e9bf
cmp dword [0x444430], 1
je 0x41ead7
cmp ebx, 0xfc
je 0x41eb0a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x470740
push ebp
call fcn.00414ccb
add esp, 0xc
test eax, eax
je 0x41e9f5
push esi
push esi
push esi
push esi
push esi
call fcn.0041552e
add esp, 0x14
push 0x104
mov esi, 0x470759
push esi
push 0
mov byte [0x47085d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41ea39
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00414ccb
add esp, 0xc
test eax, eax
je 0x41ea39
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041552e
add esp, 0x14
push esi
call fcn.00414830
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41ea7e
push esi
call fcn.00414830
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x470a54
push 0x43d93c
sub ecx, eax
push ecx
push eax
call fcn.00426e96
add esp, 0x14
test eax, eax
je 0x41ea7e
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041552e
add esp, 0x14
jmp 0x41ea80
xor esi, esi
push 0x43d938
push ebx
push ebp
call fcn.00415d0b
add esp, 0xc
test eax, eax
je 0x41eaa0
push esi
push esi
push esi
push esi
push esi
call fcn.0041552e
add esp, 0x14
push dword [edi*8 + 0x444c44]
push ebx
push ebp
call fcn.00415d0b
add esp, 0xc
test eax, eax
je 0x41eac2
push esi
push esi
push esi
push esi
push esi
call fcn.0041552e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00431ea7
add esp, 0xc
jmp 0x41eb0a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41eb0a
cmp ebp, 0xffffffff
je 0x41eb0a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x444c44]
push dword [esi]
call fcn.00414830
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x431ea7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00419836
xor ebx, ebx
cmp dword [0x470e00], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x431f7d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43205d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43f6d8
push edi
call esi
cmp eax, ebx
je 0x43205d
push eax
call fcn.004197c8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x470e00], eax
call esi
push eax
call fcn.004197c8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x470e04], eax
call esi
push eax
call fcn.004197c8
mov dword [0x470e08], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041cdf9
test eax, eax
pop ecx
pop ecx
je 0x431f4b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041552e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x431f7d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004197c8
cmp eax, ebx
pop ecx
mov dword [0x470e10], eax
je 0x431f7d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004197c8
pop ecx
mov dword [0x470e0c], eax
mov eax, dword [0x470e0c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x432002
cmp dword [0x470e10], ecx
je 0x432002
push eax
call fcn.0041983f
push dword [0x470e10]
mov esi, eax
call fcn.0041983f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x432002
cmp edi, ebx
je 0x432002
call esi
cmp eax, ebx
je 0x431fcf
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x431fcf
test byte [ebp - 0x18], 1
jne 0x432002
lea eax, [ebp - 0x10]
push eax
call fcn.0041cea8
test eax, eax
pop ecx
je 0x431fea
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041552e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x431ff9
or dword [ebp + 0x10], 0x200000
jmp 0x43203d
or dword [ebp + 0x10], 0x40000
jmp 0x43203d
mov eax, dword [0x470e04]
cmp eax, dword [ebp - 8]
je 0x43203d
push eax
call fcn.0041983f
cmp eax, ebx
pop ecx
je 0x43203d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43203d
mov eax, dword [0x470e08]
cmp eax, dword [ebp - 8]
je 0x43203d
push eax
call fcn.0041983f
cmp eax, ebx
pop ecx
je 0x43203d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x470e00]
call fcn.0041983f
cmp eax, ebx
pop ecx
je 0x43205d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43205f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403f10
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
pop ebp
ret
Function at 0x4068f0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x45d748
push 0x450110
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x48e200]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x40698b
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x406971
mov dword [ebp - 0x28], ebx
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x28]
jmp 0x40698b
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00450601
mov esp, ebp
pop ebp
ret

Function at 0x4069b0
Capabilities:
Get session user name
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x45d768
push 0x450110
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x48e200]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor eax, eax
xor esi, esi
mov dword [ebp - 4], eax
mov byte [ebp - 0x120], al
push 0x103
push eax
lea eax, [ebp - 0x11f]
push eax
call fcn.00450610
add esp, 0xc
mov dword [ebp - 0x12c], 0x104
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x406a8d
mov edx, 6
mov dword [ebp - 0x130], edx
lea ecx, [ebp - 0x120]
or eax, 0xffffffff
mov dword [ebp - 0x124], ecx
mov esi, edx
dec edx
mov dword [ebp - 0x130], edx
test esi, esi
je 0x406a6c
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4011f0]
inc ecx
jmp 0x406a41
not eax
xor ecx, ecx
cmp eax, 0x39b5d60d
sete cl
mov esi, ecx
jmp 0x406a87
mov dword [ebp - 0x128], esi
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00450601
mov esp, ebp
pop ebp
ret