joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456d18
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp + 1], cl
mov byte [esp], dl
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
mov eax, dword [0x49bcd0]
cmp esi, dword [eax + 0x30]
jne 0x456d3f
or edi, 0x8000000
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x456d6e
mov eax, dword [0x49bcd0]
cmp esi, dword [eax + 0x30]
jne 0x456d6a
mov eax, dword [0x49bcd0]
cmp byte [eax + 0x5b], 0
jne 0x456d6e
xor eax, eax
jmp 0x456d70
mov al, 1
mov byte [esp + 2], al
movzx eax, byte [esp + 2]
or al, bl
je 0x456d85
push 0
push esi
call sub.user32.dll_ShowWindow
cmp byte [esp], 0
je 0x456d9c
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x456dab
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp + 1]
and al, byte [esp + 2]
jne 0x456dba
test bl, bl
je 0x456dd0
test bl, bl
je 0x456dc8
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x456dd0
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x457074
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x45709a
mov eax, esp
push eax
push 0x45703c
call sub.user32.dll_EnumWindows
jmp 0x4570ad
mov eax, esp
push eax
push 0x45701c
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x457138
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x45718c]
test si, 4
je 0x45714d
or bl, 1
test si, 8
je 0x457157
or bl, 4
test si, 1
je 0x457161
or bl, 8
test si, 2
je 0x45716b
or bl, 0x10
test si, 0x10
je 0x457175
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x457184
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x457190
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4571cc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4571aa
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4571b9
or bl, 4
test esi, 0x20000000
je 0x4571c4
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45f098
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45f0aa
add esp, 0xfffffff0
call fcn.00403e34
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d5dc
mov eax, dword [0x495ce0]
mov dword [eax + 4], ebx
mov dword [eax], 0x45f43c
mov eax, dword [0x495cf0]
mov dword [eax + 4], ebx
mov dword [eax], 0x45f448
mov eax, ebx
call fcn.0045f454
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x413c9c]
call fcn.00403ae0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x413c9c]
call fcn.00403ae0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x413c9c]
call fcn.00403ae0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x413c9c]
call fcn.00403ae0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x413c9c]
call fcn.00403ae0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45ab04
push eax
push 0
push 0
mov eax, dword [0x495f28]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4227fc]
call fcn.00424050
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4227fc]
call fcn.00424050
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4227fc]
call fcn.00424050
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045f884
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45f754
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45f754
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45f754
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45f1e7
call fcn.00403e8c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45f538
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45f6e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45f6c4
mov dl, 1
mov eax, dword [0x414308]
call fcn.00403ae0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404a14
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45f6b3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004519d0
test al, al
je 0x45f6a6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45f6f4
lea eax, [ebp - 0x254]
call fcn.0040a2ac
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45f6a6
xor eax, eax
push ebp
push 0x45f69f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45f72c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45f688
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404c84
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45f688
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404c84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f6a6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45f5a9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00418c8c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f6ea
lea eax, [ebp - 0x260]
call fcn.00404a14
ret

Function at 0x46005c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x49bcd0]
cmp byte [eax + 0xad], 0
jne 0x4600cd
cmp dword [0x49bcec], 0
jne 0x46008e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x460018
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x49bcec], eax
cmp dword [0x49bce8], 0
jne 0x4600a9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x49bce8], eax
cmp dword [0x49bcf0], 0
jne 0x4600cd
push esp
push 0
push 0
push 0x45ffbc
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x49bcf0], eax
pop edx
ret
Function at 0x4602a0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4602b7
add esp, 0xfffffff0
call fcn.00403e34
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d5dc
mov eax, dword [0x495f04]
cmp word [eax + 2], 0
jne 0x4602df
mov eax, dword [0x495f04]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00461ea0
mov eax, dword [0x496020]
cmp word [eax + 2], 0
jne 0x4602f9
mov eax, dword [0x496020]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004620ac
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x413c9c]
call fcn.00403ae0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x413c9c]
call fcn.00403ae0
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x413c9c]
call fcn.00403ae0
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x42330c]
call fcn.0042aa44
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4604b0
mov eax, dword [0x495d94]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042ae18
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x462770
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x495d94]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040e0d0
test eax, eax
je 0x460400
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004098c8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e104
test eax, eax
je 0x460414
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404c84
mov byte [ebx + 0xd4], 0
push ebx
push 0x4619c8
call fcn.0041e758
mov dword [ebx + 0xc8], eax
mov eax, dword [0x495b9c]
cmp byte [eax], 0
jne 0x460465
mov eax, ebx
call fcn.004605f4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00462948
mov eax, ebx
call fcn.004634ac
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4604a5
call fcn.00403e8c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x460874
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x460913
cmp dword [ebx + 0x94], 0
jne 0x46090d
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4607fc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46090d
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4608d3
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46090d
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041636c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4608e2
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x460b2c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x49bcd0]
cmp dword [eax + 0x30], 0
je 0x460c89
test bl, bl
jne 0x460bda
cmp dword [esi + 0x9c], 0
jne 0x460bcf
mov eax, esi
call fcn.00463328
push eax
push 0x460a58
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x460ba0
mov eax, dword [0x49bcd0]
call fcn.00463a08
test al, al
je 0x460ba0
mov eax, dword [0x49bcf4]
call fcn.00405c80
mov edi, eax
cmp edi, 0
jl 0x460ba0
push 0
mov eax, dword [0x49bcf4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x460b8a
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x460bcf
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041636c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x460baf
inc dword [esi + 0x9c]
jmp 0x460c89
cmp dword [esi + 0x9c], 0
jle 0x460c89
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x460c89
cmp dword [esi + 0x44], 0
je 0x460c35
mov eax, dword [0x49bcd0]
call fcn.00463a08
test al, al
je 0x460c35
mov eax, dword [0x49bcf4]
call fcn.00405c80
mov edi, eax
cmp edi, 0
jl 0x460c35
push 5
mov eax, dword [0x49bcf4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x460c1f
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x460c64
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041636c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x460c44
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x49bcf4
mov ecx, 1
mov edx, dword [0x460a38]
call fcn.00405e34
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x46171c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x461786
mov eax, ebx
call fcn.00463a08
test al, al
jne 0x461786
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404b04
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x461773
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x461793
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404a68
jmp 0x461793
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404a68
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x462b2c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x462b9a
mov eax, esi
call fcn.0044c64c
test al, al
je 0x462b9a
mov eax, dword [ebx + 0x84]
call fcn.0044c29c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x462b9a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x462b8e
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044c29c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00444224
jmp 0x462b9a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00462968
pop esi
pop ebx
ret

Function at 0x467480
Capabilities:
Hide graphical window

Disassembly:
call fcn.00467448
test al, al
je 0x4674ae
mov eax, dword [0x495fe8]
mov eax, dword [eax]
cmp dword [eax + 0x44], 0
je 0x4674ae
push 0
mov eax, dword [0x495fe8]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
call fcn.0044c29c
push eax
call sub.user32.dll_ShowWindow
ret
push 0
mov eax, dword [0x495fe8]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x4852ac
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x485306
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0048529c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00482ef4
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00482a0c
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48530d
lea eax, [ebp - 4]
call fcn.00404a14
ret
Function at 0x491878
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
mov edi, dword [ebp + 8]
mov eax, edi
call fcn.00404a14
mov ecx, dword [0x495fe8]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x48a18c]
call fcn.004712b0
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x491902
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x120], 1
mov eax, dword [ebp - 4]
call fcn.0048c0c4
add eax, 0x88
mov edx, 0x49191c
call fcn.00404a68
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0048a6ec
test bl, bl
je 0x4918ec
mov edx, edi
mov eax, dword [edi]
call fcn.00406a04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491909
lea eax, [ebp - 4]
call fcn.0040ee64
ret
Function at 0x4010e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push str.ALAxALA
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
leave
ret
Function at 0x40148e
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push 0x104
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x94
push 0
lea eax, [ebp - 0x300]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x300], 0x94
lea eax, [ebp - 0x300]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
call fcn.00401118
call fcn.004010e0
test eax, eax
je 0x4014eb
xor eax, eax
jmp 0x4015e5
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x402028
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x402024
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.r.exe
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x69
lea eax, [ebp - 0x168]
push eax
push 0
call fcn.004015e9
add esp, 0xc
push 0x402030
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
call dword [sym.imp.MSVCRT.dll_rand]
mov dword [ebp - 0x408], eax
push 0x104
lea eax, [ebp - 0x26c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x402024
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
pop ecx
test eax, eax
jne 0x4015e3
push 1
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov dword [ebp - 0x40c], eax
push 1
pop eax
test eax, eax
je 0x4015e3
push 0x40202c
mov eax, dword [ebp - 0x408]
add eax, 0x4d
mov dword [ebp - 0x408], eax
mov eax, dword [ebp - 0x40c]
add eax, dword [ebp - 0x408]
movsx eax, byte [eax]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4015b0
xor eax, eax
leave
ret 0x10

Function at 0x4015e9
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov dword [ebp + 8], eax
push str.RT_RCDATA
movzx eax, word [ebp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x114], eax
push dword [ebp - 0x114]
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10c], eax
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x110], eax
push dword [ebp - 0x114]
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x11c], eax
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
push dword [ebp - 0x110]
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x118]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
leave
ret
Function at 0x401a00
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4063a0]
test esi, esi
jle 0x401b10
mov edi, dword [0x4063a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401a34
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401ab5
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x401a20
mov dword [esp], eax
mov ebx, eax
call sym.___mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x401b37
mov eax, dword [0x4063a4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
add eax, dword [edi + 0xc]
mov edx, dword [0x4063a4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401b17
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401aae
sub eax, 4
and eax, 0xfffffffb
jne 0x401ac0
add dword [0x4063a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x4063a4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401aae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
xor esi, esi
jmp 0x401a3e
mov eax, dword [0x4063a4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
mov esi, esi
lea edi, [edi]

Function at 0x401f70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4063b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4063b0]
sub esp, 4
test ebx, ebx
je 0x401fc5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401fbe
test esi, esi
je 0x401fbe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401fa0
mov dword [esp], 0x4063b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402660
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
nop
nop
nop
nop
nop