joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4070b0
Capabilities:
Create directory

Disassembly:
mov eax, 0x201c
call fcn.00409fe0
mov eax, dword [0x434004]
xor eax, esp
mov dword [esp + 0x2018], eax
push esi
push edi
mov edi, dword [esp + 0x2028]
lea eax, [esp + 0xc]
push eax
xor esi, esi
mov dword [esp + 0x10], 0xffffffff
push 8
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40715b
lea eax, [esp + 8]
push eax
push esi
push esi
push 1
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x407121
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40715b
push dword [esp + 8]
push 1
call fcn.00411843
mov esi, eax
add esp, 8
test esi, esi
je 0x40715b
lea eax, [esp + 8]
push eax
push dword [esp + 0xc]
push esi
push 1
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40715b
lea eax, [esp + 0x10]
push eax
push dword [esi]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
push esi
call fcn.0041184e
mov eax, dword [esp + 0x10]
add esp, 4
cmp eax, 0xffffffff
je 0x407174
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
mov eax, str.S_1_3_4
test esi, esi
cmovne eax, esi
push eax
push str.D:_A__FA____s_
lea eax, [esp + 0x28]
push 0x1000
push eax
call fcn.00406e70
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xc
push eax
push 1
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 0
push eax
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x4071f1
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4071f1
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2018]
xor ecx, esp
call fcn.00409fca
add esp, 0x201c
ret
mov ecx, dword [esp + 0x2020]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.00409fca
add esp, 0x201c
ret
Function at 0x4124e1
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x434004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x42c4c0
push esi
call fcn.0041ae8e
pop ecx
pop ecx
test eax, eax
jne 0x41250f
xor al, al
jmp 0x41258c
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00412224
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x412549
push dword [ebp - 0x210]
call fcn.0041184e
xor al, al
jmp 0x41258a
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x41254f
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x41256f
push edx
call fcn.00412417
pop ecx
test al, al
je 0x41253a
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x41257d
mov bl, 1
push dword [ebp - 0x210]
call fcn.0041184e
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00409fca
leave
ret
Function at 0x414fb7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00409fe0
mov eax, dword [0x434004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004166cc
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x414ff9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x415155
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425810
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x443358]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418756
mov ecx, dword [esi*4 + 0x443358]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41514e
cmp eax, dword [edi + ecx + 0x24]
jne 0x41514e
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41514e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418756
add esp, 0x14
test edx, edx
jl 0x41514e
jg 0x4150c4
test eax, eax
jb 0x41514e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41514e
jl 0x4150de
cmp dword [ebp - 0x1008], eax
ja 0x41514e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4150fc
test ebx, ebx
je 0x415135
cmp ecx, edi
jae 0x415135
mov al, byte [ecx]
cmp al, 0xd
jne 0x415116
lea eax, [edi - 1]
cmp ecx, eax
jae 0x415122
cmp byte [ecx + 1], 0xa
jne 0x415122
inc ecx
jmp 0x415122
movzx eax, al
movsx eax, byte [eax + 0x4341d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4150fc
cmp edx, ebx
jne 0x4150fc
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x415153
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409fca
leave
ret
Function at 0x417a5a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x443358]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417a9a
cmp byte [ebx], 0xa
jne 0x417a9a
or byte [eax + edi + 0x28], 4
jmp 0x417a9f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x417b9d
mov al, byte [edx]
cmp al, 0x1a
je 0x417b7f
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x417ace
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x417af3
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x417afd
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x417ab0
jmp 0x417b9d
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417b7a
cmp dword [ebp - 0xc], 0
je 0x417b7a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x443358]
test byte [eax + edi + 0x28], 0x48
je 0x417b54
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x417b3f
mov byte [esi], dl
jmp 0x417b50
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x443358]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417b9d
cmp byte [ebp - 1], 0xa
jne 0x417b63
cmp esi, ebx
jne 0x417b63
mov byte [esi], 0xa
jmp 0x417b9c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418774
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417b9d
mov byte [esi], 0xd
jmp 0x417b9c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x443358]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417b99
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417b9d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417ba6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x443358]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417be9
cmp word [esi], dx
jne 0x417be9
or byte [edi + eax + 0x28], 4
jmp 0x417bee
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x417d41
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x417d21
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x417c30
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x417c66
cmp eax, edx
jae 0x417c72
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x417c08
jmp 0x417d41
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417d1d
cmp dword [ebp - 0x14], 0
je 0x417d1d
mov eax, dword [ebx*4 + 0x443358]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x417cf5
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417cbe
mov word [esi], cx
jmp 0x417cf1
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x443358]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x443358]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x443358]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x417d41
pop ebx
cmp word [ebp - 4], bx
jne 0x417d06
cmp esi, dword [ebp + 0xc]
jne 0x417d06
mov word [esi], bx
jmp 0x417d3e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418774
add esp, 0x10
cmp word [ebp - 4], bx
je 0x417d41
push 0xd
jmp 0x417d3a
mov ecx, dword [ebx*4 + 0x443358]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417d38
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417d41
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x418562
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004183d3
Function at 0x41aa0b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d0c0
push 0x42d0b8
push str.FlsAlloc
push 0x1e
call fcn.0041a8cc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41aa3f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4261f0]
call esi
jmp 0x41aa45
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41aa89
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42d0d0
push 0x42d0c8
push str.FlsGetValue
push 0x20
call fcn.0041a8cc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41aac0
push dword [ebp + 8]
mov ecx, esi
call dword [0x4261f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41c89b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c3c2

Function at 0x41d224
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x434004]
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 0x41d26f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041d3c3
test al, al
jne 0x41d269
sub edx, 2
cmp edx, edi
jne 0x41d24f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41d291
lea eax, [edi + 2]
cmp edx, eax
je 0x41d291
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041d170
add esp, 0x10
jmp 0x41d38b
push esi
lea ecx, [ebp - 0x255]
call fcn.0041d3c3
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 0x41d2d4
push dword [ebp - 0x25c]
jmp 0x41d281
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 0x41d311
cmp word [ebp - 0x226], 0
je 0x41d332
cmp word [ebp - 0x226], ax
jne 0x41d311
cmp word [ebp - 0x224], 0
je 0x41d332
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041d170
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41d37e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41d2eb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41d366
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41d38b
push 0x41cfa0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004224f0
add esp, 0x10
jmp 0x41d35b
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.00409fca
leave
ret
Function at 0x41dc9a
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 0x41dd37
push ebx
push esi
call fcn.0041dc63
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.0041b869
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41dce4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41dd36
push edi
push eax
call fcn.00419836
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41dd04
call fcn.0041703e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41dd35
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041b869
add esp, 0x20
test eax, eax
jne 0x41dd23
push edi
call fcn.0041703e
jmp 0x41dd2b
push ebx
call fcn.0041703e
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 0x41dd3a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41dd4b
pop esi
ret
push ebx
push edi
push esi
call fcn.0041dc63
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00419836
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41dd73
push ebx
push esi
push edi
call fcn.0040ac60
add esp, 0xc
push 0
call fcn.0041703e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x4238a5
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]
push dword [ebp + 0xc]
push ebx
call fcn.00423821
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x423a1d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x423a1d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4239cc
jg 0x4238fe
test eax, eax
je 0x4239c2
push 1
push 0x1000
call fcn.0041a73c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x423924
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4239b9
push 0x8000
push ebx
call fcn.00412e20
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x423950
jg 0x42394b
cmp ecx, 0x1000
jb 0x423950
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004192b9
add esp, 0x10
cmp eax, 0xffffffff
je 0x423995
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 0x42394b
jl 0x42397c
test ecx, ecx
jne 0x42393d
push dword [ebp - 0xc]
push ebx
call fcn.00412e20
push esi
call fcn.0041703e
add esp, 0xc
xor edi, edi
jmp 0x423a2e
cmp byte [edi + 0x24], 0
je 0x4239ac
cmp dword [edi + 0x20], 5
jne 0x4239ac
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4239b7
mov edi, dword [edi + 0x18]
jmp 0x4239b9
xor edi, edi
push esi
call fcn.0041703e
pop ecx
jmp 0x423a2e
test ecx, ecx
jg 0x42398e
jl 0x4239cc
test eax, eax
jae 0x42398e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418774
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4239ef
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42398e
jmp 0x423a26
push ebx
call fcn.004140ed
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42398e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x423a2e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x423a2b
mov edi, dword [edi + 0x18]
jmp 0x423a2e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00418774
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x411a02
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x417658], 0
push ebx
push esi
mov esi, 0x417660
jne 0x411a2e
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
push esi
mov dword [0x417678], eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov dword [0x417658], 1
push dword [0x417678]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x411acb
push 0x14
push 8
push dword [0x416fec]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x411af5
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [0x41765c]
test eax, eax
je 0x411a70
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x41765c], ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x411afa
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_RegisterWaitForSingleObject]
push ebx
push dword [0x417678]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x416fec]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
test eax, eax
je 0x411af5
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x406273
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406298
mov eax, dword [0x40a8a0]
cmp eax, 0xffffffff
je 0x40628f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8a0], 0xffffffff
jmp 0x40630b
cmp dword [0x440a40], ebx
je 0x40630b
cmp byte [0x440640], bl
je 0x4062d7
cmp dword [0x40a8a0], 0xffffffff
jne 0x4062e0
push 4
push 0x40000000
push 0x440640
call fcn.00405c27
cmp eax, 0xffffffff
mov dword [0x40a8a0], eax
je 0x40630b
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8a0], 0xffffffff
je 0x40630b
push esi
mov esi, 0x444a60
push 0x40aae8
push esi
call fcn.00405f75
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f68
push eax
push esi
push dword [0x40a8a0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4064bd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x44023c], esi
push edi
jne 0x4064f7
mov ecx, 0x440238
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4064d3
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440638
jl 0x4064ce
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x40652c
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x440238]
xor eax, esi
inc ecx
dec edx
jne 0x40650f
pop edi
pop esi
not eax
ret 0xc

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x3e90787c
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x1f9b5b9a
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x5d4304e
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x665d0f5e
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219