joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d81a
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748
Function at 0x4d2da0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x86000]
push edi
or ebp, 0xffffffff
jmp 0x4d2dc2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4d2dc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d2db8
mov eax, 1
add ebx, ebx
jne 0x4d2ddb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4d2dec
jne 0x4d2e0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d2e0b
dec eax
add ebx, ebx
jne 0x4d2df8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4d2dd0
add ebx, ebx
jne 0x4d2e07
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4d2e5d
xor ecx, ecx
sub eax, 3
jb 0x4d2e23
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4d2e92
sar eax, 1
mov ebp, eax
jmp 0x4d2e2e
add ebx, ebx
jne 0x4d2e2e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d2dfc
inc ecx
add ebx, ebx
jne 0x4d2e3c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d2dfc
add ebx, ebx
jne 0x4d2e49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4d2e3e
jne 0x4d2e5a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4d2e3e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4d2e7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4d2e6e
jmp 0x4d2dbe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4d2e7c
add edi, ecx
jmp 0x4d2dbe
pop esi
mov edi, esi
mov ecx, 0x31dc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4d2e9a
cmp byte [edi], 0x22
jne 0x4d2e9a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4d2e9f
lea edi, [esi + 0xcf000]
mov eax, dword [edi]
or eax, eax
je 0x4d2f17
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd320c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd3310]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4d2ecc
mov ecx, edi
jns 0x4d2efb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd3314]
or eax, eax
je 0x4d2f11
mov dword [ebx], eax
add ebx, 4
jmp 0x4d2ee9
call dword [esi + 0xd3324]
mov ebp, dword [esi + 0xd3318]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4d2f4b
sub esp, 0xffffff80
jmp 0x46af8d
Function at 0x11e30b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.011e3200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x11e30d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11e30c2
add dl, dl
jne 0x11e30e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11e3134
xor eax, eax
add dl, dl
jne 0x11e30ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11e31d5
add dl, dl
jne 0x11e30fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11e3108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11e3113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11e311e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x11e312a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x11e30cd
mov eax, 1
add dl, dl
jne 0x11e3142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11e314d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11e3139
sub eax, ebx
mov ebx, 1
jne 0x11e3180
mov ecx, 1
add dl, dl
jne 0x11e3166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x11e3171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11e315d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x11e30cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x11e3197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x11e31a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11e318e
cmp eax, 0x7d00
jae 0x11e31c5
cmp eax, 0x500
jb 0x11e31c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x11e30cd
cmp eax, 0x7f
ja 0x11e31c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x11e30cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x11e31f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x11e30cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 2
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, edi
je 0x40105c
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 8]
mov esi, 0xf01ff
push 1
push 2
push 0x110
push esi
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x40105c
push esi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, edi
je 0x40105c
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4010da
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x40a020]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 2
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, 0x40aeb0
jl 0x401109
push dword [eax + 4]
push esi
call fcn.00401910
pop ecx
pop ecx
mov edi, 0x40ae78
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x1f4
lea eax, [ebp - 0x1fc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.WinNetwork
mov ebx, 0x40ac80
push ebx
call fcn.00401910
push esi
push 0x40816c
call fcn.004018b9
add esp, 0x10
test eax, eax
je 0x401181
push esi
push 0x408168
call fcn.004018b9
pop ecx
pop ecx
test eax, eax
je 0x401181
push 0
push 0
push 0x4010c7
call fcn.0040166b
add esp, 0xc
push 0x40a004
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x401190
lea eax, [ebp - 0x1fc]
push ebx
push eax
call fcn.00401000
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00401a08
leave
ret

Function at 0x401a08
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a020]
jne 0x401a12
repz ret
jmp fcn.00403d57
Function at 0x404631
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00401c0e
and dword [ebp - 4], 0
cmp dword [0x40bc08], 0
mov ebx, eax
jne 0x4046e2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x404793
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x404793
push eax
call fcn.00401b9c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40bc08], eax
call esi
push eax
call fcn.00401b9c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40bc0c], eax
call esi
push eax
call fcn.00401b9c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40bc10], eax
call esi
push eax
call fcn.00401b9c
pop ecx
mov dword [0x40bc18], eax
test eax, eax
je 0x4046e2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00401b9c
pop ecx
mov dword [0x40bc14], eax
mov eax, dword [0x40bc14]
cmp eax, ebx
je 0x40473a
cmp dword [0x40bc18], ebx
je 0x40473a
push eax
call fcn.00401c17
push dword [0x40bc18]
mov esi, eax
call fcn.00401c17
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40473a
test edi, edi
je 0x40473a
call esi
test eax, eax
je 0x404731
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x404731
test byte [ebp - 0xc], 1
jne 0x40473a
or dword [ebp + 0x10], 0x200000
jmp 0x404773
mov eax, dword [0x40bc0c]
cmp eax, ebx
je 0x404773
push eax
call fcn.00401c17
pop ecx
test eax, eax
je 0x404773
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x404773
mov eax, dword [0x40bc10]
cmp eax, ebx
je 0x404773
push eax
call fcn.00401c17
pop ecx
test eax, eax
je 0x404773
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40bc08]
call fcn.00401c17
pop ecx
test eax, eax
je 0x404793
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x404795
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417e94
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00417d05

Function at 0x41828e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407080
mov eax, dword [0x430040]
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.00415fa2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4182d0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41842c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00422960
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 + 0x593ea8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00419288
mov ecx, dword [esi*4 + 0x593ea8]
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 0x418425
cmp eax, dword [edi + ecx + 0x24]
jne 0x418425
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 0x418425
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419288
add esp, 0x14
test edx, edx
jl 0x418425
jg 0x41839b
test eax, eax
jb 0x418425
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418425
jl 0x4183b5
cmp dword [ebp - 0x1008], eax
ja 0x418425
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4183d3
test ebx, ebx
je 0x41840c
cmp ecx, edi
jae 0x41840c
mov al, byte [ecx]
cmp al, 0xd
jne 0x4183ed
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4183f9
cmp byte [ecx + 1], 0xa
jne 0x4183f9
inc ecx
jmp 0x4183f9
movzx eax, al
movsx eax, byte [eax + 0x430310]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4183d3
cmp edx, ebx
jne 0x4183d3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41842a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406520
leave
ret
Function at 0x418723
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 + 0x593ea8]
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 0x418763
cmp byte [ebx], 0xa
jne 0x418763
or byte [eax + edi + 0x28], 4
jmp 0x418768
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x418866
mov al, byte [edx]
cmp al, 0x1a
je 0x418848
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x418797
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4187bc
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4187c6
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 0x418779
jmp 0x418866
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 0x418843
cmp dword [ebp - 0xc], 0
je 0x418843
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x593ea8]
test byte [eax + edi + 0x28], 0x48
je 0x41881d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x418808
mov byte [esi], dl
jmp 0x418819
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x593ea8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x418866
cmp byte [ebp - 1], 0xa
jne 0x41882c
cmp esi, ebx
jne 0x41882c
mov byte [esi], 0xa
jmp 0x418865
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004192a6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x418866
mov byte [esi], 0xd
jmp 0x418865
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x593ea8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418862
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418866
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41886f
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 + 0x593ea8]
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 0x4188b2
cmp word [esi], dx
jne 0x4188b2
or byte [edi + eax + 0x28], 4
jmp 0x4188b7
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 0x418a0a
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 0x4189ea
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4188f9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41892f
cmp eax, edx
jae 0x41893b
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 0x4188d1
jmp 0x418a0a
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 0x4189e6
cmp dword [ebp - 0x14], 0
je 0x4189e6
mov eax, dword [ebx*4 + 0x593ea8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4189be
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x418987
mov word [esi], cx
jmp 0x4189ba
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x593ea8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x593ea8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x593ea8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x418a0a
pop ebx
cmp word [ebp - 4], bx
jne 0x4189cf
cmp esi, dword [ebp + 0xc]
jne 0x4189cf
mov word [esi], bx
jmp 0x418a07
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004192a6
add esp, 0x10
cmp word [ebp - 4], bx
je 0x418a0a
push 0xd
jmp 0x418a03
mov ecx, dword [ebx*4 + 0x593ea8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418a01
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418a0a
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 0x41b4ea
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 0x41b587
push ebx
push esi
call fcn.0041b4b3
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.0041a138
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41b534
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b586
push edi
push eax
call fcn.004150b1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41b554
call fcn.00413ec9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41b585
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041a138
add esp, 0x20
test eax, eax
jne 0x41b573
push edi
call fcn.00413ec9
jmp 0x41b57b
push ebx
call fcn.00413ec9
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 0x422760
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42278d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42278d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x424000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x430040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov al, byte [esi + 0x5928e0]
xor al, 0x73
sub al, 0x6c
mov byte [esi + 0x5928e0], al
call fcn.00402f42
push eax
call fcn.00403105
mov al, byte [esi + 0x5928e0]
xor al, 0x74
add al, 0x59
mov byte [esi + 0x5928e0], al
call fcn.00401ba3
push eax
call fcn.00403105
mov al, byte [esi + 0x5928e0]
sub al, 0xb
mov dword [esp], str.Taste
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
mov byte [esi + 0x5928e0], al
call fcn.004010d6
lea ecx, [ebp - 0x1c]
mov dword [esp], 0x42cce0
call fcn.00401d09
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x1c]
cmova eax, dword [ebp - 0x1c]
push eax
call fcn.0040e16d
xor byte [esi + 0x5928e0], al
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.0040261a
inc esi
cmp esi, 0x4ac
jb 0x424013
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00406520
leave
ret 8