joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b0a8a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0059eec0
mov eax, dword [0x647f80]
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.005b05b6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5b0acc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5b0c28
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005c7e40
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 + 0x64ccc0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.005bc531
mov ecx, dword [esi*4 + 0x64ccc0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x5b0c21
cmp eax, dword [ecx + edi + 0x24]
jne 0x5b0c21
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5b0c21
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005bc531
add esp, 0x14
test edx, edx
jl 0x5b0c21
jg 0x5b0b97
test eax, eax
jb 0x5b0c21
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5b0c21
jl 0x5b0bb1
cmp dword [ebp - 0x1008], eax
ja 0x5b0c21
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5b0bcf
test ebx, ebx
je 0x5b0c08
cmp ecx, edi
jae 0x5b0c08
mov al, byte [ecx]
cmp al, 0xd
jne 0x5b0be9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5b0bf5
cmp byte [ecx + 1], 0xa
jne 0x5b0bf5
inc ecx
jmp 0x5b0bf5
movzx eax, al
movsx eax, byte [eax + 0x648240]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5b0bcf
cmp edx, ebx
jne 0x5b0bcf
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5b0c26
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0059e4d3
leave
ret
Function at 0x5ba2d7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x63afe0
push 0x63afd8
push str.FlsAlloc
push 0x1f
call fcn.005ba142
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5ba30b
push dword [ebp + 8]
mov ecx, esi
call dword [0x5ca2ec]
call esi
jmp 0x5ba311
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5ba355
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x63aff0
push 0x63afe8
push str.FlsGetValue
push 0x21
call fcn.005ba142
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5ba38c
push dword [ebp + 8]
mov ecx, esi
call dword [0x5ca2ec]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5ba394
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x63aff8
push 0x63aff0
push str.FlsSetValue
push 0x22
call fcn.005ba142
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5ba3ce
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5ca2ec]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x5bb9c9
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 + 0x64ccc0]
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 0x5bba09
cmp byte [ebx], 0xa
jne 0x5bba09
or byte [edi + eax + 0x28], 4
jmp 0x5bba0e
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 0x5bbb0d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x5bbaf0
inc eax
cmp dl, 0xd
je 0x5bba3a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x5bba60
cmp eax, ecx
jae 0x5bba6e
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 0x5bba22
jmp 0x5bbb0d
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 0x5bbaeb
cmp dword [ebp - 0x10], 0
je 0x5bbaeb
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x64ccc0]
test byte [eax + edi + 0x28], 0x48
je 0x5bbac5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5bbab0
mov byte [esi], dl
jmp 0x5bbac1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x64ccc0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5bbb0d
cmp byte [ebp - 1], 0xa
jne 0x5bbad4
cmp esi, ebx
jne 0x5bbad4
mov byte [esi], 0xa
jmp 0x5bbb0c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005bc54f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5bbb0d
mov byte [esi], 0xd
jmp 0x5bbb0c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x64ccc0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5bbb0a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5bbb0d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5bbb16
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 + 0x64ccc0]
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 0x5bbb5c
cmp word [ebx], dx
jne 0x5bbb5c
or byte [eax + edi + 0x28], 4
jmp 0x5bbb61
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 0x5bbcc4
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 0x5bbca4
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x5bbba2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5bbbd8
cmp eax, edx
jae 0x5bbbe6
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 0x5bbb7d
jmp 0x5bbcc4
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 0x5bbc9f
cmp dword [ebp - 0x18], 0
je 0x5bbc9f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x64ccc0]
test byte [eax + edi + 0x28], 0x48
je 0x5bbc75
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 0x5bbc39
mov word [esi], cx
jmp 0x5bbc70
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x64ccc0]
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 + 0x64ccc0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x64ccc0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x5bbcc4
pop eax
cmp word [ebp - 4], ax
jne 0x5bbc85
cmp esi, ebx
jne 0x5bbc85
mov word [esi], ax
jmp 0x5bbcc1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005bc54f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x5bbcc4
push 0xd
pop eax
jmp 0x5bbc80
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x64ccc0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x5bbcbe
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x5bbcc4
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 0x5bfcf8
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 0x5bfd95
push ebx
push esi
call fcn.005bfcc1
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.005bd26c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5bfd42
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5bfd94
push edi
push eax
call fcn.005b7a0f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5bfd62
call fcn.005b79d5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5bfd93
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005bd26c
add esp, 0x20
test eax, eax
jne 0x5bfd81
push edi
call fcn.005b79d5
jmp 0x5bfd89
push ebx
call fcn.005b79d5
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 0x5bfd98
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5bfda9
pop esi
ret
push ebx
push edi
push esi
call fcn.005bfcc1
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.005b7a0f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5bfdd1
push ebx
push esi
push edi
call fcn.0059fdf0
add esp, 0xc
push 0
call fcn.005b79d5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5c052b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005c0046

