joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4390f5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00439071
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x439264
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x439264
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x439219
jg 0x439151
test eax, eax
je 0x43920f
push 1
push 0x1000
call fcn.00437b7e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x439174
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x439206
push 0x8000
push ebx
call fcn.00431b4d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43919d
jg 0x439198
cmp ecx, 0x1000
jb 0x43919d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00433712
add esp, 0x10
cmp eax, 0xffffffff
je 0x4391e2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x439198
jl 0x4391c9
test ecx, ecx
jne 0x43918a
push dword [ebp - 0xc]
push ebx
call fcn.00431b4d
push esi
call fcn.0043408f
add esp, 0xc
xor ebx, ebx
jmp 0x439272
cmp byte [edi + 0x24], 0
je 0x4391f9
cmp dword [edi + 0x20], 5
jne 0x4391f9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x439204
mov ebx, dword [edi + 0x18]
jmp 0x439206
xor ebx, ebx
push esi
call fcn.0043408f
pop ecx
jmp 0x439272
test ecx, ecx
jg 0x4391db
jl 0x439219
test eax, eax
jae 0x4391db
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004300e8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x439239
cmp byte [edi + 0x1c], 0
je 0x4391db
jmp 0x43926a
push ebx
call fcn.0043771f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4391db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x439272
cmp byte [edi + 0x1c], 0
je 0x43926f
mov ebx, dword [edi + 0x18]
jmp 0x439272
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004300e8
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43a0e7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x43a184
push ebx
push esi
call fcn.0043a0b0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00437068
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43a131
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43a183
push edi
push eax
call fcn.00434a09
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43a151
call fcn.0043408f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43a182
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00437068
add esp, 0x20
test eax, eax
jne 0x43a170
push edi
call fcn.0043408f
jmp 0x43a178
push ebx
call fcn.0043408f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x43a187
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x43a198
pop esi
ret
push ebx
push edi
push esi
call fcn.0043a0b0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00434a09
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43a1c0
push ebx
push esi
push edi
call fcn.00422210
add esp, 0xc
push 0
call fcn.0043408f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x43a91a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043a435

Function at 0x4406d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4406fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4406fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1001224e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x1001225d
pop dword [ebp - 8]
mov eax, 0x1001225d
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x57a60499
add dword [ebp - 0x18], 0xf6ac40b2
mov dword [ebp - 0x14], 0xb48c7e03
sub dword [ebp - 0x14], 0x825931be
mov dword [ebp - 0x10], 0x25de26b3
add dword [ebp - 0x10], 0x266e1d7b
mov dword [ebp - 0xc], 0xc6532104
sub dword [ebp - 0xc], 0xc6532104
lea eax, [ebp - 0x18]
push eax
mov eax, 0xc20d7795
sub eax, 0xb20c26fd
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x1a98d06a
add dword [ebp - 0x18], 0x59d998ec
mov dword [ebp - 0x14], 0x335dd66f
sub dword [ebp - 0x14], 0xf1f174fa
mov dword [ebp - 0x10], 0xb6e59b0b
add dword [ebp - 0x10], 0xac89d161
mov dword [ebp - 0xc], 0xe0c0fb94
sub dword [ebp - 0xc], 0xe0c0fb94
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xd22866ca
sub eax, 0xc227162e
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3e812
push 0
call eax
mov ecx, 0x26d9c7a5
add ecx, 0xd9269811
mov ebx, eax
mov edx, 0x10041c00
add edx, dword [ebp - 8]
mov edi, 0x291ecaf0
add edi, 0x78393c3
sub dword [ebp - 4], 0x81f3ab71
mov esi, dword [edx]
mov dword [ebp - 4], 0x5e3ebc61
add esi, edi
xor dword [ebp - 4], 0xd13bb1f2
mov dword [ebx], esi
add dword [ebp - 4], ecx
add ebx, 0x1f1852df
sub ebx, 0x1f1852db
add edx, 0x3f5c6433
add edx, 0xc0a39bd1
loop 0x10012374
add eax, 0xed60b669
add eax, 0x12a0bb42
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x4011c0
Capabilities:
Contain obfuscated stackstrings
Decode data using base64 via vbmi lookup table

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7492
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov esi, edx
mov dword [ebp - 0x94], eax
xor eax, eax
mov dword [ebp - 0x9c], eax
lea ecx, [eax + 0xf]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 0x3e000000
mov dword [ebp - 0x60], 0x3f000000
mov dword [ebp - 0x5c], 0x37363534
mov dword [ebp - 0x58], 0x3b3a3938
mov dword [ebp - 0x54], 0x3d3c
mov dword [ebp - 0x50], eax
lea edx, [eax + 1]
mov dword [ebp - 0x4c], 0x2010000
mov dword [ebp - 0x48], 0x6050403
mov dword [ebp - 0x44], 0xa090807
mov dword [ebp - 0x40], 0xe0d0c0b
mov dword [ebp - 0x3c], 0x1211100f
mov dword [ebp - 0x38], 0x16151413
mov dword [ebp - 0x34], 0x191817
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0x1c1b1a00
mov dword [ebp - 0x28], 0x201f1e1d
mov dword [ebp - 0x24], 0x24232221
mov dword [ebp - 0x20], 0x28272625
mov dword [ebp - 0x1c], 0x2c2b2a29
mov dword [ebp - 0x18], 0x302f2e2d
mov word [ebp - 0x14], 0x3231
mov byte [ebp - 0x12], 0x33
mov byte [esi], al
mov dword [ebp - 4], eax
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x90], eax
cmp dword [ebp + 8], eax
jle 0x4013be
mov al, byte [edi]
cmp al, 0xd
je 0x4013a7
cmp al, 0xa
je 0x4013a7
cmp al, 0x20
je 0x4013a7
cmp al, 9
je 0x4013a7
movsx ecx, al
movsx eax, byte [edi + edx]
movsx ebx, byte [ebp + ecx - 0x8c]
movsx ecx, byte [ebp + eax - 0x8c]
add edi, edx
shl ebx, 0x12
shl ecx, 0xc
add ebx, ecx
mov dword [ebp - 0x98], ebx
sar ebx, 0x10
add edi, edx
call fcn.00401410
mov eax, dword [ebp - 0x94]
inc dword [eax]
mov al, byte [edi]
cmp al, 0x3d
je 0x401399
mov ebx, dword [ebp - 0x98]
movsx edx, al
movsx eax, byte [ebp + edx - 0x8c]
shl eax, 6
add ebx, eax
mov dword [ebp - 0x98], ebx
sar ebx, 8
inc edi
call fcn.00401410
mov eax, dword [ebp - 0x94]
inc dword [eax]
mov al, byte [edi]
cmp al, 0x3d
je 0x401399
mov ebx, dword [ebp - 0x98]
movsx ecx, al
movsx edx, byte [ebp + ecx - 0x8c]
add ebx, edx
inc edi
call fcn.00401410
mov eax, dword [ebp - 0x94]
inc dword [eax]
add dword [ebp - 0x90], 4
mov edx, 1
jmp 0x4013af
add edi, edx
add dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebp + 8]
jl 0x4012e4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret 8
Function at 0x402600
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e52b2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
lea eax, [ebp - 0x218]
push eax
push edi
push edi
push 5
mov dword [ebp - 4], edi
push edi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402667
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
mov ecx, esi
call fcn.00404960
mov dword [ebp - 4], edi
push 3
mov eax, 0x506264
mov ecx, esi
mov dword [ebp - 0x21c], 1
call fcn.00403f00
cmp dword [esi + 0x14], 8
jb 0x4026aa
mov eax, dword [esi]
jmp 0x4026ac
mov eax, esi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret
Function at 0x404bf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8766
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov edi, edx
cmp dword [esi + 0x10], ebx
je 0x404d72
cmp dword [esi + 0x14], 8
jb 0x404c37
mov eax, dword [esi]
jmp 0x404c39
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404d72
push 0x18
push str.UmVnc3ZyMzIgL3MgIiVzIg
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004041e0
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x2c]
mov ebx, 0x10
cmp dword [ebp - 0x18], ebx
jae 0x404c77
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x154]
push eax
push edx
lea edx, [ebp - 0x48]
call fcn.004011c0
mov byte [ebp - 4], 1
mov eax, dword [0x53ef48]
mov edx, dword [eax + 0xc]
mov ecx, 0x53ef48
call edx
add eax, 0x10
mov dword [ebp - 0x154], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x404cb5
lea eax, [ebp - 0x48]
push 3
push eax
lea edx, [ebp - 0x150]
lea ecx, [ebp - 0x14c]
push edx
mov dword [ebp - 0x150], ecx
call fcn.00406b00
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x404cdc
mov esi, dword [esi]
mov eax, dword [ebp - 0x150]
push esi
push eax
lea edi, [ebp - 0x154]
call fcn.00408a70
mov eax, dword [ebp - 0x150]
lea ecx, [ebp - 0x14c]
add esp, 8
cmp eax, ecx
je 0x404d0b
push eax
call fcn.004b2f65
add esp, 4
mov esi, dword [ebp - 0x154]
push esi
call fcn.00404f50
lea eax, [esi - 0x10]
add esp, 4
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404d3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x34], ebx
jb 0x404d4b
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b1676
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x18], ebx
jb 0x404d6e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b1676
add esp, 4
mov al, 1
jmp 0x404d82
push 7
push 0x5066a4
mov ecx, edi
call fcn.00404960
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret
Function at 0x404da0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8716
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov edi, edx
cmp dword [esi + 0x10], ebx
je 0x404f22
cmp dword [esi + 0x14], 8
jb 0x404de7
mov eax, dword [esi]
jmp 0x404de9
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404f22
push 0x1c
push str.UmVnc3ZyMzIgL3UgL3MgIiVzIg
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004041e0
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x2c]
mov ebx, 0x10
cmp dword [ebp - 0x18], ebx
jae 0x404e27
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x154]
push eax
push edx
lea edx, [ebp - 0x48]
call fcn.004011c0
mov byte [ebp - 4], 1
mov eax, dword [0x53ef48]
mov edx, dword [eax + 0xc]
mov ecx, 0x53ef48
call edx
add eax, 0x10
mov dword [ebp - 0x154], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x404e65
lea eax, [ebp - 0x48]
push 3
push eax
lea edx, [ebp - 0x150]
lea ecx, [ebp - 0x14c]
push edx
mov dword [ebp - 0x150], ecx
call fcn.00406b00
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x404e8c
mov esi, dword [esi]
mov eax, dword [ebp - 0x150]
push esi
push eax
lea edi, [ebp - 0x154]
call fcn.00408a70
mov eax, dword [ebp - 0x150]
lea ecx, [ebp - 0x14c]
add esp, 8
cmp eax, ecx
je 0x404ebb
push eax
call fcn.004b2f65
add esp, 4
mov esi, dword [ebp - 0x154]
push esi
call fcn.00404f50
lea eax, [esi - 0x10]
add esp, 4
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404eea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x34], ebx
jb 0x404efb
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b1676
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x18], ebx
jb 0x404f1e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b1676
add esp, 4
mov al, 1
jmp 0x404f32
push 7
push 0x5066a4
mov ecx, edi
call fcn.00404960
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret
Function at 0x404f50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor ecx, ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x5c]
push eax
push ecx
push ecx
push ecx
push 1
push ecx
push ecx
mov word [ebp - 0x2c], cx
mov ecx, dword [ebp + 8]
push ecx
push 0
mov dword [ebp - 0x30], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x404f9d
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x7530
push edx
xor esi, esi
call edi
test eax, eax
je 0x404fc9
inc esi
cmp esi, 5
je 0x404fc9
mov eax, dword [ebp - 0x14]
push 0x7530
push eax
call edi
test eax, eax
jne 0x404fb4
mov ecx, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x14]
push edx
call esi
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405180
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
call fcn.004b96b0
add esp, 0xc
cmp byte [ebp + 8], 0
push 0x104
je 0x4051d4
lea edx, [ebp - 0x20c]
push edx
push str._ProgramW6432_
jmp 0x4051e0
lea eax, [ebp - 0x20c]
push eax
push str._ProgramFiles_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405202
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
mov ecx, esi
call fcn.00404960
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.004b1681
mov esp, ebp
pop ebp
ret

Function at 0x4052f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405326
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret
push edi
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.004b96b0
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x405382
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
lea edx, [ebp - 0x20c]
push edx
push ebx
call fcn.004b2762
add esp, 8
test eax, eax
je 0x40539b
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x405360
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
pop edi
xor ecx, ebp
pop esi
call fcn.004b1681
mov esp, ebp
pop ebp
ret
Function at 0x405440
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41a]
push ecx
mov word [ebp - 0x41c], ax
call fcn.004b96b0
add esp, 0xc
push esi
lea edx, [ebp - 0x41c]
push 0x506820
push edx
call fcn.004b27ed
add esp, 0xc
lea eax, [ebp - 0x66c]
push eax
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4055d5
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x212]
push eax
mov word [ebp - 0x214], dx
call fcn.004b96b0
add esp, 0xc
lea ecx, [ebp - 0x66c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4055ce
mov edi, edi
mov ecx, 0x506ae0
lea eax, [ebp - 0x640]
jmp 0x4054f0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405516
test dx, dx
je 0x405512
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405516
add eax, 4
add ecx, 4
test dx, dx
jne 0x4054f0
xor eax, eax
jmp 0x40551b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4055b8
mov ecx, 0x50682c
lea eax, [ebp - 0x640]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405556
test dx, dx
je 0x405552
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405556
add eax, 4
add ecx, 4
test dx, dx
jne 0x405530
xor eax, eax
jmp 0x40555b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4055b8
push 0x104
lea edx, [ebp - 0x214]
push 0
push edx
call fcn.004b96b0
add esp, 0xc
lea eax, [ebp - 0x640]
push eax
push esi
lea ecx, [ebp - 0x214]
push 0x506834
push ecx
call fcn.004b27ed
add esp, 0x10
test byte [ebp - 0x66c], 0x10
je 0x4055ab
lea edx, [ebp - 0x214]
push edx
call fcn.00405440
add esp, 4
jmp 0x4055b8
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x66c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4054e0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004b1681
mov esp, ebp
pop ebp
ret
Function at 0x4055f0
Capabilities:
Hash data with md5
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e86c0
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
jb 0x405649
mov eax, dword [eax]
push 0x506840
push eax
call fcn.004b2a7f
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x405690
push 0x506848
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0x2c]
mov byte [esi], 0
call fcn.00401de0
cmp dword [ebp - 0x18], 0x10
jb 0x405780
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x405778
push 0x100000
mov byte [ebp - 0xb4], 0
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], 0x67452301
mov dword [ebp - 0x64], 0xefcdab89
mov dword [ebp - 0x60], 0x98badcfe
mov dword [ebp - 0x5c], 0x10325476
call fcn.004b2b1c
push edi
mov ebx, eax
call fcn.004b2bb0
add esp, 8
test eax, eax
jne 0x405700
push edi
push 0x100000
push 1
push ebx
call fcn.004b2e67
add esp, 0x10
test eax, eax
je 0x405700
push ebx
lea esi, [ebp - 0xb4]
call fcn.0042e920
push edi
call fcn.004b2bb0
add esp, 4
test eax, eax
je 0x4056d2
push edi
call fcn.004b2ef1
push ebx
call fcn.004b2f65
add esp, 8
lea ecx, [ebp - 0xb4]
call fcn.0042e9e0
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0xb4]
call fcn.0042eb70
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00401de0
mov ebx, 0x10
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], ebx
jb 0x405750
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b1676
add esp, 4
mov esi, dword [ebp - 0xb8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
lea edi, [ebp - 0x2c]
mov byte [esi], 0
call fcn.00401de0
cmp dword [ebp - 0x18], ebx
jb 0x405780
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b1676
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1681
mov esp, ebp
pop ebp
ret