joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427b90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x46e3a9
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov eax, dword [0x491c04]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x68]
mov dword [esi + 0xd8], eax
call fcn.00429020
lea ecx, [esp + 0x20]
push 6
xor edi, edi
push ecx
mov dword [esp + 0x84], edi
call fcn.00428440
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], 1
call fcn.00429020
mov ecx, dword [esi + 0xd8]
mov byte [esp + 0x7c], 2
call fcn.0042d260
test eax, eax
jle 0x427dd7
mov ecx, dword [esi + 0xd8]
push edi
call fcn.0042d250
mov ecx, eax
call fcn.0042b2d0
cmp eax, 0xa
jne 0x427dc3
mov ecx, dword [esi + 0xd8]
push edi
xor ebp, ebp
call fcn.0042d250
mov ecx, eax
call fcn.0042b5f0
test eax, eax
jle 0x427dc3
mov ecx, dword [esi + 0xd8]
lea edx, [esp + 0x44]
push edx
push ebp
push edi
call fcn.0042d250
mov ecx, eax
call fcn.0042b5e0
mov ecx, eax
call fcn.004307c0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 3
call fcn.004290a0
lea ecx, [esp + 0x44]
mov byte [esp + 0x7c], 2
call fcn.00429090
mov ecx, dword [esi + 0xd8]
push ebp
push edi
call fcn.0042d250
mov ecx, eax
call fcn.0042b5e0
mov ecx, eax
call fcn.00430770
cmp eax, 9
je 0x427d40
cmp eax, 0xc
jne 0x427da7
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x18]
call fcn.00429200
push 0x4777a0
mov ecx, eax
mov byte [esp + 0x80], 4
call fcn.00429120
lea ecx, [esp + 0x50]
mov bl, al
mov byte [esp + 0x7c], 2
call fcn.00429090
test bl, bl
je 0x427d16
push str.YingInstall_SoftReadme.MHT
lea ecx, [esp + 0x30]
call fcn.00428ec0
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 5
call fcn.004291e0
lea ecx, [esp + 0x2c]
jmp 0x427d9d
push str.YingInstall_SoftReadme.HTM
lea ecx, [esp + 0x3c]
call fcn.00428ec0
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 6
call fcn.004291e0
lea ecx, [esp + 0x38]
jmp 0x427d9d
push 0x477711
lea ecx, [esp + 0x18]
call fcn.00429180
test al, al
je 0x427da7
push 0
push 0
push 0
push 0
sub esp, 0xc
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0xa0], esp
push eax
call fcn.00428f30
lea ecx, [esp + 0x78]
push ecx
call fcn.004060e0
add esp, 0x10
lea ecx, [eax + 4]
mov byte [esp + 0x8c], 7
call fcn.00402be0
push eax
lea ecx, [esi + 0xe0]
call fcn.00423560
lea ecx, [esp + 0x5c]
mov byte [esp + 0x7c], 2
call fcn.00429090
mov ecx, dword [esi + 0xd8]
push edi
inc ebp
call fcn.0042d250
mov ecx, eax
call fcn.0042b5f0
cmp ebp, eax
jl 0x427c46
mov ecx, dword [esi + 0xd8]
inc edi
call fcn.0042d260
cmp edi, eax
jl 0x427c0d
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], 1
call fcn.00429090
lea ecx, [esp + 0x20]
mov byte [esp + 0x7c], 0
call fcn.00429090
lea ecx, [esp + 0x68]
mov dword [esp + 0x7c], 0xffffffff
call fcn.00429090
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 4
Function at 0x427e20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46e3d4
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x491c04]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
push 0x1d
lea eax, [esp + 0xc]
push eax
mov ecx, 0x4948b4
call fcn.0041f7c0
push eax
lea ecx, [esi + 0xc0]
mov dword [esp + 0x2c], 0
call fcn.004290a0
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.00429090
push 0x1e
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x4948b4
call fcn.0041f7c0
push eax
lea ecx, [esi + 0xcc]
mov dword [esp + 0x2c], 1
call fcn.004290a0
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.00429090
mov edx, dword [esp + 0x30]
push edx
push 0x87
mov ecx, esi
mov byte [esi + 0xdc], 0
call fcn.004029f0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 4
Function at 0x429aa0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x46e81f
mov eax, dword fs:[0]
push eax
mov eax, 0xa030
call fcn.00450c10
mov eax, dword [0x491c04]
xor eax, esp
mov dword [esp + 0xa02c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x491c04]
xor eax, esp
push eax
lea eax, [esp + 0xa044]
mov dword fs:[0], eax
mov ebp, ecx
xor ebx, ebx
push 0x477b75
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa050], ebx
call fcn.00428ec0
push 0x477be0
lea ecx, [esp + 0xa05c]
mov byte [esp + 0xa050], 1
call fcn.00402be0
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00450bb7
add esp, 0xc
test eax, eax
jne 0x429c48
mov ecx, dword [esp + 0x14]
push 2
push ebx
push ecx
call fcn.00452207
mov edx, dword [esp + 0x20]
push edx
call fcn.0045210f
add esp, 0x10
cmp eax, ebx
jne 0x429b57
mov eax, dword [esp + 0x14]
push eax
call fcn.004508bc
add esp, 4
jmp 0x429c48
cdq
mov ecx, 0xa000
idiv ecx
mov edi, edx
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call fcn.00451eac
add esp, 4
cmp esi, ebx
jle 0x429bce
mov eax, dword [esp + 0x14]
push eax
push 1
lea ecx, [esp + 0x3c]
push 0xa000
push ecx
call fcn.00451e8f
add esp, 0x10
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0xa038], bl
call fcn.00428fb0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa050], 2
call fcn.004291e0
lea ecx, [esp + 0x24]
mov byte [esp + 0xa04c], 1
call fcn.00429090
sub esi, 1
jne 0x429b74
mov ecx, dword [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0x3c]
push edi
push edx
call fcn.00451e8f
add esp, 0x10
mov byte [esp + edi + 0x34], bl
cmp edi, ebx
je 0x429c20
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
call fcn.00428fb0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa050], 3
call fcn.004291e0
lea ecx, [esp + 0x24]
mov byte [esp + 0xa04c], 1
call fcn.00429090
mov edx, dword [esp + 0x14]
push edx
call fcn.004508bc
add esp, 4
push ebx
sub esp, 0xc
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call fcn.00428f30
mov ecx, ebp
call fcn.00429830
lea ecx, [esp + 0x18]
mov byte [esp + 0xa04c], bl
call fcn.00429090
lea ecx, [esp + 0xa054]
mov dword [esp + 0xa04c], 0xffffffff
call fcn.00429090
mov ecx, dword [esp + 0xa044]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa02c]
xor ecx, esp
call fcn.0044f4be
add esp, 0xa03c
ret 0xc
Function at 0x430b90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46f7a0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x491c04]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x34]
push 0x14
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x4948b4
mov dword [esi + 0x108], eax
call fcn.0041f7c0
push eax
lea ecx, [esi + 0xd8]
mov dword [esp + 0x30], 0
call fcn.004290a0
or edi, 0xffffffff
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], edi
call fcn.00429090
push 0x15
lea edx, [esp + 0x10]
push edx
mov ecx, 0x4948b4
call fcn.0041f7c0
push eax
lea ecx, [esi + 0xe4]
mov dword [esp + 0x30], 1
call fcn.004290a0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], edi
call fcn.00429090
push 0x16
lea eax, [esp + 0x10]
push eax
mov ecx, 0x4948b4
call fcn.0041f7c0
push eax
lea ecx, [esi + 0xf0]
mov dword [esp + 0x30], 2
call fcn.004290a0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], edi
call fcn.00429090
push 0x17
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x4948b4
call fcn.0041f7c0
push eax
lea ecx, [esi + 0xfc]
mov dword [esp + 0x30], 3
call fcn.004290a0
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], edi
call fcn.00429090
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 4

Function at 0x431f66
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 0x431f8a
cmp dword [edi + 0x54], 0
jne 0x431f8a
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0043e2e9
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
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.00431f27
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 0x438680
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 0x4386c7
call fcn.0043e2e9
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4386c7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4386e3
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004381fa
mov esi, eax
test edi, edi
je 0x4386e1
test ebx, ebx
je 0x4386e1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4395b5
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x46fbaa
call fcn.004529b9
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4395da
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x439620
lea ecx, [ebp - 0x10]
call fcn.00402ac0
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.00438da0
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402dc0
mov eax, esi
call fcn.00452a91
ret 8

Function at 0x43ae4f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x491c04]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x43aeed
push 0x479b34
push 4
push eax
call fcn.0044fb04
push eax
call fcn.00416ad0
add esp, 0x10
push ebx
push edi
call fcn.00452ebd
mov edi, dword [eax]
call fcn.00452ebd
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00450956
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.00452ebd
cmp dword [eax], ebx
je 0x43af04
call fcn.00452ebd
push dword [eax]
call fcn.004330c3
pop ecx
jmp 0x43af0b
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x43ae95
jmp 0x43af92
call fcn.00452ebd
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
je 0x43af8e
cmp dword [ebp - 0x11c], esi
jae 0x43af8e
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x15c]
push ebx
push eax
mov dword [ebp - 0x160], 0x40
call fcn.00450460
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x43af7d
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x43af7d
lea ecx, [ebp - 0x160]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x43af7d
push ebx
push ebx
push esi
jmp 0x43af86
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x43af90
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044f4be
leave
ret
Function at 0x43cfd0
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 0x43d018
call fcn.0043e2e9
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x43d018
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x43d05b
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 0x43d044
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 0x43d044
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x43d058
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 0x44f4be
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x491c04]
jne 0x44f4c8
repz ret
jmp fcn.004565f5
Function at 0x4647ca
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.004576e8
and dword [ebp - 4], 0
cmp dword [0x4973a0], 0
mov ebx, eax
jne 0x46487b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x46492c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x480944
push edi
call esi
test eax, eax
je 0x46492c
push eax
call fcn.00457676
mov dword [esp], 0x480934
push edi
mov dword [0x4973a0], eax
call esi
push eax
call fcn.00457676
mov dword [esp], 0x480920
push edi
mov dword [0x4973a4], eax
call esi
push eax
call fcn.00457676
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4973a8], eax
call esi
push eax
call fcn.00457676
pop ecx
mov dword [0x4973b0], eax
test eax, eax
je 0x46487b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00457676
pop ecx
mov dword [0x4973ac], eax
mov eax, dword [0x4973ac]
cmp eax, ebx
je 0x4648d3
cmp dword [0x4973b0], ebx
je 0x4648d3
push eax
call fcn.004576f1
push dword [0x4973b0]
mov esi, eax
call fcn.004576f1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4648d3
test edi, edi
je 0x4648d3
call esi
test eax, eax
je 0x4648ca
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4648ca
test byte [ebp - 0xc], 1
jne 0x4648d3
or dword [ebp + 0x10], 0x200000
jmp 0x46490c
mov eax, dword [0x4973a4]
cmp eax, ebx
je 0x46490c
push eax
call fcn.004576f1
pop ecx
test eax, eax
je 0x46490c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x46490c
mov eax, dword [0x4973a8]
cmp eax, ebx
je 0x46490c
push eax
call fcn.004576f1
pop ecx
test eax, eax
je 0x46490c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4973a0]
call fcn.004576f1
pop ecx
test eax, eax
je 0x46492c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x46492e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4036a1
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp], eax
mov word [esp], bx
lea esp, [esp + 4]
jmp loc.008d0f31
jmp 0x40368b
Function at 0x4165ff
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x416621
mov eax, GradientFill
jmp 0x416701
mov ebx, dword [0x6ef218]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x4166cf
mov ebx, dword [0x6ef218]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
jne 0x416670
mov ebx, dword [0x6ef218]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x416670
mov eax, 1
jmp 0x416675
mov eax, 0
test eax, eax
je 0x4166a1
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x41668a
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x6ef218]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x4166f7
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x416701
mov esp, ebp
pop ebp
ret 4

Function at 0x4168de
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x416991
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]

Function at 0x4173e9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.004168de
test eax, eax
je 0x41742c
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x41742c
cmp word [eax], 0x5a4d
jne 0x41742c
add eax, dword [eax + 0x3c]
cmp dword [eax], reloc.MSVFW32.dll_DrawDibDraw
jne 0x41742c
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.004169b0
mov eax, dword [ebp + 8]
jmp 0x417445
mov esp, ebp
pop ebp
ret 4
Function at 0x4cfb30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x6fbbe0]
xor edx, edx
cmp eax, edx
jne 0x4cfb56
xor eax, eax
mov byte [eax + 0x6fbae0], al
inc eax
cmp eax, 0x100
jl 0x4cfb3e
mov dword [0x6fbbe0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x6fbae0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4cfbe7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4cfbba
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4cfb88
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4cfc60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4cfcb3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4cfc9a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e5810
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x598158
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4e5849
inc eax
mov dword [esi + 0x10], eax
jmp 0x4e595c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4e585d
mov eax, 0xffffffc7
jmp 0x4e595e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4e586e
cmp dword [esi + 8], eax
jne 0x4e585d
cmp dword [esi + 8], eax
jne 0x4e5887
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4e5887
mov eax, 0xffffffc7
jmp 0x4e595e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4e589b
push eax
mov ecx, ebx
call fcn.004e5040
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004ae2d0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4e58cc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004ae2f0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004e47b0
test eax, eax
mov dword [esp + 0x38], eax
je 0x4e58ff
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], reloc.MSVFW32.dll_DrawDibDraw
mov dword [esp + 0x10], 0x6b1fb8
call fcn.004ae4d0
mov eax, dword [esp + 0x38]
jmp 0x4e595e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004e5670
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4e5943
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004e5690
mov esi, eax
test esi, esi
jne 0x4e5973
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004e5670
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4e5915
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], reloc.MSVFW32.dll_DrawDibDraw
mov dword [esp + 0x10], 0x6b1fb8
call fcn.004ae4d0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], reloc.MSVFW32.dll_DrawDibDraw
mov dword [esp + 0x10], 0x6b1fb8
call fcn.004ae4d0
mov eax, esi
jmp 0x4e595e
Function at 0x4f8010
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4f8043
push esi
call fcn.00506320
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4f803c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4f80c9
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4f80b2
mov eax, dword [esi + 8]
test eax, eax
je 0x4f8067
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4f80ae
cmp eax, 2
je 0x4f80b2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4f805a
cmp eax, 3
je 0x4f808d
cmp eax, 1
jne 0x4f805a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4f805a
mov edx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4f805a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004f80f0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4f80d8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004f80f0
add esp, 4
pop esi
ret

Function at 0x519467
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5995c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x14]
call fcn.005835ab
mov eax, dword [0x6ea64c]
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x48], eax
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp ebx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x6b6414
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
je 0x5194c4
push ebx
call fcn.0083be94
inc edx
inc eax
push eax
call fcn.0058484b
add esp, 4
mov dword [esi + 4], eax
push ebx
push eax
call fcn.0083b9e5
push eax
mov ecx, dword [esp + 0x10]
or eax, reloc.MSVFW32.dll_DrawDibDraw
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x4c], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8