joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d0374
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe8
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d043a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20e]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathW
test eax, eax
jbe 0x4d03e7
lea eax, [ebp - 0x418]
push eax
push 0
push 0x4d0448
lea eax, [ebp - 0x20e]
push eax
call sub.kernel32.dll_GetTempFileNameW
test eax, eax
jbe 0x4d03e7
push 0
push 0x4000100
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x418]
push eax
call sub.kernel32.dll_CreateFileW_1
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
jmp 0x4d03f1
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0441
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004d0f8c
test al, al
je 0x4d0427
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dl, 1
mov eax, dword [0x434628]
call fcn.0044179c
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
jmp 0x4d0439
mov dl, 1
mov eax, dword [0x4ccf08]
call fcn.0040527c
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
ret

Function at 0x4d1354
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0x4e3414
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x4d1472
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4dcf38], 0
jne 0x4d1424
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x4dcf34]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 6]
mov eax, 0x4dcf90
mov ecx, 2
call fcn.00404584
mov edx, 0x4d12b4
mov eax, dword [ebp - 8]
add eax, 7
call fcn.004d12d4
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp - 8]
mov word [eax + 4], 0
mov eax, dword [ebp - 8]
add eax, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 6]
mov eax, dword [ebp - 0xc]
call fcn.004d12d4
mov edx, dword [ebp - 0xc]
mov dword [edx + 1], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [0x4dcf38]
mov dword [eax + 5], edx
mov eax, dword [ebp - 0xc]
mov dword [0x4dcf38], eax
add dword [ebp - 0xc], 0xd
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
cmp eax, 0xffe
jl 0x4d13dd
mov eax, dword [ebp - 8]
mov dword [0x4dcf34], eax
mov eax, dword [0x4dcf38]
mov dword [ebp - 4], eax
mov eax, dword [0x4dcf38]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 5]
mov dword [0x4dcf38], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 0xc]
call fcn.004d1318
inc word [eax + 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1479
push 0x4e3414
call sub.kernel32.dll_LeaveCriticalSection_1
ret
Function at 0x5077e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x507805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x507878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x50783a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x50786d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x50786b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x507831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x5077fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x408d7e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x126]
sub esp, 0x134
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x408dbb
xor edx, edx
cmp byte [ebp + eax - 0x127], 0x5c
sete dl
jmp 0x408dc2
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, 0x40c4a0
add eax, ebx
mov dword [esp + 4], str._s_s.dll
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4

Function at 0x408f1c
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x42e0e4], 0
mov ebp, esp
push esi
mov edx, dword [ebp + 0xc]
push ebx
jne 0x408f59
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x408f44
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x408f36
mov dword [ecx*4 + 0x42e0e0], eax
inc ecx
cmp ecx, 0x100
jne 0x408f2f
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x408f7b
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42e0e0]
jmp 0x408f63
pop ebx
not eax
pop esi
pop ebp
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d7a
sub eax, 0x403d20
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x401280
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00401000
Function at 0x401ad0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.libz.exe_crc32_z

Function at 0x401ae0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00401610
add esp, 8
mov ebx, eax
mov edx, 0x80000000
xor edi, edi
test ebx, edx
je 0x401b0d
lea eax, [edx - 1]
xor edi, esi
test ebx, eax
je 0x401b24
mov ecx, esi
shr edx, 1
shr ecx, 1
mov eax, esi
mov esi, ecx
xor esi, 0xedb88320
test al, 1
cmove esi, ecx
jmp 0x401b00
xor edi, dword [ebp + 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4021b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x40238d
cmp dword [ebx + 0x20], 0
je 0x40238d
cmp dword [ebx + 0x24], 0
je 0x40238d
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x40238d
cmp dword [eax], ebx
jne 0x40238d
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x40221b
cmp eax, 0x39
je 0x40221b
cmp eax, 0x45
je 0x40221b
cmp eax, 0x49
je 0x40221b
cmp eax, 0x5b
je 0x40221b
cmp eax, 0x67
je 0x40221b
cmp eax, 0x71
je 0x40221b
cmp eax, 0x29a
jne 0x40238d
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40238d
mov esi, dword [ebx + 0x1c]
mov eax, dword [esi + 0x18]
mov dword [ebp - 8], eax
cmp eax, 2
je 0x40238d
cmp eax, 1
jne 0x402247
cmp dword [esi + 4], 0x2a
jne 0x40238d
cmp dword [esi + 0x74], 0
jne 0x40238d
push edi
mov edi, dword [ebp + 0x10]
cmp eax, 1
jne 0x402270
push edi
push ecx
push dword [ebx + 0x30]
call fcn.00401000
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x18], 0
cmp edi, dword [esi + 0x2c]
jb 0x4022c7
test eax, eax
jne 0x4022bf
mov eax, dword [esi + 0x44]
xor edx, edx
mov ecx, dword [esi + 0x4c]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.0040e370
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x16b4], 0
sub edi, dword [esi + 0x2c]
add ecx, edi
mov edi, dword [esi + 0x2c]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
mov dword [ebx], ecx
mov ecx, esi
mov dword [ebp - 0xc], eax
mov dword [ebx + 4], edi
call fcn.00401cd0
mov ecx, dword [esi + 0x74]
cmp ecx, 3
jb 0x402348
mov ebx, dword [esi + 0x6c]
add ecx, 0xfffffffe
mov dword [ebp - 4], ecx
nop
mov eax, dword [esi + 0x38]
mov edx, ebx
mov ecx, dword [esi + 0x58]
and edx, dword [esi + 0x34]
movzx edi, byte [ebx + eax + 2]
mov eax, dword [esi + 0x48]
shl eax, cl
mov ecx, dword [esi + 0x40]
xor edi, eax
and edi, dword [esi + 0x54]
mov eax, dword [esi + 0x44]
mov dword [esi + 0x48], edi
mov ax, word [eax + edi*2]
mov word [ecx + edx*2], ax
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2], bx
inc ebx
sub dword [ebp - 4], 1
jne 0x4022f0
mov ecx, esi
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x74], 2
call fcn.00401cd0
mov ecx, dword [esi + 0x74]
cmp ecx, 3
jae 0x4022e6
mov ebx, dword [ebp + 8]
add dword [esi + 0x6c], ecx
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x16b4], ecx
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 0x18], eax
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d280
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d2b0
sub ecx, edx
add ecx, 0xfffffffc
cmp ecx, 0x104
jae 0x40d35b
mov byte [ebp + ecx - 0x108], al
lea ecx, [ebp - 0x108]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x40d2d6
mov eax, dword [str..dat]
push esi
push 0
push 0
push 3
mov dword [ecx], eax
mov al, byte [0x42ba0c]
push 0
push 0
mov byte [ecx + 4], al
lea eax, [ebp - 0x108]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d348
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea ecx, [ebp - 0x10c]
push ecx
push eax
push 0x42f338
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x42f338
call eax
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0040d361
mov esp, ebp
pop ebp
ret 0x10
call fcn.0040d491
int3

Function at 0x40dc66
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40dca5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40dca5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40dca5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40dca5
cmp dword [ecx + 0x74], 0xe
jbe 0x40dca5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4144df
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x42ee70]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41451f
cmp byte [ebx], 0xa
jne 0x41451f
or byte [edi + eax + 0x28], 4
jmp 0x414524
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x414623
mov dl, byte [eax]
cmp dl, 0x1a
je 0x414606
inc eax
cmp dl, 0xd
je 0x414550
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x414576
cmp eax, ecx
jae 0x414584
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x414538
jmp 0x414623
push 0
lea eax, [ebp - 0x10]
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 0x414601
cmp dword [ebp - 0x10], 0
je 0x414601
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x42ee70]
test byte [eax + edi + 0x28], 0x48
je 0x4145db
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4145c6
mov byte [esi], dl
jmp 0x4145d7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42ee70]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x414623
cmp byte [ebp - 1], 0xa
jne 0x4145ea
cmp esi, ebx
jne 0x4145ea
mov byte [esi], 0xa
jmp 0x414622
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041057f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x414623
mov byte [esi], 0xd
jmp 0x414622
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x42ee70]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414620
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414623
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41462c
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 + 0x42ee70]
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 0x414672
cmp word [ebx], dx
jne 0x414672
or byte [eax + edi + 0x28], 4
jmp 0x414677
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 0x4147da
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 0x4147ba
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4146b8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4146ee
cmp eax, edx
jae 0x4146fc
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 0x414693
jmp 0x4147da
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 0x4147b5
cmp dword [ebp - 0x18], 0
je 0x4147b5
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x42ee70]
test byte [eax + edi + 0x28], 0x48
je 0x41478b
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 0x41474f
mov word [esi], cx
jmp 0x414786
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x42ee70]
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 + 0x42ee70]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x42ee70]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4147da
pop eax
cmp word [ebp - 4], ax
jne 0x41479b
cmp esi, ebx
jne 0x41479b
mov word [esi], ax
jmp 0x4147d7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041057f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4147da
push 0xd
pop eax
jmp 0x414796
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x42ee70]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4147d4
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4147da
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 0x416f01
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422ae0
push 0x422ad8
push str.FlsAlloc
push 0x1f
call fcn.00416e1d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416f35
push dword [ebp + 8]
mov ecx, esi
call dword [0x42111c]
call esi
jmp 0x416f3b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x416f7f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422af0
push 0x422ae8
push str.FlsGetValue
push 0x21
call fcn.00416e1d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416fb6
push dword [ebp + 8]
mov ecx, esi
call dword [0x42111c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x416fbe
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422af8
push 0x422af0
push str.FlsSetValue
push 0x22
call fcn.00416e1d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416ff8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42111c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x417263
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004171df
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4173d2
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4173d2
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x417387
jg 0x4172bf
test eax, eax
je 0x41737d
push 1
push 0x1000
call fcn.00418845
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4172e2
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x417374
push 0x8000
push ebx
call fcn.00413db8
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41730b
jg 0x417306
cmp ecx, 0x1000
jb 0x41730b
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041597d
add esp, 0x10
cmp eax, 0xffffffff
je 0x417350
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 0x417306
jl 0x417337
test ecx, ecx
jne 0x4172f8
push dword [ebp - 0xc]
push ebx
call fcn.00413db8
push esi
call fcn.00416bba
add esp, 0xc
xor ebx, ebx
jmp 0x4173e0
cmp byte [edi + 0x24], 0
je 0x417367
cmp dword [edi + 0x20], 5
jne 0x417367
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x417372
mov ebx, dword [edi + 0x18]
jmp 0x417374
xor ebx, ebx
push esi
call fcn.00416bba
pop ecx
jmp 0x4173e0
test ecx, ecx
jg 0x417349
jl 0x417387
test eax, eax
jae 0x417349
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041057f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4173a7
cmp byte [edi + 0x1c], 0
je 0x417349
jmp 0x4173d8
push ebx
call fcn.004160cc
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x417349
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4173e0
cmp byte [edi + 0x1c], 0
je 0x4173dd
mov ebx, dword [edi + 0x18]
jmp 0x4173e0
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041057f
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419acb
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 0x419b68
push ebx
push esi
call fcn.00419a94
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.0041748a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x419b15
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419b67
push edi
push eax
call fcn.00416bf4
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x419b35
call fcn.00416bba
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419b66
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041748a
add esp, 0x20
test eax, eax
jne 0x419b54
push edi
call fcn.00416bba
jmp 0x419b5c
push ebx
call fcn.00416bba
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 0x420280
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x102d3038], 0
mov byte [0x102d303c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [0x102d3030], 0x17a8
mov dword [0x102d3034], 0
mov dword [ebp - 0x1c], eax
jmp 0x102627ec
xor eax, eax
mov dword [0x102d3034], 0
mov dword [ebp - 0x20], eax
jmp 0x1026281e
mov eax, dword [ebp - 0x1c]
mov dword [0x102d302c], 0x1cfc
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x102d3034]
add eax, 1
mov dword [0x102d3034], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x102627ec
jmp 0x102627db
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x102d3040], 0
mov dword [0x102d302c], 0x1994
mov edx, dword [0x102d3038]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x102d3040], edi
mov eax, edi
cdq
idiv ecx
mov dword [0x102d3038], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x102d303c], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov ecx, dword [0x102d3030]
add ecx, 0xfffff0f5
mov dword [0x102d3030], ecx
mov cl, byte [0x102d303c]
mov edx, dword [0x102d3038]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov dword [0x102d302c], 0x195b
mov edx, dword [0x102d3034]
add edx, 1
mov dword [0x102d3034], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x1026281e
mov eax, dword [0x102d3030]
add eax, 0x20cc
mov dword [0x102d302c], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret