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

Disassembly:
sub esp, 0x230
push ebx
push ebp
mov ebp, dword [esp + 0x23c]
push esi
xor ebx, ebx
push edi
mov edi, eax
cmp ebp, ebx
je 0x46687b
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x466702
sub eax, edx
je 0x46687b
cmp dword [esp + 0x250], 1
jne 0x46684d
cmp dword [esp + 0x254], ebx
jne 0x46684d
push 0x100
lea eax, [esp + 0x144]
push ebx
push eax
call fcn.00487bc0
add esp, 0xc
push 0x100
lea ecx, [esp + 0x44]
push ebx
push ecx
call fcn.00487bc0
lea edx, [esp + 0x14c]
add esp, 0xc
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x466760
lea edx, [esp + 0x140]
push edx
call fcn.004a5430
add esp, 4
lea eax, [esp + 0x140]
push 0x4c709c
push eax
call fcn.00483f10
add esp, 8
lea edx, [esp + 0x40]
cmp eax, ebx
je 0x4667b9
inc eax
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4667a0
lea ecx, [esp + 0x40]
push ecx
call fcn.004a5430
add esp, 4
jmp 0x4667ca
mov eax, edi
sub edx, edi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4667c0
lea eax, [esp + 0x40]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4667d0
mov edx, dword [str..png]
mov cl, byte [0x4c7624]
mov dword [eax], edx
push 1
mov byte [eax + 4], cl
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call fcn.0045fdf0
lea esi, [esp + 0x20]
cmp dword [esp + 0x28], ebx
jne 0x466848
mov eax, dword [esp + 0x248]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x24c]
mov dword [edx], ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 8], ebx
call fcn.004600b0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x230
ret
call fcn.004600b0
xor eax, eax
cmp dword [0x912308], ebx
lea ecx, [esp + 0x1c]
setne al
push eax
push ecx
push edi
push ebp
call fcn.004635c0
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x46688f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x230
ret
push 0x4c70fc
push edi
call fcn.0048466b
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4668ae
push esi
push 1
lea edx, [esp + 0x1c]
push 4
push edx
call fcn.00484992
add esp, 0x10
test eax, eax
jne 0x4668bb
push esi
call fcn.004854f7
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x230
ret
cmp dword [esp + 0x14], 0x46504957
push esi
jne 0x4668a6
push 1
lea eax, [esp + 0x20]
push 2
push eax
call fcn.00484992
add esp, 0x10
push esi
test eax, eax
je 0x4668a6
mov edi, dword [esp + 0x250]
push 1
push 2
push edi
call fcn.00484992
add esp, 0x10
test eax, eax
je 0x4668a5
mov eax, dword [esp + 0x250]
lea edx, [eax + eax*2]
push 1
lea eax, [edx*8 - 0x18]
push eax
xor ecx, ecx
push esi
mov word [edi + 2], cx
call fcn.004853aa
mov ecx, dword [esp + 0x254]
add esp, 0xc
push esi
push 1
push 0x18
push ecx
call fcn.00484992
push esi
call fcn.004854f7
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x230
ret
Function at 0x467360
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x138
push esi
push edi
mov esi, eax
test edx, edx
je 0x4673aa
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x467373
sub eax, edi
je 0x4673aa
xor eax, eax
cmp dword [0x912308], eax
lea ecx, [esp + 0x38]
setne al
push eax
push ecx
push esi
push edx
call fcn.004635c0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4673da
xor eax, eax
pop edi
pop esi
add esp, 0x138
ret
lea edx, [esp + 0x18]
push edx
push esi
call fcn.00484b22
add esp, 8
cmp eax, 0xffffffff
je 0x46739f
push eax
call fcn.00484414
add esp, 4
push 0x4c70fc
push esi
call fcn.0048466b
mov esi, eax
add esp, 8
test esi, esi
je 0x46739f
push esi
push 1
lea eax, [esp + 0x18]
push 4
push eax
call fcn.00484992
add esp, 0x10
push esi
test eax, eax
je 0x46741d
push 1
lea ecx, [esp + 0x1c]
push 4
push ecx
call fcn.00484992
add esp, 0x10
push esi
test eax, eax
je 0x46741d
push 1
lea edx, [esp + 0x14]
push 4
push edx
call fcn.00484992
add esp, 0x10
test eax, eax
jne 0x467430
push esi
call fcn.004854f7
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x138
ret
mov eax, dword [esp + 0xc]
push eax
call fcn.004836a3
add esp, 4
mov edi, eax
push esi
test edi, edi
je 0x46741d
mov ecx, dword [esp + 0x10]
push ecx
push 1
push edi
call fcn.00484992
mov edx, dword [esp + 0x154]
push edx
push edi
call fcn.00467480
push esi
call fcn.004854f7
add esp, 0x1c
push edi
call fcn.004835c6
add esp, 4
pop edi
mov eax, 1
pop esi
add esp, 0x138
ret

Function at 0x467bd0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, eax
xor edx, edx
cmp edi, edx
je 0x467c56
mov ecx, dword [edi]
push ebx
push ebp
mov byte [ecx + 0x16], dl
push esi
mov esi, dword [edi + 4]
mov byte [ecx + 0x17], dl
xor eax, eax
cmp esi, edx
mov byte [ecx + 0x18], dl
mov byte [ecx + 0x19], dl
jle 0x467c0f
movzx ebx, byte [ecx + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x4c8370]
inc edx
cmp edx, esi
jl 0x467bf3
xor edx, edx
mov esi, dword [edi + 0xc]
cmp esi, edx
jle 0x467c3a
mov edi, dword [edi + 8]
lea esp, [esp]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x4c8370]
inc edx
cmp edx, esi
jl 0x467c20
mov edx, eax
shr edx, 8
mov byte [ecx + 0x16], al
mov byte [ecx + 0x17], dl
mov edx, eax
pop esi
shr edx, 0x10
shr eax, 0x18
pop ebp
mov byte [ecx + 0x18], dl
mov byte [ecx + 0x19], al
pop ebx
pop edi
ret
Function at 0x47e2d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov al, byte [edx + 8]
sub esp, 0x10
cmp al, 3
je 0x47e47b
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [edx]
push esi
xor esi, esi
push edi
mov dword [ebp + 8], esi
test al, 2
je 0x47e321
movzx eax, byte [edx + 9]
movzx esi, byte [ecx]
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 1]
mov dword [ebp - 0x10], edi
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 2]
sub eax, esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
mov edi, 3
jmp 0x47e333
movzx eax, byte [ecx + 3]
movzx edi, byte [edx + 9]
sub edi, eax
mov dword [ebp - 0x10], edi
mov edi, 1
test byte [edx + 8], 4
je 0x47e348
movzx ecx, byte [ecx + 4]
movzx eax, byte [edx + 9]
sub eax, ecx
mov dword [ebp + edi*4 - 0x10], eax
inc edi
xor eax, eax
test edi, edi
jle case.0x47e38d.3
cmp dword [ebp + eax*4 - 0x10], 0
jg 0x47e363
mov dword [ebp + eax*4 - 0x10], 0
jmp 0x47e368
mov esi, 1
inc eax
cmp eax, edi
jl 0x47e352
test si, si
je case.0x47e38d.3
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x47e38d.3
movzx ecx, byte [eax + 0x47e494]
jmp dword [ecx*4 + 0x47e480]
mov edx, dword [edx + 4]
mov eax, dword [ebp + 0xc]
test edx, edx
jbe case.0x47e38d.3
mov cl, byte [eax]
shr cl, 1
and cl, 0x55
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x47e3a2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [edx + 4]
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, edx
mov eax, 0xf0
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x47e38d.3
lea ecx, [ecx]
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x47e3e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
imul ebx, edi
mov eax, ebx
xor ebx, ebx
mov dword [ebp + 8], eax
test eax, eax
jbe case.0x47e38d.3
lea esp, [esp]
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [ebp + edx*4 - 0x10]
shr byte [esi - 1], cl
cmp ebx, dword [ebp + 8]
jb 0x47e410
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
imul ebx, edi
mov eax, ebx
xor ebx, ebx
mov dword [ebp + 8], eax
test eax, eax
jbe case.0x47e38d.3
lea esp, [esp]
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [ebp + edx*4 - 0x10]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, dword [ebp + 8]
jb 0x47e440
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401082
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x401790
push 0xffffffffffffffff
push 0x40f453
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x4c]
mov dword [esp + 0x10], 3
call fcn.0040dc54
lea ecx, [esi + 0x38]
mov byte [esp + 0x10], 2
call fcn.0040dc5a
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 1
call fcn.0040dc54
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 0
call fcn.0040dc54
lea ecx, [esi + 0x24]
mov dword [esp + 0x10], 0xa
call fcn.0040dc54
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 9
call fcn.0040dc54
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 8
call fcn.0040dc54
lea ecx, [esi + 0x14]
mov byte [esp + 0x10], 7
call fcn.0040dc54
lea ecx, [esi + 0x10]
mov byte [esp + 0x10], 6
call fcn.0040dc54
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 5
call fcn.0040dc54
lea ecx, [esi + 4]
mov byte [esp + 0x10], 4
call fcn.0040dc54
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.0040dc54
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40113b
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
jmp 0x408560
push 0xffffffffffffffff
push 0x4103a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
xor ebx, ebx
call sub.MFC42.DLL_CString::CString_1
mov edi, dword [esp + 0x34]
xor eax, eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], eax
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], 0x10
call dword [sym.imp.DNAJobTicket.dll_public:_int___thiscall_dna::JobTicket::getJobTicketId_char___unsigned_long_int__]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, esi
call fcn.00401249
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 1
call fcn.0040ddd4
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], bl
call fcn.0040dc54
mov edx, dword [esp + 0xc]
mov ecx, edi
push edx
call dword [sym.imp.DNAJobTicket.dll_public:_int___thiscall_dna::JobTicket::save_char_const__]
test eax, eax
jne 0x4085ff
mov ebx, 1
push ebx
push str.CJTDataManage::addFile___d
call sub.P6Util.dll_WriteErrorLogFileFormat
add esp, 8
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040dc54
mov ecx, dword [esp + 0x24]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4

Function at 0x401159
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
jmp 0x408750
push 0xffffffffffffffff
push 0x4103e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
xor ebx, ebx
call sub.MFC42.DLL_CString::CString_1
mov edi, dword [esp + 0x34]
xor eax, eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], eax
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], 0x10
call dword [sym.imp.DNAJobTicket.dll_public:_int___thiscall_dna::JobTicket::getJobTicketId_char___unsigned_long_int__]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, esi
call fcn.00401249
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 1
call fcn.0040ddd4
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], bl
call fcn.0040dc54
mov edx, dword [esp + 0xc]
mov ecx, edi
push edx
call dword [sym.imp.DNAJobTicket.dll_public:_int___thiscall_dna::JobTicket::save_char_const__]
test eax, eax
jne 0x4087ef
mov ebx, 1
push ebx
push str.CJTDataManage::updateFile___d
call sub.P6Util.dll_WriteErrorLogFileFormat
add esp, 8
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040dc54
mov ecx, dword [esp + 0x24]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x4011d6
Capabilities:
Delete file

Disassembly:
jmp 0x408680
push 0xffffffffffffffff
push 0x4103c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
xor edi, edi
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x1c], edi
call fcn.00401249
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call fcn.0040ddd4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call fcn.0040dc54
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4086eb
mov edi, 1
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0040dc54
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4163de
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x423458]
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.00407f35
mov dword [ebp - 0x14], eax
cmp dword [0x4ba5fc], esi
jne 0x4164d1
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41645e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4165b1
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4165b1
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4165b1
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4ba5fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4ba600], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4ba604], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ba60c], eax
test eax, eax
je 0x4164ce
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ba608], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4164f6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4164e9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41650b
push 4
pop eax
jmp 0x4165b3
cmp dword [ebp - 0x14], esi
je 0x41650b
push dword [0x4ba5fc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4164f0
mov eax, dword [0x4ba608]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x416569
cmp dword [0x4ba60c], edi
je 0x416569
push eax
call ebx
push dword [0x4ba60c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x416569
test eax, eax
je 0x416569
call ecx
test eax, eax
je 0x41655e
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 0x41655e
test byte [ebp - 8], 1
jne 0x416569
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x416599
mov eax, dword [0x4ba600]
cmp eax, edi
je 0x416596
push eax
call ebx
test eax, eax
je 0x416596
call eax
mov esi, eax
test esi, esi
je 0x416596
mov eax, dword [0x4ba604]
cmp eax, edi
je 0x416596
push eax
call ebx
test eax, eax
je 0x416596
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4ba5fc]
call ebx
test eax, eax
je 0x4165b1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4165b3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ede
mov esp, ebp
pop ebp
ret
Function at 0x404580
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push dword [edi + 0x10]
call fcn.00404480
push dword [edi + 0x14]
call fcn.00406675
lea esi, [edi + 0x20]
xor ecx, ecx
mov edi, dword [edi + 0x14]
add esp, 8
mov edx, eax
mov dword [ebp - 4], ecx
xor ebx, ebx
mov dword [ebp - 0xc], edx
test edi, edi
je 0x4045e9
sub eax, esi
mov dword [ebp - 8], eax
nop word [eax + eax]
call fcn.00404430
mov cl, byte [esi]
lea esi, [esi + 1]
sub cl, al
mov eax, dword [ebp - 8]
mov byte [eax + esi - 1], cl
movzx eax, byte [esi - 1]
mov ecx, dword [ebp - 4]
xor ebx, eax
add ecx, eax
mov dword [ebp - 4], ecx
sub edi, 1
jne 0x4045c0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
cmp word [eax + 0x1c], cx
jne 0x404601
cmp word [eax + 0x1e], bx
jne 0x404601
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
push edx
call fcn.0040667e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x462024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp - 6]
push eax
call fcn.00404480
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
add esp, 4
mov dword [ebp - 0x18], ecx
xor ebx, ebx
mov edi, dword [edx + 0x14]
lea esi, [edx + 0x20]
test edi, edi
je 0x404b6a
call fcn.00404430
mov ecx, dword [ebp - 0x18]
lea esi, [esi + 1]
movzx eax, ax
add byte [esi - 1], al
mov al, byte [esi - 1]
movzx eax, al
xor ecx, eax
add ebx, eax
mov dword [ebp - 0x18], ecx
sub edi, 1
jne 0x404b44
mov edx, dword [ebp - 0x1c]
movzx eax, word [ebp - 6]
mov word [edx + 0x1e], cx
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov word [edx + 0x1c], bx
xor ecx, ebp
mov dword [edx + 0x10], eax
pop ebx
call fcn.004065d7
mov esp, ebp
pop ebp
ret

Function at 0x42f161
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x462024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x458890
push esi
call fcn.0043a12b
pop ecx
pop ecx
test eax, eax
jne 0x42f18f
xor al, al
jmp 0x42f20c
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0042eda3
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x42f1c9
push dword [ebp - 0x210]
call fcn.00433535
xor al, al
jmp 0x42f20a
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x42f1cf
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x42f1ef
push edx
call fcn.0042f098
pop ecx
test al, al
je 0x42f1ba
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x42f1fd
mov bl, 1
push dword [ebp - 0x210]
call fcn.00433535
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004065d7
leave
ret
Function at 0x431221
Capabilities:
Parse pe header

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

Function at 0x43ad52
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x459b74
push 0x459b6c
push str.FlsAlloc
push 0x1f
call fcn.0043aa20
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43ad86
push dword [ebp + 8]
mov ecx, esi
call dword [0x45620c]
call esi
jmp 0x43ad8c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43add0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x459b84
push 0x459b7c
push str.FlsGetValue
push 0x21
call fcn.0043aa20
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43ae07
push dword [ebp + 8]
mov ecx, esi
call dword [0x45620c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x43ae0f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x459b8c
push 0x459b84
push str.FlsSetValue
push 0x22
call fcn.0043aa20
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43ae49
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x45620c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x43c4c2
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043c396
Function at 0x43cd5c
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x462024]
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 0x43cda7
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0043d12e
test al, al
jne 0x43cda1
sub edx, 2
cmp edx, edi
jne 0x43cd87
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x43cdc9
lea eax, [edi + 2]
cmp edx, eax
je 0x43cdc9
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0043ca23
add esp, 0x10
jmp 0x43cec3
push esi
lea ecx, [ebp - 0x255]
call fcn.0043d12e
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 0x43ce0c
push dword [ebp - 0x25c]
jmp 0x43cdb9
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 0x43ce49
cmp word [ebp - 0x226], 0
je 0x43ce6a
cmp word [ebp - 0x226], ax
jne 0x43ce49
cmp word [ebp - 0x224], 0
je 0x43ce6a
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0043ca23
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43ceb6
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x43ce23
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x43ce9e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43cec3
push 0x43c542
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00449540
add esp, 0x10
jmp 0x43ce93
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.004065d7
leave
ret