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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4324b7
cmp dword [ebp + 0x14], edi
je 0x4324b7
cmp ecx, edi
jne 0x4324be
call fcn.00432f3c
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004359fb
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4324d2
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4324f3
cmp ebx, 0xffffffff
je 0x4324e2
push ebx
push edi
push ecx
call fcn.0042e720
add esp, 0xc
cmp esi, edi
je 0x43249f
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43249f
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43250f
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x432516
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x432607
test word [esi + 0xc], 0x10c
je 0x43256a
mov eax, dword [esi + 4]
test eax, eax
je 0x43256a
jl 0x432668
cmp ebx, eax
mov edi, ebx
jb 0x43253b
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43260f
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0042e25a
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4325ff
cmp ebx, dword [ebp - 0xc]
jb 0x4325d7
cmp dword [ebp - 0xc], 0
je 0x432594
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x432589
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x432590
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43259f
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x43259f
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43263b
push eax
push dword [ebp - 8]
push esi
call fcn.0043370f
pop ecx
push eax
call fcn.0043d126
add esp, 0xc
test eax, eax
je 0x43267a
cmp eax, 0xffffffff
je 0x432668
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4325ff
push esi
call fcn.0043b2b2
cmp eax, 0xffffffff
pop ecx
je 0x43266c
cmp dword [ebp - 4], 0
je 0x43263b
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x43251e
mov eax, dword [ebp + 0x14]
jmp 0x4324b9
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x432626
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0042e720
add esp, 0xc
call fcn.00432f3c
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4324af
cmp dword [ebp + 0xc], 0xffffffff
je 0x432651
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0042e720
add esp, 0xc
call fcn.00432f3c
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4324af
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4324b9
or dword [esi + 0xc], 0x10
jmp 0x43266c
Function at 0x4341fd
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x45ff00]
je 0x434218
inc edi
cmp edi, 0x17
jb 0x434209
cmp edi, 0x17
jae 0x434398
push ebp
push 3
call fcn.0044009f
cmp eax, 1
pop ecx
je 0x434364
push 3
call fcn.0044009f
test eax, eax
pop ecx
jne 0x43424c
cmp dword [0x45fab8], 1
je 0x434364
cmp ebx, 0xfc
je 0x434397
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x463850
push ebp
call fcn.0044003a
add esp, 0xc
test eax, eax
je 0x434282
push esi
push esi
push esi
push esi
push esi
call fcn.004358ff
add esp, 0x14
push 0x104
mov esi, 0x463869
push esi
push 0
mov byte [0x46396d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4342c6
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0044003a
add esp, 0xc
test eax, eax
je 0x4342c6
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004358ff
add esp, 0x14
push esi
call fcn.0042ea50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43430b
push esi
call fcn.0042ea50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x463b64
push 0x44df24
sub ecx, eax
push ecx
push eax
call fcn.0043ff87
add esp, 0x14
test eax, eax
je 0x43430b
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004358ff
add esp, 0x14
jmp 0x43430d
xor esi, esi
push 0x44df20
push ebx
push ebp
call fcn.0043ff16
add esp, 0xc
test eax, eax
je 0x43432d
push esi
push esi
push esi
push esi
push esi
call fcn.004358ff
add esp, 0x14
push dword [edi*8 + 0x45ff04]
push ebx
push ebp
call fcn.0043ff16
add esp, 0xc
test eax, eax
je 0x43434f
push esi
push esi
push esi
push esi
push esi
call fcn.004358ff
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043fd59
add esp, 0xc
jmp 0x434397
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x434397
cmp ebp, 0xffffffff
je 0x434397
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x45ff04]
push dword [esi]
call fcn.0042ea50
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43fd59
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00434dc1
xor ebx, ebx
cmp dword [0x464354], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43fe2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43ff0f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43ff0f
push eax
call fcn.00434d53
mov dword [esp], 0x44e348
push edi
mov dword [0x464354], eax
call esi
push eax
call fcn.00434d53
mov dword [esp], 0x44e334
push edi
mov dword [0x464358], eax
call esi
push eax
call fcn.00434d53
mov dword [0x46435c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042eb84
test eax, eax
pop ecx
pop ecx
je 0x43fdfd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004358ff
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43fe2f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00434d53
cmp eax, ebx
pop ecx
mov dword [0x464364], eax
je 0x43fe2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00434d53
pop ecx
mov dword [0x464360], eax
mov eax, dword [0x464360]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43feb4
cmp dword [0x464364], ecx
je 0x43feb4
push eax
call fcn.00434dca
push dword [0x464364]
mov esi, eax
call fcn.00434dca
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43feb4
cmp edi, ebx
je 0x43feb4
call esi
cmp eax, ebx
je 0x43fe81
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43fe81
test byte [ebp - 0x18], 1
jne 0x43feb4
lea eax, [ebp - 0x10]
push eax
call fcn.0042ebbb
test eax, eax
pop ecx
je 0x43fe9c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004358ff
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43feab
or dword [ebp + 0x10], 0x200000
jmp 0x43feef
or dword [ebp + 0x10], 0x40000
jmp 0x43feef
mov eax, dword [0x464358]
cmp eax, dword [ebp - 8]
je 0x43feef
push eax
call fcn.00434dca
cmp eax, ebx
pop ecx
je 0x43feef
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43feef
mov eax, dword [0x46435c]
cmp eax, dword [ebp - 8]
je 0x43feef
push eax
call fcn.00434dca
cmp eax, ebx
pop ecx
je 0x43feef
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x464354]
call fcn.00434dca
cmp eax, ebx
pop ecx
je 0x43ff0f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43ff11
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x445616
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x45fd70]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004455ab
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0042e720
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x445665
cmp dword [ebp - 0x1c], 5
jb 0x44567d
jmp 0x445679
cmp dword [ebp - 0x10], 1
jne 0x44567d
cmp dword [ebp - 0x1c], 4
ja 0x445679
jne 0x44567d
cmp dword [ebp - 0x18], 0
jbe 0x44567d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44f390
call fcn.0044547f
test eax, eax
jge 0x44569e
mov byte [0x464678], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042dc10
add ebp, 0x78
leave
ret
Function at 0x4098ef
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x409910
jl 0x409907
test edi, edi
jne 0x409910
xor eax, eax
xor edx, edx
jmp 0x4099d1
cmp dword [ebx + 0x38], 0
je 0x409925
push eax
push edi
push dword [ebp + 8]
call fcn.004099d7
jmp 0x4099d1
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40996c
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40996c
cmp eax, edi
jb 0x409946
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040b750
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x409972
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4099c6
mov ecx, ebx
call fcn.00409189
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4099b1
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00412df3
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4099c6
jmp 0x409984
test edx, edx
je 0x4099c6
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00412df3
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40ae09
Capabilities:
Parse pe header

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

Function at 0x417dfc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b458
push 0x42b450
push str.FlsAlloc
push 0x1e
call fcn.00417c69
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417e30
push dword [ebp + 8]
mov ecx, esi
call dword [0x42717c]
call esi
jmp 0x417e36
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x417e7a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b468
push 0x42b460
push str.FlsGetValue
push 0x20
call fcn.00417c69
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417eb1
push dword [ebp + 8]
mov ecx, esi
call dword [0x42717c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41b483
Capabilities:
Read file on windows

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

Function at 0x41b87d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040b260
mov eax, dword [0x488540]
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.00419264
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41b8bf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41ba1b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00426310
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 + 0x48aba0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041c61c
mov ecx, dword [esi*4 + 0x48aba0]
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 0x41ba14
cmp eax, dword [edi + ecx + 0x24]
jne 0x41ba14
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 0x41ba14
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041c61c
add esp, 0x14
test edx, edx
jl 0x41ba14
jg 0x41b98a
test eax, eax
jb 0x41ba14
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ba14
jl 0x41b9a4
cmp dword [ebp - 0x1008], eax
ja 0x41ba14
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41b9c2
test ebx, ebx
je 0x41b9fb
cmp ecx, edi
jae 0x41b9fb
mov al, byte [ecx]
cmp al, 0xd
jne 0x41b9dc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41b9e8
cmp byte [ecx + 1], 0xa
jne 0x41b9e8
inc ecx
jmp 0x41b9e8
movzx eax, al
movsx eax, byte [eax + 0x488808]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41b9c2
cmp edx, ebx
jne 0x41b9c2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41ba19
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a62d
leave
ret
Function at 0x41baba
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 + 0x48aba0]
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 0x41bafa
cmp byte [ebx], 0xa
jne 0x41bafa
or byte [eax + edi + 0x28], 4
jmp 0x41baff
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41bbfd
mov al, byte [edx]
cmp al, 0x1a
je 0x41bbdf
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41bb2e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41bb53
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41bb5d
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 0x41bb10
jmp 0x41bbfd
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 0x41bbda
cmp dword [ebp - 0xc], 0
je 0x41bbda
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x48aba0]
test byte [eax + edi + 0x28], 0x48
je 0x41bbb4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41bb9f
mov byte [esi], dl
jmp 0x41bbb0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x48aba0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41bbfd
cmp byte [ebp - 1], 0xa
jne 0x41bbc3
cmp esi, ebx
jne 0x41bbc3
mov byte [esi], 0xa
jmp 0x41bbfc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c63a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41bbfd
mov byte [esi], 0xd
jmp 0x41bbfc
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x48aba0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bbf9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bbfd
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41bc06
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 + 0x48aba0]
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 0x41bc49
cmp word [esi], dx
jne 0x41bc49
or byte [edi + eax + 0x28], 4
jmp 0x41bc4e
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 0x41bda1
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 0x41bd81
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41bc90
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41bcc6
cmp eax, edx
jae 0x41bcd2
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 0x41bc68
jmp 0x41bda1
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 0x41bd7d
cmp dword [ebp - 0x14], 0
je 0x41bd7d
mov eax, dword [ebx*4 + 0x48aba0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41bd55
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41bd1e
mov word [esi], cx
jmp 0x41bd51
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x48aba0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x48aba0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x48aba0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41bda1
pop ebx
cmp word [ebp - 4], bx
jne 0x41bd66
cmp esi, dword [ebp + 0xc]
jne 0x41bd66
mov word [esi], bx
jmp 0x41bd9e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041c63a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41bda1
push 0xd
jmp 0x41bd9a
mov ecx, dword [ebx*4 + 0x48aba0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bd98
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bda1
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 0x41e420
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 0x41e4bd
push ebx
push esi
call fcn.0041e3e9
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.0041d1ca
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41e46a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e4bc
push edi
push eax
call fcn.0041842f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41e48a
call fcn.0041743b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e4bb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041d1ca
add esp, 0x20
test eax, eax
jne 0x41e4a9
push edi
call fcn.0041743b
jmp 0x41e4b1
push ebx
call fcn.0041743b
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 0x426110
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x403024
pop dword [ebp - 0x38]
mov eax, 0xaf97d8e3
add eax, 0x50a85741
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x82a0b388
sub dword [ebp - 0x48], 0x344e6e3d
mov dword [ebp - 0x44], 0xfa004349
sub dword [ebp - 0x44], 0xc7ccf704
mov dword [ebp - 0x40], 0xf5669be8
add dword [ebp - 0x40], 0x56e5a846
mov dword [ebp - 0x3c], 0xbc84d938
add dword [ebp - 0x3c], 0x437b26c8
lea eax, [ebp - 0x48]
push eax
mov eax, 0xcf464fb
add eax, 0xf34c1b7d
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x13f19943
add dword [ebp - 0x48], 0x6080d013
mov dword [ebp - 0x44], 0xf4254636
add dword [ebp - 0x44], 0x4d471b3f
mov dword [ebp - 0x40], 0xaa17ead
sub dword [ebp - 0x40], 0xa7321241
mov dword [ebp - 0x3c], 0x7766365
sub dword [ebp - 0x3c], 0x7766365
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x3f56e519
sub eax, 0x3f16649d
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3bb58
push 0
call eax
mov ecx, 0x5aaf
mov edi, eax
mov esi, 0x3324ca77
add esi, 0xcd204989
add esi, dword [ebp - 0x38]
mov ebx, 0x6f2d559
mov edx, dword [esi]
xor dword [ebp - 4], edi
add edx, ebx
sub dword [ebp - 8], eax
mov dword [edi], edx
sub dword [ebp - 0x2c], edi
add edi, 0xec370cb8
add edi, 0x13c8f34c
add esi, 4
loop 0x40313a
add eax, 0x15d8f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xc464b335
add ecx, 0x3bdb4ccb
add ecx, dword [ebp - 0x38]
call ebx
leave
ret