Function at 0x5c2624
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.005b762e
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5c2693
cmp esi, dword [ebp - 4]
je 0x5c268e
cmp dword [ebp + 0xc], 0
je 0x5c268e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5c266b
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.005c2176
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x5c2695
xor eax, eax
inc eax
jmp 0x5c2695
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x5c26fa
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x647f80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.005b762e
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.005b762e
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x5c2771
cmp word [ecx], dx
je 0x5c2771
mov eax, dword [0x63b94c]
push edi
dec eax
push eax
push 0x63b838
call fcn.005c2699
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5c27e4
cmp word [eax], dx
je 0x5c27e4
mov eax, dword [edi]
test eax, eax
je 0x5c2795
cmp word [eax], dx
je 0x5c2795
lea eax, [ebp - 0x10]
push eax
call fcn.005c207c
jmp 0x5c279e
lea eax, [ebp - 0x10]
push eax
call fcn.005c2117
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x5c280e
mov eax, dword [0x63b834]
push dword [ebp - 0x14]
dec eax
push eax
push 0x63b528
call fcn.005c2699
add esp, 0xc
test al, al
je 0x5c280e
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5c27d9
cmp word [eax], di
je 0x5c27d9
lea eax, [ebp - 0x10]
push eax
call fcn.005c207c
pop ecx
jmp 0x5c2810
lea eax, [ebp - 0x10]
push eax
call fcn.005c2117
jmp 0x5c27d6
mov eax, dword [edi]
test eax, eax
je 0x5c27fb
cmp word [eax], dx
je 0x5c27fb
lea eax, [ebp - 0x10]
push eax
call fcn.005c2031
pop ecx
jmp 0x5c280e
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5c28d9
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.005c251e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5c28d9
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5c28d9
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5c28d9
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5c2866
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.005ba4d4
test ebx, ebx
je 0x5c28d4
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.005ba4d4
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5c28d9
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5c28d9
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.005c6526
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5c28db
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059e4d3
leave
ret
Function at 0x5c53ec
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x647f80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x5c542f
call fcn.005aa0af
mov dword [eax], 0xf
call fcn.005aa0c2
mov dword [eax], 0xd
call fcn.005a91ff
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059e4d3
leave
ret
test eax, eax
jne 0x5c5436
inc eax
jmp 0x5c5423
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x5c5421
xor eax, eax
cmp ecx, 1
setne al
jmp 0x5c5423
Function at 0x5c6c3a
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.005c6bb6
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5c6da9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5c6da9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5c6d5e
jg 0x5c6c96
test eax, eax
je 0x5c6d54
push 1
push 0x1000
call fcn.005b705b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5c6cb9
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5c6d4b
push 0x8000
push ebx
call fcn.005b0e81
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5c6ce2
jg 0x5c6cdd
cmp ecx, 0x1000
jb 0x5c6ce2
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005bb3bb
add esp, 0x10
cmp eax, 0xffffffff
je 0x5c6d27
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 0x5c6cdd
jl 0x5c6d0e
test ecx, ecx
jne 0x5c6ccf
push dword [ebp - 0xc]
push ebx
call fcn.005b0e81
push esi
call fcn.005b79d5
add esp, 0xc
xor ebx, ebx
jmp 0x5c6db7
cmp byte [edi + 0x24], 0
je 0x5c6d3e
cmp dword [edi + 0x20], 5
jne 0x5c6d3e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5c6d49
mov ebx, dword [edi + 0x18]
jmp 0x5c6d4b
xor ebx, ebx
push esi
call fcn.005b79d5
pop ecx
jmp 0x5c6db7
test ecx, ecx
jg 0x5c6d20
jl 0x5c6d5e
test eax, eax
jae 0x5c6d20
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005bc54f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5c6d7e
cmp byte [edi + 0x1c], 0
je 0x5c6d20
jmp 0x5c6daf
push ebx
call fcn.005be732
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5c6d20
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 0x5c6db7
cmp byte [edi + 0x1c], 0
je 0x5c6db4
mov ebx, dword [edi + 0x18]
jmp 0x5c6db7
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005bc54f
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5c7e00
Capabilities:
Parse pe header

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

Disassembly:
inc ecx
fisubr dword [ecx - 0x30]
dec ebp
add dword [ebp + ecx*4 - 0x35d62149], edi
shl dword [ebp + 0x34], 8
insd dword es:[edi], dx
sub edx, dword [edi - 0x53968b0f]
adc dword [ebx - 0x2e], ecx
cmp edx, dword [ecx + 0x2c]
pushal
cmpsb byte [esi], byte es:[edi]
xchg edi, eax
shr dh, 0x54
shl byte [ebx], 0x57
xor byte [eax], 0xfc
pop edi
retf
and byte [eax], bl
or byte [ecx - 0x56594983], 0xac
lodsd eax, dword [esi]
add eax, 0xa3c34fda
pushal
rcr byte [edi + edx*2], cl
stc
sbb ch, al
push ds
in eax, dx
fcmovnb st(0), st(5)
xlatb
lea esi, [ebp - 0x202445e]
loope 0x4372fe
in al, 7
jnp 0x4372e0
add al, 0xd4
pop ebx
cdq
rcr bh, cl
out 0x74, eax
cmp dword [0x1ab40938], edi
cmp byte [ecx], cl
mov ah, 0x1a
xchg ecx, eax
in al, dx
rcr eax, cl
jle 0x43737d
in eax, 0
and dword [ebx + 0x78], eax
dec esp
fdivr qword [edi + eax*8 - 0x6a]
inc edx
xor byte [0x63551f58], cl
adc byte [edx - 0x59], ch
stc
ja 0x4373d8
imul esp, dword [edi - 0x748393d9], 0xf1eccca4
cmp ah, byte [esi]
and al, 0x80
loopne 0x4373b8
loopne 0x4373a9
sub edx, dword [ebx + 0x78972c14]
xchg ebp, eax
xchg ebx, eax
adc al, 0x2c
xchg edi, eax
sub al, 0x97
js 0x437319
mov al, byte [0x26d733b1]
cmp dword [ecx], 0xffffffc0
sahf
invalid
push ecx
scasd eax, dword es:[edi]
fstp xword [esi]
inc esp
sbb eax, 0xd9241171
jno 0x4373b8
and al, 0xd9
xchg ecx, eax
cmp byte [ecx + 0x4ec3b5a], ch
jae 0x43739f
add al, 0xdc
adc byte [ecx + esi*8 - 0x1e], ah
test eax, 0x2da0e01f
xchg esi, eax
mov edx, 0xa895a76e
add dword [eax - 0x1f], ecx
pop eax
xchg esi, eax
loop 0x43734b
mov word [edx + 0xd], cs
jnp 0x437380
loope 0x43737f
int1
loope 0x437449
insd dword es:[edi], dx
pop ss
popfd
popal
test eax, 0x6647f9f9
push ecx
mov ecx, 0x21de696b
into
mov ah, 0x59
mov byte [esi - 0x67], ah
sar dword [ebx - 0xb02f76c], 1
cwde
add ch, byte [ebp + edi*8 - 0x11]
int 0xba
cdq
add edi, dword [esi - 0x18b05a8b]
leave
cdq
arpl word [edx - 0x2e], bp
xor dword [ecx], edx
dec ecx
mov al, byte [0x99813c]
cdq
invalid
jnp 0x4373a5
dec ecx
lodsd eax, dword [esi]
cmp esi, dword [eax + esi*4 + 0x2411ba14]
adc eax, 0xe8743198
in eax, dx
and dword [eax], ecx
xchg ebx, eax
add byte [ecx], dl
sbb dh, cl
cmp al, byte [esi]
cdq
ficomp word [ebx]
pushal
pop edx
inc ecx
adc al, byte [eax]
xor al, 0xc1
sub eax, 0x9f05f92f
scasb al, byte es:[edi]
xchg edx, eax
mov al, 0x6d
popal
dec eax
xchg ecx, eax
sub ebx, dword [ebp + 0x24]
call 0x3bbe067a
or dh, cl
cmp ecx, dword [eax]
into
jl 0x437405
cmc
sub dword [edx], 0xbb5109c5
push ds
and ch, bl
pop ss
mov ecx, 0xa9f19ec9
sbb dword [ebx - 0x76], 0xd94daedd
Function at 0x4736b2
Capabilities:
Encode data using xor

Disassembly:
dec dword [ecx + 0x5ba6e0d7]
imul edx, dword [ebx - 0xefa1bdc], 0x1831a692
mov bl, 0x57
mov dword [ecx], ebp
adc ecx, dword [ecx]
push ds
push ss
pop ds
adc byte [eax - 0x60164fb4], bh
fiadd dword ds:[eax + 0x7f342a62]
push ecx
test byte [esi - 0x68fdd2af], ch
test byte [ebp + 5], dh
mov al, 0x84
leave
pop esi
lodsb al, byte [esi]
in al, 0xe0
pop edi
loopne 0x4736e3
mov esp, 0x76789876
inc edi
js 0x47364c
pop edi
push eax
inc esi
int 0x91
leave
adc edx, dword [esi]
add byte [edx + 0x32], bh
lodsb al, byte [esi]
mov eax, dword [0xc960d6c5]
jbe 0x473698
sbb byte [ecx + 0x7d], al
xor eax, 0xfb3af611
sti
jbe 0x473682
int1
mov ch, 0xf2
cmp edi, dword [edi + 0x2e]
sub byte [edi], dh
aaa
sbb dl, cl
adc eax, dword [ecx + 0x1280ae66]
stosd dword es:[edi], eax
mov ecx, 0x205ba6dc
setle byte [ecx + ecx*2 + 0x2d6c33cc]
mov dword fs:[0x30898a94], eax
xchg esp, eax
daa
xchg ch, bl
fdivr qword [eax + 0x7260a679]
adc dword [esp + 0x50cb98e8], 0x99c94c84
cdq
nop
rcr dword [ebx], 1
cmp al, 0xa4
mov esp, dword [esi - 0x375b0ff0]
xor eax, 0x14ed70b1
inc esp
jnp 0x4736a6
scasb al, byte es:[edi]
xlatb
in eax, dx
or byte [edi + 0x6eef83b5], 1
jg 0x473707
dec ebp
add al, 0x17
bound ecx, qword [ecx]
pop esp
and ecx, dword [edi + 0x14]
jg 0x47375f
or dword [ebx + 0x4f], ebx
adc al, 0x7f
push eax
ja 0x4736b1
xchg edi, eax
rol byte [edi - 0x5e2a0080], 0xb6
fidivr word [edi - 0x3353791d]
out 0x45, eax
sbb al, 0x75
adc ecx, dword [ecx + 0x26]
xor byte [edi + ebp*2], ah
jne 0x473737
dec ecx
xor byte es:[edi + ebp*2], ah
adc al, byte [edi]
jne 0x4736d3
push esp
jae 0x473722
loopne 0x4736c9
or esi, ebx
pop edi
movq mm1, mm0
psrlq mm0, 0x20
ror dword [edi], 0x73
shl byte [eax], 1
pmuludq mm0, mm7
pslld mm1, 2
paddd mm1, mm6
movd esi, mm0
movd ebx, mm1
mov eax, dword [ebx + esi]
mov dword [edi - 4], eax
sub ecx, 1
jne 0x473708
emms
pop ebp
pop ebx
pop edi
pop esi
ret
movsb byte es:[edi], byte [esi]
int3

Function at 0x47c302
Capabilities:
Encode data using xor

Disassembly:
sbb edx, dword [ecx]
mov dword [0x9ed53bb9], eax
sbb byte [eax + 0x17d3f33], dh
mov eax, 0xef562363
test al, 0x35
inc eax
push ss
cdq
mov byte [esi + 0x40], bl
aas
arpl word [esi - 0x2490d6f8], ax
inc esp
sub al, 0x7f
in eax, 0xa4
invalid

Function at 0x48ae8e
Capabilities:
Encode data using xor

Disassembly:
in al, dx
sbb dh, byte [ecx + edi*2 - 0x12]
add esi, edx
xlatb
popfd
imul eax, dword [ecx + 0x7c], 0xffffff8b
invalid
invalid
dec ebx

Function at 0x4aada2
Capabilities:
Encode data using xor

Disassembly:
mov ss, word [eax - 0x79]
mov esi, ecx
out dx, al
adc ecx, dword [eax - 0x66c51475]
test dword [eax - 0x26d4da6e], eax
mov eax, dword [0xf378acc9]
mov cl, 0xd
invalid
Function at 0x4024f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x402519
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40252f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402526
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x402562
nop
cmp esi, ecx
jae 0x402526
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x402550
cmp esi, ecx
jae 0x402526
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret