joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432ef0
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x4f46a0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64222c]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
push 0
push 0
push 0
push 0x502cb4
call dword [sym.imp.GDI32.dll_CreateDCW]
mov esi, eax
test esi, esi
je 0x433076
lea ecx, [esp + 0x14]
call fcn.004a3759
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 0
call fcn.004a3b1e
lea ecx, [esp + 0x24]
call fcn.004a3759
mov edi, dword [esp + 0x58]
mov byte [esp + 0x3c], 1
test edi, edi
jne 0x432f67
lea edi, [esp + 0x24]
cmp dword [edi + 4], 0
jne 0x433057
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, edi
call fcn.004a3b1e
test eax, eax
je 0x433057
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x76
push ecx
call esi
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x48]
push 0x75
push edx
mov dword [ebp], eax
call esi
mov ebx, dword [esp + 0x4c]
mov dword [ebx], eax
mov eax, dword [esp + 0x18]
push 8
push eax
call esi
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x50]
push 0xa
push edx
mov dword [ecx], eax
call esi
mov ecx, dword [esp + 0x54]
mov dword [ecx], eax
mov edx, dword [ebx]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
test esi, esi
je 0x433057
mov eax, dword [edi + 4]
push esi
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
mov ecx, dword [ebp]
mov edi, dword [edi + 4]
push 0x40cc0020
push 0
push 0
push edx
push eax
push ecx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x44]
push esi
call fcn.004a3dda
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 0
call fcn.004a3b87
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004a3b87
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 0
call fcn.004a3b87
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004a3b87
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x4345b0
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebx
call fcn.004344e0
add esp, 4
test eax, eax
je 0x4345c7
or dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
push 0
push eax
movzx ecx, bl
push 0
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push ebx
call dword [sym.imp.USER32.dll_keybd_event]
pop ebx
ret

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

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov eax, ebp
push edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x434420
sub eax, edx
sar eax, 1
mov esi, eax
xor edi, edi
mov dword [esp + 0xc], esi
test esi, esi
jle 0x4344d8
push ebx
movzx eax, word [ebp + edi*2]
mov ecx, pe_nt_image_headers32
cmp ax, cx
jae 0x4344c5
cmp ax, 0xd
je 0x4344ce
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
movzx ebx, ax
cmp bx, 0xffff
jne 0x43446d
movzx edx, word [ebp + edi*2]
push edx
jmp 0x4344c6
test bx, bx
jge 0x434478
not ebx
inc ebx
movzx ebx, bx
mov esi, ebx
sar esi, 8
push 0x14
and esi, 1
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x4344b2
movzx eax, word [ebp + edi*2]
cmp ax, 0x61
jb 0x43449d
cmp ax, 0x7a
jbe 0x4344a9
cmp ax, 0x41
jb 0x4344b2
cmp ax, 0x5a
ja 0x4344b2
xor eax, eax
test esi, esi
sete al
mov esi, eax
movzx ecx, bl
push esi
push ecx
call fcn.004342d0
mov esi, dword [esp + 0x18]
add esp, 8
jmp 0x4344ce
push eax
call fcn.004341d0
add esp, 4
inc edi
cmp edi, esi
jl 0x434440
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
push ecx
mov eax, dword [0x644390]
mov edx, dword [esp + 8]
test eax, eax
jne 0x434671
movzx eax, word [edx]
mov ecx, edx
test ax, ax
je 0x434622
movzx eax, ax
jmp 0x434610
cmp ax, 0x7f
ja 0x434671
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x434610
push esi
lea eax, [esp + 4]
push eax
push edx
mov dword [esp + 0xc], 0
call fcn.004041a0
mov esi, dword [esp + 0xc]
add esp, 8
cmp byte [esi], 0
je 0x4346b8
push ebx
mov ebx, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push edi
mov edi, dword [sym.imp.USER32.dll_keybd_event]
mov al, byte [esi]
cmp al, 0x7f
jae 0x43469e
cmp al, 0xa
je 0x43467d
cmp al, 0xd
je 0x43469b
movsx cx, al
movzx edx, cx
push edx
call fcn.004055c0
add esp, 4
inc esi
jmp 0x4346ad
add esp, 4
mov dword [esp + 4], edx
jmp 0x434410
push 0
push 0
push 0
push 0xd
call ebx
push eax
push 0xd
call edi
push 0
push 2
push 0
push 0xd
call ebx
push eax
push 0xd
call edi
inc esi
jmp 0x4346ad
movzx eax, word [esi]
push eax
call fcn.004055c0
add esp, 4
add esi, 2
cmp byte [esi], 0
jne 0x434650
mov esi, dword [esp + 0xc]
pop edi
pop ebx
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop esi
pop ecx
ret
Function at 0x434e8f
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x607c74
push eax
call fcn.004bcece
mov esi, eax
add esp, 8
test esi, esi
jne 0x434e8b
pop esi
ret
push edi
push esi
push 1
push 2
push 0x607c7c
call fcn.004bd528
mov edi, dword [esp + 0x20]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
add eax, eax
push 1
push eax
push edi
call fcn.004bd528
push esi
call fcn.004bcf5c
add esp, 0x14
pop edi
mov eax, 1
pop esi
ret
Function at 0x478710
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x4fa3b9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64222c]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
xor ebx, ebx
push eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebp, eax
cmp ebp, ebx
jne 0x47876f
mov eax, dword [esp + 0x3c]
mov dword [eax], ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
lea ecx, [esp + 0x14]
push ecx
call dword [0x63fe2c]
mov esi, dword [eax]
add esp, 4
mov dword [esp + 0x24], esi
cmp esi, ebx
je 0x47878a
inc dword [esi + 4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 1
cmp eax, ebx
je 0x4787b2
dec dword [eax + 4]
mov ecx, eax
add eax, 4
cmp dword [eax], ebx
jg 0x4787ae
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esp + 0x14], ebx
xor edi, edi
cmp dword [esp + 0x1c], ebx
jle 0x47882e
lea ebx, [ebx]
mov ecx, dword [ebp + edi*4]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [0x63fe18]
mov eax, dword [eax]
add esp, 4
mov ecx, esp
mov byte [esp + 0x38], 2
mov dword [esp + 0x2c], esp
mov dword [ecx], eax
cmp eax, ebx
je 0x4787e9
inc dword [eax + 4]
push ecx
mov eax, esp
mov dword [esp + 0x30], esp
mov dword [eax], esi
cmp esi, ebx
je 0x4787f9
inc dword [esi + 4]
call dword [0x63fe48]
mov eax, dword [esp + 0x20]
add esp, 8
mov byte [esp + 0x34], 1
cmp eax, ebx
je 0x478827
dec dword [eax + 4]
mov ecx, eax
add eax, 4
cmp dword [eax], ebx
jg 0x478823
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esp + 0x18], ebx
inc edi
cmp edi, dword [esp + 0x1c]
jl 0x4787c0
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [esp + 0x3c]
mov dword [edi], esi
cmp esi, ebx
je 0x478842
inc dword [esi + 4]
mov dword [esp + 0x20], 1
mov byte [esp + 0x34], bl
cmp esi, ebx
je 0x478864
dec dword [esi + 4]
cmp dword [esi + 4], ebx
jg 0x478864
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x483e00
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 4], 0
jne 0x483e5e
push ebx
mov ebx, dword [esp + 0xc]
push esi
lea esi, [edi + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0x40
mov eax, 0x483d10
mov dword [edi + 4], ebx
sub eax, esi
push 0xd
sub eax, 0xd
push esi
mov dword [esi], 0x42444c7
mov dword [esi + 4], edi
mov byte [esi + 8], 0xe9
mov dword [esi + 9], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0xd
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push esi
push 0xfffffffffffffffc
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop esi
mov dword [edi + 8], eax
pop ebx
pop edi
ret 4
Function at 0x4941c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4fcb38
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x64222c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x38]
cmp dword [edi], 0
je 0x494205
lea edi, [esi + 0x44]
mov ecx, 6
mov esi, str.the_buffer_must_be_empty
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x494288
push 0
push 0
lea ecx, [esp + 0x14]
call fcn.00497c30
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.00497c90
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00493dc0
lea ecx, [esp + 0xc]
test al, al
je 0x49427b
push 1
call fcn.00497cd0
lea ecx, [esp + 0xc]
mov dword [edi], eax
call fcn.00497db0
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
mov dword [edx], eax
mov dword [esp + 0x30], 0xffffffff
call fcn.00497ed0
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 0xc
mov dword [esp + 0x30], 0xffffffff
call fcn.00497ed0
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 0xc
Function at 0x49c0a2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x49c0c6
cmp dword [edi + 0x54], 0
jne 0x49c0c6
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004a75ae
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0049c063
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4a1d7d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4a1dc4
call fcn.004a75ae
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4a1dc4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4a1de0
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004a18f5
mov esi, eax
test edi, edi
je 0x4a1dde
test ebx, ebx
je 0x4a1dde
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4a2c0c
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4fcfab
call fcn.004bfe86
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4a2c31
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4a2c77
lea ecx, [ebp - 0x10]
call fcn.00401960
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0049c16f
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401020
mov eax, esi
call fcn.004bff5e
ret 8
Function at 0x4a620d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4a6255
call fcn.004a75ae
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4a6255
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4a6298
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4a6281
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4a6281
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4a6295
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4a86ad
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x4a86d8
call fcn.004a75ae
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x4a86fb
push eax
push dword [esi + 4]
call fcn.004a8633
push esi
push eax
mov ecx, 0x6707dc
call fcn.004a82e0
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x4ba4b8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x64222c]
jne 0x4ba4c2
repz ret
jmp fcn.004c698c
Function at 0x4d5eb2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004c3cb2
and dword [ebp - 4], 0
cmp dword [0x671648], 0
mov ebx, eax
jne 0x4d5f63
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4d6014
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4d6014
push eax
call fcn.004c3c40
mov dword [esp], 0x61f498
push edi
mov dword [0x671648], eax
call esi
push eax
call fcn.004c3c40
mov dword [esp], 0x61f484
push edi
mov dword [0x67164c], eax
call esi
push eax
call fcn.004c3c40
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x671650], eax
call esi
push eax
call fcn.004c3c40
pop ecx
mov dword [0x671658], eax
test eax, eax
je 0x4d5f63
push 0x61f450
push edi
call esi
push eax
call fcn.004c3c40
pop ecx
mov dword [0x671654], eax
mov eax, dword [0x671654]
cmp eax, ebx
je 0x4d5fbb
cmp dword [0x671658], ebx
je 0x4d5fbb
push eax
call fcn.004c3cbb
push dword [0x671658]
mov esi, eax
call fcn.004c3cbb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4d5fbb
test edi, edi
je 0x4d5fbb
call esi
test eax, eax
je 0x4d5fb2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4d5fb2
test byte [ebp - 0xc], 1
jne 0x4d5fbb
or dword [ebp + 0x10], 0x200000
jmp 0x4d5ff4
mov eax, dword [0x67164c]
cmp eax, ebx
je 0x4d5ff4
push eax
call fcn.004c3cbb
pop ecx
test eax, eax
je 0x4d5ff4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4d5ff4
mov eax, dword [0x671650]
cmp eax, ebx
je 0x4d5ff4
push eax
call fcn.004c3cbb
pop ecx
test eax, eax
je 0x4d5ff4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x671648]
call fcn.004c3cbb
pop ecx
test eax, eax
je 0x4d6014
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4d6016
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4e3f30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x10
push ebx
mov bl, byte [edx + 8]
cmp bl, 3
je 0x4e40da
mov ecx, dword [esp + 0x20]
push ebp
mov ebp, dword [edx]
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], esi
test bl, 2
je 0x4e3f88
movzx eax, byte [edx + 9]
movzx esi, byte [ecx]
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 1]
mov dword [esp + 0x10], edi
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 2]
sub eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov edi, 3
jmp 0x4e3f9b
movzx eax, byte [ecx + 3]
movzx edi, byte [edx + 9]
sub edi, eax
mov dword [esp + 0x10], edi
mov edi, 1
test bl, 4
je 0x4e3faf
movzx ecx, byte [ecx + 4]
movzx eax, byte [edx + 9]
sub eax, ecx
mov dword [esp + edi*4 + 0x10], eax
inc edi
xor ecx, ecx
xor eax, eax
cmp edi, ecx
jle case.0x4e3ff6.3
jmp 0x4e3fc0
cmp dword [esp + eax*4 + 0x10], ecx
jg 0x4e3fcc
mov dword [esp + eax*4 + 0x10], ecx
jmp 0x4e3fd1
mov esi, 1
inc eax
cmp eax, edi
jl 0x4e3fc0
cmp si, cx
je case.0x4e3ff6.3
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x4e3ff6.3
movzx eax, byte [eax + 0x4e40f4]
jmp dword [eax*4 + 0x4e40e0]
mov edx, dword [edx + 4]
mov eax, dword [esp + 0x28]
cmp edx, ecx
jbe case.0x4e3ff6.3
lea esp, [esp]
mov cl, byte [eax]
shr cl, 1
and cl, 0x55
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4e4010
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, dword [edx + 4]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ecx, edx
mov eax, 0xf0
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x4e3ff6.3
mov edi, edi
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x4e4050
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x4e3ff6.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x10]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x4e4076
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x4e3ff6.3
mov edi, edi
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, pe_nt_image_headers32
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x10]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x4e40a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4ef1a0
Capabilities:
Compute adler32 checksum

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
movzx ecx, di
shr edi, 0x10
test esi, esi
jne 0x4ef1ba
pop edi
lea eax, [esi + 1]
pop esi
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
jbe 0x4ef2ca
push ebp
jmp 0x4ef1d0
mov eax, ebx
cmp ebx, 0x15b0
jb 0x4ef1df
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
jl 0x4ef28b
mov edx, eax
shr edx, 4
mov ebp, edx
neg ebp
shl ebp, 4
add eax, ebp
jmp 0x4ef200
movzx ebp, byte [esi]
add ecx, ebp
movzx ebp, byte [esi + 1]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 2]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 3]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 4]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 5]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 6]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 7]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 8]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 9]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xa]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xb]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xc]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xd]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xe]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xf]
add edi, ecx
add ecx, ebp
add edi, ecx
add esi, 0x10
sub edx, 1
jne 0x4ef200
test eax, eax
je 0x4ef29d
nop
movzx edx, byte [esi]
add ecx, edx
inc esi
add edi, ecx
sub eax, 1
jne 0x4ef290
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
ja 0x4ef1d0
pop ebp
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
ret
Function at 0x402150
Capabilities:
Check if file exists
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432e78
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x44800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402199
call fcn.00402000
test eax, eax
je 0x402199
mov eax, 1
jmp 0x402240
cmp dword [0x448908], 0
je 0x40223e
push esi
mov dword [0x448908], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402c10
push ecx
lea edx, [ebp - 0x14]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004020a0
add esp, 4
push 0
push str.____
push dword [eax]
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0x18]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402210
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40223e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408856
mov esp, ebp
pop ebp
ret

Function at 0x4026f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402709
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402746
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402742
nop word [eax + eax]
cmp esi, edx
jae 0x402746
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x402730
cmp esi, edx
jb 0x40274d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret