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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x20b000]
mov dword [edi + 0x2cd47c], 0xadebfe5f
push edi
jmp 0x7cea6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7cea71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7cea60
mov eax, 1
add ebx, ebx
jne 0x7cea83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7cea94
jne 0x7ceab3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7ceab3
dec eax
add ebx, ebx
jne 0x7ceaa0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7cea78
add ebx, ebx
jne 0x7ceaaf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7ceb05
xor ecx, ecx
sub eax, 3
jb 0x7ceacb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7ceb3a
sar eax, 1
mov ebp, eax
jmp 0x7cead6
add ebx, ebx
jne 0x7cead6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7ceaa4
inc ecx
add ebx, ebx
jne 0x7ceae4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7ceaa4
add ebx, ebx
jne 0x7ceaf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7ceae6
jne 0x7ceb02
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7ceae6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7ceb24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7ceb16
jmp 0x7cea66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7ceb24
add edi, ecx
jmp 0x7cea66
pop esi
mov edi, esi
mov ecx, 0xef8c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7ceb42
cmp byte [edi], 0x26
jne 0x7ceb42
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x7ceb47
lea edi, [esi + 0x3bd000]
mov eax, dword [edi]
or eax, eax
je 0x7cebbf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3f77b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3f7988]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7ceb74
mov ecx, edi
jns 0x7ceba3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3f7990]
or eax, eax
je 0x7cebb9
mov dword [ebx], eax
add ebx, 4
jmp 0x7ceb91
call dword [esi + 0x3f798c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x7cebf0
cmp al, 0xef
ja 0x7cebe3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x7cebc5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x7cebd2
mov ebp, dword [esi + 0x3f7994]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x26f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x7cec24
sub esp, 0xffffff80
jmp 0x5c9f5a
Function at 0x403480
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4c2498]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.004754f0
add esp, 0xc
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x120]
push eax
call esi
test eax, eax
jne 0x4034e1
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call esi
test eax, eax
je 0x403591
mov eax, dword [ebp - 0x110]
sub eax, 1
je 0x40357c
sub eax, 1
jne 0x403591
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x118]
push 6
pop edx
cmp eax, edx
jne 0x403531
cmp ecx, 1
jne 0x40351e
xor ebx, ebx
cmp byte [ebp - 6], cl
setne bl
add ebx, 8
jmp 0x403591
test ecx, ecx
jne 0x403564
cmp byte [ebp - 6], 1
push 9
pop ebx
push 7
pop eax
cmove ebx, eax
jmp 0x403591
cmp eax, 5
jne 0x403556
mov eax, dword [ebp - 0x118]
cmp eax, 2
jne 0x403545
push 5
jmp 0x40355d
cmp eax, 1
jne 0x40354e
mov ebx, edx
jmp 0x403591
test eax, eax
jne 0x403591
push 3
jmp 0x40355d
cmp eax, 4
ja 0x403560
push 4
pop ebx
jmp 0x403591
cmp eax, edx
jb 0x403591
cmp ecx, 2
jae 0x40356d
cmp eax, edx
jbe 0x403591
cmp byte [ebp - 6], 1
jne 0x403591
call fcn.004036bf
mov ebx, eax
jmp 0x403591
mov eax, dword [ebp - 0x114]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb ebx, ebx
add ebx, 2
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d9af
mov esp, ebp
pop ebp
ret

Function at 0x403631
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4036b7
push edi
push ebx
call fcn.0045daf6
pop ecx
mov edi, eax
push edi
push ebx
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4036ab
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push 0x49a8b4
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4036ab
cmp dword [ebp - 8], esi
je 0x4036ab
mov ecx, dword [ebp - 0xc]
inc esi
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
test edi, edi
je 0x4036b6
push edi
call fcn.0045daff
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403791
Capabilities:
Get common file path

Disassembly:
push 0x214
mov eax, 0x49360e
call fcn.0045da2b
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], edi
call fcn.00401afb
push eax
mov ecx, esi
call fcn.004025f0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x21c], 1
call fcn.004754f0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00401dff
push esi
call fcn.004368ee
pop ecx
mov eax, esi
call fcn.0045d9d5
ret

Function at 0x403d89
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0x14]
mov esi, ecx
call fcn.00403e3c
xor edi, edi
cmp dword [esi], edi
je 0x403db1
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edi
mov dword [esi + 8], eax
mov eax, esi
cmovne eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
lea eax, [esi + 0xc]
push eax
push edi
push esi
push 0x403e1e
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi], eax
test eax, eax
pop edi
setne cl
mov eax, ecx
pop esi
pop ebp
ret 0x10

Function at 0x403de7
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
call fcn.00403e3c
cmp dword [ebp + 0xc], 0
je 0x403e19
cmp dword [esi], 0
je 0x403e19
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
or dword [esi + 0xc], 0xffffffff
pop esi
pop ebp
ret 8

Function at 0x40ca11
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4c2498]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x218], 0
lea eax, [ebp - 0x214]
push esi
mov esi, dword [ebp + 8]
push 0x210
push 0
push eax
call fcn.004754f0
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x214]
mov ecx, esi
push eax
call fcn.00401616
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0045d9af
mov esp, ebp
pop ebp
ret 4
Function at 0x40cc8a
Capabilities:
Check if file exists

Disassembly:
push 0x18
mov eax, 0x493f6e
call fcn.0045d9f7
mov edi, ecx
call fcn.0040bb7e
push dword [edi]
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0040c1b5
mov eax, dword [ebp - 0x10]
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [eax - 0xc], esi
je 0x40cd83
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40cd80
lea ecx, [ebp - 0x24]
call fcn.00409313
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
push dword [ebp - 0x20]
call sub.gdiplus.dll_GdipPrivateAddFontFile
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call sub.gdiplus.dll_GdipGetFontCollectionFamilyCount
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
test ebx, ebx
jle 0x40cd78
xor ecx, ecx
mov eax, ebx
push 8
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.gdiplus.dll_GdipAlloc
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x40cd45
push 0x409bda
push 0x46d433
push ebx
lea esi, [eax + 4]
mov dword [eax], ebx
push 8
push esi
call fcn.0045e1a7
mov byte [ebp - 4], 1
mov dword [edi + 4], esi
test esi, esi
je 0x40cd78
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
lea ecx, [ebp - 0x24]
call fcn.0040c018
test eax, eax
jne 0x40cd71
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x40cd71
mov dword [edi + 8], ebx
mov dword [edi + 0xc], eax
jmp 0x40cd78
mov ecx, edi
call fcn.0040bb7e
lea ecx, [ebp - 0x24]
call fcn.00409bfa
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x10]
call fcn.00401dbc
call fcn.0045d9c0
ret

Function at 0x40e8f6
Capabilities:
Hide graphical window

Disassembly:
push esi
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x40e91d
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40e91d
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret

Function at 0x418bd5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push esi
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x418c56
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x418c11
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x418c15
xor eax, eax
jmp 0x418c55
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x418c54
mov ecx, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
call fcn.00402b6d
test eax, eax
je 0x418c3e
push edi
push ebx
push eax
call fcn.004749f0
add esp, 0xc
mov ecx, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
call fcn.0040390a
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x418c59
Capabilities:
Get file size
Read file on windows

Disassembly:
push 8
mov eax, 0x4946c4
call fcn.0045d9f7
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
call fcn.00401afb
push eax
lea ecx, [ebp - 0x10]
call fcn.004025f0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
cmp dword [ebp + 0x14], edi
je 0x418c8b
lea eax, [esi + 0xc]
push eax
jmp 0x418c8c
push esi
call fcn.004016b7
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
je 0x418d60
call fcn.00401afb
push eax
lea ecx, [ebp + 0x14]
call fcn.004025f0
push dword [ebp + 0x10]
xor ebx, ebx
lea eax, [ebp + 0x14]
push dword [ebp + 8]
inc ebx
push esi
push str._s_d._s
push eax
mov byte [ebp - 4], bl
call fcn.00402881
add esp, 0x14
push edi
push 0x80
push 3
push edi
mov edi, dword [ebp + 0x14]
push ebx
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x418d58
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x418d51
mov ecx, dword [ebp + 0xc]
add eax, 0xa
and dword [ebp + 8], 0
push eax
call fcn.00402b6d
push 0
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x418d47
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 8], eax
jne 0x418d47
mov ecx, dword [ebp + 0xc]
push eax
call fcn.0040390a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [edi - 0x10]
call fcn.00401dbc
xor edi, edi
inc edi
jmp 0x418d63
mov ecx, dword [ebp + 0xc]
push 0
call fcn.00402cac
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [edi - 0x10]
call fcn.00401dbc
mov edi, dword [ebp - 0x14]
lea ecx, [esi - 0x10]
call fcn.00401dbc
mov eax, edi
call fcn.0045d9c0
ret 0x10

Function at 0x419634
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
jne 0x41966c
lea eax, [ebp - 4]
push eax
call fcn.00419674
push dword [eax]
push 2
push 0x49cec0
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x18], eax
lea ecx, [ecx - 0x10]
call fcn.00401dbc
mov eax, dword [esi + 0x18]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x419674
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x496ab6
call fcn.0045d9f7
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x14]
push eax
call fcn.00419942
mov eax, dword [ebp - 0x14]
and dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
jne 0x4196b7
mov ecx, dword [ebp + 8]
push 0x49a86c
call fcn.00401616
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401dbc
mov eax, dword [ebp + 8]
jmp 0x419729
add eax, 0xfffffff0
push eax
call fcn.00401911
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
mov dword [esp], str.datadpiconfig.ini
call fcn.004026ad
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x419703
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.004016b7
push str._ressrcchsdpisetting.ini
lea ecx, [ebp - 0x10]
call fcn.004026ad
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
push esi
call fcn.00401911
mov edi, dword [ebp + 8]
add eax, 0x10
pop ecx
mov ecx, esi
mov dword [edi], eax
call fcn.00401dbc
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401dbc
mov eax, edi
call fcn.0045d9c0
ret 4

Function at 0x419731
Capabilities:
Read .ini file

Disassembly:
push 0x14
mov eax, 0x49474f
call fcn.0045d9f7
mov edi, ecx
lea esi, [edi + 0x1c]
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jne 0x419822
call fcn.00401afb
push eax
lea ecx, [ebp - 0x10]
call fcn.004025f0
lea eax, [ebp - 0x18]
xor ebx, ebx
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.00419674
push dword [eax]
mov eax, 0x104
mov byte [ebp - 4], 1
push eax
push eax
lea ecx, [ebp - 0x10]
call fcn.00401c94
push eax
push str.1.01.21.51.72.02.22.52.73.0
push str.supportrate
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.00401dbc
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004035c8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
mov edi, 0x49c204
lea eax, [ebp - 0x14]
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.0041737d
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ebx
jmp 0x419809
push eax
call fcn.0048207d
pop ecx
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
fstp qword [ebp - 0x20]
call fcn.00419bb2
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.00401dbc
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041737d
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ebx
mov byte [ebp - 4], 2
jne 0x4197cf
lea ecx, [eax - 0x10]
call fcn.00401dbc
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401dbc
mov eax, esi
call fcn.0045d9c0
ret
Function at 0x4211e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
test esi, esi
je 0x4211f0
mov dword [esi], edi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x421236
push edi
lea ecx, [ebp + 0x14]
push ecx
mov ecx, 0x8000
cmp eax, ecx
cmovae eax, ecx
push eax
push dword [ebp + 0xc]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
add dword [ecx + 0x10], edx
adc dword [ecx + 0x14], edi
test esi, esi
je 0x42122b
add dword [esi], edx
test eax, eax
jne 0x421236
call fcn.00420c86
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x4295f3
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495029
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4c2498]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0042cefd
lea ecx, [esi + 0x30]
call fcn.00429599
push dword [esi + 0x24]
call fcn.0045daff
pop ecx
lea ecx, [esi + 0xc]
call fcn.0042490d
mov ecx, esi
call fcn.004294b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42f3f1
Capabilities:
Create directory

Disassembly:
push 0x38
mov eax, 0x49618f
call fcn.0045d9f7
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42f411
mov al, 1
jmp 0x42f459
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42f422
xor al, al
jmp 0x42f459
lea ecx, [ebp - 0x44]
call fcn.0042f664
lea ecx, [ebp - 0x1c]
call fcn.0042d3ca
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.0042f84d
test al, al
je 0x42f44e
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.0045daff
pop ecx
mov al, bl
call fcn.0045d9c0
ret

Function at 0x42f5bf
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x42fe0f
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
pop ebp
ret

Function at 0x42ff12
Capabilities:
Get disk information

Disassembly:
push 0x20
mov eax, 0x496230
call fcn.0045d9f7
mov ecx, dword [ebp + 8]
call fcn.00425081
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x42ff40
xor al, al
jmp 0x42ffe0
push edi
lea ecx, [ebp - 0x1c]
call fcn.0042f5f9
mov esi, dword [ebp - 0x1c]
push esi
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x42ffd7
cmp edi, dword [ebp - 0x18]
ja 0x42ffd7
lea ecx, [ebp - 0x2c]
call fcn.0042d3ca
mov byte [ebp - 4], 1
mov edx, ebx
mov dword [ebp - 0x18], edx
mov eax, ebx
mov dword [ebp - 0x10], eax
test edi, edi
je 0x42ffc9
push 2
pop ecx
mov dword [ebp - 0x14], ecx
cmp word [esi + ecx - 2], bx
jne 0x42ffb8
lea eax, [edx + esi]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042d4c9
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
inc eax
mov dword [ebp - 0x18], eax
call fcn.0041b361
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.00424c2c
mov ecx, dword [ebp - 0x14]
mov edx, ecx
mov eax, dword [ebp - 0x10]
inc eax
add ecx, 2
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
cmp eax, edi
jb 0x42ff82
mov edx, dword [ebp - 0x18]
push dword [ebp - 0x2c]
cmp edx, edi
sete bl
call fcn.0045daff
pop ecx
push esi
call fcn.0045daff
pop ecx
mov al, bl
call fcn.0045d9c0
ret
Function at 0x43016d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x430197
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x430197
xor al, al
jmp 0x4301ab
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x430b46
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4c2498]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edi]
and dword [edi + 4], 0
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x210]
push eax
call fcn.0042d4c9
lea eax, [esi - 1]
mov ecx, 0x103
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop edi
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0045d9af
mov esp, ebp
pop ebp
ret

Function at 0x431672
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4c2498]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push str.GlobalMemoryStatusEx
push str.kernel32.dll
mov dword [ebp - 0x64], 0x40
and dword [esi + 4], 0
mov dword [esi], SysReAllocString
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4316d5
lea ecx, [ebp - 0x64]
push ecx
call eax
test eax, eax
je 0x4316d5
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call fcn.004315f5
add esp, 0x10
mov dword [esi + 4], edx
jmp 0x4316f4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0xc], eax
cmovb eax, dword [ebp - 0xc]
and dword [esi + 4], 0
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov al, 1
pop esi
call fcn.0045d9af
mov esp, ebp
pop ebp
ret
Function at 0x431fde
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov edx, dword [edx]
and edx, 7
cmp eax, 5
jae 0x431ffb
xor eax, eax
jmp 0x432118
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [eax - 4]
add ecx, ebx
push esi
mov dword [ebp + 0xc], ecx
lea esi, [edi + ebx]
jmp 0x432016
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x43201a
inc esi
cmp esi, ecx
jb 0x43200d
mov ecx, esi
sub ecx, edi
mov edi, esi
sub ecx, ebx
sub edi, ebx
cmp esi, dword [ebp + 0xc]
jae 0x432105
cmp ecx, 2
jbe 0x432070
xor edx, edx
movzx ebx, byte [esi + 4]
lea eax, [ebx + 1]
test al, 0xfe
jne 0x4320f6
movzx eax, byte [esi + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 1]
shl ebx, 8
or ebx, eax
mov eax, dword [ebp + 0x10]
add eax, 5
add eax, edi
cmp dword [ebp + 0x18], 0
je 0x43209c
add ebx, eax
jmp 0x43209e
shr edx, cl
test edx, edx
je 0x432034
cmp edx, 4
ja 0x43208e
cmp edx, 3
je 0x43208e
mov eax, edx
shr eax, 1
movzx eax, byte [eax + esi + 1]
inc eax
test al, 0xfe
jne 0x432034
or edx, 8
shr edx, 1
inc edi
mov ecx, dword [ebp + 0xc]
jmp 0x432008
sub ebx, eax
test edx, edx
je 0x4320d3
and edx, 6
mov eax, ebx
shl edx, 2
mov ecx, edx
shr eax, cl
inc eax
test al, 0xfe
jne 0x4320d1
mov eax, 0x100
shl eax, cl
dec eax
xor ebx, eax
mov eax, dword [ebp + 0x10]
add eax, 5
add eax, edi
cmp dword [ebp + 0x18], 0
je 0x4320cf
add ebx, eax
jmp 0x4320d1
sub ebx, eax
xor edx, edx
mov eax, ebx
mov byte [esi + 1], bl
shr eax, 8
mov byte [esi + 2], al
mov eax, ebx
shr ebx, 0x18
shr eax, 0x10
and bl, 1
neg bl
mov byte [esi + 3], al
push 5
mov byte [esi + 4], bl
pop eax
jmp 0x4320fe
or edx, 8
xor eax, eax
shr edx, 1
inc eax
mov ebx, dword [ebp + 8]
add edi, eax
jmp 0x432094
xor eax, eax
shr edx, cl
cmp ecx, 2
pop esi
cmova edx, eax
mov eax, dword [ebp + 0x14]
pop ebx
mov dword [eax], edx
mov eax, edi
pop edi
pop ebp
ret