joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b7e4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404208
mov eax, dword [ebp - 8]
call fcn.00404208
xor eax, eax
push ebp
push 0x40b92f
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, 1
call fcn.0040b574
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00405c98
test eax, eax
jne 0x40b8d5
push 0
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
je 0x40b904
push 0xff
lea eax, [ebp - 0x107]
push eax
push ebx
call sub.user32.dll_GetWindowTextA
test eax, eax
jle 0x40b8c5
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x107]
call fcn.004059f8
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.004058a0
mov eax, dword [ebp - 0x10c]
push eax
lea edx, [ebp - 0x114]
mov eax, dword [ebp - 8]
call fcn.004058a0
mov eax, dword [ebp - 0x114]
pop edx
call fcn.00404300
test eax, eax
je 0x40b8c5
push 0
push 0xf060
push 0x112
push ebx
call sub.user32.dll_PostMessageA
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
jne 0x40b856
jmp 0x40b904
mov eax, dword [ebp - 8]
call fcn.00404218
push eax
mov eax, dword [ebp - 4]
call fcn.00404218
push eax
call sub.user32.dll_FindWindowA
mov ebx, eax
test ebx, ebx
je 0x40b904
push 0
push 0xf060
push 0x112
push ebx
call sub.user32.dll_PostMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b936
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00403db4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403db4
ret

Function at 0x40b93c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
xor esi, esi
push 0
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
je 0x40b9d8
push 0xfe
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetClassNameA
push 0xfe
lea eax, [esp + 0x103]
push eax
push ebx
call sub.user32.dll_GetWindowTextA
push 0
push 0x40b9e4
push 0
push ebx
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x40b9ca
push 0
push 0x40b9e4
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x40b9ca
push 0
push 0x40b9f4
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x40b9ca
push 0
push 0x40b9fc
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x40b9ca
mov esi, ebx
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
jne 0x40b959
mov eax, esi
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x40ba04
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x40ba2a
push 0
push esi
call sub.user32.dll_ShowWindow
xor edi, edi
push 0
push 0
push edi
push esi
call sub.user32.dll_PostMessageA
inc edi
cmp edi, 0x64
jne 0x40ba19
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x40bad8
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x40bc6c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00403d90
push 0
push 0
push 0
push 0
push 0x40bc7c
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40bc4a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
mov eax, edi
call fcn.00404218
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40bc2c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0xa
mov dword [ebp - 0x10], 0x400
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x13
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_HttpQueryInfoA
lea eax, [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00403f88
mov eax, dword [ebp - 0x3c]
mov edx, 0x40bc88
call fcn.00404164
je 0x40bbad
lea eax, [ebp - 0x40]
lea edx, [ebp - 0x38]
call fcn.00403f88
mov eax, dword [ebp - 0x40]
mov edx, 0x40bc94
call fcn.00404164
jne 0x40bc15
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 5
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_HttpQueryInfoA
mov eax, esi
call fcn.00402518
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x40bc0e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
push esi
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetReadFile
mov edx, ebx
mov eax, dword [ebp - 0x1c]
call fcn.004059f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc15
mov eax, dword [ebp - 0x1c]
call fcn.00402538
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc33
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
Function at 0x40bc98
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa80
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x580], ecx
mov dword [ebp - 0x14], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40be71
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea edx, [ebp - 0x14]
mov eax, 5
call fcn.0040a2bc
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.00404218
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40be49
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80000000
push 0
push 0
mov eax, ebx
call fcn.00404218
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x40be2b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0xa
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x57c]
push eax
push 0x13
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpQueryInfoA
lea eax, [ebp - 0x580]
lea edx, [ebp - 0x57c]
call fcn.00403f88
mov eax, dword [ebp - 0x580]
mov edx, 0x40be8c
call fcn.00404164
jne 0x40be14
mov eax, esi
call fcn.00404218
mov edx, eax
lea eax, [ebp - 0x568]
call fcn.00402aec
xor eax, eax
push ebp
push 0x40be0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 1
lea eax, [ebp - 0x568]
call fcn.00403000
call fcn.0040260c
lea eax, [ebp - 0x10]
push eax
push 0x400
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x40bde1
push 0
lea edx, [ebp - 0x41c]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x568]
call fcn.00402c3c
call fcn.0040260c
cmp dword [ebp - 0x10], 0
jne 0x40bda9
cmp dword [ebp - 0x10], 0
sete byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be14
lea eax, [ebp - 0x568]
call fcn.00402c5c
call fcn.0040260c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be32
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
Function at 0x40be90
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc0
push ebx
xor edx, edx
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x234], edx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x230], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404208
xor eax, eax
push ebp
push 0x40c12c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x230]
mov eax, 2
call fcn.0040b230
mov eax, dword [ebp - 0x230]
lea edx, [ebp - 0x22c]
call fcn.004058dc
mov edx, dword [ebp - 0x22c]
lea eax, [ebp - 8]
mov ecx, 0x40c140
call fcn.00404064
mov eax, dword [ebp - 8]
call fcn.00404218
mov ebx, eax
mov edx, ebx
lea eax, [ebp - 0x234]
call fcn.00403f88
mov eax, dword [ebp - 0x234]
call fcn.00405ba8
test al, al
je 0x40bf5e
push 0
push ebx
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 8]
call fcn.00404218
mov edx, eax
lea eax, [ebp - 0x238]
call fcn.00403f88
mov eax, dword [ebp - 0x238]
call fcn.00405d14
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1d4]
call fcn.00402aec
xor eax, eax
push ebp
push 0x40c085
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1d4]
call fcn.00402888
call fcn.0040260c
mov edx, 0x40c154
lea eax, [ebp - 0x1d4]
call fcn.004043d8
call fcn.00403260
call fcn.0040260c
mov edx, 0x40c168
lea eax, [ebp - 0x1d4]
call fcn.004043d8
call fcn.00403260
call fcn.0040260c
push 0x40c178
push dword [ebp - 4]
push 0x40c188
lea eax, [ebp - 0x23c]
mov edx, 3
call fcn.004040d8
mov edx, dword [ebp - 0x23c]
lea eax, [ebp - 0x1d4]
call fcn.004043d8
call fcn.00403260
call fcn.0040260c
push 0x40c198
push dword [ebp - 4]
push 0x40c1ac
push 0x40c1b8
lea eax, [ebp - 0x240]
mov edx, 4
call fcn.004040d8
mov edx, dword [ebp - 0x240]
lea eax, [ebp - 0x1d4]
call fcn.004043d8
call fcn.00403260
call fcn.0040260c
mov edx, 0x40c1d0
lea eax, [ebp - 0x1d4]
call fcn.004043d8
call fcn.00403260
call fcn.0040260c
mov edx, 0x40c1e4
lea eax, [ebp - 0x1d4]
call fcn.004043d8
call fcn.00403260
call fcn.0040260c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c08c
lea eax, [ebp - 0x1d4]
call fcn.00402c5c
call fcn.0040260c
ret
Function at 0x40c1e8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403d90
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, esi
call fcn.00404218
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40c282
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0xffffffff
jne 0x40c238
call fcn.0040386c
jmp 0x40c289
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 8], eax
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00404348
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, ebx
call fcn.00404270
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c289
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x40c290
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov esi, edx
mov ebx, eax
mov byte [ebp - 1], 0
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
mov eax, esi
call fcn.00404218
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40c320
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0xffffffff
jne 0x40c2dd
call fcn.0040386c
jmp 0x40c327
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, ebx
call fcn.00404018
push eax
mov eax, ebx
call fcn.00404218
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetEndOfFile_1
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c327
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c514
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x40c5b8
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
dec ecx
je 0x40c571
dec ecx
jne 0x40c5b3
cmp eax, 4
jg 0x40c54d
mov eax, 4
jmp 0x40c5bb
cmp eax, 5
jne 0x40c55d
test edx, edx
jne 0x40c55d
mov eax, 5
jmp 0x40c5bb
cmp eax, 5
jne 0x40c56c
dec edx
jne 0x40c56c
mov eax, 6
jmp 0x40c5bb
or eax, 0xffffffff
jmp 0x40c5bb
cmp eax, 4
jne 0x40c57e
test edx, edx
jne 0x40c57e
xor eax, eax
jmp 0x40c5bb
cmp eax, 4
jne 0x40c59d
cmp edx, 0xa
jne 0x40c59d
cmp byte [esp + 0x15], 0x41
jne 0x40c596
mov eax, 2
jmp 0x40c5bb
mov eax, 1
jmp 0x40c5bb
cmp eax, 4
jne 0x40c5ae
cmp edx, 0x5a
jne 0x40c5ae
mov eax, 3
jmp 0x40c5bb
or eax, 0xffffffff
jmp 0x40c5bb
or eax, 0xffffffff
jmp 0x40c5bb
or eax, 0xffffffff
add esp, 0x94
ret
Function at 0x40cc68
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404208
mov eax, dword [ebp - 8]
call fcn.00404208
mov eax, dword [ebp - 0xc]
call fcn.00404208
xor eax, eax
push ebp
push 0x40cdd6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call fcn.00405ba8
test al, al
je 0x40cdae
mov eax, dword [ebp - 8]
call fcn.00405ba8
test al, al
je 0x40cdae
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404218
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x40cda7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
mov eax, ebx
call fcn.00402518
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x40cd89
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x4146cc
push ebx
mov esi, dword [ebp - 0x18]
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, dword [ebp - 0xc]
call fcn.00404218
mov edx, eax
lea eax, [ebp - 0x1c]
call fcn.00403f88
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00404218
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.00403f88
mov eax, dword [ebp - 0x20]
mov edx, esi
mov ecx, ebx
call fcn.00409d28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd90
mov eax, dword [ebp - 0x18]
call fcn.00402538
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cddd
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00403db4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403db4
ret
Function at 0x40ceec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40cef4
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x40d043
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x40d01e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [0x414920]
call fcn.00405af0
mov eax, dword [ebp - 4]
mov edx, 0x40d05c
call fcn.00404164
jne 0x40cf98
push 0x414934
lea eax, [ebp - 0x10]
call fcn.0040b060
push dword [ebp - 0x10]
push 0x40d068
mov eax, dword [0x41491c]
call fcn.00404218
mov edx, eax
lea eax, [ebp - 0x14]
call fcn.00403f88
push dword [ebp - 0x14]
push 0x40d074
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.004040d8
mov eax, dword [ebp - 0xc]
call fcn.00404218
mov edx, eax
lea eax, [ebp - 8]
call fcn.00403f88
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 5
call fcn.0040b488
jmp 0x40cff4
push 0x414934
lea eax, [ebp - 0x20]
call fcn.0040b060
push dword [ebp - 0x20]
push 0x40d068
mov eax, dword [0x41491c]
call fcn.00404218
mov edx, eax
lea eax, [ebp - 0x24]
call fcn.00403f88
push dword [ebp - 0x24]
push 0x40d074
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.004040d8
mov eax, dword [ebp - 0x1c]
call fcn.00404218
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.00403f88
mov eax, dword [ebp - 0x18]
xor ecx, ecx
xor edx, edx
call fcn.0040b488
cmp dword [0x414934], 0
je 0x40d014
push 0x4148dc
push 0
push 0
push 0x40ce78
push 0
push 0
call sub.kernel32.dll_CreateThread_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40d028
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d04a
lea eax, [ebp - 0x24]
mov edx, 9
call fcn.00403db4
ret

