joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409730
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp esi, 1
jl 0x409740
cmp esi, 9
jle 0x40974d
push 0x41d478
call fcn.00401330
add esp, 4
mov eax, dword [0x43a4e0]
xor ebx, ebx
cmp eax, ebx
mov dword [0x41f0ec], ebx
jne 0x409772
mov dword [0x41f0ec], 1
mov dword [0x43a4e0], 0x10000
push edi
mov ecx, 0x3fff
xor eax, eax
mov edi, 0x45a540
mov word [0x46a53e], bx
xor edx, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dx, word [esi*8 + 0x41d42c]
xor eax, eax
mov ax, word [esi*8 + 0x41d42a]
xor ecx, ecx
mov cx, word [esi*8 + 0x41d428]
mov dword [0x41f0e0], eax
xor eax, eax
cmp esi, 2
mov ax, word [esi*8 + 0x41d42e]
mov dword [0x45a520], ecx
mov dword [0x43a4e4], edx
mov dword [0x44a500], eax
pop edi
jg 0x4097d7
mov eax, dword [esp + 0x10]
or byte [eax], 4
jmp 0x4097e3
cmp esi, 8
jl 0x4097e3
mov eax, dword [esp + 0x10]
or byte [eax], 2
mov dword [0x43a4dc], ebx
mov dword [0x45a528], ebx
call fcn.0040b270
push 0x10000
push 0x44a520
call dword [0x41cf80]
add esp, 8
cmp eax, ebx
mov dword [0x41f0f0], eax
je 0x409853
cmp eax, 0xffffffff
je 0x409853
cmp eax, 0x106
mov dword [0x41f0e8], ebx
jae 0x409827
call fcn.00409880
xor ecx, ecx
xor eax, eax
xor edx, edx
and ecx, 0x3ff
mov dl, byte [eax + 0x44a520]
and edx, 0x7fff
shl ecx, 5
xor ecx, edx
inc eax
cmp eax, 2
jb 0x40982b
pop esi
mov dword [0x41f0e4], ecx
pop ebx
ret
mov dword [0x41f0f0], ebx
pop esi
mov dword [0x41f0e8], 1
pop ebx
ret
Function at 0x409d00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [0x41f0f0]
push esi
push edi
xor esi, esi
xor edi, edi
test ebp, ebp
mov dword [0x43a4d8], 2
je 0x409f14
mov edx, dword [0x41f0e4]
mov ecx, dword [0x43a4dc]
push ebx
cmp ebp, 3
jb 0x409d70
xor eax, eax
and edx, 0x3ff
mov al, byte [ecx + 0x44a522]
xor esi, esi
and eax, 0x7fff
shl edx, 5
xor eax, edx
mov edx, ecx
and edx, 0x7fff
mov dword [0x41f0e4], eax
mov si, word [eax*2 + 0x45a540]
mov word [eax*2 + 0x45a540], cx
mov word [edx*2 + 0x43a500], si
test esi, esi
je 0x409da9
mov eax, ecx
sub eax, esi
cmp eax, 0x7efa
ja 0x409da9
cmp dword [0x43a4e4], ebp
jbe 0x409d8d
mov dword [0x43a4e4], ebp
push esi
call fcn.0040b271
mov edi, eax
mov eax, dword [0x41f0f0]
add esp, 4
cmp edi, eax
jbe 0x409da3
mov edi, eax
mov ecx, dword [0x43a4dc]
cmp edi, 3
jb 0x409e79
mov eax, dword [0x45a524]
lea edx, [edi - 3]
sub ecx, eax
push edx
push ecx
call fcn.0040ac30
mov ebp, dword [0x41f0f0]
mov ecx, dword [0x41f0e0]
add esp, 8
sub ebp, edi
cmp edi, ecx
mov dword [0x41f0f0], ebp
ja 0x409e40
cmp ebp, 3
jb 0x409e40
mov edx, dword [0x41f0e4]
mov ecx, dword [0x43a4dc]
dec edi
inc ecx
xor ebx, ebx
and edx, 0x3ff
mov bl, byte [ecx + 0x44a522]
mov esi, ebx
mov ebx, ecx
and esi, 0x7fff
and ebx, 0x7fff
shl edx, 5
xor edx, esi
xor esi, esi
dec edi
mov si, word [edx*2 + 0x45a540]
mov word [edx*2 + 0x45a540], cx
mov word [ebx*2 + 0x43a500], si
jne 0x409df0
inc ecx
mov dword [0x41f0e4], edx
mov dword [0x43a4dc], ecx
jmp 0x409eac
mov ecx, dword [0x43a4dc]
xor edx, edx
add ecx, edi
xor ebx, ebx
xor edi, edi
mov dword [0x43a4dc], ecx
mov dl, byte [ecx + 0x44a520]
mov bl, byte [ecx + 0x44a521]
and edx, 0x3ff
and ebx, 0x7fff
shl edx, 5
xor edx, ebx
mov dword [0x41f0e4], edx
jmp 0x409eac
xor eax, eax
mov al, byte [ecx + 0x44a520]
push eax
push 0
call fcn.0040ac30
mov ebp, dword [0x41f0f0]
mov ecx, dword [0x43a4dc]
mov edx, dword [0x41f0e4]
add esp, 8
dec ebp
inc ecx
mov dword [0x41f0f0], ebp
mov dword [0x43a4dc], ecx
test eax, eax
je 0x409eea
mov edx, dword [0x45a528]
test edx, edx
jl 0x409ec2
lea eax, [edx + 0x44a520]
jmp 0x409ec4
xor eax, eax
sub ecx, edx
push 0
push ecx
push eax
call fcn.0040a260
mov ecx, dword [0x43a4dc]
mov ebp, dword [0x41f0f0]
mov edx, dword [0x41f0e4]
add esp, 0xc
mov dword [0x45a528], ecx
cmp ebp, 0x106
jae 0x409f09
call fcn.00409880
mov ebp, dword [0x41f0f0]
mov edx, dword [0x41f0e4]
mov ecx, dword [0x43a4dc]
test ebp, ebp
jne 0x409d2c
pop ebx
jmp 0x409f1a
mov ecx, dword [0x43a4dc]
mov edx, dword [0x45a528]
pop edi
pop esi
pop ebp
test edx, edx
jl 0x409f3c
sub ecx, edx
lea eax, [edx + 0x44a520]
push 1
push ecx
push eax
call fcn.0040a260
add esp, 0xc
ret
sub ecx, edx
xor eax, eax
push 1
push ecx
push eax
call fcn.0040a260
add esp, 0xc
ret
Function at 0x40b330
Capabilities:
Get disk information

Disassembly:
sub esp, 0x110
lea eax, [esp]
push esi
mov esi, dword [esp + 0x118]
push 3
push esi
push eax
call fcn.0040f310
mov eax, dword [0x41db90]
add esp, 0xc
cmp eax, 1
jle 0x40b372
mov ecx, dword [esp + 4]
push 0x103
and ecx, 0xff
push ecx
call fcn.0040f28c
add esp, 8
jmp 0x40b38a
mov edx, dword [esp + 4]
mov eax, dword [0x41dba0]
and edx, 0xff
mov ax, word [eax + edx*2]
and eax, 0x103
xor ecx, ecx
cmp eax, ecx
je 0x40b3b0
cmp byte [esp + 5], 0x3a
jne 0x40b3b0
xor edx, edx
mov byte [esp + 6], 0x5c
mov dl, byte [esi]
mov byte [esp + 7], cl
mov al, byte [edx + 0x46aae0]
mov byte [esp + 4], al
jmp 0x40b3b9
mov byte [esp + 4], 0x5c
mov byte [esp + 5], cl
lea ecx, [esp + 0x14]
push 0x80
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0xa8]
push 0x80
lea eax, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x40b40c
mov ecx, dword [0x46a54c]
push 0x41d654
push ecx
call fcn.0040d411
add esp, 8
xor eax, eax
pop esi
add esp, 0x110
ret
mov esi, dword [esp + 8]
mov edx, 0xc
cmp edx, esi
pop esi
sbb eax, eax
inc eax
add esp, 0x110
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40b45a
mov ecx, dword [0x46a54c]
push 0x41d684
push ecx
call fcn.0040d411
add esp, 8
mov eax, 0x20
ret
and eax, 0x37
ret

Function at 0x40b470
Capabilities:
Get disk information

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
push 1
push 1
push 0x7bc
mov dword [eax], 0x28
call fcn.00408870
mov ecx, dword [esp + 0x28]
push eax
mov dword [ecx], eax
call fcn.00408920
mov edx, dword [esp + 0x34]
add esp, 0x1c
lea ecx, [esp]
mov dword [edx], eax
mov eax, dword [0x41d6b0]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov byte [esp + 0x14], al
push 0
push 0
lea edx, [esp + 0xc]
neg eax
push ecx
push edx
sbb eax, eax
lea ecx, [esp + 0x24]
push 0
push 0xd
and eax, ecx
push 0x439ff8
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
neg eax
sbb eax, eax
and eax, 0x439ff8
add esp, 8
ret
Function at 0x40b540
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x18
push ebx
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x28]
push esi
push edi
call fcn.00416d98
add esp, 8
test eax, eax
jne 0x40b698
push ebp
push edi
call fcn.0040b6f0
add esp, 4
mov ebp, eax
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40b68e
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x40b68e
lea edi, [esi + 0x1c]
lea eax, [esp + 0x20]
test ebp, ebp
push edi
push eax
jne 0x40b62e
call fcn.0040b820
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x40b5e3
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40b5e3
mov ecx, dword [edi]
mov dword [esi + 0x18], ecx
jmp 0x40b5f4
lea edx, [esi + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.0040b820
add esp, 8
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40b613
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40b613
mov ecx, dword [edi]
pop ebp
mov dword [esi + 0x20], ecx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
add esi, 0x20
lea edx, [esp + 0x18]
push esi
push edx
call fcn.0040b820
add esp, 8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret
call fcn.0040b8a0
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x40b64d
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40b64d
mov ecx, dword [edi]
mov dword [esi + 0x18], ecx
jmp 0x40b65e
lea edx, [esi + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.0040b8a0
add esp, 8
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40b67d
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40b67d
mov ecx, dword [edi]
pop ebp
mov dword [esi + 0x20], ecx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
add esi, 0x20
lea edx, [esp + 0x18]
push esi
push edx
call fcn.0040b8a0
add esp, 8
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40b6e4
test bl, 0x10
je 0x40b6e4
mov ecx, 9
xor eax, eax
mov edi, esi
push 0x210000
rep stosd dword es:[edi], eax
call fcn.00408920
not bl
and ebx, 1
add esp, 4
or bl, 0x82
mov dword [esi + 0x1c], eax
shl ebx, 7
mov dword [esi + 0x20], eax
mov dword [esi + 0x18], eax
mov word [esi + 6], bx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret
Function at 0x40b6f0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x41db90]
sub esp, 0x21c
cmp eax, 1
push esi
jle 0x40b71c
mov esi, dword [esp + 0x224]
xor eax, eax
push 0x103
mov al, byte [esi]
push eax
call fcn.0040f28c
add esp, 8
jmp 0x40b736
mov esi, dword [esp + 0x224]
mov edx, dword [0x41dba0]
xor ecx, ecx
mov cl, byte [esi]
mov ax, word [edx + ecx*2]
and eax, 0x103
test eax, eax
je 0x40b744
cmp byte [esi + 1], 0x3a
jne 0x40b744
mov eax, esi
jmp 0x40b764
lea eax, [esp + 4]
lea ecx, [esp + 0x11c]
push eax
push ecx
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x11c]
push 3
lea edx, [esp + 0xc]
push eax
push edx
mov dword [esp + 0x10], eax
call fcn.0040f310
add esp, 0xc
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push 0x104
push eax
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x130]
push 0x104
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x2b], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 3
lea eax, [esp + 0x1c]
push 0x41d6c4
push eax
call fcn.004171e4
add esp, 4
push eax
call fcn.0040f5e0
add esp, 0xc
test eax, eax
pop esi
je 0x40b809
push 4
lea ecx, [esp + 0x18]
push 0x41d6bc
push ecx
call fcn.0040f5e0
add esp, 0xc
test eax, eax
je 0x40b809
push 4
lea edx, [esp + 0x18]
push 0x41d6b4
push edx
call fcn.0040f5e0
add esp, 0xc
test eax, eax
je 0x40b809
xor eax, eax
add esp, 0x21c
ret
mov eax, 1
add esp, 0x21c
ret
Function at 0x40cd40
Capabilities:
Get disk information

Disassembly:
sub esp, 0x114
mov eax, dword [0x43a014]
push ebx
push ebp
push esi
xor ebp, ebp
xor esi, esi
cmp eax, ebp
push edi
mov dword [esp + 0x10], 1
jne 0x40cd73
call fcn.0040cf80
test eax, eax
jne 0x40cd73
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov edi, dword [esp + 0x128]
cmp edi, ebp
je 0x40ce32
cmp byte [edi], 0
je 0x40ce32
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, 0x104
jbe 0x40cda9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x114
ret
lea eax, [esp + 0x1c]
xor edx, edx
sub edi, eax
mov bl, 0x5c
lea eax, [esp + edx + 0x1c]
mov cl, byte [edi + eax]
cmp cl, 0x2f
jne 0x40cdc3
mov byte [eax], bl
jmp 0x40cdc5
mov byte [eax], cl
inc edx
cmp edx, esi
jbe 0x40cdb3
mov al, byte [esp + 0x1c]
cmp al, bl
mov al, byte [esp + 0x1d]
jne 0x40ce17
cmp al, bl
jne 0x40ce17
mov eax, 2
xor ecx, ecx
cmp esi, eax
jbe 0x40ce32
cmp byte [esp + eax + 0x1c], bl
jne 0x40cdf1
inc ecx
cmp ecx, 2
je 0x40ce0d
inc eax
cmp eax, esi
jb 0x40cde5
cmp ecx, 1
jne 0x40ce32
cmp byte [esp + esi + 0x1c], bl
je 0x40ce32
mov byte [esp + esi + 0x1c], bl
mov byte [esp + esi + 0x1d], 0
inc esi
jmp 0x40ce32
inc eax
mov esi, eax
mov byte [esp + eax + 0x1c], 0
jmp 0x40ce32
cmp al, 0x3a
jne 0x40ce2b
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], 0
mov esi, 3
jmp 0x40ce32
mov byte [esp + 0x1c], 0
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x43a4c0
call edi
mov eax, dword [0x43a380]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp eax, ebp
je 0x40ce66
lea ecx, [esp + 0x1c]
push ecx
push 0x43a39c
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40cf34
push 0x43a4c0
mov dword [esp + 0x1c], ebp
call ebx
mov al, byte [esp + 0x1c]
push 0
lea edx, [esp + 0x18]
push 0
neg al
push edx
push 0
sbb eax, eax
lea ecx, [esp + 0x2c]
push 0
push 0
and eax, ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
mov dword [esp + 0x10], eax
je 0x40cee8
test byte [esp + 0x14], 8
je 0x40cee8
mov edx, dword [esp + 0x130]
mov eax, dword [edx + 8]
test eax, eax
je 0x40cee8
mov al, byte [esp + 0x1c]
lea ecx, [esp + 0x1c]
neg al
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
jne 0x40cee8
mov eax, dword [esp + 0x12c]
lea edx, [esp + 0x18]
push edx
push eax
mov ebp, 1
call fcn.0040d020
add esp, 8
push 0x43a4c0
call edi
mov eax, dword [esp + 0x10]
xor edi, edi
cmp eax, edi
je 0x40cf5b
inc esi
lea ecx, [esp + 0x1c]
push esi
push ecx
push 0x43a39c
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [0x43a384], edi
mov dword [0x43a38c], edx
mov dword [0x43a390], ebp
mov dword [0x43a394], eax
mov dword [0x43a380], 1
mov edi, dword [esp + 0x130]
mov esi, 0x43a380
mov ecx, dword [edi + 8]
mov dword [0x43a388], ecx
mov edx, dword [edi + 0x18]
mov ecx, 0x49
mov dword [0x43a398], edx
rep movsd dword es:[edi], dword [esi]
jmp 0x40cf61
mov dword [0x43a380], edi
push 0x43a4c0
call ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
Function at 0x40cf80
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [0x43a014]
push ebx
push esi
push edi
test eax, eax
jne 0x40d011
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
test ebx, ebx
jne 0x40cfa6
pop edi
pop esi
pop ebx
ret
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push ebx
push 0x43a018
call edi
mov esi, eax
test esi, esi
je 0x40cfe2
push esi
push 0x43a018
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x43a014]
pop edi
pop esi
pop ebx
ret
push 0x43a4c0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 0x49
xor eax, eax
mov edi, 0x43a380
rep stosd dword es:[edi], eax
call fcn.0040d210
push ebx
mov dword [0x43a014], 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x414fbd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41e948
cmp edx, dword [eax]
je 0x414fdf
add eax, 8
inc ecx
cmp eax, 0x41e9d8
jl 0x414fd0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41e948]
jne 0x41510d
mov eax, dword [0x43a0b8]
cmp eax, 1
je 0x4150e7
test eax, eax
jne 0x415010
cmp dword [0x41ddb4], 1
je 0x4150e7
cmp edx, 0xfc
je 0x41510d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x415047
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004132d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00411360
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41508a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00411360
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41a374
push edi
call fcn.0040f310
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004132d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004132e0
lea eax, [ebp - 0xa0]
push 0x41a354
push eax
call fcn.004132e0
push dword [esi + 0x41e94c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004132e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041655f
add esp, 0x2c
pop edi
jmp 0x41510d
lea eax, [ebp + 8]
lea esi, [esi + 0x41e94c]
push 0
push eax
push dword [esi]
call fcn.00411360
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x4170f0
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 0x41711b
test byte [esp + 8], 0x80
je 0x41710a
and al, 0xfe
jmp 0x41710c
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x41712c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004140b1
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x417a5c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x417a7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004140b1
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x417a9d
test byte [esp + 8], 2
je 0x417a9d
mov dword [0x43a028], 0xd
mov dword [0x43a02c], 5
jmp 0x417a78
xor eax, eax
ret
Function at 0x10001010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x100b6010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 4
push 0x3000
push 0x3c00
mov al, 0x81
push 0
mov dword [ebp - 0x104], 0xacb5dc26
mov dword [ebp - 0x100], 0xa09e0fdb
mov dword [ebp - 0xfc], 0x1cb44a66
mov dword [ebp - 0xf8], 0x55185316
mov dword [ebp - 0xf4], 0xd6586937
mov dword [ebp - 0xf0], 0x2dc0b92e
mov dword [ebp - 0xec], 0x9de02b92
mov dword [ebp - 0xe8], 0xca9ac7f7
mov dword [ebp - 0xe4], 0xe80c56b9
mov dword [ebp - 0xe0], 0x93caee7c
mov dword [ebp - 0xdc], 0x30baa5a0
mov dword [ebp - 0xd8], 0x78665357
mov dword [ebp - 0xd4], 0xcec34af9
mov dword [ebp - 0xd0], 0xfd310186
mov dword [ebp - 0xcc], 0x7ece5aa6
mov dword [ebp - 0xc8], 0xda9e991e
mov dword [ebp - 0xc4], 0xfd38eab4
mov dword [ebp - 0xc0], 0x7c408afc
mov dword [ebp - 0xbc], 0x38e5b115
mov dword [ebp - 0xb8], 0x474ccfeb
mov dword [ebp - 0xb4], 0x20ff78c7
mov dword [ebp - 0xb0], 0x1d071788
mov dword [ebp - 0xac], 0xdaeefba1
mov dword [ebp - 0xa8], 0x26e0951c
mov dword [ebp - 0xa4], 0x7ea1d792
mov dword [ebp - 0xa0], 0xa05252ff
mov dword [ebp - 0x9c], 0xf1a8bf98
mov dword [ebp - 0x98], 0x2b358aa7
mov dword [ebp - 0x94], 0x23be1992
mov dword [ebp - 0x90], 0x5313d82f
mov dword [ebp - 0x8c], 0xfb3da028
mov dword [ebp - 0x88], 0x24418b29
mov dword [ebp - 0x84], 0x3524de75
mov dword [ebp - 0x80], 0x9dff8975
mov dword [ebp - 0x7c], 0x4d32d563
mov dword [ebp - 0x78], 0x65246f5a
mov dword [ebp - 0x74], 0xf8b7655b
mov dword [ebp - 0x70], 0xa262bc80
mov dword [ebp - 0x6c], 0x161185f2
mov dword [ebp - 0x68], 0x31e4fb61
mov dword [ebp - 0x64], 0x62b61633
mov dword [ebp - 0x60], 0x1cc9c0e8
mov dword [ebp - 0x5c], 0x8fa70cb3
mov dword [ebp - 0x58], 0x373c9da7
mov dword [ebp - 0x54], 0xbca69be3
mov dword [ebp - 0x50], 0x54b5a81
mov byte [ebp - 0x4c], al
mov dword [ebp - 0x4b], 0x5f119b0a
mov dword [ebp - 0x47], 0x37ba3365
mov dword [ebp - 0x43], 0x2a76e42f
mov dword [ebp - 0x3f], 0x1a0aa3b9
mov dword [ebp - 0x3b], 0xd13532ac
mov dword [ebp - 0x37], 0xfb515375
mov dword [ebp - 0x33], 0x57db2dfa
mov dword [ebp - 0x2f], 0xbe085768
mov dword [ebp - 0x2b], 0x66882924
mov dword [ebp - 0x27], 0xf3403b5e
mov dword [ebp - 0x23], 0xaa7a7890
mov dword [ebp - 0x1f], 0x326c55f0
mov dword [ebp - 0x1b], 0xa192794
mov dword [ebp - 0x17], 0xf4a914f3
mov dword [ebp - 0x13], 0xe539e6ec
mov dword [ebp - 0xf], 0xcf2a92b0
mov dword [ebp - 0xb], 0xa583b895
mov word [ebp - 7], 0xca0a
mov byte [ebp - 5], 0x19
call dword [0x100b7f5c]
mov esi, eax
test esi, esi
jne 0x1000127a
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10009563
mov esp, ebp
pop ebp
ret
push 0x3c00
push 0x1001b450
push esi
call fcn.1000ea00
add esp, 0xc
mov eax, 0xff
jmp 0x100012a0
mov cl, byte [ebp + eax - 0x105]
xor byte [ebp + eax - 0x104], cl
dec eax
jne 0x100012a0
mov dl, byte [ebp - 5]
xor byte [ebp - 0x104], dl
push 0x3c00
push esi
mov edx, esi
lea ecx, [ebp - 0x104]
call fcn.10008620
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10009563
mov esp, ebp
pop ebp
ret
Function at 0x10001ad0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
mov edx, dword [edi + 0x30]
mov esi, dword [ecx + eax + 0x20]
dec edx
lea ecx, [ecx + eax + 0x18]
not edx
and edx, esi
mov dword [ebp - 0x1c], esi
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x18], edx
test esi, esi
jne 0x10001b13
mov ebx, dword [ecx + 0x24]
test bl, 0x40
je 0x10001b0c
mov esi, dword [eax + 0x20]
jmp 0x10001b13
test bl, bl
jns 0x10001b13
mov esi, dword [eax + 0x24]
mov dword [ebp - 0x14], esi
mov esi, dword [ecx + 0x24]
mov dword [ebp - 0x10], esi
mov esi, 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 1
cmp si, word [eax + 6]
jae 0x10001be0
lea ebx, [ecx + 0x4c]
lea esp, [esp]
mov esi, dword [edi + 0x30]
mov ecx, dword [ebx - 0x1c]
mov edi, dword [ebx - 0x14]
dec esi
not esi
and esi, ecx
mov dword [ebp - 4], ecx
test edi, edi
jne 0x10001b68
mov ecx, dword [ebx]
test cl, 0x40
je 0x10001b61
mov edi, dword [eax + 0x20]
jmp 0x10001b68
test cl, cl
jns 0x10001b68
mov edi, dword [eax + 0x24]
cmp edx, esi
je 0x10001b97
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
cmp eax, esi
ja 0x10001b97
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.10001a20
test eax, eax
je 0x10001bfe
mov edx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [ebp - 0x1c], edx
mov edx, esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], eax
jmp 0x10001bbf
mov eax, dword [ebx]
test eax, 0x2000000
je 0x10001bae
test dword [ebp - 0x10], 0x2000000
je 0x10001bae
or dword [ebp - 0x10], eax
jmp 0x10001bb9
or eax, dword [ebp - 0x10]
and eax, 0xfdffffff
mov dword [ebp - 0x10], eax
sub edi, dword [ebp - 0x1c]
add edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
movzx esi, word [eax + 6]
inc ecx
add ebx, 0x28
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp ecx, esi
jl 0x10001b40
lea ecx, [ebp - 0x1c]
mov edx, edi
mov dword [ebp - 0xc], 1
call fcn.10001a20
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret