joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c3f4
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 0x44c59f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44c580
mov dl, 1
mov eax, dword [0x41b7b0]
call fcn.004033a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404274
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44c56f
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.004682dc
test al, al
je 0x44c562
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, 0x44c5b0
lea eax, [ebp - 0x254]
call fcn.00409d58
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44c562
xor eax, eax
push ebp
push 0x44c55b
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 0x44c5e8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44c544
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044e4
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 0x44c544
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c562
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44c465
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041ff68
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 0x44c5a6
lea eax, [ebp - 0x260]
call fcn.00404274
ret
Function at 0x44c562
Capabilities:
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 0x44c59f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44c580
mov dl, 1
mov eax, dword [0x41b7b0]
call fcn.004033a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404274
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44c56f
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.004682dc
test al, al
je 0x44c562
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, 0x44c5b0
lea eax, [ebp - 0x254]
call fcn.00409d58
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44c562
xor eax, eax
push ebp
push 0x44c55b
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 0x44c5e8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44c544
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044e4
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 0x44c544
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c562
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44c465
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041ff68
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 0x44c5a6
lea eax, [ebp - 0x260]
call fcn.00404274
ret
Function at 0x45e020
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x45e06c
mov eax, esi
call fcn.00445970
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x45e06c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x45e06c
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x45e1ab
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x45e0ac
cmp eax, 0x108
ja 0x45e0ac
mov eax, esi
call fcn.00445970
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x45e1a2
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x45e1ab
jmp 0x45e1a2
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x45e18b
cmp eax, 0x20a
ja 0x45e18b
test byte [esi + 0x50], 0x80
jne 0x45e0de
sub eax, 0x203
je 0x45e0db
sub eax, 3
je 0x45e0db
sub eax, 3
jne 0x45e0de
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x45e0f2
dec eax
je 0x45e107
dec eax
je 0x45e124
dec eax
je 0x45e107
jmp 0x45e12b
mov ecx, ebx
mov eax, dword [0x48055c]
mov eax, dword [eax]
mov edx, esi
call 0x44ef98
jmp 0x45e1a2
cmp byte [esi + 0x5d], 1
jne 0x45e11d
mov eax, esi
mov si, 0xffed
call fcn.004035d4
jmp 0x45e1ab
or word [esi + 0x54], 1
jmp 0x45e1a2
and word [esi + 0x54], 0xfffe
jmp 0x45e1a2
mov eax, dword [0x481bb0]
cmp byte [eax + 0x20], 0
je 0x45e1a2
mov eax, dword [0x481bb0]
cmp dword [eax + 0x1c], 0
je 0x45e1a2
mov eax, dword [ebx]
mov edx, dword [0x481bb0]
cmp eax, dword [edx + 0x1c]
jne 0x45e1a2
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.004458b4
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.004035d4
jmp 0x45e1ab
cmp eax, 0xb00b
jne 0x45e1a2
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call 0x45c940
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461718
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x461734
cmp dword [esi + 4], 0
je 0x461761
test byte [ebx + 0x55], 1
jne 0x461753
mov eax, ebx
call fcn.004602b8
test eax, eax
jne 0x461753
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x461871
mov edx, esi
mov eax, ebx
call fcn.0046123c
jmp 0x461871
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x46186a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004635c0
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0045df54
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00461718
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004635c0
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461871
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x467f7c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x480724]
cmp byte [eax + 0xc], 0
je 0x4680e9
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4680e2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x481c04], 0
jne 0x467fd0
push 0x4680f0
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
push 0x4680f8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481c04], eax
cmp dword [0x480090], 0
jne 0x4680cb
push 0x468108
call sub.kernel32.dll_LoadLibraryA
mov dword [0x480090], eax
cmp dword [0x480090], 0
je 0x4680cb
push 0x468114
mov eax, dword [0x480090]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481c08], eax
push 0x468124
mov eax, dword [0x480090]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481c0c], eax
push 0x468138
mov eax, dword [0x480090]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481c10], eax
push 0x468150
mov eax, dword [0x480090]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481c14], eax
push 0x468168
mov eax, dword [0x480090]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481c18], eax
push 0x46817c
mov eax, dword [0x480090]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481c1c], eax
push 0x468194
mov eax, dword [0x480090]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481c20], eax
push 0x4681ac
mov eax, dword [0x480090]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481c24], eax
push 0x4681c8
mov eax, dword [0x480090]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481c28], eax
push 0x4681d4
mov eax, dword [0x480090]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x481c2c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4680e9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x469120
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov dword [esp], ecx
mov esi, edx
mov ebx, eax
mov eax, 0x10000
call fcn.00402788
mov dword [ebx + 0x2e8], eax
mov edi, esi
mov ebp, dword [esp]
test ebp, ebp
jle 0x469165
mov esi, 1
mov eax, dword [esp]
dec eax
call fcn.00402de4
inc eax
mov edx, dword [ebx + 0x2e8]
mov word [edx + esi*2 - 2], ax
inc esi
dec ebp
jne 0x46914c
mov ebp, dword [esp]
test ebp, ebp
jle 0x4691b8
mov esi, 1
mov al, byte [ebx + 0x43]
xor al, byte [ebx + 0x42]
xor al, byte [ebx + 0x41]
xor al, byte [ebx + 0x40]
mov byte [esp + 4], al
mov eax, 0xff
call fcn.00402de4
mov dl, byte [edi + esi - 1]
xor dl, byte [esp + 4]
xor al, dl
mov byte [edi + esi - 1], al
xor eax, eax
mov al, byte [edi + esi - 1]
add eax, dword [ebx + 0x40]
add eax, dword [ebx + 0x3c]
imul dword [ebx + 0x2f8]
add eax, dword [ebx + 0x2fc]
mov dword [ebx + 0x40], eax
inc esi
dec ebp
jne 0x469171
mov ebp, dword [esp]
test ebp, ebp
jle 0x469207
mov esi, 1
mov eax, dword [ebx + 0x2e8]
movzx eax, word [eax + esi*2 - 2]
mov al, byte [edi + eax - 1]
cmp al, byte [edi + esi - 1]
je 0x469203
xor byte [edi + esi - 1], al
mov eax, dword [ebx + 0x2e8]
movzx eax, word [eax + esi*2 - 2]
mov dl, byte [edi + esi - 1]
xor byte [edi + eax - 1], dl
mov eax, dword [ebx + 0x2e8]
movzx eax, word [eax + esi*2 - 2]
mov al, byte [edi + eax - 1]
xor byte [edi + esi - 1], al
inc esi
dec ebp
jne 0x4691c4
mov edx, 0x10000
mov eax, dword [ebx + 0x2e8]
call fcn.004027a8
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x469220
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, edx
mov ebx, eax
mov eax, 0x10000
call fcn.00402788
mov dword [ebx + 0x2e8], eax
mov edi, ebp
test edi, edi
jle 0x46925c
mov esi, 1
mov eax, ebp
dec eax
call fcn.00402de4
inc eax
mov edx, dword [ebx + 0x2e8]
mov word [edx + esi*2 - 2], ax
inc esi
dec edi
jne 0x469244
mov esi, ebp
cmp esi, 1
jl 0x4692bf
mov eax, dword [ebx + 0x2e8]
movzx eax, word [eax + esi*2 - 2]
mov ecx, dword [ebx + 0x2e0]
mov al, byte [ecx + eax - 1]
mov edx, dword [ebx + 0x2e0]
cmp al, byte [edx + esi - 1]
je 0x4692ba
xor byte [edx + esi - 1], al
mov edx, dword [ebx + 0x2e8]
movzx edx, word [edx + esi*2 - 2]
mov eax, dword [ebx + 0x2e0]
mov cl, byte [eax + esi - 1]
xor byte [eax + edx - 1], cl
mov edx, dword [ebx + 0x2e8]
movzx edx, word [edx + esi*2 - 2]
mov eax, dword [ebx + 0x2e0]
mov dl, byte [eax + edx - 1]
xor byte [eax + esi - 1], dl
dec esi
test esi, esi
jne 0x469263
mov edx, 0x10000
mov eax, dword [ebx + 0x2e8]
call fcn.004027a8
mov edi, ebp
test edi, edi
jle 0x469347
mov esi, 1
mov eax, dword [ebx + 0x2e0]
mov dl, byte [eax + esi - 1]
mov byte [eax + esi - 1], dl
mov eax, dword [ebx + 0x2e0]
mov al, byte [eax + esi - 1]
mov byte [esp], al
mov al, byte [ebx + 0x43]
xor al, byte [ebx + 0x42]
xor al, byte [ebx + 0x41]
xor al, byte [ebx + 0x40]
mov byte [esp + 1], al
mov eax, 0xff
call fcn.00402de4
mov edx, dword [ebx + 0x2e0]
mov dl, byte [edx + esi - 1]
xor dl, byte [esp + 1]
xor al, dl
mov edx, dword [ebx + 0x2e0]
mov byte [edx + esi - 1], al
xor eax, eax
mov al, byte [esp]
add eax, dword [ebx + 0x40]
add eax, dword [ebx + 0x3c]
imul dword [ebx + 0x2f8]
add eax, dword [ebx + 0x2fc]
mov dword [ebx + 0x40], eax
inc esi
dec edi
jne 0x4692da
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x46b3d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46b443
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0xff]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
lea eax, [ebp - 0xff]
call fcn.004098e8
lea edx, [ebp - 0x104]
mov eax, dword [ebx]
call fcn.0046a690
mov edx, dword [ebp - 0x104]
mov eax, ebx
call fcn.004042c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b44a
lea eax, [ebp - 0x104]
call fcn.00404274
ret
Function at 0x47d8d8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x418], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405df0
xor eax, eax
push ebp
push 0x47daea
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x414]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x94]
call fcn.00405e8c
mov edi, dword [ebp - 0x414]
push 0
push 0x47dafc
push 0
push edi
call sub.user32.dll_FindWindowExA
mov edi, eax
push 0
push 0x47db04
push 0
push edi
call sub.user32.dll_FindWindowExA
mov edi, eax
test edi, edi
je 0x47dab7
mov eax, dword [0x480454]
mov eax, dword [eax]
sub eax, 6
je 0x47d971
dec eax
je 0x47d9a6
jmp 0x47dab7
push 0
push 0x47db14
push 0
push edi
call sub.user32.dll_FindWindowExA
mov edi, eax
push 0
push 0x47db24
push 0
push edi
call sub.user32.dll_FindWindowExA
mov edi, eax
push 0
push 0x47db30
push 0
push edi
call sub.user32.dll_FindWindowExA
mov edi, eax
jmp 0x47da13
push 0
push 0x47db38
push 0
push edi
call sub.user32.dll_FindWindowExA
mov edi, eax
push 0
push 0x47db14
push 0
push edi
call sub.user32.dll_FindWindowExA
mov edi, eax
push 0
push 0x47db24
push 0
push edi
call sub.user32.dll_FindWindowExA
mov edi, eax
push 0
push 0x47db30
push 0
push edi
call sub.user32.dll_FindWindowExA
mov edi, eax
jmp 0x47da13
push 0x400
lea eax, [ebp - 0x40d]
push eax
push edi
call sub.user32.dll_GetWindowTextA
lea edx, [ebp - 0x418]
lea eax, [ebp - 0x40d]
call fcn.004098e8
mov eax, dword [ebp - 0x418]
lea edx, [ebp - 8]
call fcn.004088a8
test edi, edi
je 0x47dab7
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0047d564
test al, al
je 0x47dab7
cmp dword [esi + 0x8c], 0
je 0x47dab7
cmp dword [ebp - 0xc], 0
je 0x47dab7
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.0047d7a0
test al, al
je 0x47dab7
mov al, byte [0x47db4c]
push eax
lea eax, [ebp - 0x41c]
push eax
mov ecx, dword [esi + 0x8c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call 0x40ddf8
mov edx, dword [ebp - 0x41c]
lea eax, [ebp - 8]
call fcn.0040430c
mov eax, dword [ebp - 8]
call fcn.00404734
push eax
push edi
call sub.user32.dll_SetWindowTextA
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47daf1
lea eax, [ebp - 0x41c]
mov edx, 2
call fcn.00404298
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404298
lea eax, [ebp - 4]
call fcn.00405d7c
ret
Function at 0x401584
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fwrite
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x401e74
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movzx edx, word [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push ebx
xor ebx, ebx
mov esi, esi
mov eax, edx
xor ecx, ecx
and eax, 1
test al, al
je 0x401ea0
nop
lea esi, [esi]
shr edx, 1
inc ecx
mov eax, edx
and eax, 1
test al, al
jne 0x401e94
mov dword [esi + ebx*4], ecx
inc ebx
test edx, edx
je 0x401ec7
mov al, dl
xor ecx, ecx
xor al, 1
and al, 1
test al, al
je 0x401ec1
shr edx, 1
inc ecx
mov al, dl
xor al, 1
and al, 1
test al, al
jne 0x401eb4
mov dword [esi + ebx*4], ecx
inc ebx
jmp 0x401e84
mov edx, 0x10
sub edx, ecx
mov dword [esi + ebx*4], edx
inc ebx
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x413dd0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable
Function at 0x413e30
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4987e0]
test esi, esi
jle 0x413f1d
mov edi, dword [0x4987e4]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x413e64
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x413f16
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x413e50
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x413f5a
lea ebx, [esi + esi*2]
mov esi, dword [0x4987e4]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x4987e4]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x413f3a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x413f0f
sub eax, 0x40
and eax, 0xffffffbf
je 0x413f0f
mov eax, dword [esp + 0x20]
add ebx, dword [0x4987e4]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x413f24
add dword [0x4987e0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x413e6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x4987e4]
mov eax, dword [eax + ebx + 4]
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 dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]

Function at 0x414420
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x498b88
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x498b80]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x414475
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 0x41446e
test esi, esi
je 0x41446e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x414450
mov dword [esp], 0x498b88
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x414690
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x4146c8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x4146be
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4146ca
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4146b0
xor eax, eax
pop ebx
pop esi
ret