joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419680
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, dword [sym.imp.USER32.dll_GetKeyboardType]
push 0
mov esi, eax
call ebx
cmp eax, 7
je 0x4196fd
push edi
push str.HKEY_CLASSES_ROOTCLSIDd20a3293_3341_4ae8_9aaf_8e397cb63c34
call fcn.00419610
add esp, 4
mov ebp, eax
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 1
mov edi, eax
call ebx
mov esi, eax
and esi, 0xff00
test edi, edi
pop edi
je 0x4196dc
mov ecx, dword [0x4d295c]
push 0x4d2660
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
cmp esi, 0xd00
je 0x4196ec
cmp esi, 0x400
jne 0x4196f6
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4c7602
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4cf508
cmp edx, dword [eax]
je 0x4c7624
add eax, 8
inc ecx
cmp eax, 0x4cf598
jl 0x4c7615
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4cf508]
jne 0x4c7752
mov eax, dword [0x4d3bec]
cmp eax, 1
je 0x4c772c
test eax, eax
jne 0x4c7655
cmp dword [0x4cf448], 1
je 0x4c772c
cmp edx, 0xfc
je 0x4c7752
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c768c
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004c7d20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c7f50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c76cf
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c7f50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cbb40
push edi
call fcn.004c9720
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004c7d20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c7d30
lea eax, [ebp - 0xa0]
push 0x4cbb20
push eax
call fcn.004c7d30
push dword [esi + 0x4cf50c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c7d30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004c9694
add esp, 0x2c
pop edi
jmp 0x4c7752
lea eax, [ebp + 8]
lea esi, [esi + 0x4cf50c]
push 0
push eax
push dword [esi]
call fcn.004c7f50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40ed76
Capabilities:
Encode data using xor

Disassembly:
push 0x40eae0
pop esi
call fcn.0040ed94
and edi, edi
xor dword [ebx], esi
dec ecx
add ebx, 1
cmp ebx, eax
jne fcn.0040ed76
ret

Function at 0x818058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8181a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x81807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81806a
add dl, dl
jne 0x818089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8180dc
xor eax, eax
add dl, dl
jne 0x818096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81817d
add dl, dl
jne 0x8180a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8180d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x818075
mov eax, 1
add dl, dl
jne 0x8180ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8180e1
sub eax, ebx
mov ebx, 1
jne 0x818128
mov ecx, 1
add dl, dl
jne 0x81810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x818119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x818105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x818075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x81813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x81814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x818136
cmp eax, 0x7d00
jae 0x81816d
cmp eax, 0x500
jb 0x818168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x818075
cmp eax, 0x7f
ja 0x818170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x818075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x81819e
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 0x818075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4026a0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x4028e3
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.xbyuidgAYU7uikj
push 0x42c160
call fcn.004010d0
push eax
call fcn.00401440
xor byte [edi + ebx], 0xb1
push str.xbyuidgAYU7uikj
push 0x42c160
call fcn.004010d0
push eax
call fcn.00401440
add byte [edi + ebx], 8
push str.xbyuidgAYU7uikj
push 0x42c160
call fcn.004010d0
push eax
call fcn.00401440
add byte [edi + ebx], 0x78
push str.xbyuidgAYU7uikj
push 0x42c160
call fcn.004010d0
push eax
call fcn.00401440
xor byte [edi + ebx], 0xeb
push str.xbyuidgAYU7uikj
push 0x42c160
call fcn.004010d0
push eax
call fcn.00401440
add byte [edi + ebx], 0x8c
push str.xbyuidgAYU7uikj
push 0x42c160
call fcn.004010d0
add esp, 0x44
push eax
call fcn.00401440
xor byte [edi + ebx], 0xc3
push str.xbyuidgAYU7uikj
push 0x42c160
call fcn.004010d0
push eax
call fcn.00401440
xor byte [edi + ebx], 0xde
push str.xbyuidgAYU7uikj
push 0x42c160
call fcn.004010d0
push eax
call fcn.00401440
xor byte [edi + ebx], 0xb2
push str.xbyuidgAYU7uikj
push 0x42c160
call fcn.004010d0
push eax
call fcn.00401440
add byte [edi + ebx], 0xc7
push str.xbyuidgAYU7uikj
push 0x42c160
call fcn.004010d0
push eax
call fcn.00401440
add byte [edi + ebx], 0x72
push str.xbyuidgAYU7uikj
push 0x42c160
call fcn.004010d0
push eax
call fcn.00401440
add byte [edi + ebx], 0xfd
add esp, 0x40
push str.xbyuidgAYU7uikj
push 0x42c160
call fcn.004010d0
push eax
call fcn.00401440
add byte [edi + ebx], 0x62
push str.xbyuidgAYU7uikj
push 0x42c160
call fcn.004010d0
push eax
call fcn.00401440
add byte [edi + ebx], 0x91
push str.xbyuidgAYU7uikj
push 0x42c160
call fcn.004010d0
push eax
call fcn.00401440
add byte [edi + ebx], 0x91
push str.xbyuidgAYU7uikj
push 0x42c160
call fcn.004010d0
push eax
call fcn.00401440
add byte [edi + ebx], 0xbc
push str.xbyuidgAYU7uikj
push 0x42c160
call fcn.004010d0
push eax
call fcn.00401440
xor byte [edi + ebx], 0x69
push str.xbyuidgAYU7uikj
push 0x42c160
call fcn.004010d0
add esp, 0x44
push eax
call fcn.00401440
xor byte [edi + ebx], 0x4d
push str.xbyuidgAYU7uikj
push 0x42c160
call fcn.004010d0
push eax
call fcn.00401440
add byte [edi + ebx], 0xb5
push str.xbyuidgAYU7uikj
push 0x42c160
call fcn.004010d0
push eax
call fcn.00401440
xor byte [edi + ebx], 0xa7
push str.xbyuidgAYU7uikj
push 0x42c160
call fcn.004010d0
push eax
call fcn.00401440
add byte [edi + ebx], 0x16
push str.xbyuidgAYU7uikj
push 0x42c160
call fcn.004010d0
push eax
call fcn.00401440
xor byte [edi + ebx], 0xf
add esp, 0x34
inc edi
cmp edi, esi
jb 0x4026c0
pop ebx
pop edi
pop esi
ret
Function at 0x404bc7
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 0x404be8
jl 0x404bdf
test edi, edi
jne 0x404be8
xor eax, eax
xor edx, edx
jmp 0x404ca9
cmp dword [ebx + 0x38], 0
je 0x404bfd
push eax
push edi
push dword [ebp + 8]
call fcn.00404caf
jmp 0x404ca9
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x404c44
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x404c44
cmp eax, edi
jb 0x404c1e
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004066d0
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 0x404c4a
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x404c9e
mov ecx, ebx
call fcn.0040442f
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x404c89
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040b6b3
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 0x404c9e
jmp 0x404c5c
test edx, edx
je 0x404c9e
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040b6b3
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 0x406062
Capabilities:
Parse pe header

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

Function at 0x4105c6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42152c
push 0x421524
push str.FlsAlloc
push 0x1e
call fcn.004103f3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4105fa
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e14c]
call esi
jmp 0x410600
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x410644
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42153c
push 0x421534
push str.FlsGetValue
push 0x20
call fcn.004103f3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41067b
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e14c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x412e32
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00412ca3

