joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41249d
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x28
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov esi, dword [ebx]
mov edx, dword [ebx + 0x3c]
movzx ebp, word [esi + 0x14]
add ebp, esi
mov eax, dword [ebp + 0x20]
mov ecx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
call fcn.004122d4
lea edx, [ebp + 0x18]
mov dword [esp + 0x28], eax
mov ecx, ebx
call fcn.004123e1
mov ebx, dword [ebp + 0x3c]
mov edi, eax
and dword [esp + 0x34], 0
xor eax, eax
inc eax
mov dword [esp + 0x2c], edi
add ebp, 0x40
mov dword [esp + 0x30], ebx
cmp ax, word [esi + 6]
mov esi, ecx
mov dword [esp + 0x20], eax
jae 0x4125af
mov eax, dword [ebp + 8]
mov ecx, eax
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x1c], eax
call fcn.004122d4
mov edx, ebp
mov dword [esp + 0x14], eax
mov ecx, esi
call fcn.004123e1
mov edx, dword [esp + 0x10]
mov ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x28], eax
je 0x412566
lea ecx, [edi + edx]
cmp ecx, eax
ja 0x412562
lea edx, [esp + 0x24]
mov ecx, esi
call fcn.00412400
test eax, eax
je 0x4125cc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ebx, dword [ebp + 0x24]
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
jmp 0x41258a
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x24]
mov edi, 0x2000000
test edi, eax
je 0x41257a
test edi, ebx
je 0x41257a
or ebx, eax
jmp 0x412582
or ebx, eax
and ebx, 0xfdffffff
mov edi, ecx
sub edi, edx
add edi, dword [esp + 0x1c]
mov eax, dword [esi]
add ebp, 0x28
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], edi
movzx eax, word [eax + 6]
mov dword [esp + 0x20], ecx
cmp ecx, eax
jl 0x4124f9
xor eax, eax
inc eax
lea edx, [esp + 0x24]
mov dword [esp + 0x34], eax
mov ecx, esi
call fcn.00412400
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
xor eax, eax
jmp 0x4125c4
Function at 0x422b71
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [ecx + 4]
xor eax, eax
xor edx, edx
movzx ecx, word [esi]
cmp ax, cx
jae 0x422b9c
movzx eax, dx
mov al, byte [eax + esi + 4]
cmp al, 0x13
je 0x422b9c
cmp al, 0xc0
je 0x422b9c
cmp al, 0xcc
je 0x422b9c
add edx, 2
cmp dx, cx
jb 0x422b81
pop esi
ret

Function at 0x42564b
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, edx
mov edx, dword [esp + 0x10]
lea esi, [edi + 4]
push esi
call fcn.004255e8
mov edx, dword [esp + 0x10]
pop ecx
push 4
sub edx, edi
pop ecx
mov al, byte [edx + edi]
mov byte [edi], al
inc edi
sub ecx, 1
jne 0x425666
push 8
pop ecx
mov al, byte [esi + edx]
xor byte [esi], al
inc esi
sub ecx, 1
jne 0x425674
pop edi
pop esi
ret

Function at 0x4278cf
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4278e7
sub edx, ecx
mov eax, dword [edx + ecx]
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub esi, 1
jne 0x4278da
pop esi
ret

Function at 0x4278e9
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
or eax, edx
push esi
mov esi, dword [esp + 8]
or eax, esi
test al, 3
jne 0x427904
shr esi, 2
push esi
call fcn.004278cf
pop ecx
pop esi
ret
test esi, esi
je 0x427915
sub edx, ecx
mov al, byte [edx + ecx]
xor byte [ecx], al
inc ecx
sub esi, 1
jne 0x42790a
pop esi
ret

Function at 0x427917
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov esi, edx
mov ebx, ecx
test edi, edi
jle 0x42793b
sub ebx, esi
movzx edx, byte [ebx + esi]
movzx ecx, byte [esi]
xor edx, ecx
or eax, edx
inc esi
sub edi, 1
jne 0x42792a
pop edi
pop esi
pop ebx
ret
Function at 0x42fcac
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
test edi, edi
je 0x42fda6
cmp dword [esp + 0x14], 0
mov esi, dword [esp + 0x18]
jne 0x42fccd
test esi, esi
jne 0x42fda6
cmp edx, 3
je 0x42fd03
cmp edx, 4
je 0x42fd03
cmp edx, 5
je 0x42fd03
cmp edx, 6
je 0x42fd03
cmp edx, 7
je 0x42fd03
cmp edx, 8
je 0x42fd03
cmp edx, 0xa
je 0x42fd03
cmp edx, 0xb
je 0x42fd03
cmp edx, 0xc
je 0x42fd03
cmp edx, 0xd
jne 0x42fda6
xor ebx, ebx
mov byte [edi + 0x114], dl
push ecx
mov byte [edi + 0x115], bl
call fcn.0042fc8f
mov ebp, eax
pop ecx
test ebp, ebp
jne 0x42fdab
cmp byte [edi + 0x114], 6
lea ecx, [edi + 0x70]
jne 0x42fda6
cmp esi, 0x40
ja 0x42fd49
cmp dword [esp + 0x14], ebx
je 0x42fd72
push esi
push dword [esp + 0x18]
push ecx
call fcn.00437450
add esp, 0xc
jmp 0x42fd6f
mov edx, dword [esp + 0x14]
mov ecx, edi
push esi
call fcn.00434b8e
mov ebp, eax
pop ecx
test ebp, ebp
jne 0x42fda2
lea edx, [edi + 0x70]
mov ecx, edi
call fcn.00434c69
mov ebp, eax
test ebp, ebp
jne 0x42fda2
push 0x20
pop esi
lea ecx, [edi + 0x70]
cmp esi, 0x40
jae 0x42fd8a
push 0x40
pop eax
sub eax, esi
push eax
lea eax, [ecx + esi]
push ebx
push eax
call fcn.004379d0
add esp, 0xc
mov al, byte [ebx + edi + 0x70]
xor al, 0x5c
mov byte [edi + ebx + 0xb0], al
xor byte [ebx + edi + 0x70], 0x36
inc ebx
cmp ebx, 0x40
jb 0x42fd8a
mov eax, ebp
jmp 0x42fdab
mov eax, 0xffffff53
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x433c2a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xd4
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
push edi
inc ebx
inc esi
cmp dword [esp + 0xe8], 0
mov edi, ecx
push 0
cmovne ebx, dword [esp + 0xec]
mov ebp, edx
pop ecx
test bl, 0x1f
mov eax, ebx
push 0x37
push dword [esp + 0xf0]
setne cl
shr eax, 5
add eax, ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.00437450
and dword [esp + 0x20], 0
add esp, 0xc
cmp dword [esp + 0x10], 0
jbe 0x433d68
lea ecx, [esp + 0x74]
call fcn.00434ca8
mov esi, eax
test esi, esi
jne 0x433d68
push 0x37
lea edx, [esp + 0x40]
lea ecx, [esp + 0x78]
call fcn.00434b8e
mov esi, eax
pop ecx
test esi, esi
jne 0x433d68
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x74]
call fcn.00434c69
mov esi, eax
test esi, esi
jne 0x433d68
push 4
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00437450
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp dword [edi], 1
jbe 0x433d13
cmp eax, dword [edi + 4]
jne 0x433d13
cmp byte [edi + 0x76], 1
je 0x433d86
mov edx, dword [esp + 0x10]
mov byte [edi + 0x76], 1
lea eax, [edx - 1]
cmp dword [esp + 0x14], eax
lea ecx, [edx + 1]
cmovne ecx, edx
mov dword [esp + 0x10], ecx
jmp 0x433d1a
mov byte [edi + 0x76], 0
mov dword [edi + 4], eax
test ebp, ebp
je 0x433d55
test ebx, ebx
je 0x433d55
lea eax, [esp + 0x1c]
cmp ebx, 0x20
jb 0x433d48
push 0x20
push eax
push ebp
call fcn.00437450
add esp, 0xc
lea ecx, [esp + 0x3c]
sub ebx, 0x20
add ebp, 0x20
call fcn.00433c1b
jmp 0x433d55
push ebx
push eax
push ebp
call fcn.00437450
add esp, 0xc
xor ebx, ebx
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x10]
jl 0x433c88
push 0x37
pop edx
lea ecx, [esp + 0x3c]
call fcn.0041e1dc
xor eax, eax
test esi, esi
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret
push 3
pop eax
jmp 0x433d7b

Function at 0x434482
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x43442e
mov eax, 0xffffff53
pop esi
ret
push edi
push 0x20
xor edi, edi
push edi
push esi
call fcn.004379d0
add esp, 0xc
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
xor eax, eax
mov dword [esi + 0x68], edi
mov dword [esi], 0x6a09e667
pop edi
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
pop esi
ret
test ecx, ecx
jne 0x43448c
mov eax, 0xffffff53
ret
mov dword [ecx + 0x6c], edx
jmp 0x434420
Function at 0x434bad
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
test ebx, ebx
jne 0x434bbb
mov eax, 0xffffff53
pop ebx
ret
mov eax, dword [ebx + 0x60]
push ebp
push esi
push edi
push 0x40
pop edi
lea ebp, [ebx + 0x20]
mov byte [eax + ebp], 0x80
inc dword [ebx + 0x60]
mov ecx, dword [ebx + 0x60]
push 0x38
pop esi
cmp ecx, esi
jbe 0x434c08
mov eax, edi
sub eax, ecx
push eax
lea eax, [ecx + ebp]
push 0
push eax
call fcn.004379d0
push edi
mov edx, ebp
mov dword [ebx + 0x60], edi
mov ecx, ebp
call fcn.004343f6
add esp, 0x10
mov edx, ebp
mov ecx, ebx
call fcn.00434494
test eax, eax
jne 0x434c64
and dword [ebx + 0x60], eax
mov eax, dword [ebx + 0x60]
sub esi, eax
push esi
add eax, ebp
push 0
push eax
call fcn.004379d0
lea edi, [ebx + 0x64]
mov edx, ebp
mov ecx, dword [edi]
lea esi, [ebx + 0x68]
mov eax, dword [esi]
shr ecx, 0x1d
push 0x40
lea eax, [ecx + eax*8]
mov ecx, ebp
mov dword [esi], eax
mov eax, dword [edi]
shl eax, 3
mov dword [edi], eax
call fcn.004343f6
push 4
lea eax, [ebp + 0x38]
push esi
push eax
call fcn.00437450
push 4
lea eax, [ebp + 0x3c]
push edi
push eax
call fcn.00437450
add esp, 0x28
mov edx, ebp
mov ecx, ebx
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.00434494
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x434c69
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x434ca0
test edi, edi
je 0x434ca0
call fcn.00434bad
test eax, eax
jne 0x434ca5
push 0x20
mov edx, esi
mov ecx, esi
call fcn.004343f6
push 0x20
push esi
push edi
call fcn.00437450
add esp, 0x10
mov ecx, esi
pop edi
pop esi
jmp 0x434420
mov eax, 0xffffff53
pop edi
pop esi
ret

Function at 0x434d58
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov eax, edx
mov ebp, ecx
neg eax
mov dword [esp + 8], eax
test ebp, ebp
je 0x434df2
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x434df2
mov edx, dword [ebp]
mov ecx, ebx
inc edx
call fcn.0043043b
mov dword [esp + 0xc], eax
test eax, eax
jne 0x434df7
xor edx, edx
push esi
push edi
cmp dword [ebp], edx
jle 0x434db8
mov edi, dword [ebx + 0xc]
mov ecx, ebp
call fcn.00434d42
mov ecx, ebx
mov esi, eax
call fcn.00434d42
mov ecx, dword [esp + 0x10]
xor esi, eax
and esi, ecx
xor dword [edi + edx*4], esi
inc edx
cmp edx, dword [ebp]
jl 0x434d92
jmp 0x434ddd
mov ecx, dword [esp + 0x10]
jmp 0x434ddd
mov edi, dword [ebx + 0xc]
mov ecx, ebp
call fcn.00434d42
mov ecx, ebx
mov esi, eax
call fcn.00434d42
mov ecx, dword [esp + 0x10]
xor esi, eax
and esi, ecx
xor dword [edi + edx*4], esi
inc edx
cmp edx, dword [ebx]
jl 0x434dbe
mov eax, dword [ebp]
xor eax, dword [ebx]
and eax, ecx
xor dword [ebx], eax
mov eax, dword [esp + 0x14]
pop edi
pop esi
jmp 0x434df7
mov eax, 0xffffff53
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x44cba6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044ca25
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x4033be
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x98]
test eax, eax
je 0x4033e5
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
and dword [esi + 0x98], 0
pop ecx
push 0x40d058
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [esi + 0x98], eax
test eax, eax
pop ecx
je 0x4035c2
mov ebx, 0x80
push eax
push ebx
lea eax, [ebp - 0x84]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp dword [0x40d708], 0
mov edi, str.45_0_07317_
jne 0x403444
push 0x10
push str._63_7_5_00_47
push edi
call fcn.00404294
add esp, 0xc
mov dword [0x40d708], 1
push edi
lea eax, [ebp - 0x84]
push ebx
push eax
call fcn.00404355
lea ecx, [ebp - 0x84]
lea eax, [esi + 0xc0]
push 8
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0xc4]
add esp, 0x18
sub eax, 8
cmp byte [esi + 0xc1], 0x57
mov dword [ebp - 4], eax
jne 0x4035ae
cmp byte [esi + 0xc2], 0x53
jne 0x4035ae
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp byte [esi + 0xc0], 0x43
mov edi, eax
pop ecx
mov dword [ebp + 8], edi
jne 0x403540
push 2
push 0
push dword [esi + 0x98]
call dword [sym.imp.MSVCRT.dll_fseek]
push dword [esi + 0x98]
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push ebx
push dword [esi + 0x98]
mov edi, eax
sub edi, 8
call dword [sym.imp.MSVCRT.dll_fseek]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
lea eax, [ebp - 0x7c]
push 0x78
push eax
push ebx
call sub.MSVCRT.dll_memcpy
push dword [esi + 0x98]
lea eax, [edi - 0x78]
push eax
lea eax, [ebx + 0x78]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
push edi
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp + 8]
call fcn.004043a0
add esp, 0x4c
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 0xc4]
pop ecx
sub eax, 8
cmp dword [ebp - 4], eax
je 0x403579
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [esi + 0x98]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
jmp 0x4035ba
push 0
push ebx
push dword [esi + 0x98]
call dword [sym.imp.MSVCRT.dll_fseek]
lea eax, [ebp - 0x7c]
push 0x78
push eax
push edi
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 4]
push dword [esi + 0x98]
add eax, 0xffffff88
push eax
lea eax, [edi + 0x78]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x28
jmp 0x40357c
mov edi, dword [ebp + 8]
push edi
lea ebx, [esi + 0xe4]
push dword [ebp - 4]
mov ecx, ebx
call section..text
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
lea eax, [esi + 0xc8]
push eax
mov ecx, esi
call fcn.004035d8
mov ecx, ebx
call fcn.00401043
xor eax, eax
inc eax
jmp 0x4035c4
push dword [esi + 0x98]
call dword [sym.imp.MSVCRT.dll_fclose]
and dword [esi + 0x98], 0
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x403dc8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x40d6d8], 0
jne 0x403de9
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x18]
mov dword [0x40d6d8], eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
leave
ret 8

Function at 0x403eeb
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x40735c
call fcn.00406aa0
sub esp, 0x234
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x10], ebx
and dword [ebp - 4], 0
mov ecx, 0x88
xor eax, eax
lea edi, [ebp - 0x23c]
mov dword [ebp - 0x240], 0x224
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x240]
push eax
push ebx
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x403f92
push esi
cmp dword [ebp + 0x1c], 0
je 0x403f69
mov esi, str.urlmon.dll
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x220]
movsw word es:[edi], word [esi]
push eax
lea eax, [ebp - 0x1c]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll__mbsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x403f80
push dword [ebp - 0x224]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403fae
lea eax, [ebp - 0x240]
push eax
push ebx
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x403f3f
pop esi
cmp ebx, 0xffffffff
je 0x403f9e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x4042d3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ecx + 0xc]
mov esi, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [0x40d2f4]
mov dword [ebp - 8], edi
mov edi, dword [ecx + 8]
mov dword [ebp - 4], edi
mov edi, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [ebp - 0x10], edi
shl eax, 5
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0xc], 0x20
mov ecx, esi
mov edi, esi
shl ecx, 4
add ecx, dword [ebp - 4]
shr edi, 5
add edi, dword [ebp - 8]
xor ecx, edi
lea edi, [eax + esi]
xor ecx, edi
sub edx, ecx
mov ecx, edx
mov edi, edx
shl ecx, 4
add ecx, dword [ebp - 0xc]
shr edi, 5
add edi, dword [ebp - 0x10]
xor ecx, edi
lea edi, [eax + edx]
sub eax, dword [0x40d2f4]
xor ecx, edi
sub esi, ecx
dec dword [ebp + 0xc]
jne 0x40430c
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
mov dword [eax + 4], edx
pop esi
leave
ret
Function at 0x402a36
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 [0x42ec10]
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 0x402aca
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a87
cmp dword [ebp + 0x10], ebx
jne 0x402abe
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a36
test eax, eax
jne 0x402a99
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a6e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405d1e
cmp eax, ebx
je 0x402ad1
push ebx
push dword [0x42ec10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402aca
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 [0x42ec10], ebx
jne 0x402ac7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ac7
jmp 0x402aca
Function at 0x405260
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42bfe8], 0x44
push eax
xor eax, eax
push 0x42bfe8
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 0x40529b
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405325
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004055d4
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405359
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42ebe8], eax
jmp 0x4054ed
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405377
test eax, eax
je 0x405498
test byte [ebp + 0xc], 2
je 0x405498
mov esi, 0x42afe8
push edi
push esi
call fcn.00405a00
test ebx, ebx
je 0x405394
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40539a
push edi
call fcn.0040553a
cmp byte [edi], 0
jne 0x4053a8
cmp byte [0x42afe8], 0x5c
jne 0x4053b3
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40548e
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.0040551e
cmp byte [eax], 0
je 0x4053f9
cmp byte [ebp - 0x18], 0
je 0x4053f9
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x40540f
mov al, byte [esi + 1]
test al, al
je 0x40546d
cmp al, 0x2e
jne 0x40540f
cmp byte [esi + 2], 0
je 0x40546d
push esi
push ebx
call fcn.00405a00
test byte [ebp - 0x148], 0x10
je 0x405434
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40546d
push dword [ebp + 0xc]
push edi
call fcn.00405325
jmp 0x40546d
push edi
call fcn.004056b8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405465
test byte [ebp + 0xc], 4
je 0x40545d
push edi
push 0xfffffffffffffff1
call fcn.00404d9e
push 0
push edi
call fcn.0040574e
jmp 0x40546d
inc dword [0x42ebe8]
jmp 0x40546d
push edi
push 0xfffffffffffffff2
call fcn.00404d9e
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4053d7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405498
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4054ed
cmp dword [ebp - 8], esi
jne 0x4054ad
inc dword [0x42ebe8]
jmp 0x4054ed
push edi
call fcn.00405cf7
test eax, eax
je 0x4054ed
push edi
call fcn.004054f3
push edi
call fcn.004056b8
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4054e5
test byte [ebp + 0xc], 4
je 0x4054a5
push edi
push 0xfffffffffffffff1
call fcn.00404d9e
push esi
push edi
call fcn.0040574e
jmp 0x4054ed
push edi
push 0xffffffffffffffe5
call fcn.00404d9e
pop edi
pop esi
leave
ret 8
Function at 0x4055d4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b3e8
push esi
call fcn.00405a00
push esi
call fcn.00405587
mov edi, eax
test edi, edi
jne 0x4055f5
xor eax, eax
jmp 0x405647
push edi
call fcn.00405c5e
test byte [0x42eb78], 0x80
je 0x40560e
mov al, byte [edi]
test al, al
je 0x4055f1
cmp al, 0x5c
je 0x4055f1
sub edi, esi
jmp 0x405626
call fcn.00405cf7
test eax, eax
je 0x405620
test byte [eax], 0x10
je 0x4055f1
push esi
call fcn.0040553a
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405612
call fcn.004054f3
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 0x4056b8
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 0x4056d4
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4056d7
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 0x405706
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 0x40574a
test edi, edi
jne 0x405711
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405744