joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100fb9d8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x101b9644], 0x204b
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 0x101ab5f4]
mov dl, byte [eax + 0x101ab5c5]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x30], eax
jne 0x100fb9fa
lea eax, [ebp - 0x24]
mov dword [0x101b9648], 0x1bbe
mov dword [0x101b9644], 0x14
mov dword [ebp - 0x34], eax
call fcn.100fc14d
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.100fbdc2
mov dword [0x101b9644], 0xeeb
mov dword [0x101b9648], 0xfffffe15
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x100fbb20
mov eax, dword [ebp - 0x38]
mov dword [0x101b9644], 0x2578
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.100fbb28
xor eax, eax
mov dword [0x101b9648], 0x145b
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x20], ecx
mov esi, dword [0x101b9648]
add esi, 0xffffec67
mov dword [0x101b9644], esi
add ecx, 0x1fe7
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x100fbb17
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x100fbc3c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101b9650], 0
mov byte [0x101b9654], 0
mov dword [0x101b9648], 0x2449
mov dword [0x101b9644], 0x109e
mov dword [0x101b964c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x100fbcaa
xor eax, eax
mov dword [0x101b964c], 0
mov ecx, dword [ebp - 0x20]
add ecx, 0x1d78
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x100fbcf6
mov eax, dword [ebp - 0x1c]
mov dword [0x101b9648], 0x206
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x101b9644]
mov esi, eax
add esi, 0xfffff9d0
mov dword [0x101b9644], esi
mov esi, dword [0x101b964c]
add esi, 1
mov dword [0x101b964c], esi
cmp esi, 0x100
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
jl 0x100fbcaa
jmp 0x100fbc8d
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, 0x3a46
mov esi, 0x100
mov dword [0x101b9658], 0
mov edi, dword [0x101b9650]
mov ebx, dword [ebp - 0x18]
movzx ebx, byte [ebx + eax]
add ebx, edi
mov dword [ebp - 0x2c], eax
xor edi, edi
mov dword [ebp - 0x30], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add ebx, edx
mov dword [0x101b9658], ebx
mov dword [0x101b9648], ecx
mov dword [0x101b9644], 0xe04
mov eax, ebx
cdq
idiv esi
mov dword [0x101b9650], edx
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov cl, byte [ecx + esi]
mov byte [0x101b9654], cl
mov dword [0x101b9648], 0x18fd
mov ebx, dword [ebp - 0x18]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x101b9654]
mov edx, dword [0x101b9650]
mov byte [ebx + edx], cl
mov dword [0x101b9644], 0x169e
mov edx, dword [0x101b964c]
add edx, 1
mov dword [0x101b964c], edx
cmp edx, 0x100
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
jl 0x100fbcf6
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100fc814
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [0x101b9648], 0x2455
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x101b9648], 0x15ac
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
je 0x100fc87f
mov eax, dword [ebp - 0x14]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
jl 0x100fc852
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov edx, dword [0x101b9644]
add edx, 0xffffed2c
mov dword [0x101b9644], edx
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
jne 0x100fc97e
xor eax, eax
mov dword [0x101b9644], 0x2d1a
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x20], eax
jne 0x100fc97e
xor eax, eax
mov dword [0x101b9644], 0x6a7
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x20], eax
jne 0x100fc97e
xor eax, eax
mov dword [0x101b9644], 0x468
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x20], eax
jne 0x100fc97e
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff7
mov dword [0x101b9644], 0xffffe829
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x24], ecx
xor eax, eax
mov ecx, dword [ebp - 0x24]
cmp word [ecx], 0x64
mov dword [ebp - 0x20], eax
jne 0x100fc97e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x20], eax
jne 0x100fc97e
xor eax, eax
mov dword [0x101b9648], 0x401
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
jne 0x100fc97e
mov eax, 1
mov dword [0x101b9644], 0x2389
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add esp, 0x24
pop ebp
ret
Function at 0x100fcd12
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0xffffff79
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov eax, 0xfffff00e
mov dword [0x101b964c], 0
mov dword [0x101b9650], 0
mov dword [0x101b965c], 0
mov dword [ebp - 0x14], eax
mov eax, dword [0x101b9644]
add eax, 0xffffda0d
mov dword [0x101b9648], eax
mov dword [0x101b9644], 0x4ad
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0
mov eax, ebx
mov dword [ebp - 0x1c], eax
mov eax, ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], edi
je 0x100fcef8
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
mov ebx, 0x6b6
mov dword [ebp - 0x40], eax
mov eax, 0x100
add ecx, 1
mov dword [ebp - 0x44], eax
mov eax, edi
add eax, 1
add edx, 0x1ab1
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov dword [0x101b9644], eax
mov eax, ecx
mov dword [ebp - 0x4c], edx
cdq
mov ecx, dword [ebp - 0x44]
idiv ecx
mov dword [0x101b964c], edx
mov ecx, dword [ebp - 0x34]
movzx ecx, byte [ecx + edx]
add ecx, esi
mov eax, ecx
mov dword [ebp - 0x50], edx
cdq
mov ecx, dword [ebp - 0x44]
idiv ecx
mov dword [0x101b9650], edx
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
mov cl, byte [esi + ecx]
mov byte [0x101b9654], cl
mov ecx, dword [ebp - 0x4c]
mov dword [0x101b9644], ecx
mov cl, byte [esi + edx]
mov edx, dword [ebp - 0x50]
mov byte [esi + edx], cl
mov ecx, dword [0x101b9648]
add ecx, 0xffffe8ac
mov dword [0x101b9648], ecx
mov cl, byte [0x101b9654]
mov edx, dword [0x101b9650]
mov byte [esi + edx], cl
mov edx, dword [0x101b964c]
movzx edx, byte [esi + edx]
mov ecx, dword [0x101b9650]
movzx ecx, byte [esi + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x101b965c], ecx
mov dword [0x101b9648], 0x3cd
mov dword [0x101b9644], 0x2296
mov cl, byte [esi + ecx]
mov edx, dword [ebp - 0x2c]
mov ch, byte [edx + edi]
mov dword [0x101b9648], 0x31f
mov byte [0x101b9661], ch
mov byte [0x101b9662], cl
xor ch, cl
mov byte [0x101b9660], ch
mov edx, dword [ebp - 0x30]
mov byte [edx + edi], ch
mov dword [0x101b9644], 0xbea
mov edi, dword [ebp - 0x48]
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x3c], ebx
je 0x100fcef8
mov eax, 0xfffff74b
mov ecx, dword [0x101b964c]
mov edx, dword [0x101b9650]
mov esi, dword [0x101b9648]
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], eax
jmp 0x100fcda6
mov eax, dword [ebp - 0x3c]
mov dword [0x101b9644], eax
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100fcf08
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
mov dword [0x101b9644], 0x870
call fcn.10001070
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
jne 0x100fd072
lea eax, [esp + 0x88]
lea ecx, [esp + 0x28]
mov dword [0x101b9648], 0xa27
mov dword [0x101b9644], 0x18d4
mov dword [esp], eax
mov dword [esp + 0x20], ecx
call fcn.100fc519
lea ecx, [0x100fc0ea]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x40], edx
mov dword [esp + 0x80], 0x11b000
mov edx, dword [0x101b9630]
mov dword [esp + 0x28], edx
mov edx, dword [0x101b9634]
mov dword [esp + 0x38], edx
mov edx, dword [0x101b9638]
mov dword [esp + 0x34], edx
mov edx, dword [0x101b963c]
mov dword [esp + 0x3c], edx
mov edx, dword [0x101b9640]
mov dword [esp + 0x70], edx
mov dword [0x101b9644], 0x352
mov dword [0x101b9648], 0x139f
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
cmp word [eax], 0x5a4d
mov dword [esp + 0x14], eax
jne 0x100fcfec
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x10], ecx
je 0x100fd000
mov eax, dword [esp + 0x14]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x18], eax
jmp 0x100fcfc9
mov eax, dword [esp + 0x14]
mov dword [esp + 0x84], eax
mov dword [0x101b9648], 0x2416
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x4c], edx
mov dword [0x101b9644], 0x64f
call fcn.100fc814
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x100fd06a
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x90]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.100fb9d8
mov ecx, esp
lea edx, [esp + 0x28]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x4014ef
Capabilities:
Get common file path

Disassembly:
sub esp, 0x400
push esi
xor esi, esi
cmp dword [0x2447ef4], 0x400
push edi
jne 0x401550
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
push esi
push esi
call fcn.00401e86
push esi
push esi
call fcn.00401823
push esi
call fcn.00401e21
push esi
call fcn.00401fd1
push esi
push esi
call fcn.00401c6c
push esi
call fcn.00402045
push esi
push esi
call fcn.00401727
add esp, 0x2c
xor edi, edi
cmp edi, 0x16d2a
jge 0x401565
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharWidthI]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0x12e82fe
jg 0x401589
inc edi
cmp edi, 0x3011b
jl 0x401552
mov eax, dword [0x42a864]
mov dword [0x2447ef4], eax
call fcn.0040120c
mov edi, 0x2ec37
cmp dword [0x2447ef4], 0x51f
jne 0x4015b5
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec edi
jne 0x40159d
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x4074de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427cfc]
jne 0x4074e8
repz ret
jmp fcn.004094a6
Function at 0x408736
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x427cfc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004058fe
and dword [ebp - 0x14], 0
cmp dword [0x4354b4], 0
mov dword [ebp - 0x18], eax
jne 0x4087e9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408891
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408891
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4354b4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4354b8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4354bc], eax
call edi
push eax
call esi
mov dword [0x4354c4], eax
test eax, eax
je 0x4087e9
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4354c0], eax
mov eax, dword [0x4354c0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408842
cmp dword [0x4354c4], ecx
je 0x408842
push eax
call esi
push dword [0x4354c4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408842
test ebx, ebx
je 0x408842
call edi
test eax, eax
je 0x408839
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x408839
test byte [ebp - 8], 1
jne 0x408842
or dword [ebp + 0x10], 0x200000
jmp 0x408875
mov eax, dword [0x4354b8]
cmp eax, dword [ebp - 0x18]
je 0x408875
push eax
call esi
test eax, eax
je 0x408875
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408875
mov eax, dword [0x4354bc]
cmp eax, dword [ebp - 0x18]
je 0x408875
push eax
call esi
test eax, eax
je 0x408875
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4354b4]
call esi
test eax, eax
je 0x408891
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408893
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004074de
leave
ret
Function at 0x40657c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
cmp eax, 8
ja case.0x40658c.1
jmp dword [eax*4 + 0x406674]
push dword [ebp + 0xc]
call fcn.0040669d
and dword [0x42b16c], 0
jmp case.0x40658c.1
mov eax, dword [0x42b16c]
xor ecx, ecx
cmp ecx, dword [ebp + 0x14]
ja case.0x40658c.1
mov esi, dword [ebp + 0x10]
jb 0x4065c4
cmp eax, esi
jae case.0x40658c.1
call fcn.00406a4c
add dword [0x42b16c], 0x100000
xor eax, eax
cmp eax, dword [ebp + 0x14]
jb 0x4065c4
ja case.0x40658c.1
cmp dword [0x42b16c], esi
jb 0x4065c4
jmp case.0x40658c.1
push dword [ebp + 0xc]
call fcn.0040669d
call fcn.00406a4c
jmp case.0x40658c.1
call fcn.00406a4c
push 0x80
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 0xc]
call fcn.00406750
mov esi, eax
test esi, esi
jns case.0x40658c.1
push 0x403a3c
jmp 0x406662
mov eax, dword [0x42b16c]
xor ecx, ecx
cmp ecx, dword [ebp + 0x14]
ja case.0x40658c.1
mov esi, dword [ebp + 0x10]
jb 0x406632
cmp eax, esi
jae case.0x40658c.1
call fcn.00406a4c
add dword [0x42b16c], 0x80000
xor eax, eax
cmp eax, dword [ebp + 0x14]
jb 0x406632
ja case.0x40658c.1
cmp dword [0x42b16c], esi
jb 0x406632
call fcn.00406a7f
mov esi, eax
test esi, esi
jns 0x40666a
push 0x4039c4
push esi
call fcn.004089ba
pop ecx
pop ecx
mov eax, esi
pop esi
pop ebp
ret 0x14
Function at 0x40680f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [0x42b108], esi
je 0x40682b
mov eax, 0x8000ffff
jmp 0x40698f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
push ebx
xor ebx, ebx
inc ebx
push edi
mov dword [0x42b114], eax
cmp eax, esi
jne 0x406939
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x1f4
mov dword [0x42b0f0], eax
push eax
mov eax, 0x42b104
call fcn.004095ac
push 0x42af10
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push esi
push esi
push esi
push esi
mov dword [0x42b0fc], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x42b100], eax
cmp eax, esi
jne 0x4068b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, esi
jle 0x40689d
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jl 0x4068a9
mov dword [ebp - 4], 0x80004005
push 0x403adc
jmp 0x4068f4
push esi
push esi
push esi
push 0x406ab5
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42b0f4], eax
cmp eax, esi
jne 0x406900
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, esi
jle 0x4068e3
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jl 0x4068ef
mov dword [ebp - 4], 0x80004005
push 0x403b18
push dword [ebp - 4]
call fcn.004089ba
pop ecx
pop ecx
jmp 0x40693f
push 0xffffffffffffffff
push dword [0x42b100]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx eax, word [ebp + 0xc]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
shl eax, 0x10
push eax
push esi
push 0x401
push dword [0x42b0f8]
call edi
push esi
push ebx
push 0x404
push dword [0x42b0f8]
call edi
mov dword [0x42b108], ebx
cmp dword [ebp - 4], esi
jge 0x40698a
cmp dword [0x42b0fc], esi
je 0x40695d
push 0x42af10
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x42b0fc], esi
mov eax, dword [0x42b104]
cmp eax, esi
je 0x40696c
push eax
call fcn.004092c3
mov eax, dword [0x42b0f4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, esi
je 0x40697e
push eax
call edi
mov eax, dword [0x42b100]
cmp eax, esi
je 0x40698a
push eax
call edi
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x4079a8
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x429050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x24], eax
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xf0000000
xor ebx, ebx
stosd dword es:[edi], eax
push 1
push ebx
stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0x20]
push eax
xor esi, esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x407a16
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jle 0x407a05
and esi, 0xffff
or esi, 0x80070000
cmp esi, ebx
jl 0x407a0c
mov esi, 0x80004005
push 0x40429c
jmp 0x407ad8
lea eax, [ebp - 0x14]
push eax
push 0x10
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x407a54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jle 0x407a43
and esi, 0xffff
or esi, 0x80070000
cmp esi, ebx
jl 0x407a4a
mov esi, 0x80004005
push 0x4042c0
jmp 0x407ad8
mov bl, byte [ebp - 0x14]
mov edi, dword [ebp - 0x24]
and bl, 7
add bl, 9
add bl, bl
mov dword [edi], esi
mov byte [ebp - 0x15], 0
je 0x407ae0
movzx eax, byte [ebp - 0x15]
and dword [ebp - 0x1c], 0
shr eax, 1
movzx eax, byte [ebp + eax - 0x14]
push eax
lea eax, [ebp - 0x1c]
push 0x4042e4
push eax
call fcn.00408fdc
mov esi, eax
add esp, 0xc
test esi, esi
js 0x407acc
cmp dword [edi], 0
jne 0x407a9d
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
jmp 0x407abd
push 0
push dword [ebp - 0x1c]
mov eax, edi
call fcn.00408f1b
mov esi, eax
test esi, esi
js 0x407ad3
cmp dword [ebp - 0x1c], 0
je 0x407abd
push dword [ebp - 0x1c]
call fcn.004092c3
add byte [ebp - 0x15], 2
and dword [ebp - 0x1c], 0
cmp byte [ebp - 0x15], bl
jb 0x407a6a
jmp 0x407ae0
push 0x4042f0
jmp 0x407ad8
push 0x404330
push esi
call fcn.004089ba
pop ecx
pop ecx
xor edi, edi
cmp dword [ebp - 0x20], edi
je 0x407af1
push edi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x1c], edi
je 0x407afe
push dword [ebp - 0x1c]
call fcn.004092c3
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419318
leave
ret 4
Function at 0x407e8f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x429050]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, 0x404690
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
mov dword [ebp - 0x38], eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 6
mov dword [ebx], eax
pop ecx
xor eax, eax
xor esi, esi
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
mov dword [ebp - 0x40], esi
call edi
mov dword [ebp - 0x3c], eax
or eax, 1
push eax
call edi
mov eax, dword [ebx]
dec eax
dec eax
je 0x407ef4
dec eax
je 0x407f4e
sub eax, 3
jne 0x407f1c
mov dword [ebx], 3
jmp 0x407f4e
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
push esi
push esi
push 3
push esi
push 3
mov word [ebp - 0x10], ax
push SysReAllocString
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
jne 0x407f20
mov dword [ebx], esi
jmp 0x407f4e
push esi
lea ecx, [ebp - 0x40]
push ecx
push 0x18
lea ecx, [ebp - 0x34]
push ecx
push esi
push esi
push 0x70000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x407f43
cmp dword [ebp - 0x2c], 0xb
je 0x407f4e
push dword [ebp - 0x38]
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x3c]
call edi
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00419318
leave
ret 4
Function at 0x407f6b
Capabilities:
Create directory
Delete directory
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call edi
mov dword [ebp - 0x14], eax
or eax, 1
push eax
call edi
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 4]
push eax
call fcn.004078f7
mov esi, eax
cmp esi, ebx
jl 0x40806e
push dword [ebp - 4]
lea eax, [ebp - 8]
push dword [ebp + 8]
push 0x4046c0
push eax
call fcn.00408fdc
mov esi, eax
add esp, 0x10
cmp esi, ebx
jl 0x408075
push dword [ebp - 8]
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.00409c66
mov esi, eax
cmp esi, ebx
jl 0x40807c
mov esi, dword [ebp - 0x10]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x408004
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x408004
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp esi, ebx
je 0x40800e
push esi
call fcn.004092c3
cmp dword [ebp - 4], ebx
je 0x40801b
push dword [ebp - 4]
call fcn.004092c3
cmp dword [ebp - 8], ebx
je 0x408028
push dword [ebp - 8]
call fcn.004092c3
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp - 0x10], ebx
jne 0x40808b
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x3e8
jl 0x407f91
xor esi, esi
inc esi
cmp dword [ebp - 4], ebx
je 0x408053
push dword [ebp - 4]
call fcn.004092c3
cmp dword [ebp - 8], ebx
je 0x408060
push dword [ebp - 8]
call fcn.004092c3
push dword [ebp - 0x14]
call edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
push 0x4046a0
jmp 0x408081
push 0x4046cc
jmp 0x408081
push 0x4046f8
push esi
call fcn.004089ba
pop ecx
pop ecx
jmp 0x408046
xor esi, esi
jmp 0x408060