Function at 0x41322c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004061d0
mov eax, dword [0x42b01c]
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.00411e98
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41326e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4133ca
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041cbf0
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 + 0x42cb10]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00414223
mov ecx, dword [esi*4 + 0x42cb10]
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 0x4133c3
cmp eax, dword [edi + ecx + 0x24]
jne 0x4133c3
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 0x4133c3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414223
add esp, 0x14
test edx, edx
jl 0x4133c3
jg 0x413339
test eax, eax
jb 0x4133c3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4133c3
jl 0x413353
cmp dword [ebp - 0x1008], eax
ja 0x4133c3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x413371
test ebx, ebx
je 0x4133aa
cmp ecx, edi
jae 0x4133aa
mov al, byte [ecx]
cmp al, 0xd
jne 0x41338b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413397
cmp byte [ecx + 1], 0xa
jne 0x413397
inc ecx
jmp 0x413397
movzx eax, al
movsx eax, byte [eax + 0x42b2c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x413371
cmp edx, ebx
jne 0x413371
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4133c8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040545f
leave
ret
Function at 0x4136c1
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 + 0x42cb10]
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 0x413701
cmp byte [ebx], 0xa
jne 0x413701
or byte [eax + edi + 0x28], 4
jmp 0x413706
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x413804
mov al, byte [edx]
cmp al, 0x1a
je 0x4137e6
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x413735
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41375a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x413764
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 0x413717
jmp 0x413804
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 0x4137e1
cmp dword [ebp - 0xc], 0
je 0x4137e1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x42cb10]
test byte [eax + edi + 0x28], 0x48
je 0x4137bb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4137a6
mov byte [esi], dl
jmp 0x4137b7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42cb10]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x413804
cmp byte [ebp - 1], 0xa
jne 0x4137ca
cmp esi, ebx
jne 0x4137ca
mov byte [esi], 0xa
jmp 0x413803
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414241
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x413804
mov byte [esi], 0xd
jmp 0x413803
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x42cb10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x413800
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x413804
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41380d
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 + 0x42cb10]
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 0x413850
cmp word [esi], dx
jne 0x413850
or byte [edi + eax + 0x28], 4
jmp 0x413855
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 0x4139a8
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 0x413988
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x413897
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4138cd
cmp eax, edx
jae 0x4138d9
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 0x41386f
jmp 0x4139a8
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 0x413984
cmp dword [ebp - 0x14], 0
je 0x413984
mov eax, dword [ebx*4 + 0x42cb10]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41395c
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x413925
mov word [esi], cx
jmp 0x413958
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x42cb10]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x42cb10]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x42cb10]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4139a8
pop ebx
cmp word [ebp - 4], bx
jne 0x41396d
cmp esi, dword [ebp + 0xc]
jne 0x41396d
mov word [esi], bx
jmp 0x4139a5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00414241
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4139a8
push 0xd
jmp 0x4139a1
mov ecx, dword [ebx*4 + 0x42cb10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41399f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4139a8
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 0x41780d
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 0x4178aa
push ebx
push esi
call fcn.004177d6
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.0041645b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x417857
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4178a9
push edi
push eax
call fcn.00410d00
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x417877
call fcn.004100bb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4178a8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041645b
add esp, 0x20
test eax, eax
jne 0x417896
push edi
call fcn.004100bb
jmp 0x41789e
push ebx
call fcn.004100bb
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 0x41cbb0
Capabilities:
Parse pe header

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

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d7a
nop
nop
sub eax, 0x403d20
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x432000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x40699a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x4069d1
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 0x4069ab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x4069a6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a02
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 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x4069e4
pop edi
not eax
pop esi
ret 0xc
Function at 0xe91370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xe9138e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xeba074
push ecx
mov edi, eax
call fcn.00ea5198
mov esi, eax
add esp, 8
test esi, esi
jne 0xe913cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00ea502e
push esi
call fcn.00ea4fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xe94850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xe948ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xebf720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xe948ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00ea51e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xe948ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xebf720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xe9492a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00ea6082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xe94957
mov word [eax], si
add eax, 2
push eax
call fcn.00ea6030
add esp, 4
jmp 0xe94959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xe948ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xe948b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xe94ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret