joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432674
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x44eb5c]
cmp dword [eax + 0x30], 0
je 0x43271e
cmp dword [ebx + 0x94], 0
jne 0x432718
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x432604
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x432718
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 0x4326de
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x432718
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.00413b8c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4326ed
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4331fc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x433231
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.004043d0
jmp 0x43323e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404334
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4340c8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x434109
mov eax, esi
call fcn.00447a64
test al, al
je 0x434109
mov eax, dword [ebx + 0x84]
call fcn.00447760
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x434109
push 0
mov eax, dword [ebx + 0x84]
call fcn.00447760
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x436d40
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004042e0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x436d8f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404548
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43ed30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x44ebd4], 0
je 0x43ee7f
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x44ddd8]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x43ee7f
mov eax, dword [0x44ebd8]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x44ebd4]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43ee4e
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x44ebd4]
call fcn.00413b8c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43ee46
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x43ee46
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x43ee46
mov eax, dword [ebp - 0x14]
call fcn.00447760
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43ee46
push ebp
call fcn.0043ecec
pop ecx
test al, al
jne 0x43ee46
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x43ee02
mov eax, dword [ebp - 0x14]
call fcn.004462f4
dec eax
jle 0x43ee46
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00403700
cmp byte [ebp - 1], 0
je 0x43ee46
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43ee46
mov edx, dword [ebp - 0x14]
mov eax, dword [0x44ebd8]
call fcn.0043e4b4
inc edi
dec ebx
jne 0x43ed95
mov eax, dword [0x44ebd8]
cmp dword [eax + 8], 0
jle 0x43ee66
mov eax, dword [0x44ebd8]
call fcn.0043e544
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43ee7f
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043eb54
pop ecx
test al, al
jne 0x43ee7f
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44242c
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 0x442478
mov eax, esi
call fcn.0042aad0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x442478
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x442478
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 0x4425bc
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4424b8
cmp eax, 0x108
ja 0x4424b8
mov eax, esi
call fcn.0042aad0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4425b3
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x4425bc
jmp 0x4425b3
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x44259a
cmp eax, 0x20a
ja 0x44259a
test byte [esi + 0x50], 0x80
jne 0x4424ea
sub eax, 0x203
je 0x4424e7
sub eax, 3
je 0x4424e7
sub eax, 3
jne 0x4424ea
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4424fe
dec eax
je 0x442513
dec eax
je 0x442533
dec eax
je 0x442513
jmp 0x44253a
mov ecx, ebx
mov eax, dword [0x44ddd8]
mov eax, dword [eax]
mov edx, esi
call fcn.00433f80
jmp 0x4425b3
cmp byte [esi + 0x5d], 1
jne 0x442529
mov eax, esi
mov si, 0xffed
call fcn.00403700
jmp 0x4425bc
or word [esi + 0x54], 1
jmp 0x4425b3
and word [esi + 0x54], 0xfffe
jmp 0x4425b3
mov eax, dword [0x44eb90]
cmp byte [eax + 0x20], 0
je 0x4425b3
mov eax, dword [0x44eb90]
cmp dword [eax + 0x1c], 0
je 0x4425b3
mov eax, dword [ebx]
mov edx, dword [0x44eb90]
cmp eax, dword [edx + 0x1c]
jne 0x4425b3
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.0042aa14
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.00403700
jmp 0x4425bc
mov eax, dword [ebx]
cmp eax, 0xb00b
jne 0x4425b3
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00440d68
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 0x445990
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 0x4459ac
cmp dword [esi + 4], 0
je 0x4459d9
test byte [ebx + 0x55], 1
jne 0x4459cb
mov eax, ebx
call fcn.00444654
test eax, eax
jne 0x4459cb
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x445ae9
mov edx, esi
mov eax, ebx
call fcn.004454b0
jmp 0x445ae9
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 0x445ae2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00447760
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.00442360
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00445990
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.00447760
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445ae9
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 0x44be40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x44df18]
cmp byte [eax + 0xc], 0
je 0x44bfad
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44bfa6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x44ebe4], 0
jne 0x44be94
push 0x44bfb4
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
push 0x44bfbc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44ebe4], eax
cmp dword [0x44db48], 0
jne 0x44bf8f
push 0x44bfcc
call sub.kernel32.dll_LoadLibraryA
mov dword [0x44db48], eax
cmp dword [0x44db48], 0
je 0x44bf8f
push 0x44bfd8
mov eax, dword [0x44db48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44ebe8], eax
push 0x44bfe8
mov eax, dword [0x44db48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44ebec], eax
push 0x44bffc
mov eax, dword [0x44db48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44ebf0], eax
push 0x44c014
mov eax, dword [0x44db48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44ebf4], eax
push 0x44c02c
mov eax, dword [0x44db48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44ebf8], eax
push 0x44c040
mov eax, dword [0x44db48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44ebfc], eax
push 0x44c058
mov eax, dword [0x44db48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44ec00], eax
push 0x44c070
mov eax, dword [0x44db48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44ec04], eax
push 0x44c08c
mov eax, dword [0x44db48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44ec08], eax
push 0x44c098
mov eax, dword [0x44db48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44ec0c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44bfad
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x46bb10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4d000]
push edi
or ebp, 0xffffffff
jmp 0x46bb32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46bb39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46bb28
mov eax, 1
add ebx, ebx
jne 0x46bb4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46bb40
jne 0x46bb5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46bb40
xor ecx, ecx
sub eax, 3
jb 0x46bb70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46bbe2
mov ebp, eax
add ebx, ebx
jne 0x46bb7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x46bb88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x46bbac
inc ecx
add ebx, ebx
jne 0x46bb98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46bb8d
jne 0x46bba9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46bb8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46bbcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46bbbd
jmp 0x46bb2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46bbcc
add edi, ecx
jmp 0x46bb2e
pop esi
mov edi, esi
mov ecx, 5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46bbea
cmp byte [edi], 0x30
jne 0x46bbea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x46bbef
lea edi, [esi + 0x69000]
mov eax, dword [edi]
or eax, eax
je 0x46bc67
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6e4f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6e52c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46bc1c
mov ecx, edi
jns 0x46bc4b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6e530]
or eax, eax
je 0x46bc61
mov dword [ebx], eax
add ebx, 4
jmp 0x46bc39
call dword [esi + 0x6e540]
mov ebp, dword [esi + 0x6e534]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x46bc9b
sub esp, 0xffffff80
jmp 0x4010b0

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x77c8c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x28a000]
push edi
or ebp, 0xffffffff
jmp 0x77c8e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x77c8e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x77c8d8
mov eax, 1
add ebx, ebx
jne 0x77c8fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x77c90c
jne 0x77c92b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x77c92b
dec eax
add ebx, ebx
jne 0x77c918
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x77c8f0
add ebx, ebx
jne 0x77c927
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x77c97d
xor ecx, ecx
sub eax, 3
jb 0x77c943
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x77c9b2
sar eax, 1
mov ebp, eax
jmp 0x77c94e
add ebx, ebx
jne 0x77c94e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x77c91c
inc ecx
add ebx, ebx
jne 0x77c95c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x77c91c
add ebx, ebx
jne 0x77c969
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x77c95e
jne 0x77c97a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x77c95e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x77c99c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x77c98e
jmp 0x77c8de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x77c99c
add edi, ecx
jmp 0x77c8de
pop esi
mov edi, esi
mov ecx, 0x37e4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x77c9ba
cmp byte [edi], 0x13
jne 0x77c9ba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x77c9bf
lea edi, [esi + 0x379000]
mov eax, dword [edi]
or eax, eax
je 0x77ca37
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3c1f6c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3c2030]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x77c9ec
mov ecx, edi
jns 0x77ca1b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3c2038]
or eax, eax
je 0x77ca31
mov dword [ebx], eax
add ebx, 4
jmp 0x77ca09
call dword [esi + 0x3c2034]
mov ebp, dword [esi + 0x3c203c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x77ca6b
sub esp, 0xffffff80
jmp 0x46f1ee

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x419334
Capabilities:
Create directory

Disassembly:
cmp dword [0x42c49c], 0
push edi
mov edi, ecx
jne 0x4193aa
push esi
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x419348
sub esi, ecx
sar esi, 1
sub esi, 1
je 0x4193a9
push ebx
push 0x5c
pop ebx
cmp word [edi + esi*2], bx
je 0x41936b
sub esi, 1
jne 0x419360
test esi, esi
je 0x4193a8
push edx
xor eax, eax
push edi
mov word [edi + esi*2], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x409b6c
push edi
push 0x42c4a8
mov word [edi + esi*2], bx
call dword [sym.imp.msvcrt.dll__wfopen_s]
add esp, 0xc
cmp dword [0x42c4a8], 0
je 0x4193a8
mov dword [0x42c49c], 1
pop ebx
pop esi
pop edi
ret

Function at 0x4197b4
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x400
xor esi, esi
mov dword [ebp - 8], ecx
and dword [ebp - 4], esi
mov edi, edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4197ec
push 8
xor edi, edi
pop esi
jmp 0x419877
test edi, edi
jne 0x419813
lea ecx, [ebp - 4]
call fcn.0041989a
mov edi, eax
test edi, edi
jne 0x419808
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x419867
push dword [ebp - 4]
push dword [ebp - 4]
push dword [ebp - 4]
jmp 0x41981b
mov eax, 0x409d38
push eax
push eax
push eax
push dword [ebp + 8]
push 0x200
push ebx
call dword [sym.imp.msvcrt.dll_swprintf_s]
mov ecx, dword [ebp - 8]
add esp, 0x18
mov edx, ebx
call fcn.004199ed
mov edi, eax
test edi, edi
jne 0x419867
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x419867
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.00411e8e
push esi
push dword [ebp - 8]
push 0x409db8
push 4
call fcn.0041944e
add esp, 0x10
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], 0
je 0x419886
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
jne 0x419891
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41a0c1
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, ecx
mov ecx, ebx
mov dword [ebp - 4], ecx
push edi
test esi, esi
je 0x41a146
test edx, edx
je 0x41a146
add edx, esi
lea edi, [esi + 0x10040]
mov dword [ebp - 8], edx
cmp edi, edx
jbe 0x41a0ed
mov edi, edx
lea eax, [esi + 0x40]
cmp eax, edi
jae 0x41a146
mov ecx, dword [eax - 4]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x41a139
lea eax, [esi + 0xf8]
add eax, ecx
cmp eax, edx
jae 0x41a139
cmp dword [ecx + esi], 0x4550
jne 0x41a139
mov eax, 0x14c
cmp word [ecx + esi + 4], ax
jne 0x41a139
mov ecx, esi
call fcn.0041a151
mov ebx, eax
mov eax, edx
mov ecx, ebx
mov dword [ebp - 4], eax
or ecx, eax
jne 0x41a143
mov edx, dword [ebp - 8]
add esi, dword [ebp + 8]
lea eax, [esi + 0x40]
cmp eax, edi
jb 0x41a0f4
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
mov edx, ecx
pop ebx
leave
ret 4
Function at 0x41a151
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x34
push 0x42af98
call fcn.0042ae54
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], eax
or ecx, 1
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x38]
push eax
push 3
lea eax, [ebp - 0x28]
push eax
push ecx
call dword [sym.imp.ntdll.dll_LdrFindResource_U]
jmp 0x41a1a7
push 0xfffffffffffffffe
mov dword [ebp - 0x30], eax
pop esi
mov dword [ebp - 4], esi
test eax, eax
js 0x41a231
mov dword [ebp - 4], 1
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
call dword [sym.imp.ntdll.dll_LdrAccessResource]
jmp 0x41a1e0
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], esi
test eax, eax
js 0x41a231
mov dword [ebp - 4], 2
cmp dword [ebp - 0x3c], 0x5c
jb 0x41a21e
push 0x40a144
mov eax, dword [ebp - 0x34]
add eax, 6
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x41a21e
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [ecx + 0x34]
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], esi
jmp 0x41a231
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41a4f2
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, edx
xor ecx, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
test esi, esi
je 0x41a583
test eax, eax
je 0x41a583
push ebx
lea edx, [esi + eax]
lea ebx, [esi + 0x10040]
mov dword [ebp - 0xc], edx
cmp ebx, edx
jbe 0x41a522
mov ebx, edx
push edi
mov edi, esi
lea eax, [esi + 0x40]
jmp 0x41a57d
mov ecx, dword [eax - 4]
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x41a574
lea eax, [edi + 0xf8]
add eax, ecx
cmp eax, edx
jae 0x41a574
cmp dword [ecx + edi], 0x4550
jne 0x41a574
mov eax, 0x14c
cmp word [ecx + edi + 4], ax
jne 0x41a574
mov edx, esi
mov ecx, edi
sub edx, edi
add edx, dword [ebp - 8]
call fcn.0041a58a
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x41a581
mov edx, dword [ebp - 0xc]
jmp 0x41a577
mov ecx, dword [ebp - 4]
add edi, dword [ebp + 8]
lea eax, [edi + 0x40]
cmp eax, ebx
jb 0x41a52a
pop edi
pop ebx
mov eax, ecx
pop esi
leave
ret 4