Function at 0x40e280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e347
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403d90
push ebx
push edi
mov eax, dword [0x413654]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x40e331
push ebx
mov eax, dword [0x413654]
push eax
call sub.kernel32.dll_SizeofResource
mov edi, eax
test edi, edi
je 0x40e331
push ebx
mov eax, dword [0x413654]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40e32b
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_LockResource
test eax, eax
je 0x40e324
mov eax, esi
call fcn.00403d90
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jle 0x40e324
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dl, byte [edx + ecx]
call fcn.00403f78
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00404020
inc dword [ebp - 8]
cmp edi, dword [ebp - 8]
jg 0x40e301
mov eax, ebx
call fcn.00404dd4
push ebx
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e34e
lea eax, [ebp - 0xc]
call fcn.00403d90
ret
Function at 0x1001ac60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1010e9a4]
mov dword [ebp - 4], eax
jmp 0x1001ac79
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1001aca0
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1001ac9e
call sub.KERNEL32.dll_GetLastError
jmp 0x1001aca2
jmp 0x1001ac70
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1001ad70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1001ad40
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1001ae45
mov edx, dword [ebp - 4]
cmp edx, dword [0x1010d030]
jb 0x1001adb5
mov eax, dword [ebp - 4]
cmp eax, dword [0x1010d034]
ja 0x1001adb5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1001ad85
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10002996
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1001adda
jmp 0x1001ae45
cmp dword [ebp - 0x14], 0x10000
jne 0x1001ae2e
cmp dword [ebp - 0x18], 0x10000
jb 0x1001ae2e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1001ae11
mov eax, dword [ebp - 8]
jmp 0x1001ae47
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1001ae21
xor eax, eax
jmp 0x1001ae47
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1001ae40
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1001ad40
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1001ad85
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1001ae50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1001ad10
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1001af2d
mov edx, dword [ebp - 4]
cmp edx, dword [0x1010d030]
jb 0x1001ae9a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1010d034]
ja 0x1001ae9a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1001ae6a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10002996
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1001aebf
jmp 0x1001af2d
cmp dword [ebp - 0x14], 0x10000
jne 0x1001af13
cmp dword [ebp - 0x18], 0x10000
jb 0x1001af13
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1001aef6
mov eax, dword [ebp - 8]
jmp 0x1001af2f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1001af06
xor eax, eax
jmp 0x1001af2f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1001af28
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1001ad10
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1001ae6a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1001af90
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000330f
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1010e9a8], 0
jne 0x1001afcd
cmp dword [0x1010e9a4], 0
je 0x1001afcd
mov eax, dword [0x1010e9a4]
mov dword [0x1010e9a8], eax
cmp dword [0x1010e9a8], 0
je 0x1001b04a
mov ecx, dword [0x1010e9a8]
cmp dword [ecx + 8], 0
je 0x1001b04a
mov edx, dword [0x1010e9a8]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1001b04a
mov ecx, dword [0x1010e9a8]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1001b04a
mov eax, dword [0x1010e9a8]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1001b019
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1001b020
xor eax, eax
jmp 0x1001b169
mov ecx, dword [0x1010e9a8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.10002996
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1001b169
mov edx, dword [0x1010e9a4]
mov dword [0x1010e9a8], edx
jmp 0x1001b066
mov eax, dword [0x1010e9a8]
mov ecx, dword [eax + 4]
mov dword [0x1010e9a8], ecx
cmp dword [0x1010e9a8], 0
je 0x1001b0a6
cmp dword [0x1010e9a8], 0
je 0x1001b0a4
mov edx, dword [0x1010e9a8]
cmp dword [edx + 8], 0
je 0x1001b0a4
mov eax, dword [0x1010e9a8]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1001b0a4
mov edx, dword [0x1010e9a8]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1001b0a4
jmp 0x1001affe
jmp 0x1001b058
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1001af40
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1001b167
mov eax, dword [ebp - 0x18]
mov dword [0x1010e9a8], eax
mov ecx, dword [0x1010e9a8]
mov dword [ecx], 0x52727464
mov edx, dword [0x1010e9a8]
mov dword [edx + 8], 0
mov eax, dword [0x1010e9a8]
mov ecx, dword [0x1010e9a4]
mov dword [eax + 4], ecx
mov edx, dword [0x1010e9a8]
mov dword [0x1010e9a4], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1010e9a8]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1001b137
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1001b157
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1001b12e
mov eax, dword [0x1010e9a8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1001affe
xor eax, eax
mov esp, ebp
pop ebp
ret