joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49e360
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4f771c
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x4f7714]
sub esp, 4
test ebx, ebx
je 0x49e3ab
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x49e3a4
test esi, esi
je 0x49e3a4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x49e380
mov dword [esp], 0x4f771c
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4a0920
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
mov dword [esp], esi
call sub.msvcrt.dll_strlen
lea edi, [esi + eax - 6]
cmp esi, edi
ja 0x4a09c0
movzx eax, byte [edi]
test al, al
je 0x4a09c0
cmp al, 0x58
jne 0x4a0972
lea ebx, [edi + 1]
mov ebp, dword [0x4f7964]
test ebp, ebp
je 0x4a09d0
mov dword [esp + 8], edi
mov dword [esp + 4], 1
mov dword [esp], ebp
call sub.ADVAPI32.DLL_CryptGenRandom
sub esp, 0xc
test eax, eax
jne 0x4a0980
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [ebx - 1]
cmp al, 0xfb
ja 0x4a094d
movzx ecx, al
lea edx, [ecx*8]
mov edi, ecx
sub edx, ecx
lea edx, [edi + edx*8]
shr dx, 0xb
lea ecx, [edx*8]
add edx, ecx
shl edx, 2
sub eax, edx
mov edx, eax
lea eax, [edx + 0x30]
cmp al, 0x39
ja 0x4a0a10
mov byte [ebx - 1], al
mov edi, ebx
movzx eax, byte [edi]
test al, al
jne 0x4a0946
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], 0xf0000000
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x4f7964
call sub.ADVAPI32.DLL_CryptAcquireContextA
sub esp, 0x14
test eax, eax
je 0x4a0a20
mov ebp, dword [0x4f7964]
jmp 0x4a0957
add edx, 0x57
mov edi, ebx
mov byte [ebx - 1], dl
jmp 0x4a09b9
mov dword [0x4f7964], 0
jmp 0x4a0957
Function at 0x401ae0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], ecx
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
test edi, edi
je 0x401b16
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x401b09
cmp esi, ecx
jae 0x401c02
mov eax, esi
sub eax, edi
lea eax, [ebx + eax*4]
mov dword [ebp - 4], eax
xor edx, edx
mov ecx, dword [ebx + esi*4 - 4]
mov eax, esi
mov dword [ebp + 8], ecx
div edi
mov dword [ebp - 8], eax
test edx, edx
jne 0x401b94
movzx ecx, cl
movzx edx, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
shl edx, 8
movzx eax, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
or edx, eax
mov eax, ecx
shl edx, 8
shr eax, 0x10
and eax, 0xff
shr ecx, 8
and ecx, 0xff
movzx eax, byte [eax + str.cw]
movzx ecx, byte [ecx + str.cw]
or edx, eax
mov eax, dword [ebp - 8]
shl edx, 8
movzx eax, byte [eax + 0x46f610]
xor ecx, eax
or ecx, edx
jmp 0x401be8
cmp edi, 6
jbe 0x401be8
cmp edx, 4
jne 0x401be8
mov edx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add edx, 4
xor eax, ecx
mov dword [ebp - 4], edx
mov dword [ebx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x401b28
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4032c7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 4], eax
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x4032ea
xor eax, eax
jmp 0x403406
add dword [ebp + 8], 5
sub edx, 4
add edx, eax
mov dword [ebp - 0xc], edx
push edi
lea edi, [ebx + eax]
cmp edi, edx
jae 0x40330e
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40330b
inc edi
cmp edi, edx
jb 0x4032fe
mov eax, dword [ebp - 4]
mov ecx, edi
sub ecx, ebx
mov ebx, edi
sub ecx, eax
sub ebx, eax
cmp edi, edx
jae 0x4033f4
cmp ecx, 2
jbe 0x403366
xor esi, esi
movzx edx, byte [edi + 4]
lea eax, [edx + 1]
test al, 0xfe
jne 0x4033e3
movzx eax, byte [edi + 3]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, eax
mov eax, dword [ebp + 8]
add eax, ebx
add ebx, 5
cmp dword [ebp + 0x10], 0
mov dword [ebp - 8], eax
je 0x403392
add edx, eax
jmp 0x403394
shr esi, cl
test esi, esi
je 0x403327
cmp esi, 4
ja 0x403387
cmp esi, 3
je 0x403387
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edi + 1]
inc eax
test al, 0xfe
jne 0x403327
mov eax, dword [ebp - 4]
or esi, 8
shr esi, 1
inc ebx
jmp 0x4032f7
sub edx, eax
test esi, esi
je 0x4033c3
and esi, 6
mov eax, edx
shl esi, 2
mov ecx, esi
shr eax, cl
inc eax
test al, 0xfe
jne 0x4033c1
mov eax, 0x100
shl eax, cl
dec eax
xor edx, eax
cmp dword [ebp + 0x10], 0
je 0x4033be
add edx, dword [ebp - 8]
jmp 0x4033c1
sub edx, dword [ebp - 8]
xor esi, esi
mov eax, edx
mov byte [edi + 1], dl
shr eax, 8
mov byte [edi + 2], al
mov eax, edx
shr edx, 0x18
shr eax, 0x10
and dl, 1
neg dl
mov byte [edi + 3], al
mov byte [edi + 4], dl
jmp 0x4033e9
or esi, 8
shr esi, 1
inc ebx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
jmp 0x4032f7
xor eax, eax
shr esi, cl
cmp ecx, 2
pop edi
cmova esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408792
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, edx
xor edi, edi
mov ebx, ecx
or esi, 0x100
mov ecx, esi
mov eax, esi
shr ecx, 7
add esi, esi
shr eax, 8
and ecx, 1
neg ecx
sar ecx, 4
and ecx, 0x7f
movzx edx, word [ebx + eax*2]
mov eax, dword [ebp + 8]
shr edx, 4
xor edx, ecx
add edi, dword [eax + edx*4]
cmp esi, 0x10000
jb 0x4087a4
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4087db
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x100
mov dword [ebp - 4], ecx
xor edi, edi
or edx, esi
add ebx, ebx
mov ecx, esi
and ecx, ebx
mov eax, edx
add ecx, esi
shr eax, 8
add eax, ecx
mov ecx, dword [ebp - 4]
movzx ecx, word [ecx + eax*2]
mov eax, edx
shr eax, 7
add edx, edx
and eax, 1
shr ecx, 4
neg eax
sar eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [ebp + 0xc]
add edi, dword [eax + ecx*4]
mov ecx, edx
xor ecx, ebx
not ecx
and esi, ecx
cmp edx, 0x10000
jb 0x4087f1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4088cb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
inc eax
mov ecx, edx
shl eax, cl
push edi
or esi, eax
xor edi, edi
cmp esi, 1
je 0x40890b
mov eax, dword [ebp + 0xc]
mov edx, esi
and esi, 1
shr edx, 1
neg esi
sar esi, 4
and esi, 0x7f
movzx ecx, word [ebx + edx*2]
shr ecx, 4
xor ecx, esi
mov esi, edx
add edi, dword [eax + ecx*4]
cmp esi, 1
jne 0x4088e9
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x408914
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor esi, esi
inc edi
test ebx, ebx
je 0x408959
mov eax, dword [ebp + 8]
mov edx, eax
movzx ecx, word [ecx + edi*2]
and edx, 1
shr eax, 1
add edi, edi
mov dword [ebp + 8], eax
or edi, edx
mov eax, edx
shr ecx, 4
neg eax
sar eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [ebp + 0xc]
add esi, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
dec ebx
jne 0x408929
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40a2e9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 8], esi
mov edi, eax
lea ecx, [esi + 0x250]
mov dword [esi + 0xbc], eax
mov dword [esi + 0xb8], eax
lea ebx, [ecx + 0x60]
mov dword [ecx + 0x34], eax
mov word [ecx + 0x1e], ax
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x30], 0x20
mov byte [ecx + 0x1d], 1
mov dword [ecx + 0x48], 4
push 8
mov edx, edi
pop ecx
mov eax, edx
shr edx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor edx, eax
dec ecx
jne 0x40a331
mov dword [ebx], edx
inc edi
add ebx, 4
cmp edi, 0x100
jb 0x40a32c
xor ebx, ebx
lea ecx, [esi + 0x250]
mov dword [esi + 0x1cc], ebx
mov dword [esi + 0x1fc], ebx
mov dword [esi + 0x224], ebx
mov dword [esi + 0x228], ebx
mov dword [esi + 0x20c], ebx
mov dword [esi + 0x210], ebx
mov dword [esi + 0x214], ebx
mov dword [esi + 0x218], ebx
mov dword [esi + 0x21c], ebx
mov dword [esi + 0x220], ebx
mov dword [esi + 0x100], ebx
mov dword [esi + 0x128], ebx
mov dword [esi + 0x12c], ebx
mov dword [esi + 0x110], ebx
mov dword [esi + 0x114], ebx
mov dword [esi + 0x118], ebx
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x120], ebx
mov dword [esi + 0x124], ebx
mov dword [esi + 0x24c], ecx
lea ecx, [ebp - 0x40]
call fcn.004080e7
mov edx, ecx
mov ecx, esi
call fcn.004084f0
lea eax, [esi + 0x30734]
mov esi, eax
push 2
pop edi
mov word [esi], 0x100
add esi, edi
mov ecx, edi
xor ebx, ebx
shr ecx, 1
inc ebx
dec ecx
shl ebx, cl
test ebx, ebx
je 0x40a40f
push ebx
push edi
push esi
call fcn.004589f0
add esp, 0xc
add esi, ebx
inc edi
cmp edi, 0x16
jb 0x40a3f6
mov esi, dword [ebp - 8]
push 8
pop ebx
push 4
mov ecx, ebx
xor edx, edx
pop edi
imul ecx, ecx
mov eax, 0x10000
add edx, edx
jmp 0x40a433
shr ecx, 1
inc edx
cmp ecx, eax
jae 0x40a430
dec edi
jne 0x40a424
mov eax, ebx
mov ecx, 0xa1
shr eax, 4
sub ecx, edx
add ebx, 0x10
mov dword [esi + eax*4 + 0x30f34], ecx
cmp ebx, 0x800
jb 0x40a41d
and dword [esi + 0x60], edi
and dword [esi + 0x3bcfc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b544
Capabilities:
Hash data using sha256

Disassembly:
and dword [ecx + 0x20], 0
and dword [ecx + 0x24], 0
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
ret

Function at 0x40c2ec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push dword [ebp + 8]
mov esi, ecx
push edx
push edi
push edi
call fcn.00456028
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x40c316
call fcn.0040c2ba
mov edi, eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40c46a
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx], edx
dec edx
je 0x40c48a
sub edx, 3
je 0x40c481
sub edx, 6
jne 0x40c48e
add ecx, 0x10
jmp fcn.0040b544
or dword [ecx + 8], 0xffffffff
or dword [ecx + 0xc], 0xffffffff
ret
or dword [ecx + 4], 0xffffffff
ret
Function at 0x4120f1
Capabilities:
Create directory

Disassembly:
push 0x54
mov eax, 0x4653a9
call fcn.0046392b
mov esi, ecx
call fcn.00412b1d
cmp eax, 0xffffffff
je 0x412114
test al, 0x10
je 0x412114
mov al, 1
jmp 0x41225e
mov ecx, esi
call fcn.00413c25
test al, al
je 0x412126
xor al, al
jmp 0x41225e
mov ecx, esi
call fcn.00413d78
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], eax
call fcn.0040fccb
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00410074
mov edi, dword [ebp - 0x18]
xor ebx, ebx
inc ebx
test eax, eax
js 0x41216c
lea ecx, [edi - 1]
cmp eax, ecx
jne 0x41216c
cmp edi, ebx
je 0x41224f
mov eax, dword [ebp - 0x1c]
mov edi, ecx
xor edx, edx
mov dword [ebp - 0x18], edi
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040fd08
mov byte [ebp - 4], bl
mov esi, edi
mov ecx, dword [ebp - 0x1c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x412267
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4121ee
lea ecx, [ebp - 0x60]
call fcn.00412afc
lea ecx, [ebp - 0x38]
call fcn.0040fca7
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00412b2f
test al, al
jne 0x4121d0
mov byte [ebp - 4], bl
push dword [ebp - 0x38]
call fcn.00455704
pop ecx
jmp 0x4121ee
mov ebx, dword [ebp - 0x40]
xor eax, eax
inc eax
shr ebx, 4
mov byte [ebp - 4], al
and bl, al
push dword [ebp - 0x38]
call fcn.00455704
pop ecx
test bl, bl
jne 0x412264
xor ebx, ebx
inc ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41223f
lea ecx, [ebp - 0x1c]
call fcn.00410074
mov esi, eax
test esi, esi
js 0x41223f
je 0x41223f
mov ecx, dword [ebp - 0x1c]
cmp esi, ebx
jne 0x41221f
movzx eax, word [ecx]
cmp eax, 0x5c
je 0x41223f
cmp eax, 0x2f
je 0x41223f
lea eax, [esi + 1]
cmp dword [ebp - 0x10], eax
jae 0x41223f
cmp esi, edi
jae 0x412180
mov edi, esi
xor eax, eax
mov dword [ebp - 0x18], edi
mov word [ecx + esi*2], ax
jmp 0x412180
mov edi, dword [ebp - 0x28]
xor bl, bl
push edi
mov byte [ebp - 4], 0
call fcn.00455704
pop ecx
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x1c]
call fcn.00455704
pop ecx
mov al, bl
call fcn.004638f9
ret
xor ebx, ebx
inc ebx
mov edi, dword [ebp - 0x28]
jmp 0x41229d
lea ecx, [edi + 2]
lea ecx, [ecx + esi*2]
call fcn.004139dc
test eax, eax
jns 0x412280
mov esi, dword [ebp - 0x24]
jmp 0x412283
inc esi
add esi, eax
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040ff51
mov eax, dword [ebp - 0x1c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x412242
cmp esi, dword [ebp - 0x24]
jl 0x41226c
jmp 0x412244

Function at 0x4122a4
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, ecx
call fcn.00412b1d
cmp eax, 0xffffffff
je 0x4122cc
test al, 0x10
jne 0x4122cc
test al, 1
je 0x4122cc
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4122cc
xor al, al
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
pop esi
setne al
ret
Function at 0x4122da
Capabilities:
Delete directory
Set file attributes

Disassembly:
push 0x54
mov eax, 0x4653ec
call fcn.0046392b
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x60]
inc ebx
call fcn.00412afc
lea ecx, [ebp - 0x38]
call fcn.0040fca7
and dword [ebp - 4], 0
lea ecx, [ebp - 0x60]
push dword [esi]
call fcn.00412b2f
test al, al
je 0x412324
mov ecx, dword [ebp - 0x40]
mov eax, ecx
shr eax, 4
test bl, al
jne 0x412339
push 0x10b
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x38]
call fcn.00455704
pop ecx
xor al, al
call fcn.004638f9
ret
shr ecx, 0xa
test bl, cl
movzx ebx, bl
push 0
pop eax
cmovne ebx, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x38]
call fcn.00455704
pop ecx
test bl, bl
je 0x41242b
push esi
lea ecx, [ebp - 0x18]
call fcn.0040fd08
xor ebx, ebx
lea ecx, [ebp - 0x18]
inc ebx
push 0x5c
mov dword [ebp - 4], ebx
call fcn.0040e755
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push 0x2a
call fcn.0040e755
or dword [ebp - 0x28], 0xffffffff
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x24]
call fcn.0040fd08
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00412afc
lea ecx, [ebp - 0x38]
call fcn.0040fca7
mov byte [ebp - 4], 4
jmp 0x4123ed
cmp edi, dword [ebp - 0x14]
jae 0x4123c1
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x14], edi
mov word [eax + edi*2], cx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040ff13
mov eax, dword [ebp - 0x40]
shr eax, 4
test bl, al
je 0x4123e1
lea ecx, [ebp - 0x18]
call fcn.004122da
jmp 0x4123e9
mov ecx, dword [ebp - 0x18]
call fcn.004122a4
test al, al
je 0x41244f
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x28]
call fcn.00412ff6
test al, al
jne 0x4123b0
mov byte [ebp - 4], 3
push dword [ebp - 0x38]
call fcn.00455704
pop ecx
mov byte [ebp - 4], bl
push dword [ebp - 0x24]
call fcn.00455704
pop ecx
lea ecx, [ebp - 0x28]
call fcn.004128da
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call fcn.00455704
pop ecx
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x412331
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x412333
mov byte [ebp - 4], 3
push dword [ebp - 0x38]
call fcn.00455704
pop ecx
mov byte [ebp - 4], bl
push dword [ebp - 0x24]
call fcn.00455704
pop ecx
lea ecx, [ebp - 0x28]
call fcn.004128da
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
jmp 0x41232b

Function at 0x412490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4823f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov eax, dword [edi]
and dword [edi + 4], 0
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x210]
push eax
call fcn.0040fd7d
lea eax, [esi - 1]
mov ecx, 0x103
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop edi
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.004550af
mov esp, ebp
pop ebp
ret
Function at 0x412550
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4823f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov eax, dword [edi]
and dword [edi + 4], 0
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x210]
push eax
call fcn.0040fd7d
lea eax, [esi - 1]
mov ecx, 0x103
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop edi
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.004550af
mov esp, ebp
pop ebp
ret

Function at 0x4125ba
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4823f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
shl esi, 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor edi, esi
shl edi, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
xor esi, edi
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], esi
push dword [ebp - 0x30]
mov ecx, ebx
call fcn.0040fd7d
mov ebx, esi
xor edi, edi
mov esi, ebx
shr ebx, 4
and esi, 0xf
cmp esi, 0xa
lea eax, [esi + 0x37]
lea ecx, [esi + 0x30]
movzx edx, ax
movzx eax, cx
cmovb edx, eax
mov word [ebp + edi*2 - 0x24], dx
inc edi
cmp edi, 8
jb 0x412613
mov ebx, dword [ebp - 0x38]
add edi, edi
cmp edi, 0x20
jae 0x41271a
mov esi, dword [ebp - 0x34]
xor eax, eax
mov word [ebp + edi - 0x24], ax
test esi, esi
je 0x41265d
push 0x2e
mov ecx, ebx
call fcn.0040e755
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.0040fecc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
inc eax
inc eax
push 1
pop ecx
cmove eax, ecx
add dword [ebp - 0x28], eax
test esi, esi
je 0x412689
push 0x4708e4
mov ecx, ebx
call fcn.0040fecc
mov ecx, dword [ebx]
call fcn.00412fb4
test al, al
je 0x4126a1
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4126e1
test esi, esi
je 0x4126c1
push 0x80
xor eax, eax
mov ecx, esi
inc eax
push eax
push eax
push 0x40000000
push dword [ebx]
call fcn.004131a5
test al, al
jmp 0x4126cd
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4126f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x4126e1
cmp eax, 0xb7
jne 0x41270b
mov esi, dword [ebp - 0x2c]
inc esi
mov dword [ebp - 0x2c], esi
cmp esi, 0x64
jae 0x41270b
mov esi, dword [ebp - 0x28]
jmp 0x412605
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004550af
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx]
xor ecx, ecx
and dword [ebx + 4], 0
mov word [eax], cx
xor al, al
jmp 0x4126f8
call fcn.00455f4c
int3

Function at 0x412b1d
Capabilities:
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
ret
Function at 0x4130c3
Capabilities:
Get disk information

Disassembly:
push 0x20
mov eax, 0x4654e3
call fcn.0046392b
mov eax, ecx
mov dword [ebp - 0x18], eax
call fcn.0040ecdc
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor eax, eax
push eax
push eax
call edi
mov ebx, eax
test ebx, ebx
jne 0x4130f2
xor al, al
jmp 0x41319f
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004102b5
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov edi, eax
test edi, edi
je 0x41318e
cmp edi, ebx
ja 0x41318e
lea ecx, [ebp - 0x2c]
call fcn.0040fca7
xor edx, edx
mov byte [ebp - 4], 1
mov ecx, edx
mov eax, edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
test edi, edi
je 0x41317b
push 2
pop ebx
cmp word [esi + ebx - 2], dx
jne 0x41316d
lea eax, [ecx + esi]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040fd7d
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0040ec65
mov eax, dword [ebp - 0x10]
mov ecx, ebx
xor edx, edx
inc eax
add ebx, 2
mov dword [ebp - 0x10], eax
cmp eax, edi
jb 0x41313d
mov ecx, dword [ebp - 0x14]
cmp ecx, edi
mov byte [ebp - 4], dl
push dword [ebp - 0x2c]
sete bl
call fcn.00455704
pop ecx
jmp 0x413192
xor eax, eax
mov bl, al
or dword [ebp - 4], 0xffffffff
push esi
call fcn.00455704
pop ecx
mov al, bl
call fcn.004638f9
ret

Function at 0x4131fd
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x413223
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x413223
xor al, al
jmp 0x413237
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41335c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, 0x400000
push esi
mov esi, dword [ebp + 0xc]
push edi
and dword [ebx], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp esi, edx
mov eax, esi
push 0
cmova eax, edx
and dword [ebp + 0x10], 0
lea edx, [ebp + 0x10]
push edx
push eax
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x4133b1
test ecx, ecx
je 0x4133ad
add edi, ecx
mov edx, 0x400000
sub esi, ecx
mov ecx, dword [ebp - 4]
jne 0x413377
mov al, 1
jmp 0x4133b3
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42035b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
cmp esi, 0x200
jb 0x4203bb
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4203bb
mov edx, dword [ecx + 0x3c]
cmp edx, 0x1000
jae 0x4203bb
lea eax, [edx + 0x200]
cmp eax, esi
ja 0x4203bb
test dl, 7
jne 0x4203bb
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x4203bb
movzx eax, word [ecx + 4]
sub eax, 0x14c
je 0x4203d7
sub eax, 0x74
je 0x4203d0
dec eax
dec eax
je 0x4203d0
dec eax
dec eax
je 0x4203c9
sub eax, 0x3c
je 0x4203c2
sub eax, 0x8464
je 0x4203d7
xor eax, eax
pop esi
pop ebp
ret 4
mov edx, 0x3030401
jmp 0x4203dc
mov edx, 0x3030701
jmp 0x4203dc
mov edx, 0x3030501
jmp 0x4203dc
mov edx, 0x3030103
mov eax, 0x400
cmp word [ecx + 0x14], ax
ja 0x4203bb
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4203f9
cmp eax, 0x20b
jne 0x4203bb
mov eax, dword [ebp + 8]
mov dword [eax], edx
xor eax, eax
inc eax
jmp 0x4203bd