joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d210
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x40d232
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40d239
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40d228
mov eax, 1
add ebx, ebx
jne 0x40d24b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40d240
jne 0x40d25c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40d240
xor ecx, ecx
sub eax, 3
jb 0x40d270
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40d2e2
mov ebp, eax
add ebx, ebx
jne 0x40d27b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40d288
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40d2ac
inc ecx
add ebx, ebx
jne 0x40d298
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40d28d
jne 0x40d2a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40d28d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40d2cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40d2bd
jmp 0x40d22e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40d2cc
add edi, ecx
jmp 0x40d22e
pop esi
mov edi, esi
mov ecx, 0x96
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40d2ea
cmp byte [edi], 1
jne 0x40d2ea
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 eax, ebx
loop 0x40d2ef
lea edi, [esi + 0xb000]
mov eax, dword [edi]
or eax, eax
je 0x40d35e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40d31c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd054]
or eax, eax
je 0x40d358
mov dword [ebx], eax
add ebx, 4
jmp 0x40d339
call dword [esi + 0xd058]
popal
jmp 0x403d40
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40401c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x404028
push 0x404024
push 0x404020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x404028]
push dword [0x404024]
push dword [0x404020]
mov dword [0x404014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push esi
xor esi, esi
mov dword [ebp - 0x84], 1
mov dword [ebp - 0x88], 0x35
mov eax, dword [ebp - 0x88]
or eax, eax
jl 0x4012dc
cmp eax, dword [0x4040e0]
jge 0x4012dc
cmp byte [eax + 0x4040e4], 0x5b
jge 0x4013a4
mov dword [ebp - 0x8c], 0x1318
jmp 0x401374
mov dword [ebp - 0x90], 0x1559
mov dword [ebp - 0x94], 0x2d
mov eax, dword [ebp - 0x94]
or eax, eax
jl 0x401320
cmp eax, dword [0x4040e0]
jge 0x401320
movsx eax, byte [eax + 0x4040e4]
cmp eax, 0xd2
je 0x401357
mov eax, dword [ebp - 0x94]
or eax, eax
jl 0x401341
cmp eax, dword [0x4040e0]
jge 0x401341
movsx eax, byte [eax + 0x4040e4]
cmp eax, 0xca
jl 0x401357
add dword [ebp - 0x94], 0x147
cmp dword [ebp - 0x94], 0xcab
jl 0x4012ff
add dword [ebp - 0x90], 0xfffffcf4
cmp dword [ebp - 0x90], 0x15
jg 0x4012f5
add dword [ebp - 0x8c], 0x21a
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebp - 0x88]
jge 0x40138a
or eax, eax
jg 0x4012eb
add dword [ebp - 0x88], 0x1ef
cmp dword [ebp - 0x88], 0x1a8c
jl 0x4012bc
call fcn.00401e11
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, esi
or al, 0x40
push eax
mov eax, dword [fcn.00402128]
mov edx, dword [0x4040dc]
sub edx, eax
push edx
push dword [0x4040d8]
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x401552
mov dword [ebp - 0x8c], 0x2695
mov dword [ebp - 0x90], 0x1958
jmp 0x4014e4
mov eax, dword [ebp - 0x90]
or eax, eax
jl 0x401414
cmp eax, dword [0x4040e0]
jge 0x401414
cmp byte [eax + 0x4040e4], 0x4e
jle 0x4014fa
mov dword [ebp - 0x94], 0x2e
mov eax, dword [ebp - 0x94]
or eax, eax
jl 0x401443
cmp eax, dword [0x4040e0]
jge 0x401443
movsx eax, byte [eax + 0x4040e4]
cmp eax, 0x8a
jl 0x4014da
mov dword [ebp - 0xa0], 0x366
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x9c], eax
mov ecx, 0x366
cmp ecx, eax
jle 0x401478
mov dword [ebp - 0x9c], 0x366
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x98], eax
jmp 0x4014ae
mov eax, dword [ebp - 0x98]
or eax, eax
jl 0x4014a7
cmp eax, dword [0x4040e0]
jge 0x4014a7
movsx eax, byte [eax + 0x4040e4]
cmp eax, 0xa0
jg 0x4014c0
add dword [ebp - 0x98], 0x5d
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebp - 0x9c]
jge 0x4014c0
or eax, eax
jg 0x401486
add dword [ebp - 0x94], 0x2f6
cmp dword [ebp - 0x94], 0x1e53
jl 0x40141e
add dword [ebp - 0x90], 0x249
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebp - 0x8c]
jge 0x4014fa
or eax, eax
jg 0x4013f4
add dword [ebp - 0x8c], 0xfffffde2
cmp dword [ebp - 0x8c], 0x56
jg 0x4013e5
push esi
call fcn.00401b73
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.00401c91
mov eax, esi
add eax, 0x1ca00
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x88]
mov ecx, esi
inc ecx
cdq
idiv ecx
push eax
push 0x4040e4
call fcn.00402128
add esp, 0x18
xor eax, eax
pop esi
leave
ret
Function at 0x4019e9
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov eax, esi
add eax, 0xc8
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0xc]
mov edx, edi
or dl, 1
mov ecx, esi
imul ecx, edx
mov eax, edi
sub eax, ecx
mov ecx, dword [ebp - 4]
cdq
idiv ecx
mov dword [ebp - 0xc], eax
and dword [ebp - 8], 0
jmp 0x401b60
or esi, esi
je 0x401a35
mov eax, dword [ebp - 8]
mov edx, eax
add edx, eax
mov dword [ebp - 0x18], edx
jmp 0x401a3b
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 8], eax
jne 0x401a6e
mov edi, dword [ebp + 0xc]
mov eax, esi
mov ecx, edi
or cl, 1
cdq
idiv ecx
add edi, eax
mov edx, dword [ebp - 8]
mov ecx, esi
inc ecx
imul edx, ecx
imul edx, dword [ebp - 4]
sub edi, edx
mov dword [ebp - 4], edi
cmp dword [ebp - 4], 0
je 0x401b6e
and dword [ebp - 0x14], 0
push esi
call fcn.00401557
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
xor edx, esi
mov dword [ebp - 0x34], edx
mov ecx, eax
or eax, esi
mov ecx, edi
mov edx, esi
shl edx, cl
mov ecx, edi
add ecx, edx
cdq
idiv ecx
mov edi, dword [ebp - 0x34]
add edi, edx
mov dword [ebp - 0x1c], edi
mov eax, edi
movzx edx, byte [ebx + eax]
mov ecx, edx
mov edi, esi
sar edi, cl
sub edx, edi
mov byte [ebp - 0x29], dl
push esi
call fcn.00401557
add esp, 8
mov dword [ebp - 0x30], eax
mov edi, dword [ebp - 0x10]
mov eax, esi
mov ecx, edi
or cl, 1
cdq
idiv ecx
mov edx, eax
add edx, edi
mov dword [ebp - 0x3c], edx
mov edi, dword [ebp - 0x30]
mov ecx, esi
mov eax, edi
shl eax, cl
mov dword [ebp - 0x38], eax
mov edi, dword [ebp - 4]
mov ecx, esi
dec ecx
push edi
xchg ecx, edi
and ecx, edi
pop edi
cdq
idiv ecx
mov edi, dword [ebp - 0x3c]
add edi, edx
mov dword [ebp - 0x20], edi
movzx edx, byte [ebx + edi]
mov ecx, esi
mov edi, edx
shr edi, cl
mov edx, edi
mov byte [ebp - 0x21], dl
mov edi, dword [ebp - 0x20]
movzx eax, byte [ebp - 0x29]
mov ecx, esi
inc ecx
xor edx, edx
div ecx
mov dword [ebp - 0x40], eax
mov edx, eax
mov byte [ebx + edi], dl
movzx eax, byte [ebp - 0x21]
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], edx
mov eax, esi
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x44]
or cl, 1
mul ecx
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x50]
sub eax, edx
mov edx, dword [ebp - 0x4c]
mov byte [ebx + edx], al
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x7e8
jl 0x401a7c
inc dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, esi
cmp dword [ebp - 8], eax
jle 0x401a25
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401043
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push 0x1f4
push dword [ebp + 8]
call sub.USER32.dll_LoadIconA
mov dword [0x43500c], eax
jmp 0x40106b
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 0x3000
mov dword [ebp - 0x28], 0x401197
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push dword [ebp + 8]
pop dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x40105d
push dword [0x43500c]
pop dword [ebp - 0x18]
push 0x7f00
push 0
call sub.USER32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
push dword [0x43500c]
pop dword [ebp - 4]
lea eax, [ebp - 0x30]
push eax
call sub.USER32.dll_RegisterClassExA
mov dword [ebp - 0x50], 0xc0
mov dword [ebp - 0x54], 0x96
push 0
call sub.USER32.dll_GetSystemMetrics
push eax
push dword [ebp - 0x50]
call fcn.00401283
mov dword [ebp - 0x58], eax
push 1
call sub.USER32.dll_GetSystemMetrics
push eax
push dword [ebp - 0x54]
call fcn.00401283
mov dword [ebp - 0x5c], eax
push 0
push dword [ebp + 8]
push 0
push 0
push dword [ebp - 0x54]
push dword [ebp - 0x50]
push dword [ebp - 0x5c]
push dword [ebp - 0x58]
push 0x80000
push str.Animate
push 0x40105d
push 0
call sub.USER32.dll_CreateWindowExA
mov dword [0x435004], eax
push 0x258
push dword [ebp + 8]
call sub.USER32.dll_LoadMenuA
push eax
push dword [0x435004]
call sub.USER32.dll_SetMenu
push 1
push dword [0x435004]
call sub.USER32.dll_ShowWindow
push dword [0x435004]
call sub.USER32.dll_UpdateWindow
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.USER32.dll_GetMessageA
cmp eax, 0
je 0x401190
lea eax, [ebp - 0x4c]
push eax
call sub.USER32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.USER32.dll_DispatchMessageA
jmp 0x401168
mov eax, dword [ebp - 0x44]
leave
ret 0x10

Function at 0x4013e0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 1
jne 0x4013f4
mov eax, dword [0x4350ec]
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
jmp 0x401406
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [0x4350f0]
shr edx, 1
cmp dword [ebp - 4], edx
jae 0x40148b
mov eax, dword [ebp - 4]
mov ecx, dword [0x4350d4]
movzx edx, word [ecx + eax*2]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
shr eax, 0xc
cmp eax, 3
jne 0x401486
mov ecx, dword [ebp - 0xc]
and ecx, 0xfff
add ecx, 0x1474
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
sub edx, 0x1474
mov dword [ebp - 8], edx
cmp dword [ebp - 4], 0
jne 0x401467
push 0x20e
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x401467
xor eax, eax
jmp 0x40148b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx]
add eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov dword [edx + ecx], eax
jmp 0x4013fd
mov esp, ebp
pop ebp
ret
Function at 0x401800
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x4350e0], 0x24e1
mov eax, dword [0x4350e0]
sub eax, 0x24e1
mov dword [0x4350e0], eax
mov ecx, 1
test ecx, ecx
je 0x4018ab
mov edx, dword [0x4350e0]
cmp edx, dword [ebp + 0xc]
jb 0x401837
jmp 0x4018ab
cmp dword [0x4350e0], 0
jne 0x401855
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x401855
xor eax, eax
jmp 0x4018ab
mov eax, dword [ebp + 8]
add eax, dword [0x4350e0]
mov ecx, dword [eax]
add ecx, dword [0x4350e0]
mov edx, dword [ebp + 8]
add edx, dword [0x4350e0]
mov dword [edx], ecx
mov dword [ebp - 4], 0x12d6f0
mov eax, dword [0x4350e0]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x4350e0]
push eax
call fcn.004015b0
add esp, 8
mov ecx, dword [0x4350e0]
add ecx, 4
mov dword [0x4350e0], ecx
jmp 0x40181d
mov esp, ebp
pop ebp
ret
Function at 0x4015d0
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40f894
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x120
test eax, eax
push ebp
push esi
push edi
jne 0x4015fd
xor eax, eax
jmp 0x4017cb
push ecx
mov dword [esp + 0x14], esp
mov ebp, esp
push 0xc
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x140]
mov dword [esp + 0x138], 0
test esi, esi
je 0x401654
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.0040f593
test eax, eax
mov dword [esi], eax
jne 0x401656
test edi, edi
je 0x401656
push 0x8007000e
call fcn.0040f4e6
jmp 0x401656
xor esi, esi
test esi, esi
mov dword [esp + 0x138], 0xffffffff
mov dword [ebp], esi
jne 0x401672
push 0x8007000e
call fcn.0040f4e6
mov ecx, dword [esp + 0x144]
call fcn.004017f0
cmp ax, 0xffff
je 0x4017c6
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
lea eax, [esp + 0x28]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x28]
push ecx
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0x80
push 2
push 0
push 0
lea eax, [esp + 0x3c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x134], 1
jne 0x4016eb
xor eax, eax
jmp 0x4017cb
lea ecx, [esp + 0x24]
push 0
push ecx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40170d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4017cb
or edi, 0xffffffff
push esi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x28]
mov word [esp + 0x14], 8
push edx
call fcn.0040f593
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x40174a
lea ecx, [esp + 0x28]
test ecx, ecx
je 0x40174a
push 0x8007000e
call fcn.0040f4e6
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0xe]
push ecx
mov esi, dword [esp + 0x144]
sub esp, 0x10
mov byte [esp + 0x148], 2
mov ecx, esp
mov edx, dword [esi]
push esi
mov dword [ecx], ebp
mov ebp, dword [esp + 0x30]
mov dword [ecx + 4], ebp
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 0xc], eax
call dword [edx + 0xe8]
test eax, eax
jge 0x401793
push 0x415950
push esi
push eax
call fcn.0040f4f4
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 1
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x4017b0
push eax
call fcn.0040f4e6
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp word [esp + 0xe], di
je 0x4017c6
xor eax, eax
jmp 0x4017cb
mov eax, 1
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x12c
ret
Function at 0x4018f0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40f8c8
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
test edi, edi
jne 0x401927
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x28], 0
call ebx
test eax, eax
jge 0x401951
push eax
call fcn.0040f4e6
mov esi, dword [esp + 0x2c]
mov word [esp + 0xc], 8
push esi
call fcn.0040f593
test eax, eax
mov dword [esp + 0x14], eax
jne 0x401978
test esi, esi
je 0x401978
push 0x8007000e
call fcn.0040f4e6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0xc]
sub esp, 0x10
mov eax, esp
mov edx, dword [edi]
push edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0xc], ecx
call dword [edx + 0x108]
mov esi, eax
test esi, esi
jge 0x4019c6
push 0x415950
push edi
push esi
call fcn.0040f4f4
test esi, esi
mov dword [esp + 0x24], 0xffffffff
je 0x4019f5
lea edx, [esp + 0xc]
push edx
call ebx
test eax, eax
jge 0x4019e1
push eax
call fcn.0040f4e6
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0xc]
push eax
call ebx
test eax, eax
jge 0x401a06
push eax
call fcn.0040f4e6
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret

Function at 0x401a90
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 8]
test eax, eax
jne 0x401a9b
pop ecx
ret
mov ecx, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
push eax
lea eax, [esp + 8]
mov dword [esp + 8], 1
push eax
push str.DisplayVersion
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_storm2
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], ecx
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
neg eax
sbb eax, eax
inc eax
pop ecx
ret

Function at 0x401ae0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401b2d
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 8]
push esi
push edx
push str.UninstallString
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_storm2
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x24], eax
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x401b2d
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov eax, 1
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret
Function at 0x4027b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x148
xor eax, eax
push esi
push edi
mov edi, dword [esp + 0x158]
mov esi, dword [esp + 0x154]
mov ecx, edi
push esi
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4027ec
pop edi
xor al, al
pop esi
add esp, 0x148
ret
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x402808
pop edi
xor al, al
pop esi
add esp, 0x148
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], eax
mov al, byte [esp + 0x15c]
test al, al
mov dword [esp + 0xc], ecx
je 0x40283a
lea edx, [esp + 8]
lea eax, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea ecx, [esp + 8]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
pop edi
mov al, 1
pop esi
add esp, 0x148
ret
Function at 0x402b00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402b4f
test al, 0x10
je 0x402b4f
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push 0
push 1
push esi
call fcn.00402860
add esp, 0x14
test al, al
je 0x402b4b
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
dec eax
pop esi
neg eax
sbb eax, eax
inc eax
ret
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
Function at 0x402d90
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402e0d
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x402e0d
mov edx, dword [esp + 0x14]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
fild qword [esp + 8]
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0
pop edi
pop esi
fmul qword [0x411550]
fild qword [esp]
faddp st(1)
add esp, 8
ret
fld qword [0x411548]
pop edi
pop esi
add esp, 8
ret
Function at 0x403470
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0xc
mov eax, dword [str.StormPlayer_PrcoShareIDName_gbhgferereeEE98721eha]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push esi
push edi
xor edi, edi
push eax
push edi
mov dword [esp + 0x1c], ecx
push 4
call ebp
mov esi, eax
test esi, esi
je 0x403580
mov ebx, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
push edi
push edi
push 4
push esi
call ebx
test eax, eax
je 0x4034b3
mov edi, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x403580
mov ecx, dword [str.StormPlayer_PrcoShareHwndName_gbhgferereeEE98721eha]
xor edi, edi
push ecx
push edi
push 4
call ebp
mov esi, eax
test esi, esi
je 0x403580
push edi
push edi
push edi
push 4
push esi
call ebx
test eax, eax
je 0x4034ef
mov edi, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x403580
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
mov eax, dword [esp + 0x10]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x403580
mov ecx, dword [esp + 0x14]
push 4
push 0x1000
mov edx, dword [ecx + 0xe0]
mov esi, dword [edx - 8]
inc esi
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x403580
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push esi
mov edx, dword [ecx + 0xe0]
mov dword [esp + 0x20], 0
push edx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push edi
push esi
push 0x7ef
push ebp
call dword [sym.imp.USER32.dll_PostThreadMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret