joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002540
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0x105
lea eax, [ebp - 8]
push eax
push 0x1002cfac
lea ecx, [ebp - 4]
push ecx
push 0
push str.LogPath
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10002826
push 0x1002cfac
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x10002826
push 0x1002cfac
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0xf0
jg 0x10002826
push 0x1002cfac
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10002826
push 0x1002cfac
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movsx eax, byte [eax + 0x1002cfab]
cmp eax, 0x5c
jne 0x100025e0
push 0x1002cfac
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [eax + 0x1002cfab], 0
mov ecx, dword [ebp + 0xc]
and ecx, 0xff
cmp ecx, 1
jne 0x10002753
cmp dword [0x1002c530], 1
jne 0x100026ca
push 0x10025178
push 0x10025180
push 0x1002cfac
push 0x1002518c
push 0x1002cb64
call fcn.1000e682
add esp, 0x14
push 0x10025194
push 0x1002519c
push 0x1002cfac
push 0x100251ac
push 0x1002ca5c
call fcn.1000e682
add esp, 0x14
push 0x100251b4
push str.EpsScnImg3
push 0x1002cfac
push 0x100251c8
push 0x1002c84c
call fcn.1000e682
add esp, 0x14
push 0x100251d0
push str.EpsScnImg3B
push 0x1002cfac
push 0x100251e4
push 0x1002c744
call fcn.1000e682
add esp, 0x14
push 0x100251ec
push str.EpsScnImg3R
push 0x1002cfac
push 0x10025200
push 0x1002c63c
call fcn.1000e682
add esp, 0x14
push 0x10025208
push str.EpsScnImg3RB
push 0x1002cfac
push 0x10025220
push 0x1002c534
call fcn.1000e682
add esp, 0x14
jmp 0x1000274e
push 0x10025228
push 0x10025230
push 0x1002cfac
push 0x1002523c
push 0x1002cb64
call fcn.1000e682
add esp, 0x14
push 0x10025244
push 0x1002524c
push 0x1002cfac
push 0x1002525c
push 0x1002ca5c
call fcn.1000e682
add esp, 0x14
push 0x10025264
push str.EpsScnImg
push 0x1002cfac
push 0x10025278
push 0x1002c84c
call fcn.1000e682
add esp, 0x14
push 0x10025280
push str.EpsScnImgR
push 0x1002cfac
push 0x10025294
push 0x1002c63c
call fcn.1000e682
add esp, 0x14
jmp 0x10002824
cmp dword [0x1002c530], 1
jne 0x100027c1
push 0x1002529c
push 0x100252a4
push 0x1002cfac
push 0x100252b0
push 0x1002cb64
call fcn.1000e682
add esp, 0x14
push 0x100252b8
push 0x100252c0
push 0x1002cfac
push 0x100252d0
push 0x1002ca5c
call fcn.1000e682
add esp, 0x14
push 0x100252d8
push 0x100252e0
push 0x1002cfac
push 0x100252ec
push 0x1002c954
call fcn.1000e682
add esp, 0x14
jmp 0x10002824
push 0x100252f4
push 0x100252fc
push 0x1002cfac
push 0x10025308
push 0x1002cb64
call fcn.1000e682
add esp, 0x14
push 0x10025310
push 0x10025318
push 0x1002cfac
push 0x10025328
push 0x1002ca5c
call fcn.1000e682
add esp, 0x14
push 0x10025330
push 0x10025338
push 0x1002cfac
push 0x10025344
push 0x1002c954
call fcn.1000e682
add esp, 0x14
jmp 0x1000283a
push 0x105
push 0
push 0x1002cfac
call fcn.1000e030
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x10003030
Capabilities:
Delete file
Get file size
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x1002cb64
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x1000304a
jmp 0x100031d0
push 0
push 0x8000080
push 4
push 0
push 1
push 0x40000000
push 0x1002cb64
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x10003075
jmp 0x100031d0
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x10003098
mov ecx, dword [0x1002cfa4]
shl ecx, 0xa
cmp dword [ebp - 0xc], ecx
jb 0x10003116
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1002ca5c
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x1002ca5c
push 0x1002cb64
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x100030c6
jmp 0x100031d0
push 0
push 0x8000080
push 4
push 0
push 1
push 0x40000000
push 0x1002cb64
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x100030f1
jmp 0x100031d0
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x10003111
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [0x1002cfa4]
jb 0x10003116
jmp 0x100031d0
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
test ecx, ecx
je 0x1000319d
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 0x64
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000319b
push 0
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 1
push ecx
mov edx, dword [ebp - 8]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x100031bc
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x1000bb70
Capabilities:
Get file version info

Disassembly:
sub esp, 0x110
push ebx
push esi
push edi
call fcn.1001d452
mov eax, dword [eax + 8]
lea ecx, [esp + 0x18]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x1000bbb4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x110
ret
lea edi, [ebx + 1]
push edi
call fcn.10017f88
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000bbd3
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x110
ret
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
lea eax, [esp + 0x20]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, 1
je 0x1000bc10
push esi
call fcn.1000e96c
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x110
ret
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push str.StringFileInfo041104b0FileVersion
push esi
call sub.VERSION.dll_VerQueryValueA
cmp eax, 1
je 0x1000bc40
push esi
call fcn.1000e96c
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x120]
push eax
mov ecx, edi
call fcn.10017c7e
push esi
call fcn.10017fb1
add esp, 4
mov ecx, edi
push 0x2e
push 0x2c
call fcn.10016ff6
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
Function at 0x10013d01
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1002bc18
cmp edx, dword [eax]
je 0x10013d23
add eax, 8
inc ecx
cmp eax, 0x1002bca8
jl 0x10013d14
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1002bc18]
jne 0x10013e51
mov eax, dword [0x1002f4f4]
cmp eax, 1
je 0x10013e2b
test eax, eax
jne 0x10013d54
cmp dword [0x1002f4f8], 1
je 0x10013e2b
cmp edx, 0xfc
je 0x10013e51
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10013d8b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10014610
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1000e090
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10013dce
lea eax, [ebp - 0x1a4]
push eax
call fcn.1000e090
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x100207a4
push edi
call fcn.100152d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10014610
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10014620
lea eax, [ebp - 0xa0]
push 0x10020784
push eax
call fcn.10014620
push dword [esi + 0x1002bc1c]
lea eax, [ebp - 0xa0]
push eax
call fcn.10014620
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1001523b
add esp, 0x2c
pop edi
jmp 0x10013e51
lea eax, [ebp + 8]
lea esi, [esi + 0x1002bc1c]
push 0
push eax
push dword [esi]
call fcn.1000e090
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
fld qword [0x42d900]
mov eax, dword [ebp + 0xc]
fstp qword [esp + 0x10]
push esi
fld qword [0x42d8f8]
mov esi, dword [ebp + 8]
fstp qword [esp + 0xc]
push edi
fld dword [0x42d8f0]
lea edi, [esi + eax*4]
fstp dword [esp + 8]
fld dword [0x433560]
fld1
fsub st(1), st(0)
fxch st(1)
fstp dword [0x433560]
fld dword [0x433560]
fadd dword [esp + 8]
fmul qword [esp + 0x18]
fstp qword [esp + 0x18]
fld dword [0x4330f8]
fadd st(1)
fstp dword [0x4330f8]
fld qword [esp + 0x10]
fadd st(1)
fstp qword [esp + 0x10]
fld dword [0x4330f8]
mov ecx, dword [0x4333f0]
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
fld qword [esp + 0x10]
fsubp st(2)
fadd qword [esp + 0x10]
fucompp
fnstsw ax
fld qword [esp + 0x10]
fadd st(1)
fstp qword [esp + 0x10]
test ah, 0x44
jp 0x40167f
mov dx, word [0x433424]
mov cx, word [0x433488]
movsx eax, dx
movsx edx, cx
sub edx, eax
mov dword [esp + 0xc], edx
or ecx, 0xffffffff
fild dword [esp + 0xc]
fld qword [0x433380]
fadd qword [0x4332b8]
add word [0x433424], cx
add word [0x433488], cx
fcompp
fnstsw ax
test ah, 0x41
jne 0x40166b
fld dword [0x43337c]
fmul qword [esp + 0x18]
fstp dword [0x43337c]
fld qword [esp + 0x18]
fadd st(1)
jmp 0x40167b
fld qword [esp + 0x18]
fld dword [esp + 8]
fadd qword [0x42d8e8]
fsubp st(1)
fstp qword [esp + 0x18]
mov eax, dword [ebp + 0x10]
cmp esi, edi
je 0x401739
fld qword [0x42d8e0]
fld qword [0x42d8d8]
xor dword [esi], eax
fld qword [esp + 0x18]
fsub qword [0x4332a8]
ror eax, 1
mov dword [esp + 0xc], eax
shr eax, 8
fsub st(2)
fstp qword [esp + 0x10]
fld qword [0x4332a8]
fadd st(3)
fstp qword [0x4332a8]
fld qword [esp + 0x18]
fadd st(3)
fstp qword [esp + 0x18]
mov cx, word [0x433474]
mov edx, dword [0x433268]
movsx ecx, cx
add edx, ecx
mov cl, byte [esp + 0xc]
add al, cl
mov word [0x433474], dx
inc dword [0x433268]
add cl, al
fld dword [esp + 8]
mov byte [esp + 0xd], al
mov ax, word [0x4333c4]
fsub st(1)
mov byte [esp + 0xc], cl
movsx ecx, ax
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fmulp st(1)
call fcn.00415890
mov word [0x4333c4], ax
fld dword [esp + 8]
mov eax, dword [esp + 0xc]
fadd st(3)
add esi, 4
fstp dword [esp + 8]
cmp esi, edi
jne 0x401696
fstp st(2)
fstp st(0)
pop edi
fstp st(0)
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402d70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
fld qword [0x42db70]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 8], 0xbd9f1087
mov eax, 0xfffff88e
mov word [esp], ax
fstp qword [esp + 0x14]
fld dword [0x42db6c]
push ebx
push esi
fstp dword [esp + 0x18]
fld dword [0x42db68]
add ecx, 4
push edi
fstp dword [esp + 0x10]
push ecx
call fcn.004153c7
mov dx, word [0x4334b0]
mov esi, eax
movsx eax, dx
add eax, 0xe7aff9e
add esp, 4
cmp eax, 0x5c1fda43
mov dword [esp + 0x1c], esi
jg 0x402dea
fld qword [0x433338]
fsubr qword [0x42db60]
fmul dword [esp + 0x10]
fstp dword [esp + 0x10]
fld1
mov edi, dword [ebp + 8]
mov ecx, dword [0x4333c8]
mov al, byte [edi + 0x4292c0]
imul ecx, ecx, 0x67dd5009
mov dword [0x4333c8], ecx
mov byte [esi], al
mov edx, dword [0x435390]
mov cl, byte [edx + edi]
xor cl, al
mov byte [esi], cl
dec dword [esp + 0xc]
mov dx, word [0x433524]
movzx ecx, word [esp + 0xc]
movsx eax, dx
mov dl, byte [edi + 0x4292c1]
sub eax, ecx
mov word [0x433524], ax
mov eax, dword [esp + 0x14]
movzx ecx, word [esp + 0xc]
sub eax, 0x2e994f15
imul eax, ecx
mov byte [esi + 1], dl
mov edx, dword [0x435390]
inc edi
inc esi
mov word [esp + 0xc], ax
movzx eax, byte [edx + edi]
fld qword [esp + 0x20]
fsub qword [esp + 0x20]
xor byte [esi], al
mov ecx, dword [0x4332d4]
movzx ebx, word [esi - 1]
mov dword [esp + 0x10], ecx
dec esi
inc edi
fild dword [esp + 0x10]
fmulp st(1)
call fcn.00415890
mov dword [0x4332d4], eax
fld qword [esp + 0x20]
fadd st(1)
movzx ebx, bx
lea edx, [ebx + 3]
push edx
fstp qword [esp + 0x24]
lea eax, [edi + 0x4292c0]
fsubr qword [esp + 0x24]
push eax
push esi
mov dword [esp + 0x1c], ebx
fstp qword [esp + 0x2c]
call fcn.00415520
lea ebx, [ebx + esi + 3]
fld dword [0x42db58]
add esp, 0xc
fstp dword [0x4331f4]
mov ecx, dword [0x433398]
mov edx, dword [0x435390]
add edi, edx
mov word [0x43339c], cx
cmp esi, ebx
je 0x402eea
lea esp, [esp]
mov al, byte [edi]
xor byte [esi], al
inc esi
inc edi
cmp esi, ebx
jne 0x402ee0
mov ecx, dword [esp + 0x10]
cmp dword [ebp + 0xc], ecx
je 0x402f7b
mov byte [ebx], 0
fld dword [0x43301c]
fsub qword [esp + 0x20]
mov dx, word [0x43340c]
movsx eax, dx
mov dword [esp + 0x18], eax
fsub qword [0x42db50]
sub ebx, 3
fild dword [esp + 0x18]
fmulp st(1)
call fcn.00415890
mov ecx, dword [esp + 0x10]
sub dword [ebp + 0xc], ecx
mov word [0x43340c], ax
fld dword [0x43312c]
fsub qword [0x42db48]
mov edi, dword [ebx]
mov esi, ebx
fsub qword [0x42db40]
fcomp qword [0x42db38]
fnstsw ax
fld dword [0x43312c]
fld1
fadd st(1), st(0)
fxch st(1)
fstp dword [0x43312c]
test ah, 0x41
jne 0x402def
fld dword [0x42db30]
fstp dword [esp + 0x10]
jmp 0x402def
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407170
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
cmp dword [0x4356d8], 0
fld qword [0x42dfc8]
mov eax, 0x42bf
mov word [esp], ax
mov dword [esp], 0xfde0751f
fstp qword [esp]
jne 0x40719f
call fcn.00406100
mov dword [0x4356d8], eax
fld qword [esp]
push ebx
fsub qword [0x42d848]
push esi
push edi
push 3
fstp qword [esp + 0x10]
push 0x189b
fld qword [esp + 0x14]
fsub qword [0x42dfc0]
fadd qword [0x42dfb8]
fadd qword [0x433048]
fstp qword [0x433048]
call fcn.00402d70
fld dword [0x433560]
mov esi, eax
fsubr qword [0x42dfb0]
call fcn.00415890
mov ebx, dword [esp + 0x20]
push esi
mov dword [0x43335c], eax
push ebx
call fcn.004166ba
fld dword [0x42dbe0]
mov edi, eax
xor eax, eax
mov ecx, 0xfffff28f
mov dword [esi], eax
mov word [esp + 0x1c], cx
fstp dword [esp + 0x1c]
mov word [esi + 4], ax
push esi
mov byte [esi + 6], al
call fcn.004152ea
add esp, 0x14
test edi, edi
jne 0x40728a
push 0x3e8
call dword [0x434b3c]
push 3
push 0x189b
call fcn.00402d70
movzx edx, word [0x43319c]
mov esi, eax
sub edx, 0x70297c10
push esi
mov word [0x43319c], dx
push ebx
call fcn.004166ba
mov edi, eax
fld dword [0x42dbe0]
mov eax, 0xfffff28f
mov word [esp + 0x1c], ax
xor eax, eax
fstp dword [esp + 0x1c]
mov dword [esi], eax
mov word [esi + 4], ax
push esi
mov byte [esi + 6], al
call fcn.004152ea
add esp, 0x14
test edi, edi
je 0x4072a2
push edi
push 1
push 4
push 0x4356d8
call fcn.00416d40
push edi
call fcn.00416b62
add esp, 0x14
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x407233
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
cmp dword [0x4356d8], 0
fld qword [0x42dfc8]
mov eax, 0x42bf
mov word [esp], ax
mov dword [esp], 0xfde0751f
fstp qword [esp]
jne 0x40719f
call fcn.00406100
mov dword [0x4356d8], eax
fld qword [esp]
push ebx
fsub qword [0x42d848]
push esi
push edi
push 3
fstp qword [esp + 0x10]
push 0x189b
fld qword [esp + 0x14]
fsub qword [0x42dfc0]
fadd qword [0x42dfb8]
fadd qword [0x433048]
fstp qword [0x433048]
call fcn.00402d70
fld dword [0x433560]
mov esi, eax
fsubr qword [0x42dfb0]
call fcn.00415890
mov ebx, dword [esp + 0x20]
push esi
mov dword [0x43335c], eax
push ebx
call fcn.004166ba
fld dword [0x42dbe0]
mov edi, eax
xor eax, eax
mov ecx, 0xfffff28f
mov dword [esi], eax
mov word [esp + 0x1c], cx
fstp dword [esp + 0x1c]
mov word [esi + 4], ax
push esi
mov byte [esi + 6], al
call fcn.004152ea
add esp, 0x14
test edi, edi
jne 0x40728a
push 0x3e8
call dword [0x434b3c]
push 3
push 0x189b
call fcn.00402d70
movzx edx, word [0x43319c]
mov esi, eax
sub edx, 0x70297c10
push esi
mov word [0x43319c], dx
push ebx
call fcn.004166ba
mov edi, eax
fld dword [0x42dbe0]
mov eax, 0xfffff28f
mov word [esp + 0x1c], ax
xor eax, eax
fstp dword [esp + 0x1c]
mov dword [esi], eax
mov word [esi + 4], ax
push esi
mov byte [esi + 6], al
call fcn.004152ea
add esp, 0x14
test edi, edi
je 0x4072a2
push edi
push 1
push 4
push 0x4356d8
call fcn.00416d40
push edi
call fcn.00416b62
add esp, 0x14
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x41593b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x433690]
jne 0x415945
repz ret
jmp fcn.00419846

Function at 0x41f587
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.004199be
and dword [ebp - 4], 0
cmp dword [0x43607c], 0
mov ebx, eax
jne 0x41f638
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41f6e9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41f6e9
push eax
call fcn.0041994c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43607c], eax
call esi
push eax
call fcn.0041994c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x436080], eax
call esi
push eax
call fcn.0041994c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x436084], eax
call esi
push eax
call fcn.0041994c
pop ecx
mov dword [0x43608c], eax
test eax, eax
je 0x41f638
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041994c
pop ecx
mov dword [0x436088], eax
mov eax, dword [0x436088]
cmp eax, ebx
je 0x41f690
cmp dword [0x43608c], ebx
je 0x41f690
push eax
call fcn.004199c7
push dword [0x43608c]
mov esi, eax
call fcn.004199c7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41f690
test edi, edi
je 0x41f690
call esi
test eax, eax
je 0x41f687
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41f687
test byte [ebp - 0xc], 1
jne 0x41f690
or dword [ebp + 0x10], 0x200000
jmp 0x41f6c9
mov eax, dword [0x436080]
cmp eax, ebx
je 0x41f6c9
push eax
call fcn.004199c7
pop ecx
test eax, eax
je 0x41f6c9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41f6c9
mov eax, dword [0x436084]
cmp eax, ebx
je 0x41f6c9
push eax
call fcn.004199c7
pop ecx
test eax, eax
je 0x41f6c9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43607c]
call fcn.004199c7
pop ecx
test eax, eax
je 0x41f6e9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41f6eb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
out 1, eax
mov bl, 0x10
iretd
add ecx, dword [ebx + esi*4]
adc byte [edi + 0x26ef4c55], bl
mov ebp, 0xaad8b906
dec esp
out dx, eax
mov ebp, 0xaad8b906
cmpsd dword [esi], dword es:[edi]
sti
fsub dword [eax + 0x2c]
xchg byte [esi + 0x55], ah
movsb byte es:[edi], byte [esi]
cdq
stosd dword es:[edi], eax
mov bl, 0x6a
out 0x21, eax
dec ecx
pop es
xor eax, dword [edx]
mov bl, 0x10
out dx, al
xchg edi, eax
inc eax
out dx, eax
jb 0x4153be
test eax, 0x2db52229
scasb al, byte es:[edi]
daa
push esp
and al, 0x3f
xor eax, 0xd1854c16
mov ebp, 0xaad95316
sbb al, 7
mov dword [0x9e10b2e8], eax
push ebp
jl 0x4153ac
daa
out dx, eax
dec eax
fbld tbyte [ebp + edx*2 - 0xc]
scasd eax, dword es:[edi]
push edi
adc al, 0x4c
pop es
ja 0x4153b8
mov bl, 0x10
iretd
Function at 0x324142
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
push edi
push dword [esp + 0x38]
push eax
push dword [esp + 0x38]
push edx
push ecx
call fcn.00326dc3
mov ecx, dword [eax]
lea ebp, [eax + 4]
mov edi, dword [ebp]
add esp, 0x14
mov dword [esp + 0x1c], 0x92889
xor edi, ecx
mov dword [esp + 0x20], 0xe27f2
add ebp, 4
mov dword [esp + 0x24], 0x2967a
mov dword [esp + 0x28], 0x68e00
mov dword [esp + 0x10], 0x2b5038
xor dword [esp + 0x10], 0xf8623106
or dword [esp + 0x10], 0x188404b8
add dword [esp + 0x10], 0xe4a8
xor dword [esp + 0x10], 0xf8ce4a67
mov dword [esp + 0x34], 0xd36d71
or dword [esp + 0x34], 0x65ec4c62
imul eax, dword [esp + 0x34], 0x5c
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], eax
xor dword [esp + 0x34], 0xb1a6b198
xor dword [esp + 0x34], 0x166de4c8
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
add ecx, edi
mov esi, dword [esp + 0x10]
dec eax
add esi, edi
test eax, ecx
je 0x324208
mov eax, dword [esp + 0x34]
dec eax
not eax
and esi, eax
add esi, dword [esp + 0x34]
mov dword [esp + 0x34], 0xdbb4d4
mov edx, esi
add dword [esp + 0x34], 0x8a88
shl dword [esp + 0x34], 0xd
shl dword [esp + 0x34], 0xd
xor dword [esp + 0x34], 0x700abd10
mov dword [esp + 0x10], 0x5bec98
shr dword [esp + 0x10], 0xb
xor dword [esp + 0x10], 0x4f107
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
push ecx
call fcn.003232c0
mov ebx, eax
mov dword [esp + 0x14], ebx
pop ecx
test ebx, ebx
je 0x3242bc
and dword [esp + 0x34], 0
xor eax, eax
shr esi, 2
mov edx, ebx
lea ecx, [esi*4]
add ecx, ebp
mov esi, ecx
sub esi, ebp
add esi, 3
shr esi, 2
cmp ebp, ecx
cmova esi, eax
test esi, esi
je 0x3242b8
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebp]
lea ebp, [ebp + 4]
xor ecx, ebx
mov byte [edx], cl
mov eax, ecx
shr eax, 8
lea edx, [edx + 4]
shr ecx, 0x10
mov byte [edx - 3], al
mov byte [edx - 2], cl
shr ecx, 8
inc edi
mov byte [edx - 1], cl
cmp edi, esi
jb 0x32428a
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov byte [ebx + edi], 0
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x1c
ret