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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4da978]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a1286
cmp word [ebx], dx
jne 0x4a1286
or byte [eax + edi + 0x28], 4
jmp 0x4a128b
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4a13ee
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4a13ce
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4a12cc
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a1302
cmp eax, edx
jae 0x4a1310
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4a12a7
jmp 0x4a13ee
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a13c9
cmp dword [ebp - 0x18], 0
je 0x4a13c9
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4da978]
test byte [eax + edi + 0x28], 0x48
je 0x4a139f
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4a1363
mov word [esi], cx
jmp 0x4a139a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4da978]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4da978]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4da978]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4a13ee
pop eax
cmp word [ebp - 4], ax
jne 0x4a13af
cmp esi, ebx
jne 0x4a13af
mov word [esi], ax
jmp 0x4a13eb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401910
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4a13ee
push 0xd
pop eax
jmp 0x4a13aa
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4da978]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4a13e8
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4a13ee
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a4ee7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d7040]
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 0x4a4f32
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a539f
test al, al
jne 0x4a4f2c
sub edx, 2
cmp edx, edi
jne 0x4a4f12
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a4f54
lea eax, [edi + 2]
cmp edx, eax
je 0x4a4f54
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a4ae0
add esp, 0x10
jmp 0x4a504e
push esi
lea ecx, [ebp - 0x255]
call fcn.004a539f
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 0x4a4f97
push dword [ebp - 0x25c]
jmp 0x4a4f44
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 0x4a4fd4
cmp word [ebp - 0x226], 0
je 0x4a4ff5
cmp word [ebp - 0x226], ax
jne 0x4a4fd4
cmp word [ebp - 0x224], 0
je 0x4a4ff5
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a4ae0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a5041
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a4fae
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a5029
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a504e
push 0x4a44c8
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004054cf
add esp, 0x10
jmp 0x4a501e
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.0040303f
leave
ret

Function at 0x4aa9b0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004042aa
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4aaa1f
cmp esi, dword [ebp - 4]
je 0x4aaa1a
cmp dword [ebp + 0xc], 0
je 0x4aaa1a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4aa9f7
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004aa3d8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4aaa21
xor eax, eax
inc eax
jmp 0x4aaa21
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x601850
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a4000]
push edi
jmp 0x60186a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x601871
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x601860
mov eax, 1
add ebx, ebx
jne 0x601883
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x601894
jne 0x6018b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6018b3
dec eax
add ebx, ebx
jne 0x6018a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x601878
add ebx, ebx
jne 0x6018af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x601905
xor ecx, ecx
sub eax, 3
jb 0x6018cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x60193a
sar eax, 1
mov ebp, eax
jmp 0x6018d6
add ebx, ebx
jne 0x6018d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6018a4
inc ecx
add ebx, ebx
jne 0x6018e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6018a4
add ebx, ebx
jne 0x6018f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6018e6
jne 0x601902
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6018e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x601924
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x601916
jmp 0x601866
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x601924
add edi, ecx
jmp 0x601866
pop esi
mov edi, esi
mov ecx, 0x40d6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x601942
cmp byte [edi], 0x11
jne 0x601942
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x601947
lea edi, [esi + 0x1fa000]
mov eax, dword [edi]
or eax, eax
je 0x6019bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x31d218]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x31d394]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x601974
mov ecx, edi
jns 0x6019a3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x31d398]
or eax, eax
je 0x6019b9
mov dword [ebx], eax
add ebx, 4
jmp 0x601991
call dword [esi + 0x31d3a8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6019f0
cmp al, 0xef
ja 0x6019e3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6019c5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6019d2
mov ebp, dword [esi + 0x31d39c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x601a24
sub esp, 0xffffff80
jmp 0x4204f7
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x43f147]
shl eax, 2
mov dword [0x43f14b], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0043646c
pop edx
call fcn.00435808
call fcn.00436470
push 0
call fcn.00437180
pop ecx
push 0x43f0f0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x43f14f], eax
push 0
jmp fcn.0043c810

Function at 0x402f04
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x16], 0
mov esi, ecx
je 0x402f27
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x402f38
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x402f47
or dword [ebp - 8], 2
cmp byte [ebx + 0x15], 0
je 0x402f51
xor eax, eax
jmp 0x402f56
mov eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.0040b73c
test eax, eax
je 0x402f83
test esi, esi
je 0x402f83
cmp word [esi], 0
je 0x402f83
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x402f9a
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x402fb3
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x402fb3
mov dword [ebx + 0xc18], 1
xor edx, edx
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne cl
mov dword [ebx + 0xc], edx
and ecx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 0xd], cl
cmp byte [ebp - 0xd], 0
je 0x403021
mov dword [ebx + 4], edi
test esi, esi
je 0x402fe8
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.0040ae7c
jmp 0x402ff1
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x403008
push dword [ebp - 4]
lea ecx, [ebx + 0x17]
push ecx
call fcn.00436720
add esp, 8
jmp 0x403017
lea edx, [ebx + 0x17]
mov ecx, 0x10000000
mov eax, esi
call fcn.0040adc8
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.00403138
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4032d0
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov esi, ecx
test esi, esi
mov edi, eax
mov dword [esp], edx
je 0x403488
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40330b
dec eax
je 0x4032f5
dec eax
je 0x403301
jmp 0x40330b
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x40330b
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x40335d
xor ebp, ebp
cmp esi, ebp
jle 0x403379
push 0
lea eax, [esp + 8]
push eax
mov edx, esi
sub edx, ebp
cmp edx, 0x4000
jge 0x403330
mov ecx, esi
sub ecx, ebp
jmp 0x403335
mov ecx, 0x4000
push ecx
mov eax, dword [esp + 0xc]
add eax, ebp
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x403379
add ebp, 0x4000
cmp esi, ebp
jg 0x403317
jmp 0x403379
push 0
lea eax, [esp + 8]
push eax
push esi
push dword [esp + 0xc]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
jne 0x403484
cmp byte [edi + 0x14], 0
je 0x403484
cmp dword [edi + 0xc], 0
jne 0x403484
call sub.KERNEL32.DLL_GetLastError
mov ebp, eax
mov eax, edi
call fcn.004036ac
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
lea eax, [edi + 0x17]
call fcn.00403e5c
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
push ebp
call sub.KERNEL32.DLL_SetLastError
mov eax, esi
cdq
cmp edx, dword [esp + 0x14]
jne 0x4033d2
cmp eax, dword [esp + 0x10]
jae 0x40341e
jmp 0x4033d4
jge 0x40341e
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
push edx
push eax
mov eax, esi
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x4033f6
cmp eax, 0xffffffff
ja 0x40341e
jmp 0x4033f8
jg 0x40341e
mov eax, esi
cdq
add eax, dword [esp + 8]
adc edx, dword [esp + 0xc]
cmp edx, 0
jne 0x40340f
cmp eax, 0xffffffff
jbe 0x40341e
jmp 0x403411
jle 0x40341e
lea edx, [edi + 0x17]
mov eax, 0x443530
call fcn.0042e9d4
lea edx, [edi + 0x17]
mov eax, 0x443530
call fcn.0042ea08
test al, al
je 0x40346e
mov ecx, dword [esp + 4]
cmp ecx, esi
jae 0x40330b
cmp dword [esp + 4], 0
jbe 0x40330b
mov eax, edi
call fcn.004036ac
push edx
push eax
mov eax, dword [esp + 0xc]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, edi
call fcn.004035f4
jmp 0x40330b
lea ecx, [edi + 0x17]
mov eax, 0x443530
xor edx, edx
call fcn.0042e9bc
jmp 0x403484
mov byte [edi + 8], 1
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x403574
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ecx
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x40359b
cmp esi, 0x4e20
jle 0x403591
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [esp + 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x4035ec
mov eax, ebx
call fcn.004038f0
test al, al
je 0x4035d3
cmp esi, 0x4e20
jle 0x4035d3
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.00403574
jmp 0x4035ef
cmp dword [ebx + 0xc], 1
jne 0x4035e7
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x4035e7
xor eax, eax
jmp 0x4035ef
or eax, 0xffffffff
jmp 0x4035ef
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x403ab4
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.0040b73c
test eax, eax
je 0x403ada
test ebx, ebx
je 0x403ada
cmp word [ebx], 0
je 0x403ada
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x403ae2
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x403af5
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.0040425c
xor eax, eax
jmp 0x403b10
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x403b04
cmp eax, 3
jne 0x403b0b
mov eax, 2
jmp 0x403b10
mov eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x403e20
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffc00
mov edx, esp
call fcn.00402330
cmp byte [esp], 0
je 0x403e37
mov eax, esp
jmp 0x403e39
xor eax, eax
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
je 0x403e4d
cmp eax, 5
je 0x403e4d
xor edx, edx
jmp 0x403e52
mov edx, 1
mov eax, edx
add esp, 0x400
ret
Function at 0x403e5c
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
add esp, 0xfffffbd0
mov ebx, eax
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.00402330
cmp dword [0x43f1f8], 0
jne 0x403e9a
push 0x43f200
call sub.KERNEL32.DLL_GetModuleHandleA
mov esi, eax
test esi, esi
je 0x403e9a
push str.GetDiskFreeSpaceExA
push esi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x43f1f8], eax
cmp dword [0x43f1f8], 0
je 0x403f09
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.00401e94
xor ecx, ecx
lea eax, [esp + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
push eax
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x18]
push eax
cmp byte [esp + 0x3c], 0
je 0x403ed4
lea edx, [esp + 0x3c]
jmp 0x403ed6
xor edx, edx
push edx
call dword [0x43f1f8]
test eax, eax
je 0x403f09
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0xc]
ja 0x403f09
mov eax, dword [esp + 0x14]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [esp + 0x18]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
jmp 0x403f76
lea ecx, [esp + 0x24]
push ecx
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x24]
push ecx
cmp byte [esp + 0x40], 0
je 0x403f2a
lea eax, [esp + 0x40]
jmp 0x403f2c
xor eax, eax
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
test eax, eax
jne 0x403f3f
mov eax, 0x163e00
xor edx, edx
jmp 0x403f76
mov eax, dword [esp + 0x18]
imul dword [esp + 0x1c]
xor edx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x20]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
call fcn.00439424
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add esp, 0x430
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.0040b73c
test eax, eax
je 0x403fab
test ebx, ebx
je 0x403fab
cmp word [ebx], 0
je 0x403fab
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x404230
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.0040b73c
test eax, eax
je 0x404252
test ebx, ebx
je 0x404252
cmp word [ebx], 0
je 0x404252
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
pop esi
pop ebx
ret

Function at 0x40425c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.0040b73c
test eax, eax
je 0x404289
test ebx, ebx
je 0x404289
cmp word [ebx], 0
je 0x404289
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x404298
push esi
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
setne al
and eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4048b0
Capabilities:
Move file

Disassembly:
push ebx
push esi
push edi
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x4048b9
mov eax, dword [esp + 0x2000]
add esp, 0xfffffb30
mov ebx, edx
mov esi, eax
lea edi, [esp + 0x10b4]
lea eax, [esp + 0xc14]
call fcn.004140e4
lea eax, [esp + 0xc40]
call fcn.004140e4
lea eax, [esp + 0xc6c]
call fcn.004140e4
push 0
lea ecx, [esp + 4]
mov edx, ebx
mov eax, esi
call fcn.0040e6ec
test al, al
jne 0x404919
xor eax, eax
jmp 0x404a6d
cmp byte [esp], 0
je 0x404929
cmp byte [esp + 0xc98], 0
jne 0x404930
xor eax, eax
jmp 0x404a6d
mov eax, esp
call fcn.00401964
lea edx, [esp + 0xc98]
call fcn.00401750
test eax, eax
je 0x40495e
mov eax, esi
call fcn.00401964
lea edx, [esp + 0xc98]
call fcn.00401750
test eax, eax
je 0x404965
xor eax, eax
jmp 0x404a6d
xor ebx, ebx
push 0x400
push esi
push edi
call fcn.004368b8
add esp, 0xc
push ebx
push str.rtmp_d
mov eax, edi
call fcn.00401964
push eax
call fcn.00438054
add esp, 0xc
mov eax, edi
xor edx, edx
call fcn.00403f80
test al, al
je 0x4049a4
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x404967
mov eax, edi
xor edx, edx
call fcn.00403f80
test al, al
je 0x4049b8
xor eax, eax
jmp 0x404a6d
push 0x400
push esi
lea edx, [esp + 0x14bc]
push edx
call fcn.004368b8
add esp, 0xc
mov eax, esp
call fcn.00401964
push eax
lea eax, [esp + 0x14b8]
call fcn.00401964
push eax
call fcn.00436720
add esp, 8
push edi
lea edx, [esp + 0x14b8]
push edx
call sub.KERNEL32.DLL_MoveFileA
test eax, eax
jne 0x404a01
xor eax, eax
jmp 0x404a6d
lea eax, [esp + 0x18b4]
call fcn.00402e68
xor ebx, ebx
xor edx, edx
mov eax, esi
call fcn.00403f80
test al, al
jne 0x404a2e
lea eax, [esp + 0x18b4]
xor ecx, ecx
mov edx, esi
call fcn.00403084
mov ebx, eax
lea eax, [esp + 0x14b4]
push eax
push edi
call sub.KERNEL32.DLL_MoveFileA
test bl, bl
je 0x404a58
lea eax, [esp + 0x18b4]
call fcn.004031b8
lea eax, [esp + 0x18b4]
call fcn.0040324c
mov al, 1
push eax
lea eax, [esp + 0x18b8]
mov edx, 2
call fcn.00402ebc
pop eax
add esp, 0x24d4
pop edi
pop esi
pop ebx
ret
Function at 0x406694
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
xor edx, edx
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], edx
ret
Function at 0x40b6e0
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
push esp
push 0x28
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
test eax, eax
je 0x40b72c
lea eax, [esp + 8]
push eax
push str.SeShutdownPrivilege
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
push 0x80000000
push 0xd
call sub.USER32.DLL_ExitWindowsEx
add esp, 0x14
ret

Function at 0x40b7bc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, 0x445874
push ebp
mov ebp, edx
cmp dword [edi + 4], 0
mov esi, ecx
mov ebx, eax
jne 0x40b7d6
call fcn.0040b784
mov eax, ebp
jmp 0x40b7ee
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x40b7f6
test al, 7
jne 0x40b7da
cmp esi, 8
jb 0x40b87f
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x40b7ff
xor edx, edx
jmp 0x40b899
mov ecx, ebx
xor cl, byte [eax + edx]
and ecx, 0xff
shr ebx, 8
mov ecx, dword [edi + ecx*4]
xor ecx, ebx
mov ebx, ecx
inc edx
cmp esi, edx
ja 0x40b883
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret