joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003f82
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
cmp eax, 0
jb 0x10003f97
cmp eax, 0x7f
jbe 0x10003fa0
mov eax, 0xffffffff
leave
ret 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 4]
cmp eax, 0
jb 0x10003fb0
cmp eax, 0x4f
jbe 0x10003fb9
mov eax, 0xffffffff
leave
ret 0xc
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 8]
cmp eax, 0
jb 0x10003fc9
cmp eax, 0x7f
jbe 0x10003fd2
mov eax, 0xffffffff
leave
ret 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0xc]
cmp eax, 0
jb 0x10003fe2
cmp eax, 0x4f
jbe 0x10003feb
mov eax, 0xffffffff
leave
ret 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jb 0x10003fff
mov eax, 0xfffffffe
leave
ret 0xc
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jb 0x10004010
mov eax, 0xfffffffe
leave
ret 0xc
push 0xa000
push 0
call sub.KERNEL32.dll_LocalAlloc
or eax, eax
jne 0x10004024
leave
ret 0xc
mov dword [ebp - 4], eax
push 0xa000
push 0
call sub.KERNEL32.dll_LocalAlloc
or eax, eax
jne 0x1000403b
leave
ret 0xc
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xa000
push dword [ebp - 4]
push dword [ebp + 8]
call sub.KERNEL32.dll_ReadFile
push 0
lea eax, [ebp - 0xc]
push eax
push 0xa000
push dword [ebp - 8]
push dword [ebp + 0xc]
call sub.KERNEL32.dll_ReadFile
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x1c]
ja 0x100040c1
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.100040d7
mov esi, eax
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.100040d7
mov edi, eax
mov eax, dword [ebp - 0x18]
xor edx, edx
sub eax, dword [ebp - 0x10]
inc eax
mov ecx, 3
mul cx
mov ecx, eax
repe cmpsb byte [esi], byte es:[edi]
mov eax, 0
jne 0x100040c1
mov eax, 1
inc dword [ebp - 0x20]
jmp 0x10004073
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_LocalFree
push dword [ebp - 8]
call sub.KERNEL32.dll_LocalFree
pop eax
leave
ret 0xc
Function at 0x10004396
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
pushal
xor eax, eax
mov edi, dword [ebp + 0xc]
stosd dword es:[edi], eax
push dword [ebp + 8]
call sub.KERNEL32.dll_lstrlenA
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x80]
mov dword [ebp - 0x84], eax
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.dll_lstrlenA
xor ecx, ecx
jmp 0x100043ee
cmp byte [ecx + esi], 0x60
jbe 0x100043dc
sub byte [ecx + esi], 0x57
jmp 0x100043ec
cmp byte [ecx + esi], 0x40
jbe 0x100043e8
sub byte [ecx + esi], 0x37
jmp 0x100043ec
xor byte [ecx + esi], 0x30
dec eax
inc ecx
or eax, eax
jne 0x100043d0
mov ebx, 1
mov esi, dword [ebp + 8]
add esi, ecx
dec esi
xor edx, edx
jmp 0x10004413
mov al, byte [esi]
and eax, 0xff
imul eax, ebx
add dword [edi], eax
imul ebx, dword [ebp + 0x10]
dec esi
dec ecx
or ecx, ecx
jne 0x10004401
mov edi, dword [ebp + 8]
lea esi, [ebp - 0x80]
mov ecx, dword [ebp - 0x84]
rep movsb byte es:[edi], byte [esi]
popal
leave
ret 0xc

Function at 0x1000442a
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push esi
push 0
push 0x20
push 3
push 0
push 0
push bind
push dword [ebp + 8]
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x1000444f
jmp 0x100044cc
mov dword [ebp - 4], eax
push 0
push 0x20
push 2
push 0
push 2
push 0x40000000
push dword [ebp + 0xc]
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x1000447d
push dword [ebp - 4]
call sub.KERNEL32.dll_CloseHandle
mov eax, 0xffffffff
jmp 0x100044cc
mov dword [ebp - 8], eax
mov ecx, 0x500
push 0
lea eax, [ebp - 0xc]
push eax
push ecx
push 0x100061b2
push dword [ebp - 4]
call sub.KERNEL32.dll_ReadFile
push dword [ebp - 4]
call sub.KERNEL32.dll_CloseHandle
call fcn.100044d1
mov ecx, 0x7836
push 0
lea eax, [ebp - 0xc]
push eax
push ecx
push str.BM6x
push dword [ebp - 8]
call sub.KERNEL32.dll_WriteFile
push dword [ebp - 8]
call sub.KERNEL32.dll_CloseHandle
mov eax, 1
pop esi
leave
ret 8
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x40193e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov dword [0x4040d0], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x401951
push esp
mov dword [ebp - 0x24], 0x4016b5
mov eax, dword [0x4040d0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.solienty
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040d0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.absent
push str.solienty
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040d8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4019f0
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x4019d1
pop ebp
ret 0x10
Function at 0x419610
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x11000]
push edi
or ebp, 0xffffffff
jmp 0x419632
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419639
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419628
mov eax, 1
add ebx, ebx
jne 0x41964b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419640
jne 0x41965c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419640
xor ecx, ecx
sub eax, 3
jb 0x419670
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4196e2
mov ebp, eax
add ebx, ebx
jne 0x41967b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419688
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4196ac
inc ecx
add ebx, ebx
jne 0x419698
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41968d
jne 0x4196a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41968d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4196cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4196bd
jmp 0x41962e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4196cc
add edi, ecx
jmp 0x41962e
pop esi
mov edi, esi
mov ecx, 0x5ce
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4196ea
cmp byte [edi], 0
jne 0x4196ea
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 0x4196ef
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x41975e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x191e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1924c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41971c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19250]
or eax, eax
je 0x419758
mov dword [ebx], eax
add ebx, 4
jmp 0x419739
call dword [esi + 0x19254]
popal
jmp 0x40e274
Function at 0x402ed5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x402ee4
pop dword [ebp - 8]
mov eax, 0xf52378f0
add eax, 0xb1cb5f4
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x3188831
sub dword [ebp - 0x18], 0xb4c642e6
mov dword [ebp - 0x14], 0xfff95c6f
add dword [ebp - 0x14], 0x3239efd6
mov dword [ebp - 0x10], 0xf9b1b617
sub dword [ebp - 0x10], 0xad6571e9
mov dword [ebp - 0xc], 0x37d1e5f7
add dword [ebp - 0xc], 0xc82e1a09
lea eax, [ebp - 0x18]
push eax
mov eax, 0xdc4be8b2
add eax, 0x23f49852
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xfec376e7
add dword [ebp - 0x18], 0x75aef26f
mov dword [ebp - 0x14], 0x7e1a5444
add dword [ebp - 0x14], 0xc3520d31
mov dword [ebp - 0x10], 0xb0cdf67d
add dword [ebp - 0x10], 0xb2a175ef
mov dword [ebp - 0xc], 0xf2a3c86f
sub dword [ebp - 0xc], 0xf2a3c86f
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xb658a258
add eax, 0x49e7dea8
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3ab1f
push 0
call eax
mov ecx, 0xaa1bb7f4
add ecx, 0x55e49eaf
xor ebx, ebx
add ebx, eax
mov edi, 0x46e400
add edi, dword [ebp - 8]
mov edx, 0xa0b514a4
add edx, 0x3270f081
sub dword [ebp - 4], 0xa62c28a4
mov esi, dword [edi]
xor esi, edx
sub dword [ebp - 4], 0xd9aa72da
mov dword [ebx], esi
add dword [ebp - 4], ecx
add ebx, 4
add edi, 0x6d1a334b
add edi, 0x92e5ccb9
loop 0x403002
add eax, 0x3aa4948e
add eax, 0xc55cb8d1
mov ebx, eax
add eax, 5
mov ecx, 0xa3b6624a
add ecx, 0x5c899db6
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x40317b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4031a6
mov ecx, dword [0x42a298]
push esi
add eax, ecx
push esi
push eax
mov dword [0x418ed4], eax
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 4
call fcn.00403283
cmp eax, esi
jl 0x40327d
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp + 8]
add dword [0x418ed4], 4
call fcn.00403283
mov ebx, eax
cmp ebx, esi
jl 0x40327b
cmp dword [ebp + 0x10], esi
jne 0x403249
cmp dword [ebp + 8], esi
jle 0x40327b
mov esi, 0x414ed0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40320b
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00402ed5
test eax, eax
je 0x403245
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x418ed4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4031fa
jmp 0x40327b
push 0xfffffffffffffffe
jmp 0x40326f
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403254
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x403272
push 0xfffffffffffffffd
pop eax
jmp 0x40327d
mov ebx, dword [ebp - 4]
add dword [0x418ed4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x4059bb
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405dc2
mov edi, eax
cmp edi, 0xffffffff
je 0x4059fc
test byte [esp + 0x10], 1
push esi
je 0x4059de
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
jmp 0x4059e4
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x4059ed
xor eax, eax
inc eax
jmp 0x4059fe
test byte [esp + 0x10], 4
jne 0x4059fc
push edi
push esi
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x405cce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dc2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc

Function at 0x405e16
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a580]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a584]
mov dword [ebp - 4], eax
call dword [sym.imp.kernel32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
test eax, eax
jne 0x405e66
test edi, edi
jne 0x405e23
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405e60
Function at 0x405f41
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, 0x426dc8
push 0x40a5a4
push ebx
call dword [sym.imp.kernel32.dll_lstrcpyW]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.kernel32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405f8f
push 1
push 0
push esi
call fcn.00405de7
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x4060ae
cmp eax, edi
jg 0x4060ae
mov esi, 0x4275c8
push edi
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x4060ae
cmp eax, edi
jg 0x4060ae
push esi
push ebx
push str._ls_ls_r_n
push 0x4269c8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42a250]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00402ed5
push 4
push 0xc0000000
push esi
call fcn.00405de7
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4060ae
push 0
push ebp
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4060a7
push edi
push esi
push ebp
call fcn.00402ed5
test eax, eax
je 0x4060a7
push str._Rename__r_n
push esi
call fcn.00402ed5
test eax, eax
jne 0x406045
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40607a
add eax, 0xa
push 0x40a588
push eax
call fcn.00402ed5
mov ebp, eax
test ebp, ebp
je 0x406076
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406067
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406061
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x40607c
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4269c8
push eax
call fcn.00405da2
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.kernel32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00402ed5
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4060b3
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
jne 0x4060d6
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405f41
pop ecx
pop ecx
inc dword [0x42a2d0]
ret 8
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
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 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], 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, 0x88
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x84], 0
call fcn.0040195d
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, esi
or al, 0x40
push eax
lea eax, [0x404469]
lea edx, [fcn.004019c8]
sub eax, edx
push eax
push fcn.004019c8
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x40133e
push esi
call fcn.0040183b
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.0040188a
mov eax, esi
add eax, 0x1d600
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov edi, dword [ebp - 0x88]
mov eax, esi
mov ecx, edi
or cl, 1
cdq
idiv ecx
mov ebx, eax
add ebx, edi
push ebx
lea edi, [0x4060e4]
lea ecx, [0x4060e4]
mov ebx, esi
shl ebx, cl
add edi, ebx
push edi
call fcn.004019c8
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40195d
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x118], 0
xor edi, edi
push 0
push 0
call sub.USER32.DLL_GetWindow
mov dword [ebp - 0x114], 0xa
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10e]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringA
movsx edi, byte [ebp - 0x10e]
sub edi, 0x41
mov eax, edi
pop edi
leave
ret
Function at 0x402e72
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x431050]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402f06
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402ec3
cmp dword [ebp + 0x10], ebx
jne 0x402efa
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402e72
test eax, eax
jne 0x402ed5
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402eaa
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.0040633f
cmp eax, ebx
je 0x402f0d
push ebx
push dword [0x431050]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402f06
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x431050], ebx
jne 0x402f03
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402f03
jmp 0x402f06
Function at 0x40567b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42d808], 0x44
push eax
xor eax, eax
push 0x42d808
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4056b6
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x405a48
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42cc08
push esi
call fcn.00405e74
push esi
call fcn.004059fb
mov edi, eax
test edi, edi
jne 0x405a69
xor eax, eax
jmp 0x405abb
push edi
call fcn.004060d2
test byte [0x430fb8], 0x80
je 0x405a82
mov al, byte [edi]
test al, al
je 0x405a65
cmp al, 0x5c
je 0x405a65
sub edi, esi
jmp 0x405a9a
call fcn.00406318
test eax, eax
je 0x405a94
test byte [eax], 0x10
je 0x405a65
push esi
call fcn.004059ae
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405a86
call fcn.00405967
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405b2c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405b48
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405b4b
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405b7a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405bbe
test edi, edi
jne 0x405b85
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405bb8