joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4059d6
Capabilities:
Access peb ldr_data
Delete file
Get kernel32 base address
Get number of processors

Disassembly:
sub esp, 0xd0
mov eax, dword [0x47c440]
xor eax, esp
mov dword [esp + 0xcc], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x24
mov dword [esp + 0x14], ebx
call fcn.00406b09
pop ecx
mov esi, eax
push 0x64
pop ebp
test esi, esi
je 0x405a3c
push str.Window1
lea ecx, [esp + 0xc8]
call fcn.004022bb
lea eax, [esp + 0xc4]
push eax
push ebp
push ecx
push ecx
mov dword [esp + 4], 0x40000000
mov ecx, esi
mov dword [esp], 0x40400000
call fcn.00402314
mov esi, eax
inc ebx
jmp 0x405a3e
xor esi, esi
test bl, 1
je 0x405a4f
lea ecx, [esp + 0xc4]
call fcn.00403eb0
test esi, esi
je 0x405a70
mov ecx, esi
call fcn.004031f4
test esi, esi
je 0x405a70
lea ecx, [esi + 0xc]
call fcn.00403eb0
push 0x24
push esi
call fcn.00406b39
pop ecx
pop ecx
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x47d3d8], eax
push 0x27
push 0x47be18
push 0x547
mov edi, 0x47be40
push edi
call fcn.00402f88
push 1
push 0x424478
call fcn.00405be2
push 0x8aafdc01
push dword [0x47d3d8]
call fcn.00402ee9
add esp, 0x20
lea ecx, [esp + 0x14]
mov ebx, str.static.lib
mov esi, eax
push 1
push 0x40
push 2
push ebx
call fcn.00402107
lea eax, [esp + 0x14]
push 0x424488
push eax
call fcn.004010ef
push eax
call fcn.00401ea3
add esp, 0xc
sub ebp, 1
jne 0x405ad6
lea ecx, [esp + 0x14]
call fcn.004040ed
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push 0x40
push 0x4e4
push edi
call esi
test eax, eax
je 0x405b65
call fcn.0040511c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x400
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x405b65
push 0x42448c
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
xor ebx, ebx
push ebx
push ebx
push eax
push esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [esp + 0x14]
call fcn.00402c98
mov ecx, dword [esp + 0xdc]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00406b4c
add esp, 0xd0
ret 0x10

Function at 0x4078ca
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407909
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407909
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407909
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407909
cmp dword [ecx + 0x74], 0xe
jbe 0x407909
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4158c7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4283d0
push 0x4283c8
push str.FlsAlloc
push 0x1e
call fcn.00415791
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4158fb
push dword [ebp + 8]
mov ecx, esi
call dword [0x424148]
call esi
jmp 0x415901
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x415945
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4283e0
push 0x4283d8
push str.FlsGetValue
push 0x20
call fcn.00415791
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41597c
push dword [ebp + 8]
mov ecx, esi
call dword [0x424148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x417026
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416e97

Function at 0x417420
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407a30
mov eax, dword [0x47c440]
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.00415efa
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x417462
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4175be
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004237f0
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 + 0x47e020]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418417
mov ecx, dword [esi*4 + 0x47e020]
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 0x4175b7
cmp eax, dword [edi + ecx + 0x24]
jne 0x4175b7
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 0x4175b7
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418417
add esp, 0x14
test edx, edx
jl 0x4175b7
jg 0x41752d
test eax, eax
jb 0x4175b7
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4175b7
jl 0x417547
cmp dword [ebp - 0x1008], eax
ja 0x4175b7
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x417565
test ebx, ebx
je 0x41759e
cmp ecx, edi
jae 0x41759e
mov al, byte [ecx]
cmp al, 0xd
jne 0x41757f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41758b
cmp byte [ecx + 1], 0xa
jne 0x41758b
inc ecx
jmp 0x41758b
movzx eax, al
movsx eax, byte [eax + 0x47c710]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x417565
cmp edx, ebx
jne 0x417565
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4175bc
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406b4c
leave
ret
Function at 0x4178b5
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 + 0x47e020]
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 0x4178f5
cmp byte [ebx], 0xa
jne 0x4178f5
or byte [eax + edi + 0x28], 4
jmp 0x4178fa
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4179f8
mov al, byte [edx]
cmp al, 0x1a
je 0x4179da
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x417929
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41794e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x417958
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 0x41790b
jmp 0x4179f8
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 0x4179d5
cmp dword [ebp - 0xc], 0
je 0x4179d5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47e020]
test byte [eax + edi + 0x28], 0x48
je 0x4179af
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41799a
mov byte [esi], dl
jmp 0x4179ab
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47e020]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4179f8
cmp byte [ebp - 1], 0xa
jne 0x4179be
cmp esi, ebx
jne 0x4179be
mov byte [esi], 0xa
jmp 0x4179f7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418435
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4179f8
mov byte [esi], 0xd
jmp 0x4179f7
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47e020]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4179f4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4179f8
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417a01
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 + 0x47e020]
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 0x417a44
cmp word [esi], dx
jne 0x417a44
or byte [edi + eax + 0x28], 4
jmp 0x417a49
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 0x417b9c
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 0x417b7c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x417a8b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x417ac1
cmp eax, edx
jae 0x417acd
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 0x417a63
jmp 0x417b9c
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 0x417b78
cmp dword [ebp - 0x14], 0
je 0x417b78
mov eax, dword [ebx*4 + 0x47e020]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x417b50
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417b19
mov word [esi], cx
jmp 0x417b4c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47e020]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47e020]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47e020]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x417b9c
pop ebx
cmp word [ebp - 4], bx
jne 0x417b61
cmp esi, dword [ebp + 0xc]
jne 0x417b61
mov word [esi], bx
jmp 0x417b99
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418435
add esp, 0x10
cmp word [ebp - 4], bx
je 0x417b9c
push 0xd
jmp 0x417b95
mov ecx, dword [ebx*4 + 0x47e020]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417b93
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417b9c
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 0x41bef4
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 0x41bf91
push ebx
push esi
call fcn.0041bebd
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.0041ab29
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41bf3e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41bf90
push edi
push eax
call fcn.00418614
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41bf5e
call fcn.004154b6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41bf8f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041ab29
add esp, 0x20
test eax, eax
jne 0x41bf7d
push edi
call fcn.004154b6
jmp 0x41bf85
push ebx
call fcn.004154b6
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 0x4224d5
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.00422451
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42264d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42264d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4225fc
jg 0x42252e
test eax, eax
je 0x4225f2
push 1
push 0x1000
call fcn.00415459
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x422554
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4225e9
push 0x8000
push ebx
call fcn.00411a5c
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 0x422580
jg 0x42257b
cmp ecx, 0x1000
jb 0x422580
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00416c97
add esp, 0x10
cmp eax, 0xffffffff
je 0x4225c5
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 0x42257b
jl 0x4225ac
test ecx, ecx
jne 0x42256d
push dword [ebp - 0xc]
push ebx
call fcn.00411a5c
push esi
call fcn.004154b6
add esp, 0xc
xor edi, edi
jmp 0x42265e
cmp byte [edi + 0x24], 0
je 0x4225dc
cmp dword [edi + 0x20], 5
jne 0x4225dc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4225e7
mov edi, dword [edi + 0x18]
jmp 0x4225e9
xor edi, edi
push esi
call fcn.004154b6
pop ecx
jmp 0x42265e
test ecx, ecx
jg 0x4225be
jl 0x4225fc
test eax, eax
jae 0x4225be
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418435
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42261f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4225be
jmp 0x422656
push ebx
call fcn.0041c35e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4225be
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 0x42265e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42265b
mov edi, dword [edi + 0x18]
jmp 0x42265e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00418435
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4236d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4236fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4236fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10034039
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10034078
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10034078
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10034078
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10034078
cmp dword [ecx + 0x74], 0xe
jbe 0x10034078
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10036c6b
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 0x10036d08
push ebx
push esi
call fcn.10036c34
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.10036bc8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10036cb5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10036d07
push edi
push eax
call fcn.10037b95
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10036cd5
call fcn.10035710
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10036d06
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10036bc8
add esp, 0x20
test eax, eax
jne 0x10036cf4
push edi
call fcn.10035710
jmp 0x10036cfc
push ebx
call fcn.10035710
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 0x10036f75
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003f9f0
push 0x1003f9e8
push str.FlsAlloc
push 0x1f
call fcn.10036e91
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10036fa9
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003d174]
call esi
jmp 0x10036faf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10036ff4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003fa00
push 0x1003f9f8
push str.FlsGetValue
push 0x21
call fcn.10036e91
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003702b
push dword [ebp + 8]
mov ecx, esi
call dword [0x1003d174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10037033
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1003fa08
push 0x1003fa00
push str.FlsSetValue
push 0x22
call fcn.10036e91
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003706d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1003d174]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1003c5c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003c5ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003c5ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x407281
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461124], 0
jne 0x4072bf
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407295
mov dword [ecx*4 + 0x461120], eax
inc ecx
cmp ecx, 0x100
jl 0x407290
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4072ec
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461120]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072cd
not eax
pop ebp
ret 0xc

Function at 0x43b669
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
add edx, edx
sub edx, edi
call fcn.0043b6a5
or edx, edi
add edx, edi
xor dword [esi], eax
sub edx, edx
add esi, 1
sub edx, edx
sub edx, edi
cmp esi, ecx
jne fcn.0043b669
mov edi, 0x224b8532
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x742e71d7
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x51a74203
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x46e984
Capabilities:
Allocate or change rwx memory
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
push 0
push 0
push 0
call sub.gdi32.dll_SetMiterLimit
nop
mov ebx, 0x9e5647a
nop
nop
dec ebx
jne 0x46e999
mov eax, 0x1c081725
call fcn.00402728
mov esi, eax
test esi, esi
jne 0x46e9b5
jmp 0x46ea3f
mov dword [0x47dd44], 0x13933
push 0
push 0
push 0
call sub.gdi32.dll_SetMiterLimit
mov eax, esi
call fcn.00402748
nop
nop
mov ebx, 0x8e2b
push 0
push 0
push 0
call sub.gdi32.dll_SetMiterLimit
dec ebx
jne 0x46e9d8
mov eax, 0x5d57
call fcn.00402728
mov esi, eax
push esp
push 0x40
push 0x5d57
push esi
call sub.kernel32.dll_VirtualProtect
nop
nop
xor eax, eax
mov dword [0x47dd4c], eax
nop
nop
xor ebx, ebx
nop
mov dl, 0x8b
mov eax, ebx
mov edi, esi
add edi, eax
mov eax, dword [0x47dd4c]
mov al, byte [eax + 0x470278]
nop
nop
xor al, dl
mov byte [edi], al
add dword [0x47dd4c], 2
nop
inc ebx
cmp ebx, 0x5d57
jne 0x46ea0d
mov eax, esi
call fcn.0046e94c
pop edx
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
mov eax, section..rsrc
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x29041b49
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x431060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
je 0x4310d2
nop
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x22576c6d
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
popal
nop
nop
nop
nop
jmp 0x401219