joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10048fb0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1007a340]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x20], ax
xor ecx, ecx
mov word [ebp - 0x1e], cx
cmp dword [ebp + 8], 0xffffffff
jne 0x10048fd4
jmp 0x10049043
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x10048fe8
jmp 0x10049043
movsx ecx, word [ebp - 0x1c]
movsx edx, word [ebp - 0x1a]
imul ecx, edx
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 0x20
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
test eax, eax
jne 0x10049014
jmp 0x10049043
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
movzx ecx, word [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
jne 0x10049035
jmp 0x10049043
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call main
mov esp, ebp
pop ebp
ret

Function at 0x10053b90
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 5]
and ecx, 0xf
movzx edx, byte [0x10665e24]
or ecx, edx
mov byte [ebp - 1], cl
movzx ax, byte [ebp - 1]
movzx ecx, ax
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 4]
push ecx
push 0x10666050
call fcn.10052f80
add esp, 8
mov esp, ebp
pop ebp
ret 4
Function at 0x10070bc2
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1007a340]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.100619dc
mov dword [ebp - 0x14], eax
cmp dword [0x1066703c], esi
jne 0x10070cb5
push 0x800
push esi
push 0x10007adc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10070c42
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10070d95
push esi
push esi
push 0x10007adc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10070d95
push 0x10007af4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10070d95
push eax
call ebx
push 0x10007b00
push edi
mov dword [0x1066703c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007b10
push edi
mov dword [0x10667040], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007b24
push edi
mov dword [0x10667044], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1066704c], eax
test eax, eax
je 0x10070cb2
push 0x10007b40
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10667048], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10070cda
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10070ccd
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10070cef
push 4
pop eax
jmp 0x10070d97
cmp dword [ebp - 0x14], esi
je 0x10070cef
push dword [0x1066703c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10070cd4
mov eax, dword [0x10667048]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10070d4d
cmp dword [0x1066704c], edi
je 0x10070d4d
push eax
call ebx
push dword [0x1066704c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10070d4d
test eax, eax
je 0x10070d4d
call ecx
test eax, eax
je 0x10070d42
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10070d42
test byte [ebp - 8], 1
jne 0x10070d4d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10070d7d
mov eax, dword [0x10667040]
cmp eax, edi
je 0x10070d7a
push eax
call ebx
test eax, eax
je 0x10070d7a
call eax
mov esi, eax
test esi, esi
je 0x10070d7a
mov eax, dword [0x10667044]
cmp eax, edi
je 0x10070d7a
push eax
call ebx
test eax, eax
je 0x10070d7a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1066703c]
call ebx
test eax, eax
je 0x10070d95
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10070d97
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x40b042
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 0x40b063
jl 0x40b05a
test edi, edi
jne 0x40b063
xor eax, eax
xor edx, edx
jmp 0x40b124
cmp dword [ebx + 0x38], 0
je 0x40b078
push eax
push edi
push dword [ebp + 8]
call fcn.0040b12a
jmp 0x40b124
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40b0bf
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40b0bf
cmp eax, edi
jb 0x40b099
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0042dd00
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 0x40b0c5
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40b119
mov ecx, ebx
call fcn.0040a718
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40b104
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00457be1
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 0x40b119
jmp 0x40b0d7
test edx, edx
je 0x40b119
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00457be1
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 0x41b4c7
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x41b4ea
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x41b4d8
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x42b82a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0045a203
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x42b869
sub eax, 1
je 0x42b864
sub eax, 1
je 0x42b860
xor eax, eax
leave
ret
push 3
jmp 0x42b86b
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x42d04d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42d08c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42d08c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42d08c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42d08c
cmp dword [ecx + 0x74], 0xe
jbe 0x42d08c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x468fb4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48d914
push 0x48d90c
push str.FlsAlloc
push 0x1e
call fcn.00468c84
mov esi, eax
add esp, 0x10
test esi, esi
je 0x468fe8
push dword [ebp + 8]
mov ecx, esi
call dword [0x48820c]
call esi
jmp 0x468fee
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x469033
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48d924
push 0x48d91c
push str.FlsGetValue
push 0x20
call fcn.00468c84
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46906a
push dword [ebp + 8]
mov ecx, esi
call dword [0x48820c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x46e7f6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046e3dd

Function at 0x46ed24
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042d530
mov eax, dword [0x49a040]
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.0046b883
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x46ed66
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x46eec2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00482380
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 + 0x4ebcd8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004702b7
mov ecx, dword [esi*4 + 0x4ebcd8]
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 0x46eebb
cmp eax, dword [edi + ecx + 0x24]
jne 0x46eebb
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 0x46eebb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004702b7
add esp, 0x14
test edx, edx
jl 0x46eebb
jg 0x46ee31
test eax, eax
jb 0x46eebb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x46eebb
jl 0x46ee4b
cmp dword [ebp - 0x1008], eax
ja 0x46eebb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x46ee69
test ebx, ebx
je 0x46eea2
cmp ecx, edi
jae 0x46eea2
mov al, byte [ecx]
cmp al, 0xd
jne 0x46ee83
lea eax, [edi - 1]
cmp ecx, eax
jae 0x46ee8f
cmp byte [ecx + 1], 0xa
jne 0x46ee8f
inc ecx
jmp 0x46ee8f
movzx eax, al
movsx eax, byte [eax + 0x49a320]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x46ee69
cmp edx, ebx
jne 0x46ee69
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x46eec0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042c38b
leave
ret
Function at 0x46f440
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 + 0x4ebcd8]
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 0x46f480
cmp byte [ebx], 0xa
jne 0x46f480
or byte [eax + edi + 0x28], 4
jmp 0x46f485
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x46f583
mov al, byte [edx]
cmp al, 0x1a
je 0x46f565
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x46f4b4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x46f4d9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x46f4e3
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 0x46f496
jmp 0x46f583
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 0x46f560
cmp dword [ebp - 0xc], 0
je 0x46f560
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4ebcd8]
test byte [eax + edi + 0x28], 0x48
je 0x46f53a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46f525
mov byte [esi], dl
jmp 0x46f536
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4ebcd8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46f583
cmp byte [ebp - 1], 0xa
jne 0x46f549
cmp esi, ebx
jne 0x46f549
mov byte [esi], 0xa
jmp 0x46f582
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004702d5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46f583
mov byte [esi], 0xd
jmp 0x46f582
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4ebcd8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46f57f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46f583
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46f58c
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 + 0x4ebcd8]
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 0x46f5cf
cmp word [esi], dx
jne 0x46f5cf
or byte [edi + eax + 0x28], 4
jmp 0x46f5d4
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 0x46f727
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 0x46f707
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x46f616
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46f64c
cmp eax, edx
jae 0x46f658
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 0x46f5ee
jmp 0x46f727
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 0x46f703
cmp dword [ebp - 0x14], 0
je 0x46f703
mov eax, dword [ebx*4 + 0x4ebcd8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x46f6db
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x46f6a4
mov word [esi], cx
jmp 0x46f6d7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4ebcd8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4ebcd8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4ebcd8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x46f727
pop ebx
cmp word [ebp - 4], bx
jne 0x46f6ec
cmp esi, dword [ebp + 0xc]
jne 0x46f6ec
mov word [esi], bx
jmp 0x46f724
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004702d5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x46f727
push 0xd
jmp 0x46f720
mov ecx, dword [ebx*4 + 0x4ebcd8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46f71e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46f727
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 0x472953
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00472827
Function at 0x473193
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x49a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4731de
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0047356d
test al, al
jne 0x4731d8
sub edx, 2
cmp edx, edi
jne 0x4731be
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x473200
lea eax, [edi + 2]
cmp edx, eax
je 0x473200
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00472e57
add esp, 0x10
jmp 0x4732fa
push esi
lea ecx, [ebp - 0x255]
call fcn.0047356d
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x473243
push dword [ebp - 0x25c]
jmp 0x4731f0
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x473280
cmp word [ebp - 0x226], 0
je 0x4732a1
cmp word [ebp - 0x226], ax
jne 0x473280
cmp word [ebp - 0x224], 0
je 0x4732a1
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00472e57
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4732ed
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x47325a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4732d5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4732fa
push 0x472976
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0047ebe0
add esp, 0x10
jmp 0x4732ca
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c38b
leave
ret
Function at 0x47463f
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 0x4746dc
push ebx
push esi
call fcn.004745fb
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.00471787
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x474689
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4746db
push edi
push eax
call fcn.0046a7ac
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4746a9
call fcn.00468635
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4746da
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00471787
add esp, 0x20
test eax, eax
jne 0x4746c8
push edi
call fcn.00468635
jmp 0x4746d0
push ebx
call fcn.00468635
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 0x4746df
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4746f0
pop esi
ret
push ebx
push edi
push esi
call fcn.004745fb
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0046a7ac
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x474718
push ebx
push esi
push edi
call fcn.0042dd00
add esp, 0xc
push 0
call fcn.00468635
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x474ff9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047498b

Function at 0x482140
Capabilities:
Parse pe header

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

Disassembly:
sub esp, 0x2c
mov eax, dword [0x49a040]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
push 1
call fcn.0042c39e
mov cl, byte [0x491c7c]
xorps xmm0, xmm0
movups xmmword [esp + 0x20], xmm0
xor esi, esi
mov byte [esp + 0x20], cl
xor edi, edi
mov byte [esp + 0x21], 0
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
xor ebx, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
nop dword [eax]
movd xmm0, ebx
cvtdq2ps xmm0, xmm0
addss xmm0, dword [0x491de0]
movss dword [esp + 0x14], xmm0
cmp esi, edi
je 0x487926
movss dword [esi], xmm0
add esi, 4
mov dword [esp + 0x20], esi
jmp 0x48793d
lea eax, [esp + 0x14]
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.00408170
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
inc ebx
cmp ebx, 0xa
jl 0x487900
mov eax, dword [esp + 0x1c]
xor ebx, ebx
sub esi, eax
xor ecx, ecx
mov edx, esi
xor ebp, ebp
sar edx, 2
mov dword [esp + 0x14], edx
test edx, edx
je 0x4879cd
cmp edx, 0x3fffffff
ja 0x487ada
lea ebp, [edx*4]
cmp ebp, 0x1000
jb 0x4879a2
lea eax, [ebp + 0x23]
cmp eax, ebp
jbe 0x487adf
push eax
call fcn.0042c39e
add esp, 4
test eax, eax
je 0x487ae4
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
mov eax, dword [esp + 0x1c]
jmp 0x4879b9
test ebp, ebp
je 0x4879b7
push ebp
call fcn.0042c39e
mov ebx, eax
add esp, 4
mov eax, dword [esp + 0x1c]
jmp 0x4879b9
xor ebx, ebx
push esi
push eax
push ebx
add ebp, ebx
call fcn.0042e280
mov eax, dword [esp + 0x20]
add esp, 0xc
lea ecx, [ebx + eax*4]
sub ecx, ebx
sar ecx, 2
test ecx, ecx
je 0x487a5b
xor esi, esi
nop dword [eax]
movzx eax, byte [esi + 0x4e9300]
mov edx, str.Own_head
xor al, 0x73
sub al, 0x6c
xor al, 0x74
mov byte [esi + 0x4e9300], al
call fcn.00405ba0
push eax
call fcn.00405db0
movzx eax, byte [esi + 0x4e9300]
add esp, 4
add al, 0x4e
mov edx, str.Earth
xor al, 0xdc
mov byte [esi + 0x4e9300], al
call fcn.00405ba0
push eax
call fcn.00405db0
movzx eax, byte [esi + 0x4e9300]
add esp, 4
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x491cdc
mov byte [esi + 0x4e9300], al
call fcn.0045676a
xor byte [esi + 0x4e9300], al
add esp, 4
inc esi
cmp esi, 0x4ac
jb 0x4879e0
test ebx, ebx
je 0x487a88
sub ebp, ebx
mov eax, ebx
and ebp, 0xfffffffc
cmp ebp, 0x1000
jb 0x487a7e
mov ebx, dword [eax - 4]
add ebp, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487ae4
push ebp
push ebx
call fcn.0042c3ce
add esp, 8
push 1
push dword [esp + 0x1c]
call fcn.0042c3ce
mov ecx, dword [esp + 0x24]
add esp, 8
test ecx, ecx
je 0x487ac7
sub edi, ecx
mov eax, ecx
and edi, 0xfffffffc
cmp edi, 0x1000
jb 0x487abd
mov ecx, dword [eax - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x487ae4
push edi
push ecx
call fcn.0042c3ce
add esp, 8
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042c38b
add esp, 0x2c
ret
call fcn.004079e0
call fcn.00401520
call fcn.00456c11
int3