joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea esi, [ebp - 0x20c]
call fcn.00401390
push 0
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401117
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push eax
call edi
call esi
push eax
call edi
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401553
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
push 0x40db50
call fcn.00401562
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
add esp, 0xc
push 0
call ebx
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x401166
cmp dword [ebp - 0x418], 0
je 0x401166
mov eax, 0x83
lea esi, [eax + 2]
jmp 0x40116e
mov eax, 0x82
lea esi, [eax + 2]
movzx eax, ax
push eax
lea ecx, [ebp - 0x414]
mov edi, str.Update.exe
call fcn.00401430
add esp, 4
test eax, eax
je 0x4011ba
lea ecx, [ebp - 0x414]
push ecx
push 0x104
push 0x40dd58
call fcn.00401562
movzx edx, si
push edx
lea ecx, [ebp - 0x414]
mov edi, str.utilslib.dll
call fcn.00401430
add esp, 0x10
test eax, eax
jne 0x4011d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call ebx
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401553
mov esp, ebp
pop ebp
ret
push 0
call ebx
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00401553
mov esp, ebp
pop ebp
ret

Function at 0x4011f0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x40db50
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov word [ebp - 0x214], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4012df
push 0x40db50
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00401562
lea eax, [ebp - 0x210]
add esp, 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401270
sub eax, edx
xor ecx, ecx
sar eax, 1
mov word [ebp + eax*2 - 0x20e], cx
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x230]
lea edx, [ebp - 0x210]
mov eax, 0x414
push ecx
mov dword [ebp - 0x22c], 3
mov dword [ebp - 0x228], edx
mov word [ebp - 0x220], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x4012df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401553
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00401553
mov esp, ebp
pop ebp
ret
Function at 0x401300
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.004031e0
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x2c], 0x40dd58
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40135a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x401390
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ecx]
push 0x64
call edi
call ebx
push eax
push str._08lX
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004015c5
add esp, 0x10
lea ecx, [ebp - 0x20c]
push ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x401412
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4013c0
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401553
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00401553
mov esp, ebp
pop ebp
ret
Function at 0x401430
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push str.CONTENTS
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x401480
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x210], eax
jmp 0x401530
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x40146f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push 0x40db50
lea edx, [ebp - 0x20c]
push edx
mov dword [ebp - 0x218], eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40146f
mov edx, dword [ebp - 0x218]
push 0
lea ecx, [ebp - 0x220]
push ecx
push edx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401504
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x210], eax
jmp 0x401529
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x20c]
push eax
push 0x104
push ecx
call fcn.00401562
add esp, 0xc
mov dword [ebp - 0x214], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop esi
xor ecx, ebp
pop ebx
call fcn.00401553
mov esp, ebp
pop ebp
ret

Function at 0x401553
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c004]
jne 0x40155d
repz ret
jmp fcn.00401783
Function at 0x4060cc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40c004]
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.00402aaa
and dword [ebp - 0x14], 0
cmp dword [0x40db18], 0
mov dword [ebp - 0x18], eax
jne 0x40617f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406227
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406227
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40db18], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40db1c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40db20], eax
call edi
push eax
call esi
mov dword [0x40db28], eax
test eax, eax
je 0x40617f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40db24], eax
mov eax, dword [0x40db24]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4061d8
cmp dword [0x40db28], ecx
je 0x4061d8
push eax
call esi
push dword [0x40db28]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4061d8
test ebx, ebx
je 0x4061d8
call edi
test eax, eax
je 0x4061cf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4061cf
test byte [ebp - 8], 1
jne 0x4061d8
or dword [ebp + 0x10], 0x200000
jmp 0x40620b
mov eax, dword [0x40db1c]
cmp eax, dword [ebp - 0x18]
je 0x40620b
push eax
call esi
test eax, eax
je 0x40620b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40620b
mov eax, dword [0x40db20]
cmp eax, dword [ebp - 0x18]
je 0x40620b
push eax
call esi
test eax, eax
je 0x40620b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40db18]
call esi
test eax, eax
je 0x406227
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406229
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401553
leave
ret
Function at 0x404e66
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404ea5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404ea5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404ea5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404ea5
cmp dword [ecx + 0x74], 0xe
jbe 0x404ea5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407806
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x413704
push 0x4136fc
push str.FlsAlloc
push 0x1f
call fcn.00407ae9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40783a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x407840
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x407884
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x413714
push 0x41370c
push str.FlsGetValue
push 0x21
call fcn.00407ae9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4078bb
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4078c3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41371c
push 0x413714
push str.FlsSetValue
push 0x22
call fcn.00407ae9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4078fd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40b3ce
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x41a020]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40b419
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040b544
test al, al
jne 0x40b413
sub edx, 2
cmp edx, edi
jne 0x40b3f9
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40b43b
lea eax, [edi + 2]
cmp edx, eax
je 0x40b43b
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040b31a
add esp, 0x10
jmp 0x40b535
push esi
lea ecx, [ebp - 0x255]
call fcn.0040b544
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b47e
push dword [ebp - 0x25c]
jmp 0x40b42b
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40b4bb
cmp word [ebp - 0x226], 0
je 0x40b4dc
cmp word [ebp - 0x226], ax
jne 0x40b4bb
cmp word [ebp - 0x224], 0
je 0x40b4dc
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040b31a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40b528
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40b495
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40b510
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40b535
push 0x40b570
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040f4f0
add esp, 0x10
jmp 0x40b505
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401323
leave
ret
Function at 0x527090
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd0000]
push edi
jmp 0x5270aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5270b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5270a0
mov eax, 1
add ebx, ebx
jne 0x5270c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5270d4
jne 0x5270f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5270f3
dec eax
add ebx, ebx
jne 0x5270e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5270b8
add ebx, ebx
jne 0x5270ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x527145
xor ecx, ecx
sub eax, 3
jb 0x52710b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52717a
sar eax, 1
mov ebp, eax
jmp 0x527116
add ebx, ebx
jne 0x527116
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5270e4
inc ecx
add ebx, ebx
jne 0x527124
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5270e4
add ebx, ebx
jne 0x527131
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x527126
jne 0x527142
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x527126
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x527164
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x527156
jmp 0x5270a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x527164
add edi, ecx
jmp 0x5270a6
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x527182
cmp byte [edi], 0x11
jne 0x527182
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 0x527187
lea edi, [esi + 0x120000]
mov eax, dword [edi]
or eax, eax
je 0x5271ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x175558]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1756d4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5271b4
mov ecx, edi
jns 0x5271e3
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 + 0x1756d8]
or eax, eax
je 0x5271f9
mov dword [ebx], eax
add ebx, 4
jmp 0x5271d1
call dword [esi + 0x1756e8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x527230
cmp al, 0xef
ja 0x527223
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x527205
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x527212
mov ebp, dword [esi + 0x1756dc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x527264
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x41d0ff]
shl eax, 2
mov dword [0x41d103], eax
push edi
push ecx
xor eax, eax
mov edi, 0x423170
mov ecx, 0x423a38
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
push 0
call fcn.00410863
pop ecx
push 0x41d0c8
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x41d107], eax
push 0
jmp fcn.0041b624
Function at 0x4030ba
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0xc], eax
xor edi, edi
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 0x14], eax
call fcn.00416184
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
dec eax
push eax
call fcn.00416194
pop ecx
mov dword [ebp - 8], eax
xor ebx, ebx
cmp ebx, dword [ebp - 8]
jae 0x40314b
push 0x41d8b6
lea eax, [ebp - 0x10]
push eax
call fcn.0041006c
add esp, 8
mov edx, ebx
add dl, 0x41
mov byte [ebp - 0x10], dl
lea ecx, [ebp - 0x10]
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
test eax, eax
je 0x403145
cmp eax, 2
jne 0x403139
cmp dword [ebp + 8], 0
je 0x403145
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov ecx, ebx
add cl, 0x41
mov byte [eax + edx], cl
inc dword [ebp - 0xc]
jmp 0x403145
test esi, esi
je 0x403145
mov eax, ebx
add al, 0x41
mov byte [esi + edi], al
inc edi
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x4030f5
cmp dword [ebp + 8], 0
je 0x40315b
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov byte [edx + ecx], 0
test esi, esi
je 0x403163
mov byte [esi + edi], 0
mov eax, dword [ebp - 4]
dec eax
push eax
call fcn.00416194
pop ecx
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_SetErrorMode
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403260
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
test eax, eax
je 0x403279
mov ecx, dword [eax]
cmp ecx, 0x98124928
je 0x403284
push 0xc
call fcn.004031dc
xor eax, eax
jmp 0x4032f5
test byte [eax + 0xc], 8
jne 0x403291
mov eax, 1
jmp 0x4032f5
test edx, edx
jne 0x4032a0
push 0xc
call fcn.004031dc
xor eax, eax
jmp 0x4032f5
xor ecx, ecx
mov ebx, dword [ebp + 0x10]
cmp ecx, ebx
jae 0x4032e9
mov bl, byte [eax + 0x198]
and bl, 0xff
xor byte [edx], bl
inc edx
imul ebx, dword [eax + 0x198], 0x15a4e35
mov dword [eax + 0x198], ebx
mov ebx, dword [eax + 0x198]
mov esi, ebx
shr esi, 8
and ebx, 0xff
shl ebx, 0x18
or esi, ebx
mov dword [eax + 0x198], esi
inc ecx
mov ebx, dword [ebp + 0x10]
cmp ecx, ebx
jb 0x4032a9
push 0
call fcn.004031dc
mov eax, 1
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x403dd8
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push esi
push 1
push 4
push ebx
call fcn.00405a04
push esi
mov ax, word [ebx + 4]
push eax
call fcn.004043e4
push esi
mov dx, word [ebx + 6]
push edx
call fcn.004043e4
push esi
mov cx, word [ebx + 8]
push ecx
call fcn.004043e4
push esi
mov al, byte [ebx + 0xa]
push eax
call fcn.0040439c
push esi
mov dx, word [ebx + 0xc]
push edx
call fcn.004043e4
push esi
mov cl, byte [ebx + 0xe]
push ecx
call fcn.0040439c
push esi
mov eax, dword [ebx + 0x10]
push eax
call fcn.00404478
push esi
mov edx, dword [ebx + 0x14]
push edx
call fcn.00404478
push esi
mov cx, word [ebx + 0x18]
push ecx
call fcn.004043e4
push esi
mov ax, word [ebx + 0x1a]
push eax
call fcn.004043e4
push esi
mov dx, word [ebx + 0x1c]
push edx
call fcn.004043e4
xor edi, edi
jmp 0x403e7c
push esi
push 1
push 1
movzx eax, di
add eax, ebx
add eax, 0x1e
push eax
call fcn.00405a04
inc edi
cmp di, word [ebx + 0x1c]
jb 0x403e68
push ebx
call fcn.00404988
mov edi, eax
mov dword [ebx + 0x124], edi
push esi
push edi
call fcn.00404478
test eax, eax
jne 0x403ea6
push 8
call fcn.004031dc
xor eax, eax
jmp 0x403eb2
push 0
call fcn.004031dc
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4040fc
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, dword [edi + 4]
mov dword [ebx], 0x46434754
push esi
push 1
push 4
push ebx
call fcn.00405a04
push esi
mov ax, word [ebx + 4]
push eax
call fcn.004043e4
cmp word [ebx + 4], 0
jne 0x404148
mov eax, dword [ebx + 0x3c]
mov edx, dword [edi + 0x10]
sub eax, edx
push esi
push eax
call fcn.00404478
mov eax, 1
jmp 0x40422e
push esi
mov dx, word [ebx + 6]
push edx
call fcn.004043e4
push esi
mov cx, word [ebx + 8]
push ecx
call fcn.004043e4
push esi
mov al, byte [ebx + 0xa]
push eax
call fcn.0040439c
push esi
mov dx, word [ebx + 0xc]
push edx
call fcn.004043e4
push esi
mov cx, word [ebx + 0xe]
push ecx
call fcn.004043e4
push esi
mov al, byte [ebx + 0x10]
push eax
call fcn.0040439c
push esi
mov edx, dword [ebx + 0x14]
push edx
call fcn.00404478
push esi
mov ecx, dword [ebx + 0x18]
push ecx
call fcn.00404478
push esi
mov eax, dword [ebx + 0x1c]
push eax
call fcn.00404478
push esi
mov edx, dword [ebx + 0x20]
push edx
call fcn.00404478
push esi
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.00404478
test byte [ebx + 0xc], 4
je 0x4041ca
push esi
mov eax, dword [ebx + 0x28]
push eax
call fcn.00404478
push esi
mov edx, dword [ebx + 0x2c]
push edx
call fcn.0040453c
push esi
mov ecx, dword [ebx + 0x30]
push ecx
call fcn.0040453c
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x4041ee
push esi
push eax
call fcn.0040453c
jmp 0x404201
mov dl, byte [0x41d9f0]
mov byte [ebp - 1], dl
push esi
lea ecx, [ebp - 1]
push ecx
call fcn.0040453c
push ebx
call fcn.004048b4
mov edi, eax
mov dword [ebx + 0x38], edi
push esi
push edi
call fcn.00404478
test eax, eax
jne 0x404222
push 8
call fcn.004031dc
xor eax, eax
jmp 0x40422e
push 0
call fcn.004031dc
mov eax, 1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x4048b4
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
or eax, 0xffffffff
push eax
mov edx, dword [ebx]
push edx
call fcn.00404840
push eax
mov cx, word [ebx + 4]
push ecx
call fcn.004047f8
push eax
mov ax, word [ebx + 6]
push eax
call fcn.004047f8
push eax
mov dx, word [ebx + 8]
push edx
call fcn.004047f8
push 1
lea ecx, [ebx + 0xa]
push ecx
push eax
call fcn.0040d13c
add esp, 0xc
push eax
mov ax, word [ebx + 0xc]
push eax
call fcn.004047f8
push eax
mov dx, word [ebx + 0xe]
push edx
call fcn.004047f8
push 1
lea ecx, [ebx + 0x10]
push ecx
push eax
call fcn.0040d13c
add esp, 0xc
push eax
mov eax, dword [ebx + 0x14]
push eax
call fcn.00404840
push eax
mov edx, dword [ebx + 0x18]
push edx
call fcn.00404840
push eax
mov ecx, dword [ebx + 0x1c]
push ecx
call fcn.00404840
push eax
mov eax, dword [ebx + 0x20]
push eax
call fcn.00404840
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.00404840
test byte [ebx + 0xc], 4
je 0x40495e
push eax
mov ecx, dword [ebx + 0x28]
push ecx
call fcn.00404840
push eax
mov eax, dword [ebx + 0x2c]
push eax
call fcn.00404870
push eax
mov edx, dword [ebx + 0x30]
push edx
call fcn.00404870
mov edx, dword [ebx + 0x34]
test edx, edx
je 0x404980
push eax
push edx
call fcn.00404870
xor eax, 0xffffffff
pop ebx
pop ebp
ret 4

Function at 0x405c68
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
mov edx, dword [eax + 4]
test edx, edx
jne 0x405cfa
lea ecx, [ebp + 0xc]
push ecx
call fcn.0041c1fc
pop ecx
mov dx, word [eax + 0x14]
add dx, 0x76c
mov word [ebp - 0x18], dx
mov cx, word [eax + 0x10]
inc ecx
mov word [ebp - 0x16], cx
mov word [ebp - 0x14], 0
mov dx, word [eax + 0xc]
mov word [ebp - 0x12], dx
mov cx, word [eax + 8]
mov word [ebp - 0x10], cx
mov dx, word [eax + 4]
mov word [ebp - 0xe], dx
mov ax, word [eax]
mov word [ebp - 0xc], ax
mov word [ebp - 0xa], 0
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_SystemTimeToFileTime
lea edx, [ebp - 8]
push edx
push 0
push 0
push ebx
call fcn.00405c28
push eax
call fcn.00416500
pop ecx
push eax
call sub.KERNEL32.DLL_SetFileTime
test eax, eax
setne al
and eax, 1
jmp 0x405cfc
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8